:root {
    --paper: #f2efe7;
    --paper-bright: #fbfaf6;
    --paper-deep: #e7e2d7;
    --ink: #17231f;
    --ink-soft: #394640;
    --muted: #6d766f;
    --line: #d8d3c7;
    --forest: #173c32;
    --forest-deep: #102c25;
    --forest-light: #245445;
    --orange: #e95d2a;
    --orange-dark: #c94719;
    --sage: #cfe0d3;
    --red: #b74432;
    --shadow: 0 1px 1px rgba(23, 35, 31, .04), 0 10px 30px rgba(23, 35, 31, .06);
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

::selection { background: #f6b89f; color: var(--ink); }

:focus-visible { outline: 2px solid var(--orange) !important; outline-offset: 3px; }

[x-cloak] { display: none !important; }

.brand-lockup { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 1.8rem; height: 1.8rem; position: relative; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark::before { content: ""; width: .44rem; height: .44rem; background: var(--orange); border-radius: 50%; box-shadow: .48rem 0 0 currentColor, -.48rem 0 0 currentColor; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; font-weight: 700; letter-spacing: -.03em; }

/* Signed-in shell */
.app-shell { min-height: 100vh; background: var(--paper); color: var(--ink); }
.app-mobile-bar { position: fixed; inset: 0 0 auto; z-index: 40; height: 3.75rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; color: #fff; background: rgba(16,44,37,.96); border-bottom: 1px solid rgba(255,255,255,.1); }
.app-mobile-button { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.app-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(12, 20, 17, .58); backdrop-filter: blur(2px); }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: 17rem; min-height: 100vh; flex-direction: column; color: #edf2ed; background: var(--forest); transform: translateX(-100%); transition: transform .24s ease; }
.app-sidebar.is-open { transform: translateX(0); }
.app-sidebar-head { padding: 1.45rem 1.4rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.11); }
.app-sidebar .brand-lockup { margin-bottom: 1.6rem; color: #fff; }
.balance-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; color: #a8bdb3; font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.balance-label a { color: #d2ded7; font-weight: 500; letter-spacing: 0; text-transform: none; }
.balance-total { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; letter-spacing: -.04em; line-height: 1.1; }
.balance-total.is-negative { color: #ffb19c; }
.balance-account { display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; color: #9fb6ab; font-size: .72rem; }
.balance-account span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance-meta { margin-top: .65rem; color: #88a196; font-size: .72rem; }
.app-nav { flex: 1; overflow-y: auto; padding: 1rem .85rem; }
.nav-group + .nav-group { margin-top: 1.2rem; }
.nav-kicker { padding: 0 .65rem .45rem; color: #829c91; font-size: .61rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 2.35rem; padding: .52rem .65rem .52rem .8rem; border-radius: .35rem; color: #bfd0c8; font-size: .84rem; font-weight: 530; text-decoration: none; transition: background .16s, color .16s; }
.nav-link::before { content: ""; width: .28rem; height: .28rem; flex: none; border: 1px solid currentColor; border-radius: 50%; opacity: .7; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.is-active { color: #fff; background: rgba(255,255,255,.1); }
.nav-link.is-active::before { border-color: var(--orange); background: var(--orange); opacity: 1; }
.app-sidebar-foot { padding: .95rem; border-top: 1px solid rgba(255,255,255,.11); }
.project-switch { position: relative; }
.project-switch-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,.12); border-radius: .45rem; background: rgba(255,255,255,.05); color: #e5ede8; cursor: pointer; font-size: .76rem; text-align: left; }
.project-menu { position: absolute; inset: auto 0 calc(100% + .45rem); overflow: hidden; border: 1px solid #355c4d; border-radius: .5rem; background: var(--forest-deep); box-shadow: 0 16px 45px rgba(0,0,0,.28); }
.project-menu button, .project-menu a { width: 100%; display: block; padding: .7rem .8rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; color: #c9d7d0; font-size: .76rem; text-align: left; text-decoration: none; cursor: pointer; }
.project-menu button:hover, .project-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: .75rem; padding: 0 .2rem; }
.user-link { overflow: hidden; color: #b6c8bf; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.sign-out { border: 0; background: transparent; color: #8ba397; cursor: pointer; font-size: .72rem; }
.sign-out:hover, .user-link:hover { color: #fff; }
.app-main { min-height: 100vh; padding-top: 3.75rem; overflow-x: hidden; }
.app-content { width: 100%; max-width: 92rem; padding: 1.25rem; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 1.25rem 0; padding: .85rem 1rem; border: 1px solid; border-radius: .4rem; font-size: .82rem; }
.flash-success { color: #1d513f; background: #dcece0; border-color: #bdd5c3; }
.flash-error { color: #8a2f22; background: #f6dfda; border-color: #e9bcb1; }

/* Restyle the existing product screens without changing their behaviour. */
.app-shell main h1 { color: var(--ink) !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 2vw, 2.25rem) !important; font-weight: 700 !important; letter-spacing: -.035em; }
.app-shell main h2, .app-shell main h3, .app-shell main h4 { color: var(--ink) !important; }
.app-shell main .text-white { color: var(--ink) !important; }
.app-shell main .text-gray-300 { color: var(--ink-soft) !important; }
.app-shell main .text-gray-400 { color: #5f6a63 !important; }
.app-shell main .text-gray-500, .app-shell main .text-gray-600 { color: var(--muted) !important; }
.app-shell main .text-gray-700 { color: #8d938e !important; }
.app-shell main .bg-gray-950 { background: var(--paper) !important; }
.app-shell main .bg-gray-900, .app-shell main .bg-gray-900\/50, .app-shell main .bg-gray-900\/40, .app-shell main .bg-gray-900\/60 { background: var(--paper-bright) !important; }
.app-shell main .bg-gray-800, .app-shell main .bg-gray-800\/30, .app-shell main .bg-gray-800\/40, .app-shell main .bg-gray-800\/50 { background: #ebe7dd !important; }
.app-shell main .bg-gray-700 { background: #ded9ce !important; }
.app-shell main .border-gray-800, .app-shell main .border-gray-800\/60, .app-shell main .border-gray-700 { border-color: var(--line) !important; }
.app-shell main .divide-gray-800 > :not([hidden]) ~ :not([hidden]) { border-color: var(--line) !important; }
.app-shell main .rounded-2xl, .app-shell main .rounded-xl { border-radius: .7rem !important; }
.app-shell main .rounded-lg { border-radius: .42rem !important; }
.app-shell main .shadow-xl, .app-shell main .shadow-lg { box-shadow: var(--shadow) !important; }
.app-shell main input:not([type="checkbox"]):not([type="radio"]), .app-shell main select, .app-shell main textarea { min-height: 2.65rem; border-color: #cfc9bb !important; border-radius: .35rem !important; background: #fff !important; color: var(--ink) !important; box-shadow: inset 0 1px rgba(23,35,31,.03); }
.app-shell main input::placeholder, .app-shell main textarea::placeholder { color: #969c97; }
.app-shell main label { color: #53605a !important; font-weight: 570; }
.app-shell main button, .app-shell main a { transition-duration: .15s !important; }
.app-shell main .bg-indigo-600, .app-shell main .bg-indigo-700, .app-shell main .bg-teal-700 { background: var(--forest) !important; color: #fff !important; box-shadow: none !important; }
.app-shell main .hover\:bg-indigo-500:hover, .app-shell main .hover\:bg-indigo-600:hover, .app-shell main .hover\:bg-teal-600:hover { background: var(--forest-light) !important; }
.app-shell main .text-indigo-300, .app-shell main .text-indigo-400, .app-shell main .text-indigo-500 { color: #255a49 !important; }
.app-shell main .bg-indigo-900\/30, .app-shell main .bg-indigo-900\/40, .app-shell main .bg-indigo-900\/60 { background: var(--sage) !important; }
.app-shell main .border-indigo-800, .app-shell main .border-indigo-800\/60 { border-color: #a9c2b0 !important; }
.app-shell main .bg-emerald-900\/30, .app-shell main .bg-emerald-900\/40, .app-shell main .bg-emerald-900\/60 { background: #dcece0 !important; }
.app-shell main .text-emerald-300, .app-shell main .text-emerald-400, .app-shell main .text-emerald-500, .app-shell main .text-emerald-600 { color: #236247 !important; }
.app-shell main .bg-red-900\/30, .app-shell main .bg-red-900\/40, .app-shell main .bg-red-900\/50, .app-shell main .bg-red-900\/60 { background: #f4ded8 !important; }
.app-shell main .text-red-300, .app-shell main .text-red-400, .app-shell main .text-red-500 { color: var(--red) !important; }
.app-shell main .border-red-700, .app-shell main .border-red-800 { border-color: #dfafa4 !important; }
.app-shell main .bg-yellow-900\/40, .app-shell main .bg-amber-900\/40 { background: #f1e4bd !important; }
.app-shell main .text-yellow-300, .app-shell main .text-amber-300, .app-shell main .text-amber-400 { color: #775614 !important; }
.app-shell main table { overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper-bright); border-collapse: separate; border-spacing: 0; }
.app-shell main thead { background: #e9e5da; }
.app-shell main th { color: #5b655f !important; font-size: .66rem !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; }
.app-shell main td { color: var(--ink-soft); }
.app-shell main tbody tr:hover { background: #f6f3ec; }
.app-shell main .payment-toggle[data-paid="true"] { background: #d8d5cc !important; color: #747c76 !important; }
.app-shell main .payment-toggle[data-paid="false"] { background: var(--forest) !important; color: #fff !important; }
.table-scroll { max-width: 100%; overflow-x: auto; border-radius: .55rem; }
.table-scroll > table { min-width: 42rem; }
.table-scroll > table.users-table { min-width: 0; }
#toast-region > div { border: 1px solid #315f4c !important; border-radius: .4rem !important; background: var(--forest) !important; color: #fff !important; box-shadow: 0 14px 40px rgba(17,47,39,.22) !important; }
.setup-guide { display: grid; gap: 1px; margin: 0 0 1.5rem; border: 1px solid var(--line); background: var(--line); }
.setup-intro, .setup-step { padding: 1.35rem; background: var(--paper-bright); }
.setup-intro { background: var(--sage); }
.setup-intro span { color: #416052; font-size: .64rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.setup-intro h2 { margin: .45rem 0 .55rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; letter-spacing: -.04em; }
.setup-intro p { margin: 0; color: #526159; font-size: .78rem; line-height: 1.55; }
.setup-step { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.setup-step b { color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-style: italic; }
.setup-step h3 { margin: .2rem 0 .35rem; font-size: .84rem; }
.setup-step p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.setup-step a { color: var(--forest); font-size: .72rem; font-weight: 750; text-underline-offset: 3px; }
.money-overview, .money-stats { gap: 1px !important; padding: 0; border: 1px solid var(--line); background: var(--line); }
.money-overview > div, .money-stats > div { margin: 0; border: 0 !important; border-radius: 0 !important; background: var(--paper-bright) !important; }
.money-overview > div { padding: 1.25rem !important; }
.money-overview > div:last-child { background: var(--sage) !important; }
.money-overview .text-xl, .money-stats .text-xl { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem !important; letter-spacing: -.035em; }
.money-stats > div { padding: 1rem !important; }
.forecast-chart { padding: 1.25rem !important; border-radius: .55rem !important; background: var(--paper-bright) !important; }
.settings-page { padding-bottom: 2rem; }
.settings-exchange, .settings-links { margin-top: 1.5rem; }
.exchange-rate-value { color: var(--ink); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.exchange-rate-meta { margin-top: .9rem; }

@media (min-width: 1024px) {
    .app-sidebar { transform: translateX(0); }
    .app-mobile-bar { display: none; }
    .app-main { margin-left: 17rem; padding-top: 0; }
    .app-content { padding: 2.2rem 2.5rem; }
}

/* Marketing */
.marketing-shell { overflow-x: hidden; background: var(--paper-bright); color: var(--ink); }
.marketing-shell::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .3; pointer-events: none; background-image: linear-gradient(rgba(23,35,31,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,35,31,.035) 1px, transparent 1px); background-size: 24px 24px; }
.marketing-wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.marketing-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(251,250,246,.9); backdrop-filter: blur(14px); }
.marketing-nav { height: 4.75rem; display: flex; align-items: center; justify-content: space-between; }
.marketing-links { display: flex; align-items: center; gap: 1.7rem; }
.marketing-links > a:not(.button) { color: #4d5a53; font-size: .79rem; font-weight: 600; text-decoration: none; }
.marketing-links > a:not(.button):hover { color: var(--ink); }
.button { display: inline-flex; min-height: 2.7rem; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: .35rem; font-size: .82rem; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: #fff; }
.button-primary:hover { background: var(--orange-dark); }
.button-dark { background: var(--forest); color: #fff; }
.button-dark:hover { background: var(--forest-light); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.button-quiet:hover { background: #eeeae0; }
.hero { padding: 5rem 0 3.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; color: #5a665f; font-size: .67rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--orange); }
.hero h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.15rem, 8vw, 6.8rem); font-weight: 700; letter-spacing: -.065em; line-height: .91; }
.hero h1 em { color: var(--orange); font-style: italic; font-weight: 400; }
.hero-copy { max-width: 35rem; margin: 1.65rem 0 2rem; color: #536059; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.8rem; color: #69736d; font-size: .7rem; }
.trust-line span { display: flex; align-items: center; gap: .4rem; }
.trust-line span::before { content: ""; width: .3rem; height: .3rem; border-radius: 50%; background: var(--forest); }
.ledger-preview { position: relative; min-height: 28rem; padding: 1.15rem; background: var(--forest); box-shadow: 1.25rem 1.25rem 0 var(--sage); transform: rotate(1deg); }
.ledger-preview::before { content: "MONEY / MONTH"; position: absolute; right: 1rem; top: -1.6rem; color: var(--orange); font-size: .62rem; font-weight: 800; letter-spacing: .18em; }
.ledger-paper { height: 100%; min-height: 25.7rem; padding: 1.25rem; background: var(--paper-bright); background-image: linear-gradient(#e5e1d8 1px, transparent 1px); background-size: 100% 2.8rem; }
.ledger-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.15rem; }
.ledger-date { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; }
.ledger-balance { text-align: right; }
.ledger-balance strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; letter-spacing: -.04em; }
.ledger-balance span { color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ledger-row { min-height: 2.8rem; display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .8rem; font-size: .76rem; }
.ledger-row .date { color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger-row .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger-row.in .amount { color: #297054; }
.ledger-row.out .amount { color: #9b402d; }
.ledger-note { position: absolute; right: -1rem; bottom: 2rem; width: 9rem; padding: .85rem; background: var(--orange); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; line-height: 1.25; transform: rotate(-3deg); box-shadow: 0 8px 24px rgba(23,35,31,.16); }
.proof-strip { border-block: 1px solid var(--line); background: var(--paper); }
.proof-grid { display: grid; }
.proof-item { padding: 1.6rem 1rem; border-bottom: 1px solid var(--line); }
.proof-item strong { display: block; margin-bottom: .25rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.proof-item span { color: var(--muted); font-size: .72rem; }
.section { padding: 5.5rem 0; }
.section-dark { background: var(--forest-deep); color: #f7f4ec; }
.section-kicker { margin-bottom: 1rem; color: var(--orange); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.section-title { max-width: 800px; margin: 0 0 2.7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.6rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.section-intro { max-width: 38rem; margin: -1.5rem 0 3rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.story-grid { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.story-card { min-height: 16rem; padding: 1.6rem; background: var(--paper-bright); }
.story-card.featured { background: var(--sage); }
.story-number { display: block; margin-bottom: 3.5rem; color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-style: italic; }
.story-card h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; letter-spacing: -.035em; }
.story-card p { margin: 0; color: #5b665f; font-size: .84rem; line-height: 1.65; }
.timeline { display: grid; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.timeline-step { position: relative; min-height: 15rem; padding: 1.6rem; background: var(--forest-deep); }
.timeline-step b { color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; font-weight: 400; }
.timeline-step h3 { margin: 2.2rem 0 .6rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.timeline-step p { margin: 0; color: #9db1a8; font-size: .8rem; line-height: 1.65; }
.detail-split { display: grid; gap: 2.5rem; align-items: start; }
.detail-list { border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.detail-row b { color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.detail-row h3 { margin: 0 0 .35rem; font-size: .9rem; }
.detail-row p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.quote-card { position: sticky; top: 2rem; padding: 2.2rem; background: var(--sage); }
.quote-card blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.04em; line-height: 1.14; }
.quote-card p { margin: 2rem 0 0; color: #526057; font-size: .73rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 700; list-style: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-family: ui-monospace, monospace; font-size: 1.15rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 42rem; margin: .8rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.closing { padding: 5rem 0; border-top: 1px solid var(--line); }
.closing-box { display: grid; gap: 2rem; align-items: end; padding: 2.4rem; background: var(--orange); color: #fff; }
.closing-box h2 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: .95; }
.closing-box p { max-width: 34rem; margin: 1rem 0 0; color: #ffe6dc; font-size: .88rem; line-height: 1.6; }
.closing-box .button { background: #fff; color: var(--ink); }
.marketing-footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.marketing-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .7rem; }
.marketing-notice { border-bottom: 1px solid #b7d2c1; background: #deeee3; color: #234d3d; }
.marketing-notice > div { display: flex; flex-wrap: wrap; gap: .35rem .8rem; padding-block: .8rem; font-size: .75rem; }
.marketing-notice a { font-weight: 700; text-underline-offset: 3px; }

/* Auth and onboarding */
.auth-shell { min-height: 100vh; display: grid; background: var(--paper-bright); color: var(--ink); }
.auth-story { position: relative; display: none; min-height: 100vh; overflow: hidden; padding: 2.2rem; background: var(--forest); color: #fff; }
.auth-story::after { content: ""; position: absolute; right: -9rem; bottom: -9rem; width: 25rem; height: 25rem; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.035), 0 0 0 8rem rgba(255,255,255,.025); }
.auth-story .brand-lockup { position: relative; z-index: 1; color: #fff; }
.auth-story-copy { position: relative; z-index: 1; max-width: 30rem; margin: auto 0; }
.auth-story-copy .eyebrow { color: #b9cdc3; }
.auth-story-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5vw, 5.2rem); font-weight: 700; letter-spacing: -.06em; line-height: .94; }
.auth-story-copy p { max-width: 25rem; margin: 1.3rem 0 0; color: #b5c9bf; font-size: .92rem; line-height: 1.7; }
.auth-mini-ledger { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.auth-mini-ledger div { padding: 1rem; background: var(--forest); }
.auth-mini-ledger span { display: block; color: #97aea3; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-mini-ledger strong { display: block; margin-top: .35rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.auth-main { display: grid; min-height: 100vh; place-items: center; padding: 2rem 1.25rem; }
.auth-panel { width: min(100%, 27rem); }
.auth-panel--wide { width: min(100%, 35rem); }
.auth-mobile-brand { margin-bottom: 2.5rem; }
.auth-heading { margin-bottom: 1.7rem; }
.auth-step { display: inline-block; margin-bottom: .65rem; color: var(--orange); font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.auth-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.65rem; letter-spacing: -.055em; line-height: 1; }
.auth-heading p { margin: .7rem 0 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.auth-card { padding: 1.6rem; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.auth-form { display: grid; gap: 1rem; }
.auth-grid { display: grid; gap: 1rem; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .45rem; color: #4e5b54; font-size: .72rem; font-weight: 700; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .45rem; }
.field-label label { margin-bottom: 0; }
.field label span { color: #8b928d; font-size: .65rem; font-weight: 500; }
.field input { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid #cac5b9; border-radius: .3rem; background: var(--paper-bright); color: var(--ink); outline: 0; }
.field input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,60,50,.1); }
.field input[readonly] { background: var(--paper-deep); color: var(--muted); cursor: not-allowed; }
.field-error { margin: .35rem 0 0; color: var(--red); font-size: .7rem; }
.field-note { margin: .4rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.auth-alert { margin-bottom: 1rem; padding: .8rem .9rem; border-left: 3px solid; background: var(--paper); color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.auth-alert.error { border-color: var(--red); }
.auth-alert.success { border-color: #2d7456; }
.auth-submit { width: 100%; min-height: 2.85rem; margin-top: .25rem; border: 0; border-radius: .3rem; background: var(--orange); color: #fff; cursor: pointer; font-size: .78rem; font-weight: 750; }
.auth-submit:hover { background: var(--orange-dark); }
.auth-meta { margin: 1.2rem 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.auth-meta a, .field-link { color: var(--forest); font-weight: 700; text-decoration-color: #9bb5aa; text-underline-offset: 3px; }
.auth-hint { margin: 0 0 1rem; color: var(--muted); font-size: .79rem; line-height: 1.65; }
.invite-state { text-align: center; }
.invite-state-mark { display: grid; width: 3.2rem; height: 3.2rem; margin: 0 auto 1rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font-family: Georgia, serif; font-size: 1.3rem; }
.invite-state h1 { margin: 0; font-family: Georgia, serif; font-size: 2rem; letter-spacing: -.04em; }
.invite-state p { color: var(--muted); font-size: .8rem; line-height: 1.55; }

@media (min-width: 640px) {
    .auth-grid { grid-template-columns: 1fr 1fr; }
    .proof-grid { grid-template-columns: repeat(3, 1fr); }
    .proof-item { padding-inline: 1.6rem; border-right: 1px solid var(--line); border-bottom: 0; }
    .proof-item:last-child { border-right: 0; }
    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(3, 1fr); }
    .setup-guide { grid-template-columns: repeat(3, 1fr); }
    .setup-intro { grid-column: 1 / -1; }
}

@media (min-width: 1180px) {
    .setup-guide { grid-template-columns: 1.2fr repeat(3, 1fr); }
    .setup-intro { grid-column: auto; }
}

@media (min-width: 820px) {
    .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr); }
    .story-grid { grid-template-columns: repeat(3, 1fr); }
    .story-card.featured { grid-column: span 2; }
    .detail-split { grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr); }
    .closing-box { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
    .auth-shell { grid-template-columns: minmax(28rem, .9fr) minmax(32rem, 1.1fr); }
    .auth-story { display: flex; flex-direction: column; }
    .auth-mobile-brand { display: none; }
}

@media (max-width: 639px) {
    .marketing-links > a:not(.button) { display: none; }
    .hero { padding-top: 3.4rem; }
    .ledger-preview { min-height: 24rem; margin: 1rem .55rem 0 0; box-shadow: .7rem .7rem 0 var(--sage); }
    .ledger-note { right: -.55rem; }
    .section { padding: 4rem 0; }
    .closing-box { padding: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.mcp-section { background: var(--ink); color: var(--paper-bright); padding: clamp(4.5rem, 9vw, 8rem) 0; overflow: hidden; }
.mcp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.mcp-copy h2 { max-width: 13ch; margin: .8rem 0 1.25rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
.mcp-copy > p { max-width: 40rem; color: #b8c5bf; font-size: 1.05rem; line-height: 1.75; }
.mcp-label { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; color: #dbe6e0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.mcp-label span { border-radius: 999px; background: var(--orange); color: #24150f; padding: .25rem .55rem; font-weight: 800; }
.mcp-points { list-style: none; margin: 2rem 0 2.25rem; padding: 0; display: grid; gap: .85rem; color: #dbe6e0; }
.mcp-points li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .6rem; line-height: 1.55; }
.mcp-points li span { color: #7e9b8e; font-size: .7rem; letter-spacing: .08em; padding-top: .3rem; }
.mcp-demo { position: relative; border: 1px solid #416054; border-radius: 1.1rem; background: #112d26; padding: 1.1rem; box-shadow: 2rem 2rem 0 #0c251f; }
.mcp-demo::before { content: ''; position: absolute; inset: -4rem -7rem auto auto; width: 13rem; height: 13rem; border: 1px solid #315348; border-radius: 50%; opacity: .6; }
.mcp-demo-head { display: flex; align-items: center; gap: .55rem; border-bottom: 1px solid #315348; padding: .25rem .25rem 1rem; font-size: .8rem; letter-spacing: .04em; }
.mcp-demo-head .brand-mark { width: 1rem; height: 1rem; background: var(--orange); }
.mcp-demo-head b { margin-left: auto; color: #8ed8b3; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.mcp-message { max-width: 88%; margin-top: 1rem; border-radius: .8rem; padding: .9rem 1rem; font-size: .88rem; line-height: 1.5; }
.mcp-message.is-user { margin-left: auto; background: #315348; }
.mcp-message.is-assistant { background: var(--paper-bright); color: var(--ink); }
.mcp-message small { display: block; margin-bottom: .35rem; color: #6b7c74; font-size: .63rem; letter-spacing: .07em; text-transform: uppercase; }
.mcp-tool { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; color: #9fb7ab; font-size: .7rem; }
.mcp-tool span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #285b46; color: #a9e4c4; }
.nav-link { justify-content: flex-start; }
.nav-badge { min-width: 1.25rem; margin-left: auto; border-radius: 999px; background: var(--orange); color: #24150f; padding: .08rem .35rem; text-align: center; font-size: .62rem; font-weight: 800; }

/* Shared signed-in controls */
.ui-button { display: inline-flex; min-height: 2.2rem; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .85rem; border: 1px solid transparent; border-radius: .35rem !important; cursor: pointer; font-size: .75rem; font-weight: 720; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.ui-button:hover { transform: translateY(-1px); }
.ui-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.ui-button-sm { min-height: 1.85rem; padding: .4rem .65rem; font-size: .7rem; }
.ui-button-primary { border-color: var(--forest); background: var(--forest) !important; color: #fff !important; }
.ui-button-primary:hover { border-color: var(--forest-light); background: var(--forest-light) !important; }
.ui-button-secondary { border-color: #cfc9bb; background: #fff !important; color: var(--ink) !important; }
.ui-button-secondary:hover { background: #f2eee5 !important; }
.ui-button-success { border-color: #a8cbb8; background: #dfede5 !important; color: #1d5b43 !important; }
.ui-button-success:hover { background: #cee3d7 !important; }
.ui-button-warning { border-color: #dfc990; background: #f4e7c7 !important; color: #704f12 !important; }
.ui-button-warning:hover { background: #ecdbb2 !important; }
.ui-button-danger { border-color: #dfb0a4; background: #f6e1dc !important; color: #963d2d !important; }
.ui-button-danger:hover { background: #efd0c8 !important; }
.ui-button-quiet { border-color: transparent; background: transparent !important; color: #57635c !important; }
.ui-button-quiet:hover { border-color: var(--line); background: #ebe7dd !important; color: var(--ink) !important; }

.ui-badge { display: inline-flex; min-height: 1.45rem; align-items: center; padding: .2rem .5rem; border: 1px solid #cbc7bd; border-radius: 999px; background: #ebe8df; color: #4e5953 !important; font-size: .65rem; font-weight: 720; line-height: 1; white-space: nowrap; }
.ui-badge-success { border-color: #afd1bd; background: #dcece2; color: #205f46 !important; }
.ui-badge-warning { border-color: #dfca91; background: #f3e7c7; color: #755314 !important; }
.ui-badge-danger { border-color: #e0b2a8; background: #f5dfda; color: #983f30 !important; }
.ui-badge-klarna { border-color: #e8b7ca; background: #f8dce7; color: #702342 !important; }
.ui-badge-clearpay { border-color: #abd3c0; background: #d9eee4; color: #18553f !important; }

.ui-table-summary td { border-top: 1px solid #cbc6bb; background: #e9e5da !important; color: #4f5b54 !important; }
.ui-progress { height: .42rem; overflow: hidden; border: 1px solid #cfc9bd; border-radius: 999px; background: #e5e1d8; }
.ui-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--forest); transition: width .25s ease; }

.alert-card { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .7rem; padding: 1rem; border: 1px solid var(--line); border-left-width: 3px; border-radius: .45rem; background: var(--paper-bright); color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s; }
.alert-card:hover { background: #f6f2e9; }
.alert-card.is-read { opacity: .62; }
.alert-card-danger { border-left-color: var(--red); }
.alert-card-warning { border-left-color: #bd8422; }
.alert-card-info { border-left-color: var(--forest-light); }
.alert-dot { width: .48rem; height: .48rem; flex: none; margin-top: .3rem; border-radius: 50%; background: var(--forest-light); }
.alert-card-danger .alert-dot { background: var(--red); }
.alert-card-warning .alert-dot { background: #bd8422; }

.money-day { isolation: isolate; }
.app-shell main .money-day.is-today { border-color: #dda286 !important; border-left: 3px solid var(--orange) !important; background: #fbf4ec !important; }
.money-day.is-today .money-day-number { color: var(--orange) !important; }
.money-day:has(.action-menu[open]) { z-index: 40; }
.table-scroll:has(.action-menu[open]) { overflow: visible; }
.action-menu { position: relative; z-index: 30; }
.action-menu > summary { display: inline-flex; min-width: 2rem; min-height: 1.8rem; align-items: center; justify-content: center; border: 1px solid #cbc6ba; border-radius: .35rem; background: #fff; color: #59645e; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .08em; list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu[open] > summary { border-color: #93afa3; background: #e6eee9; color: var(--forest); }
.action-menu-panel { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 80; width: 13.5rem; overflow: hidden; border: 1px solid #c9c4b8; border-radius: .45rem; background: #fff; box-shadow: 0 18px 45px rgba(23,35,31,.18); }
.action-menu-title { padding: .65rem .75rem .45rem; color: #79827c; font-size: .59rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.action-menu-item { width: 100%; display: flex; min-height: 2.25rem; align-items: center; padding: .55rem .75rem; border: 0; border-top: 1px solid #eeeae2; background: #fff; color: #35423c !important; cursor: pointer; font-size: .72rem; font-weight: 620; text-align: left; text-decoration: none; }
.action-menu-item:hover { background: #f2eee6; color: var(--ink) !important; }
.action-menu-item.is-danger { color: var(--red) !important; }

@media (max-width: 820px) {
    .mcp-grid { grid-template-columns: 1fr; }
    .mcp-demo { box-shadow: 1rem 1rem 0 #0c251f; }
}

/* Product trust, onboarding and public information pages */
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 200; padding: .7rem 1rem; border-radius: .35rem; background: var(--orange); color: #fff; font-size: .8rem; font-weight: 750; text-decoration: none; transform: translateY(-180%); transition: transform .15s; }
.skip-link:focus { transform: translateY(0); }
.app-sidebar-brand { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.app-sidebar-brand .brand-lockup { margin-bottom: 1.6rem; }
.app-sidebar-close { border: 0; background: transparent; color: #b6c8bf; cursor: pointer; font-size: .72rem; }
.error-summary { align-items: flex-start; }
.error-summary strong { display: block; margin-bottom: .25rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.onboarding-resume { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 1.25rem 0; padding: 1rem; border: 1px solid #b8cfc0; border-radius: .5rem; background: var(--sage); }
.onboarding-resume span { display: block; color: #527063; font-size: .61rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.onboarding-resume strong { display: block; margin-top: .2rem; color: var(--ink); font-family: Georgia, serif; font-size: 1rem; }
button.is-loading { cursor: wait !important; opacity: .7; transform: none !important; }

.field select, .field textarea { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid #cac5b9; border-radius: .3rem; background: var(--paper-bright); color: var(--ink); outline: 0; }
.field textarea { resize: vertical; line-height: 1.55; }
.field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,60,50,.1); }
.auth-consent { display: grid; grid-template-columns: 1rem 1fr; gap: .65rem; align-items: start; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.auth-consent input { width: 1rem; height: 1rem; margin-top: .12rem; accent-color: var(--forest); }
.auth-consent a { color: var(--forest); font-weight: 700; }
.auth-legal { display: flex; justify-content: center; gap: 1.1rem; margin-top: 1.5rem; color: var(--muted); font-size: .68rem; }
.text-link-button { border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.auth-panel--onboarding { width: min(100%, 47rem); padding-block: 1rem; }
.onboarding-progress { margin-bottom: 2rem; }
.onboarding-progress-copy { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .65rem; }
.onboarding-progress-copy span { font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.onboarding-progress-copy strong { color: var(--ink); }
.onboarding-track { height: 3px; margin-top: .7rem; overflow: hidden; background: var(--line); }
.onboarding-track span { display: block; height: 100%; background: var(--orange); transition: width .3s ease; }
.onboarding-heading { margin-bottom: 1.6rem; }
.onboarding-heading h1, .onboarding-complete h1 { max-width: 14ch; margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.3rem); letter-spacing: -.06em; line-height: .95; }
.onboarding-heading p, .onboarding-complete p { max-width: 39rem; margin: .9rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.onboarding-value-grid { display: grid; gap: 1px; margin: 1.8rem 0; border: 1px solid var(--line); background: var(--line); }
.onboarding-value-grid article { min-height: 8rem; padding: 1.1rem; background: #fff; }
.onboarding-value-grid b { display: block; color: var(--orange); font-family: Georgia, serif; font-size: 1rem; font-style: italic; }
.onboarding-value-grid strong { display: block; margin-top: 1.7rem; font-size: .78rem; }
.onboarding-value-grid span { display: block; margin-top: .3rem; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.onboarding-upsell { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #315749; border-radius: .75rem; background: var(--forest-deep); color: #fff; box-shadow: 1rem 1rem 0 var(--sage); }
.onboarding-upsell::after { content: ""; position: absolute; right: -5rem; top: -5rem; width: 12rem; height: 12rem; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 2.5rem rgba(255,255,255,.025); }
.onboarding-upsell > span { color: #9ab2a7; font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.onboarding-upsell h2 { max-width: 15ch; margin: .6rem 0; color: #fff; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.05em; line-height: 1; }
.onboarding-upsell p { max-width: 35rem; color: #b8c9c1; font-size: .8rem; line-height: 1.65; }
.onboarding-upsell .button { position: relative; z-index: 1; margin-top: .7rem; }
.onboarding-upsell small { display: block; max-width: 36rem; margin-top: 1rem; color: #8ea69b; font-size: .65rem; line-height: 1.5; }
.onboarding-permission { display: grid; gap: .25rem; padding: .85rem; border-left: 3px solid var(--forest); background: var(--sage); }
.onboarding-permission strong { font-size: .74rem; }
.onboarding-permission span { color: #54655c; font-size: .68rem; line-height: 1.5; }
.onboarding-secondary-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-top: 1.25rem; }
.onboarding-secondary-actions button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; text-decoration: underline; text-decoration-color: #aaa69d; text-underline-offset: 3px; }
.onboarding-complete { text-align: center; }
.onboarding-complete h1, .onboarding-complete p { margin-inline: auto; }
.onboarding-complete .auth-submit { max-width: 25rem; margin-top: 1.5rem; }
.onboarding-complete-mark { display: grid; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem; place-items: center; border: 1px solid #9ab3a6; border-radius: 50%; background: var(--sage); }
.onboarding-complete-mark span { width: 1.2rem; height: .65rem; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg) translate(.1rem, -.15rem); }

.public-page { min-height: 100vh; }
.public-nav { gap: 1.25rem; }
.public-hero { padding: clamp(4rem, 9vw, 7.5rem) 0; border-bottom: 1px solid var(--line); }
.public-hero-compact { padding-block: clamp(3rem, 7vw, 5.5rem); }
.public-hero h1 { max-width: 16ch; margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.065em; line-height: .93; }
.public-hero p { max-width: 39rem; margin: 1.3rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.public-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.public-section-muted { border-top: 1px solid var(--line); background: var(--paper); }
.public-copy { max-width: 50rem; }
.public-copy h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 2.3rem; letter-spacing: -.04em; }
.public-copy p, .legal-copy p, .legal-copy li { color: var(--ink-soft); font-size: .86rem; line-height: 1.75; }
.legal-copy { max-width: 49rem; }
.legal-copy h2 { margin: 2.8rem 0 .65rem; font-family: Georgia, serif; font-size: 1.65rem; letter-spacing: -.035em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy ul { padding-left: 1.2rem; }
.legal-copy a, .public-copy a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }
.pricing-grid { display: grid; gap: 1rem; }
.pricing-card { display: flex; min-height: 35rem; flex-direction: column; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.pricing-card.is-pro { border-color: var(--forest); background: var(--forest-deep); color: #fff; }
.pricing-name { color: var(--orange); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pricing-price { margin: 1.4rem 0 .8rem; font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.05em; }
.pricing-price small { font-family: Inter, sans-serif; font-size: .7rem; letter-spacing: 0; }
.pricing-card p, .pricing-card li, .pricing-card small { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.pricing-card.is-pro p, .pricing-card.is-pro li, .pricing-card.is-pro small { color: #b8c8c0; }
.pricing-card ul { display: grid; gap: .7rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.pricing-card li::before { content: ""; display: inline-block; width: .38rem; height: .38rem; margin-right: .55rem; border-radius: 50%; background: var(--orange); }
.pricing-card .button { align-self: flex-start; margin-top: auto; }
.pricing-card > small { display: block; margin-top: 1rem; }
.support-grid { display: grid; gap: 1.5rem; align-items: start; }
.support-card { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.support-card .button { border: 0; cursor: pointer; }
.support-aside { padding: 1.7rem; background: var(--sage); }
.support-aside h2 { margin: 0; font-family: Georgia, serif; font-size: 1.5rem; }
.support-aside li, .support-aside p { color: #526159; font-size: .76rem; line-height: 1.65; }
.support-aside ol { display: grid; gap: .7rem; padding-left: 1.2rem; }
.support-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.public-footer p { margin: .7rem 0 0; }
.public-footer nav, .marketing-footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.public-footer a, .marketing-footer-links a { text-underline-offset: 3px; }

.profile-page { padding-bottom: 2rem; }
.profile-card { margin-bottom: 1rem; padding: clamp(1.2rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .7rem; background: var(--paper-bright); }
.profile-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.profile-card-head h2 { margin: 0; font-size: 1rem; }
.profile-card-head p { max-width: 36rem; margin: .35rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.profile-actions a { color: var(--forest); font-weight: 700; }
.profile-inline-form { display: grid; gap: .8rem; align-items: end; }
.profile-inline-form label, .profile-danger-panel label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .7rem; font-weight: 650; }
.profile-inline-form input, .profile-danger-panel input { width: 100%; min-height: 2.65rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .35rem; background: #fff; }
.profile-danger { border-color: #e0b2a8; }
.profile-danger-panel { padding-top: 1rem; border-top: 1px solid #e0b2a8; }
.profile-danger-panel > p { color: #80584f; font-size: .75rem; line-height: 1.55; }
.mcp-steps { display: grid; gap: 1px; padding: 0; border: 1px solid var(--line); background: var(--line); list-style: none; }
.mcp-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; padding: 1rem; background: var(--paper-bright); }
.mcp-steps b { color: var(--orange); font-family: Georgia, serif; font-style: italic; }
.mcp-steps strong, .mcp-steps span { display: block; }
.mcp-steps strong { font-size: .76rem; }
.mcp-steps span { margin-top: .25rem; color: var(--muted); font-size: .68rem; line-height: 1.5; }

@media (min-width: 640px) {
    .onboarding-value-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-inline-form { grid-template-columns: 1fr auto; }
}

@media (min-width: 820px) {
    .support-grid { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr); }
}

@media (min-width: 1024px) {
    .app-sidebar-close { display: none; }
    .onboarding-resume { margin: 1rem 2.5rem 0; }
}

@media (max-width: 639px) {
    .onboarding-resume { align-items: flex-start; flex-direction: column; }
    .public-nav > a:not(.button) { display: none; }
    .public-nav .button { min-height: 2.35rem; padding: .55rem .75rem; }
    .onboarding-upsell { box-shadow: .55rem .55rem 0 var(--sage); }
}

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: var(--forest-deep); color: #fff; }
.error-shell { width: min(100%, 47rem); padding: clamp(1.5rem, 6vw, 4rem); border: 1px solid #36594d; background: var(--forest); box-shadow: 1.1rem 1.1rem 0 #0b251f; }
.error-shell .brand-lockup { color: #fff; }
.error-code { margin: clamp(3rem, 10vw, 7rem) 0 .8rem; color: #78958a; font-family: Georgia, serif; font-size: 1rem; font-style: italic; }
.error-shell h1 { max-width: 13ch; margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 7vw, 4.5rem); letter-spacing: -.06em; line-height: .95; }
.error-shell > p { max-width: 38rem; margin: 1rem 0 0; color: #b4c7be; font-size: .85rem; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.error-actions .button-dark { background: var(--orange); }
.error-actions .button-quiet { border-color: #496b5f; color: #fff; }
.error-shell > small { display: block; margin-top: 2rem; color: #7f9b90; font-size: .62rem; }
