/* Fortuitous Hours — design tokens matching live Framer (2026-09-21) */
:root {
  --bg: #eef0e5;
  --cream: #eef0e5;
  --ink: #20150e;
  --ink-card: #20150e;
  --muted: rgba(32, 21, 14, 0.65);
  --red: #b61b1c;
  --red-deep: #9a1718;
  --input-fill: rgba(255, 255, 255, 0.6);
  --placeholder: rgba(32, 21, 14, 0.3);
  --shadow: 3px 3px 2px 0 #20150e;
  --shadow-red: 3px 3px 2px 0 #b61b1c;
  --radius-card: 20px;
  --radius-input: 8px;
  --max: 480px;
  /* Framer spring ~0.4s on hover / expand */
  --spring: cubic-bezier(0.44, 0.14, 0.18, 1);
  --spring-out: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur: 0.4s;
  --font: "Cabinet Grotesk", system-ui, sans-serif;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-footer: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 32px 20px 40px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* —— Home header —— */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  object-fit: cover;
  margin: 4px auto 16px;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 51px;
  line-height: 0.7;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  text-align: center;
  color: #20150e;
}

.name .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--red);
  vertical-align: 6px;
}

.bio {
  margin: 18px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
  width: 100%;
  max-width: none;
}

.bio p {
  margin: 0;
}

/* Keep role line on one line like live Framer */
.bio p:first-child {
  white-space: nowrap;
  font-size: clamp(14.5px, 3.7vw, 18px);
}

.socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 22px;
}

.socials a {
  color: var(--red);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--dur) var(--spring);
}

.socials a:hover {
  transform: translateY(-2px);
}

.socials svg {
  width: 25px;
  height: 25px;
  display: block;
  pointer-events: none;
}

.socials svg path {
  fill: currentColor;
}

/* —— Link cards —— */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 16px;
  align-items: center;
  width: 100%;
  /* Framer Variant 3 default → hover padding bump */
  padding: 18px 20px 18px 24px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  will-change: transform, padding, box-shadow, border-color;
  transition:
    border-color var(--dur) var(--spring-out),
    box-shadow var(--dur) var(--spring-out),
    padding var(--dur) var(--spring-out),
    transform var(--dur) var(--spring-out);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
  padding: 20px 22px 20px 26px;
}

.link-card:hover .icon-tile,
.founder:hover .icon-tile {
  background: var(--ink);
}

.link-card:active {
  transform: translate(1px, 1px);
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--dur) var(--spring-out);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.card-copy {
  min-width: 0;
}

.card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-card);
}

.card-sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  opacity: 0.85;
}

.card-arrow {
  color: var(--ink);
  opacity: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.card-arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.75;
}

/* —— Founder Notes expandable —— */
.founder {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  will-change: transform, box-shadow, border-color;
  transition:
    border-color var(--dur) var(--spring-out),
    box-shadow var(--dur) var(--spring-out);
}

/* Red border/shadow only on hover — not while expanded */
.founder:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.founder-toggle {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px 20px 18px 24px;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: padding var(--dur) var(--spring-out);
  -webkit-tap-highlight-color: transparent;
}

.founder:hover .founder-toggle {
  padding: 20px 22px 20px 26px;
}

/* Expanded: keep icon + title + subtitle (Framer layout); hide only the arrow */
.founder[data-open="true"] .founder-toggle {
  cursor: default;
}

.founder[data-open="true"] .card-arrow {
  visibility: hidden;
}

.founder-panel {
  display: none;
  padding: 0 20px 18px 24px;
}

.founder[data-open="true"] .founder-panel {
  display: block;
  animation: spring-in var(--dur) var(--spring-out);
}

.founder:hover .founder-panel {
  padding: 0 22px 20px 26px;
}

.founder-form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 4px;
}

.email-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-input);
  background: var(--input-fill);
  box-shadow: inset 0 0 0 1px rgba(32, 21, 14, 0.12);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: var(--placeholder);
}

.email-input:focus {
  box-shadow: inset 0 0 0 1px var(--red);
}

.btn-arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-input);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform var(--dur) var(--spring);
}

.btn-arrow:hover:not(:disabled) {
  background: var(--red-deep);
}

.btn-arrow:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-arrow svg {
  width: 18px;
  height: 18px;
}

.founder[data-state="success"] .founder-form,
.founder[data-state="success"] .founder-heading {
  display: none;
}

.founder-success-block {
  display: none;
  cursor: pointer;
  text-align: left;
  animation: spring-in var(--dur) var(--spring-out);
}

.founder[data-state="success"] .founder-success-block {
  display: block;
}

.founder-success-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}

.founder-blurb {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.founder-blurb p {
  margin: 0 0 0.75em;
}

.founder-blurb p:last-child {
  margin-bottom: 0;
}

.form-error {
  display: none;
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--red);
  text-align: center;
}

.form-error[data-show="true"] {
  display: block;
}

.shake {
  animation: shake 0.2s ease;
}

/* —— Guide landing (match live Framer sticker cards) —— */
.guide-page {
  --max: 500px;
  padding: 48px 24px 56px;
  color: #20150e;
}

