/* ============================================================
   Fynn shared styles
   ------------------------------------------------------------
   Used by every page. Same fonts, colors, and spacing as the
   homepage. The nav, footer, CTA, and gap mark are all here, so
   a change in this file shows up everywhere.
   Fonts (Fraunces + Figtree) are loaded by each page's <head>.
   ============================================================ */

:root {
  --paper: #F4F4F1; --mist: #E1EEE8; --fynn: #44755F; --moss: #2D5040; --ink: #182E24;
  --orange: #F67A4F; --yellow: #F9DC6B;
  --ink-soft: rgba(24, 46, 36, .72); --paper-soft: rgba(244, 244, 241, .66);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px); --max: 1120px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; font-family: var(--sans);
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .site-nav a:focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--fg, var(--ink)); border-color: var(--rule, rgba(24, 46, 36, .14)); }
body.is-ink .btn.solid, body.is-moss .btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- gap mark (logo) ---------- */
.mark { display: inline-flex; align-items: flex-end; gap: 0; height: var(--h, 96px); }
.mark i { display: block; width: var(--w, 40px); background: currentColor; border-radius: 3px 3px 0 0; }
.mark i.gapbar { width: 9px; background: var(--orange); border-radius: 0; height: 34%; margin-inline: 1px; align-self: flex-end; }
.mark i.l { height: 64%; }
.mark i.r { height: 100%; }

/* ---------- CTA component: button + microcopy ---------- */
.fynn-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fynn-cta-micro { margin: 0; font-size: .85rem; color: var(--fg-soft, var(--ink-soft)); }

/* ---------- top navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50; color: var(--fg, var(--ink));
  background: rgba(244, 244, 241, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(24, 46, 36, .1); font-family: var(--sans); font-size: 17px; line-height: 1.5;
}
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px; max-width: none;
}
.site-word {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 10px; flex: none; letter-spacing: normal;
}
.site-word .mark { --h: 20px; --w: 9px; color: currentColor; }
.site-word .mark i.gapbar { width: 3px; }
.site-links { display: flex; gap: 22px; font-size: .92rem; font-weight: 500; margin-left: auto; }
.site-links a { text-decoration: none; color: inherit; opacity: .85; }
.site-links a:hover, .site-links a[aria-current="page"] { opacity: 1; }
.site-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav-end { display: flex; align-items: center; gap: 10px; flex: none; }
.site-nav .btn { padding: 10px 18px; font-size: .92rem; white-space: nowrap; }

/* mobile menu: a plain <details>, so it works without JavaScript */
.site-menu { position: relative; display: none; }
.site-menu summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(24, 46, 36, .14);
  display: flex; align-items: center; justify-content: center;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px;
}
.site-menu summary span::before, .site-menu summary span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.site-menu summary span::before { top: -6px; }
.site-menu summary span::after { top: 6px; }
.site-menu summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.site-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 10px;
  background: var(--paper); color: var(--ink); border: 1px solid rgba(24, 46, 36, .14); border-radius: 18px;
  box-shadow: 0 12px 32px rgba(24, 46, 36, .14); display: flex; flex-direction: column;
}
.site-menu-panel a { padding: 12px 14px; text-decoration: none; color: inherit; font-weight: 500; border-radius: 10px; }
.site-menu-panel a:hover { background: var(--mist); }

@media (max-width: 860px) {
  .site-links { display: none; }
  .site-menu { display: block; }
}
@media (max-width: 480px) {
  .site-nav-inner { gap: 8px; }
  .site-word { font-size: 1.3rem; gap: 8px; }
  .site-nav .btn { padding: 9px 12px; font-size: .78rem; }
  .site-menu summary { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
  .site-word { font-size: 1.15rem; }
  .site-nav .btn { padding: 8px 10px; font-size: .72rem; }
}

/* ---------- footer ---------- */
.site-footer {
  font-family: var(--sans); font-size: .92rem; line-height: 1.5; color: var(--fg-soft, var(--ink-soft));
  border-top: 1px solid var(--rule, rgba(24, 46, 36, .14));
  padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
}
.site-footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; max-width: var(--max); margin-inline: auto; }
.site-footer .site-footer-tagline { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--fg, var(--ink)); margin: 0 0 20px; max-width: 16em; }
.site-footer .site-footer-top .footer-heading {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-soft, var(--ink-soft)); margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--fg, var(--ink)); }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.site-footer .btn { color: var(--paper); }
.site-footer .site-footer-legal { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--rule, rgba(24, 46, 36, .14)); font-size: .85rem; }
@media (max-width: 760px) {
  .site-footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
}

