/* ————————————————————————————————————————————————————————————
   TDBA Front Door — intake widgets + the crawlable below-fold.
   Loads AFTER styles.css (the shared Listening Loop engine skin);
   only front-door-specific pieces live here.
   ———————————————————————————————————————————————————————————— */

/* ————— persona cards (the landing moment) ————— */

.personas { display: grid; gap: 12px; margin: 26px 0 8px; width: 100%; }
.persona-card {
  appearance: none; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(250, 247, 245, .045);
  border: 1px solid rgba(250, 247, 245, .18);
  border-radius: 20px;
  padding: 18px 20px;
  color: var(--ink);
  transition: transform .18s var(--ease-spring), border-color .22s, background .22s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.persona-card::after {
  content: '→';
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--accent-hot); font-weight: 600; font-size: 1.15rem;
  transition: transform .18s var(--ease-spring);
}
.persona-card b {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em;
  padding-right: 30px;
}
.persona-card > span { color: var(--ink-mute); font-size: .92rem; padding-right: 30px; }
.persona-card:hover, .persona-card:focus-visible {
  background: rgba(217, 32, 39, .12);
  border-color: rgba(255, 75, 69, .55);
  box-shadow: 0 10px 30px rgba(7, 8, 26, .5);
}
.persona-card:hover::after { transform: translateY(-50%) translateX(4px); }
.persona-card:active { transform: scale(.975); }

.quiet-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin-top: 22px;
}
.quiet-link {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--ink-mute); font: 500 .88rem/1.4 'Inter', system-ui, sans-serif;
  text-decoration: underline; text-decoration-color: rgba(250, 247, 245, .3);
  text-underline-offset: 3px;
  transition: color .2s;
}
.quiet-link:hover { color: var(--ink); }

/* ————— "not sure" chip ————— */

.chip-ns { border-style: dashed; color: var(--ink-mute); }
.chip-ns[aria-pressed="true"] { color: #FFF8F6; border-style: solid; }

/* ————— capture inputs ————— */

.cap-wrap { display: grid; gap: 10px; margin-top: 22px; }
.cap-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 26, .5);
  color: var(--ink);
  font: 500 1.06rem/1.3 'Inter', system-ui, sans-serif;
  padding: 17px 18px;
  transition: border-color .25s, box-shadow .25s;
}
.cap-input::placeholder { color: var(--ink-faint); }
.cap-input:focus {
  outline: none;
  border-color: rgba(255, 75, 69, .65);
  box-shadow: 0 0 0 4px rgba(217, 32, 39, .14);
}
.cap-wrap.shake { animation: fd-shake .4s ease; }
@keyframes fd-shake { 0%,100%{transform:none} 25%{transform:translateX(-7px)} 75%{transform:translateX(7px)} }

/* ————— the three doors ————— */

.sent-note {
  margin-top: 14px;
  display: inline-block;
  background: rgba(217, 32, 39, .12);
  border: 1px solid rgba(255, 75, 69, .4);
  color: #FFD9D6;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: .9rem;
}

.doors { display: grid; gap: 12px; margin: 22px 0 6px; width: 100%; }
.door {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
  background: rgba(250, 247, 245, .045);
  border: 1px solid rgba(250, 247, 245, .16);
  border-radius: 20px;
  padding: 16px 18px;
  transition: transform .18s var(--ease-spring), border-color .22s, background .22s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.door:hover, .door:focus-visible {
  background: rgba(217, 32, 39, .1);
  border-color: rgba(255, 75, 69, .5);
  box-shadow: 0 10px 30px rgba(7, 8, 26, .5);
}
.door:active { transform: scale(.98); }
.door-num {
  font: 600 .78rem/1 ui-monospace, Menlo, monospace;
  color: var(--ink-faint);
  letter-spacing: .08em;
  flex: none;
}
.door-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.door-body b {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.15;
}
.door-blurb { color: var(--ink-mute); font-size: .88rem; line-height: 1.45; }
.door-price {
  margin-top: 5px;
  align-self: flex-start;
  background: rgba(217, 32, 39, .16);
  border: 1px solid rgba(255, 75, 69, .4);
  color: #FFD9D6;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
}
.door-arw {
  margin-left: auto; flex: none;
  color: var(--accent-hot); font-weight: 600; font-size: 1.2rem;
  transition: transform .18s var(--ease-spring);
}
.door:hover .door-arw { transform: translateX(4px); }

/* ————— accessibility: skip link ————— */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--navy-mid);
  padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ————— the crawlable academy block + footer (below the flow) ————— */

