/* GoodTuck by TiffinWorks. Self-hosted fonts (SIL OFL). Brand v1 tokens (Lamplight Dusk) from
   products/goodtuck/brand/TOKENS.md (Figma "GoodTuck: Brand v1"). To re-skin, change the tokens in :root
   (both colour blocks, the --font-* stacks) and the @font-face files. The header logo is the V2 diya lockup
   ("Flame as the dot", ink + cream SVGs switched by colour scheme); favicons, avatar and OG image live in /assets/brand/. */
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Fraunces (SIL OFL, no Reserved Font Name): instanced at SOFT 100, WONK 0, weight 500-600, optical size kept; Latin subset. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-soft-latin-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-soft-latin-italic.woff2") format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; }

:root {
  --ground: #F6EFE3; --paper: #FFF6EA; --raised: #FFFDF8; --ink: #1F140D; --muted: #5E5040; --line: #D9CFBF;
  --dusk: #232B4A; --on-dusk: #FFF6EA; --marigold: #E8A71C; --marigold-text: #7A4F00; --lake: #1D5C7A;
  --maple: #B8281D; --ok: #1E6B3A; --error: #A1221A; --on-marigold: #1F140D;
  /* aliases used below */
  --btn-bg: var(--dusk); --btn-ink: var(--on-dusk); --marigold-deep: var(--marigold-text);
  --font-sans: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "PlexMono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161B2E; --paper: #20263D; --raised: #2A3150; --ink: #F1ECE2; --muted: #B9BFD3; --line: #3A4263;
    --dusk: #F1ECE2; --on-dusk: #161B2E; --marigold-text: #F2C35B; --lake: #9FD0E6; --maple: #F08A7E;
    --ok: #9BE0B0; --error: #FFB4AA;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.53 var(--font-sans); }
a { color: var(--lake); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

/* Header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.wordmark { font: 600 1.5rem/1 var(--font-sans); letter-spacing: -.015em; }
.brand picture { display: block; line-height: 0; }
.brand .logo { display: block; height: 36px; width: auto; }
.brand .tuck, .serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.brand .tuck { font-size: 113%; letter-spacing: 0; }
.by { font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.head-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 1rem/1.375 var(--font-sans); }
.head-cta:hover { background: var(--paper); }

/* Type */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 520; line-height: 1.14; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 1.85rem + 2.65vw, 4rem); line-height: 1.06; font-weight: 560; }
h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
.kicker { font: 600 .9375rem/1.4 var(--font-sans); color: var(--maple); margin: 0 0 1rem; }
.lede { font-size: 1.1875rem; line-height: 1.58; color: var(--ink); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Hero */
.hero { position: relative; padding: 20px 0 56px; overflow: hidden; }
.hero .wrap { position: relative; display: grid; gap: 32px; }
.hero h1 em { font-style: italic; text-decoration: underline 3px var(--marigold); text-underline-offset: .12em; text-decoration-skip-ink: none; }
.cta-row { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; margin-top: 24px; }
/* Figma hero: the English H1 breaks after "dinner." (width-only, no markup change) */
:lang(en) .hero h1 { max-width: 9em; }
.hero h1 { max-width: 12em; }
.cta-row .btn { width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--btn-bg); color: var(--btn-ink); border: 0; border-radius: 10px; padding: 12px 24px; font: 500 1rem/1.375 var(--font-sans); text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:hover { filter: brightness(1.2); }
@media (prefers-color-scheme: dark) { .btn:hover { filter: brightness(.92); } }
.btn[disabled] { opacity: .6; cursor: progress; }
.trust-line { font-size: .875rem; color: var(--muted); margin: 0; }

/* Phone mock with Nana texts */
.phone { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 0; max-width: 456px; justify-self: end; width: 100%; }
.phone-top { display: flex; justify-content: space-between; font: 600 .9375rem/1.4 var(--font-sans); color: var(--maple); margin-bottom: 14px; }
.bubble { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; font-size: .9375rem; line-height: 1.53; }
.bubble .time { display: block; font: 400 .6875rem/1.45 var(--font-mono); letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.bubble ol { margin: .4em 0; padding-left: 1.3em; }
.bubble.me { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; border-radius: 10px; margin-left: auto; width: fit-content; }
.example-tag { font: italic 400 .8125rem/1.45 var(--font-sans); color: var(--muted); margin: 8px 0 0; }

/* Sections */
section { padding: 56px 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.steps, .cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li, .card { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.band .steps li, .band .card { background: var(--ground); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--marigold); color: var(--on-marigold); font: 500 .875rem/1 var(--font-mono); margin-bottom: 12px; }
.icon { width: 32px; height: 32px; color: var(--ink); margin-bottom: 12px; stroke-width: 1.5; }
.card p, .steps p { margin: .3em 0 0; }
.note { margin-top: 22px; font-size: .95rem; color: var(--muted); max-width: 70ch; }

/* Founding families + form */
.join { display: grid; gap: 28px; }
.offer { list-style: none; padding: 0; margin: 16px 0 0; }
.offer li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.offer li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--marigold-deep); border-bottom: 2.5px solid var(--marigold-deep); transform: rotate(-45deg); }
form.signup { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { margin-bottom: 18px; }
.field > label, legend { display: block; font-weight: 500; margin-bottom: 6px; padding: 0; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.hint { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--muted); border-radius: 10px; padding: 11px 12px; min-height: 48px; }
select { appearance: auto; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--muted); border-radius: 999px; cursor: pointer; background: var(--paper); font-weight: 400; }
.choice input:checked + label { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.choice input:focus-visible + label { outline: 3px solid var(--lake); outline-offset: 2px; }
.choice input:disabled + label { opacity: .5; cursor: not-allowed; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: .93rem; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lake); }
.consent label { font-weight: 400; }
.consent-links { margin: 8px 0 0; font-size: .93rem; }
.consent strong { font-weight: 600; }
.err { color: var(--error); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.err:empty { display: none; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.hp { display: none !important; }
.thanks { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.hidden { display: none !important; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; min-height: 32px; }
details p { margin: .6em 0 0; max-width: 70ch; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: .95rem; }
footer .wrap { display: grid; gap: 12px; }
.made { display: inline-flex; align-items: center; gap: 8px; font: 500 .75rem/1.33 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.made svg { width: 16px; height: 16px; color: var(--maple); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; }

/* Legal pages */
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.legal .draft { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--maple); padding: 12px 14px; border-radius: 8px; }
.table-scroll { overflow-x: auto; }

@media (min-width: 820px) {
  .hero { padding: 36px 0 80px; }
  .hero .wrap { grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
  .hero h1 em { text-decoration-thickness: 4px; }
  .cta-row .btn { width: auto; min-height: 52px; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: .9fr 1.1fr; align-items: start; }
  form.signup { padding: 30px; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
/* Pre-launch note, next steps and share block (2026-11-19) */
.prelaunch { margin: 24px 0 0; max-width: 560px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.next-steps { padding-left: 1.4em; margin: 12px 0 20px; }
.next-steps li { margin-bottom: 8px; }
.share { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.share h2, .share h4 { margin: 0 0 4px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.share-url { display: block; width: 100%; font: inherit; font-size: .9rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--muted); border-radius: 10px; padding: 11px 12px; min-height: 48px; margin-top: 4px; }
.share h4 { font: 520 1.35rem/1.2 var(--font-serif); }
/* EN | FR language switch (2026-11-19). Each page links to its twin: / <-> /fr/, /privacy/ <-> /fr/privacy/ ... */
.head-right { display: flex; align-items: center; gap: 16px; }
.head-cta { white-space: nowrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 1rem; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; min-width: 32px; justify-content: center; }
.lang-current { color: var(--ink); }
.lang-sep { color: var(--muted); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Grandparent gifts (2026-11-19): landing section, /gift/ form, /g/<token> family page, printable card. */
textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--muted); border-radius: 10px; padding: 11px 12px; min-height: 120px; resize: vertical; }
.gift-hero { padding: 24px 0 56px; }
.gift-h1 { font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.4rem); max-width: 18em; }
.gift-steps li { margin-bottom: 10px; }
.gift-free { margin: 18px 0 0; }
.gift-note { margin: 24px 0; padding: 20px 24px; background: var(--raised); border: 1px solid var(--line); border-left: 4px solid var(--marigold); border-radius: 12px; }
.gift-note blockquote { margin: 0; }
.gift-note p { margin: 0; font: 500 1.35rem/1.4 var(--font-serif); font-style: italic; overflow-wrap: anywhere; }
.gift-note figcaption { margin-top: 10px; font: 600 .9375rem/1.4 var(--font-sans); color: var(--muted); }
.gift-note figcaption::before { content: "— "; }
.gift-values-label { margin: 0 0 8px; font-weight: 500; }
.gift-values { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.gift-values li { padding: 6px 14px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: .95rem; }
.gift-safe { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .95rem; max-width: 640px; }
.gift-share-field .hint { margin: 0 0 8px; }
.gift-ready { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.gift-save { font-size: .95rem; }
.gift-section .btn { margin-top: 8px; }
.gift-card { margin: 24px 0 8px; padding: 28px; border: 2px dashed var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.gift-card-k { font: 600 .9375rem/1.4 var(--font-sans); color: var(--maple); margin: 0 0 8px; }
.gift-card-from { font: 520 1.9rem/1.15 var(--font-serif); font-style: italic; margin: 0 0 12px; overflow-wrap: anywhere; }
.gift-card-note { margin: 0 0 14px; padding-left: 14px; border-left: 3px solid var(--marigold); }
.gift-card-note p { margin: 0; overflow-wrap: anywhere; }
.gift-card-open { margin: 14px 0; }
.gift-card-url { font: 500 1rem/1.4 var(--font-mono); overflow-wrap: anywhere; }
.gift-card-foot { margin: 0; font-size: .8rem; color: var(--muted); }
@media print {
  body { background: #fff; color: #000; }
  body * { visibility: hidden; }
  .gift-card, .gift-card * { visibility: visible; }
  .gift-card { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 2px dashed #000; background: #fff; color: #000; }
  .gift-card-k, .gift-card-foot { color: #000; }
  .gift-card-note { border-left-color: #000; }
  .gift-card [hidden] { display: none; }
}
