/* ── Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..800&family=Lexend+Deca:wght@400;500&display=swap");
@font-face { font-family: "Sunday Eighties"; src: url("fonts/SundayEighties-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sunday Eighties"; src: url("fonts/SundayEighties-Slanted.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

/* ── Tokens ── */
:root {
  --font-text: "Bricolage Grotesque", system-ui, sans-serif;
  --font-brand: "Sunday Eighties", serif;
  --font-label: "Lexend Deca", sans-serif;

  --milk-1: #F9F8F4; --milk-2: #EEEDE8; --milk-3: #E3E2DC;
  --graphite-900: #2B323F; --graphite-700: #434A57; --graphite-600: #535A66; --graphite-400: #8A8F97;
  --mist-200: #D2D8E0; --mist-300: #C6CCD4;
  --line-milk-2: #DFDED8; --line-milk-3: #E9E8E3;
  --ink-blue-600: #35588F; --ink-blue-200: #A9C1EA;
  --night-1: #2B323F; --night-2: #353C4A; --night-3: #404756; --night-sel: #4D5768;

  --paper-1: var(--milk-1); --paper-2: var(--milk-2); --paper-3: var(--milk-3);
  --ink-1: var(--graphite-900); --ink-2: var(--graphite-700); --ink-3: var(--graphite-600); --ink-4: var(--graphite-400);
  --line-1: var(--graphite-900); --line-2: var(--line-milk-2); --line-3: var(--line-milk-3);
  --action-bg: var(--graphite-900); --action-fg: var(--milk-1);
  --select-bg: var(--mist-200); --select-fg: var(--graphite-900); --select-line: var(--graphite-900);
  --focus: var(--graphite-900); --redact: var(--mist-300);
  --field-fg: var(--ink-blue-600); --field-bg: #FFFFFF; --field-line: var(--graphite-400); --field-line-focus: var(--graphite-900);
  --field-ring: rgba(43,50,63,.12); --field-inset: rgba(43,50,63,.06);

  --ease-drift: cubic-bezier(.45,0,.2,1);
  --texture-opacity: .22;
}

[data-theme="night"] {
  --paper-1: var(--night-1); --paper-2: var(--night-2); --paper-3: var(--night-3);
  --ink-1: var(--milk-1); --ink-2: #E3E1DA; --ink-3: #C9CCD2;
  --line-2: #464D5B;
  --action-bg: var(--mist-200); --action-fg: var(--graphite-900);
  --select-bg: var(--night-sel); --select-fg: var(--milk-1); --select-line: var(--mist-200);
  --focus: var(--mist-200); --redact: #4A5160;
  --field-fg: var(--ink-blue-200); --field-bg: #232934; --field-line: #7E8798; --field-line-focus: var(--mist-200);
  --field-ring: rgba(210,216,224,.18); --field-inset: rgba(0,0,0,.18);
}

/* ── Texture ── */
.dg-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("textures/speckled-grain.png") repeat; background-size: 300px;
  opacity: var(--texture-opacity);
}
.dg-paper { position: relative; }
.dg-paper > * { position: relative; z-index: 1; }

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper-1); color: var(--ink-1); font-family: var(--font-text); font-weight: 300; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink-1); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--ink-2); }
img { display: block; max-width: 100%; height: auto; }
summary::-webkit-details-marker { display: none; }
*:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }

/* ── Skip link ── */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--action-bg); color: var(--action-fg); padding: 12px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ── Nav ── */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(249,248,244,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.site-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { list-style: none; margin: 0 auto 0 0; padding: 0; display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--action-bg); color: var(--action-fg); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-cta:hover { background: var(--graphite-700); color: var(--action-fg); }

/* ── Kicker ── */
.kicker { margin: 0; font-family: var(--font-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; font-size: 10px; color: var(--ink-2); }
.kicker-sm { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ── Hero ── */
.hero { scroll-margin-top: 80px; }
.hero-inner { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 40px) clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.hero h1 { margin: 0; font-size: clamp(42px, 5.6vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero-body { margin: 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 500px; }
.hero-callout { margin: 0; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.btn-primary { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px; border-radius: 8px; background: var(--action-bg); color: var(--action-fg); font-family: var(--font-text); font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary:hover { background: var(--graphite-700); color: var(--action-fg); }
.btn-primary:active { transform: scale(.97); }
.hero-small { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 460px; }

/* ── Phone mockup ── */
.phone-frame { width: min(calc(100% - 18px), 360px); height: clamp(660px, 88vh, 780px); border-radius: 48px; background: var(--paper-1); color: var(--ink-1); box-shadow: 0 0 0 9px #1b1b1b, 0 30px 60px -30px rgba(0,0,0,.5); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone-status { height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0; font: 600 15px/1 -apple-system, system-ui, sans-serif; color: var(--ink-1); position: relative; z-index: 5; }
.phone-notch { width: 120px; height: 32px; border-radius: 20px; background: #000; position: absolute; left: 50%; margin-left: -60px; top: 10px; }
.phone-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none; }
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 4px 10px 6px; min-height: 52px; background: color-mix(in srgb, var(--paper-1) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.phone-header img { justify-self: center; height: 26px; width: auto; }
.phone-tab-bar { flex-shrink: 0; position: relative; z-index: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px 22px; border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--paper-1) 84%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.phone-tab { display: grid; justify-items: center; gap: 3px; padding-top: 4px; }
.phone-tab-icon { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
.phone-tab-icon.active { background: var(--select-bg); }
.phone-home-bar { height: 5px; width: 134px; border-radius: 3px; background: var(--ink-1); position: absolute; bottom: 8px; left: 50%; margin-left: -67px; z-index: 7; }

/* ── Night banner (inside phone) ── */
.phone-night { position: relative; overflow: hidden; background: var(--paper-1); color: var(--ink-1); padding: 24px 22px 150px; }
.phone-night .brand-word { margin: 10px 0 0; font-family: var(--font-brand); font-size: 76px; line-height: .92; }
.phone-night .specimens { position: absolute; bottom: -26px; pointer-events: none; }
.phone-night .specimens img { position: absolute; width: 136px; height: 156px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }

/* ── Mood cards (inside phone) ── */
.mood-cards { margin: 18px 16px 0; display: grid; gap: 10px; }
.mood-card { position: relative; cursor: pointer; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper-1); color: var(--ink-1); transition: background 520ms var(--ease-drift), border-color 520ms var(--ease-drift); }
.mood-card[aria-checked="true"] { border-color: var(--select-line); background: var(--select-bg); }
.mood-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; }
.mood-card-meta { display: grid; gap: 4px; }
.mood-card-num { font-family: var(--font-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; font-size: 9px; opacity: .75; }
.mood-card-word { font-family: var(--font-brand); font-size: 28px; line-height: 1; transition: font-size 520ms var(--ease-drift); }
.mood-card[aria-checked="true"] .mood-card-word { font-size: 40px; }
.mood-radio { width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.mood-radio-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform 400ms var(--ease-drift); }
.mood-card[aria-checked="true"] .mood-radio-dot { transform: scale(1); }
.mood-card-detail { position: relative; padding: 0 16px 18px; display: grid; gap: 18px; }
.mood-card-detail[hidden] { display: none; }
.mood-card-specimen { position: absolute; right: -22px; top: -8px; width: 104px; height: 120px; object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(0 14px 14px rgba(20,24,31,.25)); pointer-events: none; }
.mood-facts { display: grid; margin-top: 8px; border-top: 1px solid var(--line-2); }
.mood-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mood-fact-key { font-size: 12px; opacity: .75; }
.mood-fact-val { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 13px; line-height: 1.3; }
.mood-clue-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mood-clue-list li { font-weight: 300; font-size: 14px; line-height: 1.45; }
.mood-notes summary { cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; min-height: 28px; }

/* ── Seal button (inside phone) ── */
.phone-footer { position: sticky; bottom: 0; z-index: 5; margin-top: 14px; padding: 12px 14px; border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--paper-1) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 8px; }
.seal-placeholder { min-height: 68px; border-radius: 16px; border: 1.5px dashed var(--line-1); display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 0 16px; color: var(--ink-3); }
.seal-circle-empty { width: 42px; height: 42px; border-radius: 50%; border: 1.5px dashed var(--line-1); }
.seal-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 68px; border-radius: 16px; background: var(--action-bg); color: var(--action-fg); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px 10px 10px; box-shadow: 0 20px 32px -18px rgba(20,24,31,.65); }
.seal-btn:active { transform: scale(.98); }
.seal-btn[hidden] { display: none; }
.seal-initial { width: 48px; height: 48px; border-radius: 50%; background: var(--action-fg); color: var(--action-bg); display: grid; place-items: center; font-family: var(--font-brand); font-size: 24px; line-height: 1; transform: rotate(-12deg); box-shadow: inset 0 0 0 4px var(--action-fg), inset 0 0 0 5.5px var(--action-bg); }
.seal-text { display: grid; gap: 3px; text-align: left; }

/* ── Section: How a month works ── */
.section-month { scroll-margin-top: 64px; background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-month .inner { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px); }
.section-month h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 15em; text-wrap: balance; }
.steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.step { border-top: 1px solid var(--line-1); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.step h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.step p { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }

/* ── Reveal demo ── */
.reveal-panel { scroll-margin-top: 90px; margin-top: clamp(40px, 5vw, 64px); border-radius: 12px; background: var(--paper-1); color: var(--ink-1); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.reveal-cover { position: relative; width: clamp(160px, 18vw, 220px); aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--night-3); box-shadow: 0 24px 40px -20px rgba(0,0,0,.7); }
.reveal-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1400ms var(--ease-drift), transform 1400ms var(--ease-drift); }
.reveal-cover.sealed img { filter: blur(14px) saturate(1.1); transform: scale(1.25); }
.reveal-cover .string-h, .reveal-cover .string-v { position: absolute; background: var(--ink-1); transition: opacity 700ms var(--ease-drift); }
.reveal-cover.sealed .string-h, .reveal-cover.sealed .string-v { opacity: 1; }
.reveal-cover.revealed .string-h, .reveal-cover.revealed .string-v { opacity: 0; }
.reveal-cover .string-v { left: 62%; top: -5px; bottom: -5px; width: 2px; }
.reveal-cover .string-h { top: 38%; left: -5px; right: -5px; height: 2px; }
.reveal-cover .wax-seal { position: absolute; left: calc(62% - 28px); top: calc(38% - 28px); width: 56px; height: 56px; border-radius: 50%; background: var(--ink-1); color: var(--paper-1); display: grid; place-items: center; font-family: var(--font-brand); font-size: 28px; line-height: 1; box-shadow: inset 0 0 0 4px var(--ink-1), inset 0 0 0 5.5px var(--paper-1), 0 10px 16px -6px rgba(0,0,0,.55); transition: transform 900ms var(--ease-drift), opacity 900ms var(--ease-drift); }
.reveal-cover.sealed .wax-seal { transform: rotate(-12deg); opacity: 1; }
.reveal-cover.revealed .wax-seal { transform: rotate(-40deg) scale(.6); opacity: 0; }
.reveal-text { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.redact-wrap { position: relative; align-self: flex-start; }
.redact-bar { position: absolute; inset: -2px -4px; border-radius: 4px; background: var(--redact); transform-origin: right center; transition: transform 1400ms var(--ease-drift); }
.sealed .redact-bar { transform: scaleX(1); }
.revealed .redact-bar { transform: scaleX(0); }
.redact-wrap .title-text, .redact-wrap .author-text { transition: opacity 900ms var(--ease-drift) 300ms; }
.sealed .title-text, .sealed .author-text { opacity: 0; }
.revealed .title-text, .revealed .author-text { opacity: 1; }
.hold-btn { position: relative; overflow: hidden; height: 68px; width: min(100%, 300px); border-radius: 16px; border: 0; background: var(--action-bg); color: var(--action-fg); font-family: var(--font-text); font-size: 17px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 20px 34px -18px rgba(0,0,0,.7); }
.hold-btn .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--select-bg); transition: none; }
.hold-btn .label { position: relative; }
.reveal-credit { margin: 0; font-size: 14px; color: var(--ink-3); }
.reveal-after { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.reseal-btn { all: unset; cursor: pointer; align-self: flex-start; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ── Section: Who chooses ── */
.section-editors { scroll-margin-top: 64px; overflow-x: clip; }
.section-editors .inner { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.section-editors h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.editors-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line-1); }
.editors-list li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 17px; font-weight: 300; line-height: 1.45; }
.editors-list .num { font-weight: 800; color: var(--ink-3); }
.boxes-img { display: block; width: 112%; max-width: none; height: auto; margin-left: -4%; }
@media (max-width: 799px) {
  .section-editors .inner { grid-template-columns: 1fr; }
  .boxes-img { width: 100%; margin-left: 0; }
}

/* ── Section: Suggest ── */
.section-suggest { scroll-margin-top: 64px; border-top: 1px solid var(--line-2); }
.section-suggest .inner { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 128px) clamp(20px, 4vw, 40px); }
.suggest-intro { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.suggest-intro h2 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.suggest-intro p { margin: 16px 0 0; font-size: 18px; font-weight: 300; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ── Form ── */
.suggest-form { position: relative; max-width: 820px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line-2); padding: clamp(24px, 4vw, 48px); }
.form-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.form-progress span { height: 3px; border-radius: 2px; background: var(--ink-1); opacity: .18; transition: opacity 520ms var(--ease-drift); }
.form-progress span.active { opacity: 1; }
.form-specimen { position: absolute; right: clamp(-48px, -3vw, -20px); top: clamp(-40px, -3vw, -16px); width: clamp(120px, 16vw, 200px); height: auto; transform: rotate(-6deg); filter: drop-shadow(0 18px 18px rgba(20,24,31,.28)); pointer-events: none; }
.mood-legend { padding: 0; display: grid; gap: 4px; }
.mood-legend .something { font-family: var(--font-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; font-size: 10px; color: var(--ink-2); }
.mood-legend .word { font-family: var(--font-brand); font-size: clamp(48px, 6vw, 72px); line-height: 1; }
.form-step[hidden] { display: none; }

/* Dear Dogear fill-in-the-blank */
.dear-dogear { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: clamp(19px, 2vw, 22px); font-weight: 300; line-height: 1.9; }
.fill-blank { display: inline-block; vertical-align: baseline; min-width: 140px; padding: 2px 10px; border-radius: 6px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--field-fg); font-family: var(--font-text); font-size: inherit; font-weight: inherit; line-height: inherit; outline: none; box-shadow: inset 0 1px 2px var(--field-inset); }
.fill-blank:focus { border-color: var(--field-line-focus); box-shadow: 0 0 0 4px var(--field-ring); }
.fill-blank.multi { display: block; width: 100%; min-height: 96px; margin-top: 8px; padding: 10px; resize: vertical; field-sizing: content; font-weight: 400; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-back { all: unset; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Email step */
.email-step h3 { margin: 0; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.summary-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.summary-item { display: grid; grid-template-columns: minmax(96px, 120px) minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.summary-item .accent { font-family: var(--font-brand); font-size: 22px; line-height: 1; }
.email-input { width: 100%; min-height: 56px; box-sizing: border-box; padding: 0 16px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--field-fg); caret-color: var(--field-fg); font-family: var(--font-text); font-size: 17px; outline: none; box-shadow: inset 0 1px 2px var(--field-inset); }
.email-input:focus { border-color: var(--field-line-focus); box-shadow: 0 0 0 4px var(--field-ring); }
.email-input[aria-invalid="true"] { border: 2px solid var(--ink-1); }

/* Form messages */
.form-msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); }
.form-msg.success { padding: 18px 20px; background: var(--select-bg); border-color: var(--select-line); }
.form-msg .mark { flex: 0 0 18px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.form-msg .msg-title { margin: 0; font-weight: 700; line-height: 1.3; }
.form-msg .msg-body { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.form-msg.success .msg-title { font-size: 20px; }
.form-msg[hidden] { display: none; }
.form-small { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 34em; }

/* Qualifier questions */
.quals[hidden] { display: none; }
.quals { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); font-family: var(--font-text); font-size: 14px; font-weight: 700; }
.tag:hover { border-color: var(--ink-3); }
.tag[aria-pressed="true"] { background: var(--select-bg); border-color: var(--select-line); }
.btn-secondary { display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--line-1); background: transparent; color: var(--ink-1); font-family: var(--font-text); font-weight: 700; font-size: 17px; cursor: pointer; }
.btn-secondary:hover { background: var(--paper-3); }

/* Book autocomplete */
.book-field { position: relative; display: inline-block; vertical-align: baseline; }
.book-field .fill-blank { width: 100%; }
.book-ac { position: absolute; left: 0; top: 100%; margin-top: 4px; width: max(100%, 320px); max-height: 260px; overflow-y: auto; background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 8px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.18); z-index: 10; display: none; }
.book-ac.open { display: block; }
.book-ac-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 10px 14px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.book-ac-item:hover, .book-ac-item[aria-selected="true"] { background: var(--select-bg); }
.book-ac-item img { width: 36px; height: 52px; object-fit: cover; border-radius: 3px; background: var(--paper-3); }
.book-ac-item .no-cover { width: 36px; height: 52px; border-radius: 3px; background: var(--paper-3); }
.book-ac-title { font-weight: 700; }
.book-ac-author { font-size: 13px; color: var(--ink-2); }
.book-ac-loading { padding: 14px; font-size: 13px; color: var(--ink-3); }

/* ── FAQ ── */
.section-faq { scroll-margin-top: 64px; background: var(--paper-2); border-top: 1px solid var(--line-2); }
.section-faq .inner { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-header h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.faq-list { grid-column: span 2; min-width: 0; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; }
.faq-list summary h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.faq-list summary .icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; font-size: 20px; font-weight: 300; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 0 18px; font-size: 16px; font-weight: 300; line-height: 1.5; color: var(--ink-2); max-width: 40em; }
@media (max-width: 799px) {
  .faq-list { grid-column: span 1; }
}

/* ── Footer ── */
.site-footer { background: var(--paper-1); color: var(--ink-1); }
.site-footer .inner { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) clamp(20px, 4vw, 40px) 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { margin: 12px 0 0; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-2); max-width: 22em; }
.footer-nav p { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-nav a { color: var(--ink-1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }

/* ── Responsive nav ── */
@media (max-width: 799px) {
  .nav-links { display: none; }
}