.guide-page .guide-intro h2,
.guide-page .guide-intro p,
.guide-page .whats-inside h3,
.guide-page .whats-inside ul,
.guide-page .whats-inside li,
.guide-page .whats-inside li::before,
.guide-page .footer {
  color: #20150e;
}

.guide-page .guide-card {
  border-color: #20150e;
  box-shadow: 3px 3px 2px 0 #20150e;
}

.guide-page .guide-banner {
  box-shadow: 3px 3px 2px 0 #20150e;
}

.guide-page.page {
  align-items: stretch;
}

.guide-hero {
  width: 100%;
  text-align: center;
  margin: 0 0 8px;
}

.sticker-title {
  position: relative;
  display: block;
  width: 105%;
  margin: 0 0 0 -2.5%;
}

.sticker-title img {
  width: 100%;
  height: auto;
  margin: 0;
}

.guide-intro {
  text-align: center;
  margin: 0 0 20px;
  width: 100%;
}

.guide-intro h2 {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: lowercase;
  line-height: 1.3;
}

.guide-intro p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  text-transform: lowercase;
}

/* Sticker cards — form + what’s inside */
.guide-card {
  width: 100%;
  margin: 0 0 20px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition:
    background var(--dur) var(--spring-out),
    border-color var(--dur) var(--spring-out),
    box-shadow var(--dur) var(--spring-out);
}

/* Framer Success: dark card + Holly Red hard shadow */
.guide-card[data-state="success"] {
  background: var(--ink-card);
  border-color: var(--ink-card);
  box-shadow: 3px 3px 2px 0 var(--red);
  padding: 28px 22px;
}

/* Kit-style docked send me inside the email field */
.send-field {
  position: relative;
  width: 100%;
}

.send-field .guide-email {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 15px 115px 15px 15px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}

.send-field .guide-email::placeholder {
  color: rgba(32, 21, 14, 0.3);
}

.send-field .guide-email:focus {
  box-shadow: inset 0 0 0 1px var(--red);
}

.send-field .btn-send {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  width: 100px;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.send-field .btn-send:hover:not(:disabled) {
  background: var(--red-deep);
}

.send-field .btn-send:disabled {
  opacity: 0.7;
  cursor: wait;
}

.guide-form[data-state="default"] .send-field,
.guide-form[data-state="loading"] .send-field {
  display: block;
}

.guide-form[data-state="success"] .send-field,
.guide-form[data-state="error"] .send-field,
.guide-form[data-state="default"] .guide-state,
.guide-form[data-state="loading"] .guide-state {
  display: none;
}

.guide-form[data-state="success"] .guide-success,
.guide-form[data-state="error"] .guide-error {
  display: block;
}

.guide-form[data-state="loading"] .btn-send {
  letter-spacing: 0.08em;
}

.guide-state {
  display: none;
  width: 100%;
  text-align: center;
  padding: 4px 0;
  animation: spring-in var(--dur) var(--spring-out);
  cursor: pointer;
}

.guide-success-label {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
}

.btn-see-them {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform var(--dur) var(--spring-out);
  cursor: pointer;
  border: 0;
}

.btn-see-them-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.btn-see-them-icon svg {
  display: block;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform var(--dur) var(--spring-out);
  cursor: pointer;
  border: 0;
}

.btn-see-them:hover,
.btn-download:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.guide-error-copy {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}

.whats-inside {
  text-align: left;
}

.whats-inside h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: lowercase;
  text-align: left;
  color: var(--ink);
}

.whats-inside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

.whats-inside li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0.55em;
}

.whats-inside li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-weight: 700;
}

.guide-banner {
  width: 100%;
  margin: 0 0 8px;
  padding: 26px 28px;
  background: var(--red);
  color: var(--bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  text-transform: lowercase;
}

@media (max-width: 449.98px) {
  .guide-page {
    --max: 440px;
    padding: 48px 20px 56px;
  }

  .guide-card,
  .guide-banner {
    padding: 22px;
  }
}

/* —— Download guide page —— */
.download-page .avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
}

.download-page h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2rem);
  text-align: center;
  color: var(--ink);
}

.download-page .lede {
  margin: 0 0 24px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
}

.download-card {
  width: 100%;
  background: var(--ink-card);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.download-card .label {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Success route (/in-founders-note) —— */
.success-page .founder-static {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  animation: spring-in var(--dur) var(--spring-out);
}

.success-page .founder-success-title {
  margin-top: 4px;
}

.go-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  transition: transform var(--dur) var(--spring);
}

.go-back:hover {
  transform: translateX(-2px);
}

/* —— Footer —— */
.footer {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-footer);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.7;
  text-align: center;
}

@keyframes spring-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 449.98px) {
  .page {
    --max: 390px;
    padding: 24px 16px 36px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .name {
    font-size: 45px;
  }

  .bio {
    font-size: 16px;
  }

  .bio p:first-child {
    font-size: clamp(13.5px, 3.6vw, 16px);
  }

  .card-title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
