/* PlainMoney — brand stylesheet
   Formula shared with nutrisize.health / insurance-site: white-canvas-style layout,
   Inter type, pill kickers, 14px card radius, tinted-hairline cards, dark footer band.
   Palette is PlainMoney's OWN — pulled straight from the shipped app's "Paper & Ink"
   theme (ios/PlainMoney/Resources/Theme.swift, android Colors.kt) so the site previews
   what the app actually looks like: warm paper, not white; deep green; amber only for
   genuine caution. Not a copy of nutrisize's green or insurance's blue — same formula,
   this product's own colors. */

:root {
    --green-900: #123328;
    --green-700: #134a34;
    --green-600: #1e6a4b;
    --green-500: #278860;
    --green-100: #dcebe2;
    --amber-700: #6e4509;
    --amber-600: #8a5a0c;
    --amber-500: #a8690e;
    --amber-100: #f3e6d2;
    --red-600: #b3311f;
    --ink: #1c1b18;
    --ink-soft: #55524a;
    --ink-faint: #837e70;
    --paper: #f6f3ec;
    --paper-tint: #fbf9f3;
    --card: #ffffff;
    --line: #e4ddcd;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(18, 51, 40, 0.08);
    --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only, .skip {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
    position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto;
    clip: auto; background: var(--green-900); color: #fff; padding: 10px 16px;
    border-radius: 8px; text-decoration: none;
}

/* ---------- Navigation ---------- */

nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 243, 236, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; gap: 28px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 17px; color: var(--green-900);
    letter-spacing: -0.02em;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav-links .nav-cta {
    background: var(--green-600); color: #fff !important;
    padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--green-700); }
.mobile-menu-btn {
    display: none; margin-left: auto; background: none; border: none;
    font-size: 24px; color: var(--green-900); cursor: pointer;
}

