/* =====================================================================
   mefin.ai -- October 2026 content update (Home + FAQ)
   Additive only. Every rule is scoped under `main`, so the header,
   navigation, wordmark and footer (styled by mefin.css + site-v2.css)
   are untouched. Uses the existing tokens from those two files.
   ===================================================================== */

/* ---------- hero ---------- */
main .u-hero-brand { margin-bottom: 14px; }
main .u-hero-rail { margin-top: 14px; color: var(--ink-2); }
main .u-hero-copy { margin-top: clamp(14px, 2vw, 20px); display: grid; gap: 8px; max-width: 62ch; }
main .u-hero-copy .u-hero-lead { font-size: clamp(18px, 2vw, 21px); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
main .u-hero-copy p { color: var(--ink-2); }
main .hero-ctas .btn { white-space: normal; text-align: center; }

/* ---------- real app screenshots ---------- */
main .u-shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
main .u-shot-frame { border-radius: 20px; overflow: hidden; background: var(--inst-bg, #0e1f2b); box-shadow: var(--shadow-2); }
main .u-shot-frame.light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
main .u-shot img { display: block; width: 100%; height: auto; }
main .u-shot figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
main .u-shot figcaption .sample-flag { margin-right: 8px; }

/* ---------- section intro ---------- */
main .u-intro { display: grid; gap: 14px; max-width: 64ch; }
main .u-intro .display-l { margin-top: 4px; }
main .u-intro p { color: var(--ink-2); }
main .u-intro .lead { color: var(--ink-2); }
main .u-strong { color: var(--ink); font-weight: 600; }

/* ---------- three connected questions / boundaries cards ---------- */
main .u-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(24px, 3.5vw, 36px); }
main .u-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
main .u-card .k { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
main .u-card h3 { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
main .u-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
main .u-card.is-brand { background: var(--p-brand); border-color: transparent; box-shadow: var(--shadow-2); }
main .u-card.is-brand .k { color: var(--yellow); }
main .u-card.is-brand h3 { color: #fcfcfc; }
main .u-card.is-brand p { color: #b9c0cb; }
main .u-note { margin-top: 18px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 820px) { main .u-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- full-width visual under a section intro ---------- */
main .u-wide { margin-top: clamp(24px, 3.5vw, 36px); }

/* ---------- checklist (real financial life) ---------- */
main .u-checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
main .u-checks li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: var(--ink); }
main .u-checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; border-radius: 2px; background: var(--yellow); }

/* ---------- example callout ---------- */
main .u-example { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
main .u-example .k { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
main .u-example p { font-size: 16px; color: var(--ink); }

/* ---------- open alpha (deep navy band) ---------- */
main .u-closing { display: grid; grid-template-columns: minmax(0, 1fr); }
main .u-closing .display-l { color: #fcfcfc; max-width: 18ch; margin-top: 4px; }
main .u-closing .u-closing-copy { display: grid; gap: 14px; }
main .u-closing .u-closing-copy p { color: #b9c0cb; max-width: 52ch; }
main .u-closing .hero-ctas { margin-top: 8px; }

/* ---------- FAQ: category quick links ---------- */
main .u-toc { display: flex; gap: 8px 10px; flex-wrap: wrap; margin-top: 16px; }
main .u-toc a { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
main .u-toc a:hover { border-color: var(--ink-2); color: var(--gold-ink); }
main .u-toc a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
main .qa-a a { color: var(--ink); text-decoration-color: var(--yellow); text-underline-offset: 3px; }

/* long words / figures never force sideways scrolling */
main h1, main h2, main h3, main p, main li { overflow-wrap: break-word; }

/* Phones get the app's own phone-width screenshots, which already
   carry their card edges -- so the frame steps back. */
@media (max-width: 640px) {
  main .u-shot-frame, main .u-shot-frame.light { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
}

/* ---------- open beta note under the hero copy ---------- */
main .u-beta-note { font-size: 15px; font-weight: 600; color: var(--ink); }
main .u-beta-note::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }

/* The hero's phone screenshot is cropped to the Dashboard card itself,
   so on phones it keeps a dark rounded frame instead of stepping back. */
@media (max-width: 640px) {
  main .hero .u-shot-frame { background: var(--inst-bg, #0e1f2b); border-radius: 18px; }
}

/* ---------- FAQ deep links: land with the question heading in view ---------- */
main .qa { scroll-margin-top: 16px; }
main .qa-a { scroll-margin-top: 96px; }

/* ---------- Privacy Policy and Terms of Service ---------- */
main .legal { max-width: 760px; }
main .legal .display-l { margin-top: 6px; }
main .legal-meta { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
main .legal h2 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: clamp(36px, 5vw, 48px) 0 12px; scroll-margin-top: 16px; }
main .legal h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
main .legal p, main .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
main .legal p + p { margin-top: 12px; }
main .legal strong { color: var(--ink); font-weight: 600; }
main .legal ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
main .legal ul ul { margin-top: 6px; }
main .legal a { color: var(--ink); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
main .legal code { font-size: .92em; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
main .legal .legal-caps { font-size: 15px; }
main .legal-summary { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: 16px; padding: clamp(18px, 3vw, 26px); }
main .legal-summary h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
main .legal-toc { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; padding: 18px 0; border-block: 1px solid var(--line); }
main .legal-toc a { font-size: 14.5px; line-height: 1.5; padding: 4px 0; color: var(--ink); text-decoration: none; }
main .legal-toc a:hover { color: var(--gold-ink); }
@media (max-width: 640px) { main .legal-toc { grid-template-columns: minmax(0, 1fr); } }

/* Draft-only: shown in preview/ builds, refused by build.py --final. */
main .legal-draft { background: #fff4d6; border-bottom: 1px solid #e8cf86; color: #5c4300; font-size: 14px; line-height: 1.5; padding: 12px 0; }
main .review { background: #fff4d6; color: #5c4300; border: 1px dashed #c9a23a; border-radius: 6px; padding: 1px 6px; font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
main .review::before { content: "Review " attr(data-review) ": "; font-weight: 700; }

/* Sample-data labels: --ink-2 keeps small caps text at WCAG AA contrast on the pale sections */
main .sample-flag { color: var(--ink-2); }
