/*
 * NetBrief — theme tokens over the Egregius Digital app-page template.
 *
 * styles.css and app-page.css are the template, copied unchanged from the egregius_digital site
 * (website/css/) so NetBrief's page reads as a sibling of Hootenanny's and The Giving List's. Only this
 * file is NetBrief's own: the app's colours and fonts, from app/lib/design_system/tokens.dart and
 * theme.dart.
 *
 *   - Newsreader for headings at 500, the weight the app's serif headings use; Instrument Sans for body.
 *   - Evergreen carries buttons and links; Deep Forest is pressed and the dark end of the gradient.
 *   - Soft Terracotta is decoration only, as in the app (the step numbers' gradient end).
 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

:root {
    --bg: #FBFAF7;            /* Warm Ivory */
    --surface: #FFFFFF;       /* Soft White */
    --surface-sunk: #F3F4F2;  /* Cloud */
    --border: #E8E9E6;        /* Pale Stone */
    --ink: #101820;           /* Ink */
    --ink-2: #526173;         /* Slate */
    --ink-3: #66717D;         /* the app's muted text */

    --primary: #1F6248;       /* Evergreen */
    --primary-pressed: #174A38; /* Deep Forest */
    --primary-tint: #DCEADF;  /* Mist Sage */
    --on-primary: #FFFFFF;
    --accent: #C97863;        /* Soft Terracotta */
    --link: #1F6248;
    --eyebrow: #1F6248;
    --grad-from: #174A38;
    --grad-to: #1F6248;
    --glow: rgba(31, 98, 72, 0.16);

    --font-display: Newsreader, Georgia, serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display-weight: 500;
    --display-tracking: -0.015em;
}

/* The serif's optical sizes: display cuts for the big headings, as the app's large titles read. */
h1, h2, h3 { font-optical-sizing: auto; }

/* The template's step numbers are set at 700; NetBrief's serif sits at 600 at most. */
.step__n { font-weight: 600; }

/* Pricing at launch: one plan, two ways to pay. */
.plan__price {
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
}
.plan__price small { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* A page of text — the website's privacy notice. */
.legal { max-width: 720px; padding-block: 64px 96px; }
.legal h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36px, 5vw, 48px); line-height: 1.1; margin: 0; }
.legal .updated { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.legal h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.25; margin: 40px 0 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }

/* Early access, on the closing green card (2026-11-07): name, email, which phone, and a small confirmation. */
.signup { max-width: 34rem; margin: 28px auto 0; text-align: left; }
.signup__fields { display: grid; gap: 12px; }
@media (min-width: 640px) { .signup__fields { grid-template-columns: 1fr 1fr; } }
.signup__field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.signup__field small { font-weight: 400; color: rgba(255, 255, 255, 0.8); }
.signup__field input { width: 100%; border: 0; min-height: 48px; }
.signup__phone { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 16px 0 0; padding: 0; border: 0; color: #FFFFFF; }
.signup__phone legend { float: left; margin-right: 8px; font-size: 15px; font-weight: 600; }
.signup__phone label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.signup__phone input { width: 20px; height: 20px; accent-color: #FFFFFF; margin: 0; }
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup__error { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-input); background: #FFFFFF; color: #A23B2A; font-size: 15px; font-weight: 600; }
.signup button[type="submit"] { width: 100%; margin-top: 20px; }
.signup button[type="submit"]:disabled { opacity: 0.7; cursor: progress; }
.cta-card .signup__note { margin: 12px 0 0; font-size: 14px; text-align: center; color: rgba(255, 255, 255, 0.8); }
.signup__note a { color: #FFFFFF; }
.signup__done { max-width: min(26rem, calc(100vw - 32px)); padding: 28px 24px 24px; border: 0; border-radius: var(--radius-card); background: var(--surface); color: var(--ink); text-align: center; box-shadow: var(--shadow-lg); }
.signup__done::backdrop { background: rgba(16, 24, 32, 0.45); }
.signup__done h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; margin: 0; color: var(--ink); }
.cta-card .signup__done p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.signup__done form { margin-top: 20px; }
.signup__done .btn { min-width: 120px; }