.crumbs { background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs .wrap { padding: 11px 24px; font-size: 13px; color: var(--ink-faint);
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.crumbs a { color: var(--green-700); font-weight: 600; }
.crumbs .sep { margin: 0 9px; color: #c2b9a2; }
.crumbs .current { color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, var(--green-100) 0%, transparent 60%),
        radial-gradient(900px 500px at 10% 110%, var(--amber-100) 0%, transparent 60%),
        var(--paper-tint);
    padding: 84px 0 72px;
    text-align: center;
}
.hero-sub { padding: 56px 0 40px; }

.kicker {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--green-700);
    background: var(--green-100); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 900; letter-spacing: -0.03em; line-height: 1.12;
    color: var(--green-900);
}
.hero h1 .accent { color: var(--green-600); }

.hero .tagline {
    margin-top: 14px; font-size: clamp(17px, 2.4vw, 21px);
    font-weight: 600; color: var(--amber-700);
}

.hero .lede {
    margin: 20px auto 0; max-width: 720px;
    font-size: 17px; color: var(--ink-soft);
}

.cta-row {
    margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; align-items: center;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 10px;
    font-weight: 700; font-size: 15.5px; text-decoration: none;
    border: none; cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 18px rgba(30,106,75,.25); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: #fff; color: var(--green-900); border: 2px solid var(--green-100); }
.btn-ghost:hover { border-color: var(--green-600); }
.btn.outline { background: transparent; border: 2px solid var(--green-600); color: var(--green-700); }

/* Hero "Today tab" mockup */

.phone {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px; padding: 22px;
    box-shadow: 0 12px 34px rgba(18, 51, 40, 0.14);
    max-width: 400px; margin: 44px auto 0;
    text-align: left;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.phone-title { font-weight: 700; font-size: 13px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.phone-hero { text-align: center; padding: 8px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.phone-hero .amt { font-size: 34px; font-weight: 900; color: var(--green-800, var(--green-700)); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.phone-hero .cap { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.phone-bar { display: flex; gap: 3px; margin-top: 14px; height: 28px; align-items: flex-end; }
.phone-bar span { flex: 1; background: var(--green-100); border-radius: 3px; }
.phone-bar span.low { background: var(--amber-100); }
.phone-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.phone-row:last-child { border-bottom: none; }
.phone-row .tag { color: var(--ink-soft); }
.phone-row .val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.phone-note { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

.hero-points {
    list-style: none; margin-top: 30px;
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.hero-points li {
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 18px 8px 38px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
    position: relative;
}
.hero-points li::before {
    content: ""; position: absolute; left: 15px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px;
    background: no-repeat center / contain
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8.5 6.5 12 13 4.5" fill="none" stroke="%231e6a4b" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* ---------- Principles strip ---------- */

.sources { background: var(--card); padding: 30px 0 38px; border-bottom: 1px solid var(--line); }
.sources-label {
    text-align: center; color: var(--ink-faint); font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.source-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.source-chips li {
    background: var(--green-100); color: var(--green-700);
    border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 14px;
}

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section.tint { background: var(--paper-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head .kicker { margin-bottom: 14px; }

h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.18;
    color: var(--green-900); margin-bottom: 12px;
}
h3 { font-size: 18px; font-weight: 700; color: var(--green-900); line-height: 1.35; }

.section-lede { color: var(--ink-soft); font-size: 16.5px; }
.lede-light { color: #d6e9df; }

/* Cards / grids */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px;
    transition: transform .18s, box-shadow .18s;
}
.card.hoverable:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(18,51,40,.13); }
.card .icon {
    width: 46px; height: 46px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 22px;
    background: var(--green-100); margin-bottom: 14px;
}
.card .icon.amber { background: var(--amber-100); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.go { color: var(--green-600); font-weight: 800; }
.try { display: block; margin-top: 6px; font-size: 13px; color: var(--green-700); font-weight: 600; }

.badge {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.badge-free { background: var(--green-100); color: var(--green-700); }
.badge-forever { background: var(--green-700); color: #fff; }
.badge-pro { background: var(--amber-100); color: var(--amber-700); }
.badge-soon { background: #efe9d9; color: var(--ink-faint); }

/* Steps */

.steps { list-style: none; margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: 15px;
    margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--ink-soft); }

.fineprint {
    margin: 30px auto 0; font-size: 14.5px; color: var(--ink-soft); max-width: 760px;
    background: var(--green-100); border: 1px solid #c9ddd0; border-radius: var(--radius);
    padding: 16px 20px; text-align: center;
}

/* Versus */

.versus { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 44px; }
.v-col { border-radius: 20px; padding: 32px 30px; }
.v-col h3 { margin-bottom: 18px; font-size: 19px; }
.v-col ul { list-style: none; display: grid; gap: 13px; }
.v-col li { padding-left: 30px; position: relative; font-size: 15px; }
.v-col li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: no-repeat center / contain; }
.v-them { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.v-them li { color: var(--ink-soft); }
.v-them li::before { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M5 5l8 8M13 5l-8 8" stroke="%23b3311f" stroke-width="2" stroke-linecap="round"/></svg>'); }
.v-us { background: linear-gradient(120deg, var(--green-900), var(--green-600)); }
.v-us h3 { color: #fff; }
.v-us li { color: #e6f2ec; }
.v-us li::before { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M4 9.5 7.5 13 14 5.5" fill="none" stroke="%23bdf0d8" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>'); }

/* Tools (calculators) */

.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.tool-card h3 { margin-bottom: 4px; }
.tool-card .tool-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.tool-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select {
    font-family: inherit; font-size: 15px; padding: 10px 12px;
    border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
    color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: var(--green-500); }
.tool-result {
    margin-top: 16px; padding: 16px 18px; border-radius: 12px;
    background: var(--green-100); border: 1px solid #c9ddd0;
}
.tool-result .r-num { font-size: 24px; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; }
.tool-result .r-label { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.tool-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }
.tool-not-saved {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
    color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 12px;
}

/* App/Pro plug components */

.app-plug {
    display: flex; align-items: flex-start; gap: 14px;
    max-width: 760px; margin: 26px auto 0; padding: 14px 18px;
    background: #f3f8f4; border: 1px solid var(--line); border-radius: 14px;
}
.app-plug img { width: 32px; height: 32px; border-radius: 8px; flex: none; margin-top: 2px; }
.app-plug p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.app-plug a { color: var(--green-700); font-weight: 700; white-space: nowrap; }

.iap-plug {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    max-width: 900px; margin: 30px auto 0; padding: 20px 24px;
    background: linear-gradient(120deg, #f2f8f4, #fbf1e2);
    border: 1px solid var(--line); border-radius: 14px;
}
.iap-plug .iap-icon { width: 50px; height: 50px; border-radius: 12px; flex: none; }
.iap-plug .iap-copy { flex: 1 1 320px; min-width: 240px; }
.iap-plug .iap-copy strong { display: block; color: var(--green-900); font-size: 16px; margin-bottom: 4px; }
.iap-plug .iap-copy p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.iap-plug .iap-cta { flex: none; }

.pd-gate {
    margin: 18px 0 0; padding: 16px 18px; border-radius: 12px;
    background: linear-gradient(120deg, #f3f8f4, #fbf1e2); border: 1px dashed #cddccf;
}
.pd-gate h4 { margin: 0 0 4px; font-size: 14px; color: var(--green-900); }
.pd-gate p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* Apps band */

.apps-band { padding: 76px 0; }
.apps-band .wrap.apps-grid {
    background: linear-gradient(120deg, var(--green-900), var(--green-600));
    border-radius: 24px; padding: clamp(36px, 5vw, 60px);
    max-width: calc(var(--maxw) - 48px);
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(32px, 5vw, 64px); align-items: center;
}
.apps-band h2 { color: #fff; }
.apps-grid .cta-row { margin-top: 26px; justify-content: flex-start; }

.store-pill {
    display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.4); color: #fff;
    font-weight: 600; font-size: 14.5px; background: rgba(255,255,255,.08);
    text-decoration: none;
}
.store-pill.disabled { opacity: .72; cursor: default; }
.store-pill:hover { text-decoration: none; }

.apps-points { list-style: none; display: grid; gap: 14px; }
.apps-points li {
    color: #d9ecdf; font-size: 14.5px; padding: 15px 18px 15px 46px; position: relative;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
}
.apps-points strong { color: #fff; display: block; margin-bottom: 2px; font-size: 15px; }
.apps-points li::before {
    content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px;
    background: no-repeat center / contain
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M4 9.5 7.5 13 14 5.5" fill="none" stroke="%23bdf0d8" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* ---------- Footer ---------- */

footer { background: var(--green-900); color: #cfe0d6; padding: 44px 0 36px; font-size: 14px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-links { list-style: none; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: #e7f2ea; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-copy { opacity: 0.78; line-height: 1.9; }
.footer-copy a { color: #b9e0c9; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Screenshot gallery ("See it in action") ---------- */

.screens-grid {
    list-style: none; margin-top: 44px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.screen-item { text-align: center; }
.screen-frame {
    background: #0c0c0c; border-radius: 30px; padding: 8px;
    box-shadow: 0 14px 34px rgba(18, 51, 40, 0.18);
    aspect-ratio: 9 / 19.5; overflow: hidden;
}
.screen-frame img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    border-radius: 22px; display: block;
}
.screen-item .cap { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Simulate (Sankey money-flow) ---------- */

.sankey-wrap {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px; overflow-x: auto;
}
#sankey-svg { width: 100%; height: auto; display: block; min-width: 640px; }
.sankey-label { font: 700 13px/1.3 'Inter', sans-serif; fill: var(--ink); }
.sankey-amt { font: 600 12px/1.3 'Inter', sans-serif; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.flow-link { transition: stroke-opacity .15s; stroke-dasharray: 6 6; animation: flow-dash 1.6s linear infinite; }
.flow-link:hover { stroke-opacity: 0.6 !important; }
@keyframes flow-dash { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .flow-link { animation: none; } }

.sim-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.sim-controls .field-slider { display: flex; flex-direction: column; gap: 6px; }
.sim-controls label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); display: flex; justify-content: space-between; }
.sim-controls label .sim-val { color: var(--green-700); font-variant-numeric: tabular-nums; }
.sim-controls input[type="range"] { width: 100%; accent-color: var(--green-600); }
.sim-controls input[type="number"] { font-family: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }

.flow-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; }
.flow-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.flow-card .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.flow-card .fc-label { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.flow-card .fc-amt { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .apps-band .wrap.apps-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr) !important; }
    .screens-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
    .screens-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 16px 24px; gap: 14px; align-items: flex-start;
    }
    .nav-links.show { display: flex; }
    .nav-links .nav-cta { margin: 0; }
    .cta-row .btn { flex: 1 1 auto; justify-content: center; }
    .hero { padding: 60px 0 56px; }
    .grid { grid-template-columns: 1fr !important; }
    .sim-controls { grid-template-columns: 1fr; }
}