#academy {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 8, 26, .35), rgba(7, 8, 26, .75));
  padding: 64px var(--pad) 28px;
}
#academy .wrap { max-width: 640px; margin: 0 auto; }
#academy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.7rem; letter-spacing: -.012em;
  margin-bottom: 12px;
}
#academy .lede { color: var(--ink-soft); max-width: 54ch; margin-bottom: 26px; }

.acad-links {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
  margin: 0 0 34px;
}
.acad-links a {
  display: block;
  background: rgba(250, 247, 245, .04);
  border: 1px solid rgba(250, 247, 245, .12);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.acad-links a:hover { background: rgba(250, 247, 245, .08); color: var(--ink); border-color: rgba(250, 247, 245, .25); }
.acad-links a small { display: block; color: var(--ink-mute); font-weight: 400; font-size: .8rem; margin-top: 3px; }

.acad-foot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid; gap: 18px;
  color: var(--ink-mute); font-size: .9rem;
}
.acad-foot address { font-style: normal; line-height: 1.7; }
.acad-foot a { color: var(--ink-soft); }
.acad-foot .big-tel { font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.acad-foot .fineprint { font-size: .8rem; color: var(--ink-faint); }

/* ————— the Birthday Club (optional, post-capture) ————— */

.bday {
  margin-top: 18px;
  background: rgba(250, 247, 245, .035);
  border: 1px dashed rgba(250, 247, 245, .22);
  border-radius: 18px;
  padding: 16px;
}
.bday-label {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.05rem;
  margin-bottom: 4px;
}
.bday-body { color: var(--ink-mute); font-size: .86rem; line-height: 1.5; margin-bottom: 12px; }
.bday-row { display: flex; gap: 10px; }
.bday-input { flex: 1; margin: 0; min-height: 52px; padding: 12px 14px; color-scheme: dark; }
.bday-add { width: auto; min-height: 52px; padding: 12px 18px; white-space: nowrap; }
.bday-done { color: #FFD9D6; font-size: .84rem; min-height: 1.3em; margin-top: 8px; }

/* ————— persistent brand mark (every screen, all sizes) ————— */

.brand-mark {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  z-index: 5;
  display: block;
  line-height: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
  transition: transform .18s var(--ease-spring);
}
.brand-mark img { width: 42px; height: 42px; border-radius: 50%; }
.brand-mark:hover { transform: scale(1.06); }

/* ————— overflow-safe centering ————— */
/* flex `justify-content:center` CLIPS THE TOP when content is taller than the
   viewport (short desktop windows with bookmark bars — squeezed the welcome
   badge right off screen). Flexible ::before/::after spacers center when there
   is room and degrade to normal scroll when there isn't. */
.screen.center { justify-content: flex-start; }
.screen.center::before, .screen.center::after { content: ''; flex: 1 0 16px; }

/* ————— "Enrolling now" — the live catalog strip, top of the academy block —————
   The cards are rendered server-side from the same D1 rows teddydupay.com uses, so
   this site holds no copy of a date or a price. Every card is a link to the product
   page on teddydupay.com; there is no checkout on this domain. */

.enroll { margin: 0 0 34px; }
.enroll-head {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 12px;
}
.enroll-list {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}
.enroll-card {
  display: block;
  background: rgba(250, 247, 245, .055);
  border: 1px solid rgba(250, 247, 245, .16);
  border-radius: 14px; padding: 13px 15px;
  color: var(--ink-soft); text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.enroll-card:hover { background: rgba(250, 247, 245, .1); color: var(--ink); border-color: rgba(250, 247, 245, .3); }
.enroll-when {
  display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 5px;
}
.enroll-card strong { display: block; font-size: .96rem; font-weight: 600; color: var(--ink); }
.enroll-card small { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-mute); margin-top: 3px; line-height: 1.45; }
.enroll-price { display: block; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.enroll-more { font-size: .85rem; color: var(--ink-mute); }
.enroll-more a { color: var(--ink-soft); }