/* ---------- standard page layout (pages built by tools/build-site.js) ---------- */
body.page {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  --fg: var(--ink); --fg-soft: var(--ink-soft); --rule: rgba(24, 46, 36, .14);
}
body.page *, body.page *::before, body.page *::after { box-sizing: border-box; }
body.page a { color: inherit; }
body.page a.btn, .site-nav a.btn { color: var(--paper); }
body.page a.btn.ghost { color: var(--ink); }
body.page h1, body.page h2, body.page h3 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.05; margin: 0; text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
body.page h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); }
body.page h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
body.page h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-variation-settings: "opsz" 60; letter-spacing: -.01em; }
body.page .step-cards h2, body.page .step-cards h3, body.page .benefit h2, body.page .person h2 { font-variation-settings: "opsz" 60; letter-spacing: -.01em; }
body.page p { margin: 0; }
body.page .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
body.page .page-hero { padding-block: clamp(64px, 11vh, 130px) clamp(32px, 5vh, 64px); }
body.page .section { padding-block: clamp(48px, 8vh, 96px); }
body.page .section.is-mist { background: var(--mist); }
body.page .section.is-moss { background: var(--moss); color: var(--paper); --fg: var(--paper); --fg-soft: var(--paper-soft); --rule: rgba(244, 244, 241, .16); }
body.page .stack { display: flex; flex-direction: column; gap: 22px; }
body.page .eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
body.page .lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34em; }
body.page .soft { color: var(--ink-soft); }
body.page .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 40em; }
body.page .steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 6px; }
body.page .quote { border-left: 4px solid var(--orange); padding-left: 20px; max-width: 34em; }
body.page .quote q, body.page .quote blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.25; quotes: none; margin: 0; display: block; }
body.page .quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .9rem; color: var(--fg-soft); }
body.page .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
body.page .card { background: #fff; border-radius: 20px; padding: 28px; }
body.page .card img { width: 100%; height: auto; border-radius: 14px; display: block; margin-bottom: 18px; }
body.page .shell-note { font-size: .85rem; color: var(--ink-soft); border: 1px dashed var(--rule); border-radius: 12px; padding: 12px 16px; max-width: 40em; }

/* dark and green sections, and buttons inside them */
body.page .section.is-ink { background: var(--ink); color: var(--paper); --fg: var(--paper); --fg-soft: var(--paper-soft); --rule: rgba(244, 244, 241, .16); }
body.page .is-ink a.btn.solid, body.page .is-moss a.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body.page .section.is-ink .lede, body.page .section.is-moss .lede { color: var(--paper); }

/* homepage hero */
body.page h1 .turn { display: block; color: var(--ink-soft); font-style: italic; margin-top: .15em; }
body.page .hero-grid { display: grid; gap: 40px; align-items: end; }
body.page .hero-mark { display: none; --h: clamp(160px, 22vw, 260px); --w: clamp(56px, 8vw, 96px); color: var(--ink); justify-self: end; }
@media (min-width: 860px) {
  body.page .hero-grid { grid-template-columns: 1.25fr .75fr; }
  body.page .hero-mark { display: inline-flex; }
}

/* product demo flow: school email -> Fynn -> family plan (stacks on phones) */
body.page .flow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
body.page .flow-step { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
body.page .flow-label { font-family: var(--serif); font-size: 1.4rem; text-align: center; }
body.page .flow-arrow { font-size: 2rem; line-height: 1; color: var(--orange); transform: rotate(90deg); }
body.page .flow-mark { --h: 84px; --w: 38px; color: var(--ink); }
@media (min-width: 860px) {
  body.page .flow { flex-direction: row; justify-content: center; align-items: center; gap: 28px; }
  body.page .flow-step { width: auto; flex: 1 1 0; max-width: 320px; }
  body.page .flow-arrow { transform: none; }
}

/* phone screenshots */
body.page .phone { margin: 0; width: min(100%, 280px); }
body.page .phone img { display: block; width: 100%; height: auto; }
body.page .phones { display: grid; grid-template-columns: 1fr; gap: 48px; justify-items: center; }
body.page .demo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
body.page .demo figcaption { text-align: center; font-family: var(--serif); font-size: 1.3rem; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 760px) {
  body.page .phones { grid-template-columns: 1fr 1fr; gap: 32px; max-width: 760px; margin-inline: auto; }
  body.page .phones .demo { justify-content: space-between; }
}

/* clearly labeled placeholder for screenshots we do not have yet */
body.page .shot-placeholder {
  width: min(100%, 280px); aspect-ratio: 4 / 3; border: 2px dashed rgba(24, 46, 36, .35); border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  color: var(--ink-soft); background: rgba(255, 255, 255, .5);
}
body.page .shot-placeholder span { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #B4401A; }
body.page .shot-placeholder b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
@media (min-width: 860px) { body.page .shot-placeholder { aspect-ratio: 9 / 16; max-height: 420px; } }

/* three benefits */
body.page .benefits { display: grid; gap: 16px; }
body.page .benefit { background: #fff; border-radius: 20px; padding: 28px; border-top: 4px solid var(--orange); display: flex; flex-direction: column; gap: 12px; }
body.page .benefit h2 { font-size: 1.6rem; }
body.page h2.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; font-variation-settings: normal; }
body.page .text-link, body.page .inline-link { text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (min-width: 860px) { body.page .benefits { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* before / after */
body.page .ba { display: grid; gap: 16px; }
body.page .ba-col { background: #fff; border-radius: 20px; padding: 28px; }
body.page .ba-col.ba-with { background: var(--ink); color: var(--paper); }
body.page .ba-col.ba-with .eyebrow { color: var(--orange); }
body.page .ba-col .eyebrow { margin-bottom: 14px; display: block; }
body.page .ba-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
body.page .ba-list li { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
body.page .ba-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body.page .ba-big { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; }
@media (min-width: 760px) { body.page .ba { grid-template-columns: 1.2fr 1fr; gap: 24px; } body.page .ba-col { padding: 40px; } }

/* testimonials */
body.page figure.quote { margin: 0; }
body.page figure.quote blockquote { font-family: var(--serif); font-size: clamp(1.35rem, 4.4vw, 2rem); line-height: 1.25; margin: 0; }
body.page figure.quote figcaption { margin-top: 14px; font-size: .95rem; color: var(--ink-soft); }

/* How It Works */
body.page .step-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
body.page .step-cards li { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
body.page .step-cards h2, body.page .step-cards h3 { font-size: clamp(1.5rem, 4.4vw, 2rem); }
body.page .step-num { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .12em; color: #B4401A; }
@media (min-width: 860px) { body.page .step-cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
body.page .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body.page .chips li { padding: 10px 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; font-weight: 500; }
body.page .faq-short { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
body.page .faq-item h3 { font-size: 1.35rem; margin-bottom: 6px; }
body.page .text-link { font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Why Fynn */
body.page .who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 40em; }
body.page .who-list li { background: #fff; border-radius: 16px; padding: 16px 20px 16px 52px; position: relative; font-size: 1.05rem; }
body.page .who-list li::before { content: ""; position: absolute; left: 20px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
body.page .big-line { font-family: var(--serif); font-size: clamp(1.5rem, 4.6vw, 2.4rem); line-height: 1.15; border-left: 4px solid var(--orange); padding-left: 20px; margin-top: 24px; max-width: 26em; font-weight: 500; }

/* About, founders, Dr. Liz */
body.page .plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; max-width: 40em; }
body.page .article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 40em; }
body.page .article-list li { background: #fff; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
body.page .article-list a { font-family: var(--serif); font-size: 1.3rem; text-decoration-color: var(--orange); text-underline-offset: 4px; }
body.page .article-list span { font-size: .85rem; color: var(--ink-soft); }
body.page .people-teaser { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
body.page .people-teaser h3 { font-size: 1.2rem; }
body.page .liz-teaser { display: grid; gap: 24px; align-items: center; }
body.page .liz-teaser img { width: min(100%, 220px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
body.page .liz-hero { display: grid; gap: 32px; align-items: end; }
body.page .liz-hero .people { grid-template-columns: minmax(0, 280px); }
@media (min-width: 760px) {
  body.page .liz-teaser { grid-template-columns: 220px 1fr; gap: 40px; }
  body.page .liz-hero { grid-template-columns: 1.4fr .6fr; }
}

/* check list (Founding Family benefits) */
body.page .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 40em; }
body.page .check-list li { position: relative; padding-left: 40px; font-size: 1.1rem; }
body.page .check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--fynn); color: #fff; font-size: .9rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* signup forms */
body.page .signup-card { background: #fff; border-radius: 24px; padding: clamp(24px, 5vw, 48px); max-width: 620px; display: flex; flex-direction: column; gap: 20px; }
body.page .signup-form { display: flex; flex-direction: column; gap: 18px; }
body.page .signup-form[hidden] { display: none; }
body.page .field { display: flex; flex-direction: column; gap: 6px; }
body.page .field label { font-weight: 600; font-size: .95rem; }
body.page .field input { font: inherit; font-size: 1.05rem; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid rgba(24, 46, 36, .28); background: #fff; color: var(--ink); width: 100%; }
body.page .field input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--ink); }
body.page .signup-form .btn { cursor: pointer; justify-content: center; min-height: 52px; width: 100%; }
body.page .signup-form .btn:disabled { opacity: .6; cursor: default; transform: none; }
body.page .signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.page .signup-error { color: #B4401A; font-size: .95rem; font-weight: 500; }
body.page .signup-error[hidden] { display: none; }
body.page .signup-form .fynn-cta-micro { margin: -6px 0 0; }
body.page .signup-success { border-left: 4px solid var(--orange); padding-left: 20px; outline: none; }
body.page .signup-success[hidden] { display: none; }
body.page .signup-success-title { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.25; }
body.page .price-note { font-size: .85rem; color: var(--ink-soft); }
@media (min-width: 760px) { body.page .signup-form .btn { width: auto; align-self: flex-start; } }

/* FAQ accordion */
body.page .faq { display: grid; gap: 12px; max-width: 760px; }
body.page .faq details { background: #fff; border-radius: 18px; }
body.page .faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; min-height: 56px; position: relative; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; display: flex; align-items: center; }
body.page .faq summary::-webkit-details-marker { display: none; }
body.page .faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; line-height: 1; color: var(--orange); transition: transform .2s ease; }
body.page .faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
body.page .faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 18px; }
body.page .faq-a { padding: 0 22px 22px; max-width: 40em; }
body.page .faq-more { margin-top: 28px; font-size: 1.05rem; }

/* plain text pages (privacy, terms) */
body.page .prose { max-width: 720px; padding-block: clamp(48px, 8vh, 96px); }
body.page .prose h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 8px 0 12px; }
body.page .prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 40px 0 12px; }
body.page .prose p, body.page .prose ul { margin: 0 0 16px; }
body.page .prose ul { padding-left: 1.2em; }
body.page .prose li { margin-bottom: 8px; }
body.page .prose .updated { color: var(--ink-soft); font-size: .9rem; }
body.page .prose a { text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* founders and Dr. Liz */
body.page .people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
body.page .person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; margin-bottom: 16px; }
body.page .person h2, body.page .person h3 { margin-bottom: 4px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
body.page .person .role { color: var(--ink-soft); font-size: .95rem; margin-bottom: 12px; }
body.page .teaser { background: var(--mist); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }

@media (prefers-reduced-motion: reduce) { .btn, .site-nav { transition: none; } }
