/* =====================================================================
   Kings Capital — Design System
   Identity is taken from the logo: espresso ground, gold wordmark,
   a silver hairline frame. The site behaves like a private bank:
   calm ivory pages, dark header and footer, gold used only as a mark.
   Type: Newsreader (headlines), Public Sans (body, data), Montserrat (logo).
   ===================================================================== */

:root {
    /* Brand */
    --espresso: #1b140e;
    --espresso-rgb: 27, 20, 14;
    --umber: #2a1f16;
    --umber-2: #3a2b1e;
    --gold: #e9b949;
    --gold-2: #f3d27a;
    --gold-deep: #b8892a;
    --gold-rgb: 233, 185, 73;
    --silver: #cfc9bf;

    /* Ground */
    --ivory: #f7f5f0;
    --stone: #ede9e1;
    --paper: #ffffff;

    /* Ink */
    --ink: var(--espresso);
    --ink-2: #4e443b;
    --ink-3: #7a6f63;
    --ink-4: #a79c8f;

    --line: #e3ddd2;
    --line-2: #cdc5b7;
    --tint: rgba(var(--espresso-rgb), .035);
    --tint-2: rgba(var(--espresso-rgb), .07);
    --tint-3: rgba(var(--espresso-rgb), .12);

    /* On dark surfaces */
    --on-dark: rgba(255, 250, 240, .86);
    --on-dark-2: rgba(255, 250, 240, .62);
    --on-dark-3: rgba(255, 250, 240, .42);
    --on-dark-line: rgba(255, 250, 240, .14);
    --on-dark-tint: rgba(255, 250, 240, .07);

    /* Semantic (kept separate from the gold accent) */
    --ok: #2f7a5a;      --ok-bg: #e6f2ec;
    --warn: #9a6400;    --warn-bg: #fbf1da;
    --bad: #a8362e;     --bad-bg: #f9e6e4;
    --info: #2f5d8a;    --info-bg: #e6eef6;

    /* Shape — institutional, not playful */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-pill: 999px;

    /* Elevation — warm, quiet */
    --shadow-1: 0 1px 2px rgba(var(--espresso-rgb), .05), 0 1px 8px rgba(var(--espresso-rgb), .04);
    --shadow-2: 0 4px 14px rgba(var(--espresso-rgb), .08), 0 14px 36px rgba(var(--espresso-rgb), .07);
    --shadow-3: 0 12px 30px rgba(var(--espresso-rgb), .16), 0 30px 70px rgba(var(--espresso-rgb), .14);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.4, 0, .2, 1);
    --t-fast: .2s;
    --t-med: .4s;
    --t-slow: .7s;

    /* Type */
    --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
    --font-logo: "Montserrat", "Arial Black", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --fs-body: 16.5px;
    --lh-body: 1.55;

    --header-h: 72px;
    --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; min-width: 0; }
p, li, dd, td, th, .value, .title, .meta, .pre, .msg { overflow-wrap: break-word; }
::selection { background: var(--gold); color: var(--espresso); }
a { color: var(--espresso); text-decoration: none; transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p a:not(.btn), .dl a:not(.btn), li a:not(.btn), .small a:not(.btn), td a:not(.btn), .pre a:not(.btn), details.faq a {
    font-weight: 500; text-decoration: underline; text-underline-offset: .2em;
    text-decoration-thickness: 1px; text-decoration-color: var(--gold-deep);
    transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
p a:not(.btn):hover, .dl a:not(.btn):hover, li a:not(.btn):hover, .small a:not(.btn):hover,
td a:not(.btn):hover, .pre a:not(.btn):hover, details.faq a:hover { text-decoration-color: var(--espresso); }
img, svg { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--espresso); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.inline { display: inline; }
.hidden, [hidden] { display: none !important; }
.mono { font-family: var(--font-mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.num, .price, .stat .value, td, .cred-row .v { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 1.5rem); }
.page-wrap { padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }

/* Eyebrow: small caps with a short gold rule — the site's signature mark */
.eyebrow, .section-head .eyebrow, .hero .eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 1px; }

/* ---------- Logo (built in CSS so it stays crisp at every size) ---------- */
.kc-logo { display: inline-flex; align-items: center; text-decoration: none !important; line-height: 1; font-size: 34px; }
.kc-logo-tile {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .5em .55em; border-radius: .6em;
    background: radial-gradient(120% 120% at 30% 20%, #4a3524 0%, #2c1f14 55%, #1b140e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(var(--espresso-rgb), .25);
}
.kc-logo-frame {
    display: inline-flex; flex-direction: column; align-items: center; gap: .08em;
    padding: .28em .38em .3em; border: 1.5px solid var(--silver); border-radius: 2px;
    font-family: var(--font-logo); font-weight: 800; text-transform: uppercase; color: var(--gold);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
}
.kc-logo-kings { font-size: .82em; letter-spacing: .06em; line-height: 1; color: var(--gold); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.kc-logo-capital {
    font-size: .5em; letter-spacing: .1em; line-height: 1; padding: .22em .38em .2em;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #d9a63c);
    color: var(--espresso); border-radius: 1px;
}
.kc-logo img { height: 2.7em; width: auto; }
.kc-logo-xs { font-size: 16px; }
.kc-logo-sm { font-size: 22px; }
.kc-logo-md { font-size: 30px; }
.kc-logo-lg { font-size: 44px; }
.kc-logo-xl { font-size: 64px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none !important; white-space: nowrap; }
.brand-text { display: none; font-family: var(--font-display); font-size: 1.15rem; color: var(--on-dark); letter-spacing: .01em; }
.brand-text span { color: var(--on-dark-2); }
@media (min-width: 420px) { .brand-text { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .78rem 1.4rem; min-height: 46px;
    border-radius: var(--r-sm); border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; letter-spacing: .005em; line-height: 1.2;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
    background: var(--espresso); color: #fff;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease), transform var(--t-med) var(--ease),
                box-shadow var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(var(--espresso-rgb), .18); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: .08s; }
.btn-primary, .btn-navy { background: var(--espresso); color: #fff; }
.btn-primary:hover, .btn-navy:hover { background: var(--umber-2); }
.btn-primary::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: .5rem; height: 1px; background: var(--gold); opacity: 0; transform: scaleX(.6); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.btn-primary:hover::after { opacity: 1; transform: none; }
.btn-outline { background: transparent; border-color: var(--espresso); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--espresso); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--espresso); box-shadow: none; }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.btn-ghost-light:hover { background: var(--on-dark-tint); border-color: rgba(255,250,240,.3); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--espresso); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 8px 24px rgba(var(--gold-rgb), .35); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: .5rem 1rem; min-height: 36px; font-size: .84rem; }
.btn-lg { padding: .95rem 1.75rem; min-height: 54px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.is-copied { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.is-copied::before { content: "✓"; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.btn-link::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.btn-link:hover { text-decoration: none; }
.btn-link:hover::after { transform: translateX(3px); }

/* ---------- Header (dark, like the logo ground) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--espresso); color: var(--on-dark);
    border-bottom: 1px solid var(--on-dark-line);
    transition: box-shadow var(--t-med) var(--ease);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .55) 30%, rgba(var(--gold-rgb), .55) 70%, transparent); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(var(--espresso-rgb), .35); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.nav-toggle { background: none; border: 0; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: var(--r-sm); margin-right: -8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--on-dark); border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: flex; flex-direction: column;
    background: var(--espresso);
    border-bottom: 1px solid var(--on-dark-line); padding: .5rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
    box-shadow: var(--shadow-3);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.main-nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.main-nav > a { padding: .9rem 0; color: var(--on-dark); font-weight: 500; font-size: 1rem; border-bottom: 1px solid var(--on-dark-line); text-decoration: none !important; transition: color var(--t-fast) var(--ease); }
.main-nav > a:hover, .main-nav > a.active { color: var(--gold); }
.nav-actions { display: flex; gap: .6rem; padding-top: 1rem; }
.nav-actions .btn { flex: 1; }
.nav-actions .btn-primary { background: var(--gold); color: var(--espresso); }
.nav-actions .btn-primary:hover { background: var(--gold-2); }
.nav-actions .btn-primary::after { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ivory); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(var(--gold-rgb), .14), transparent 60%),
        linear-gradient(180deg, rgba(var(--espresso-rgb), .02), transparent 40%);
}
.hero .container { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-inner { max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem); line-height: 1.04; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.hero p.lead { font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 540px; margin-bottom: 1.75rem; }
.hero .btn-row { margin-bottom: 1.9rem; }
.hero-points { list-style: none; display: grid; gap: .55rem; }
.hero-points li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.hero-points li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: .15rem; border-radius: 50%; background: var(--paper) no-repeat center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' fill='none' stroke='%23b8892a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border: 1px solid var(--line-2); }

/* Ledger card: the account-opening record */
.hero-card {
    position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-2); overflow: hidden; text-align: left; max-width: 520px; width: 100%; justify-self: center;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem; background: var(--espresso); color: var(--on-dark); }
.hero-card-head h3 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; }
.hero-card-head .ref { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-card .steps-row { display: grid; padding: .5rem 1.35rem; }
.hero-card .step { display: flex; gap: .95rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); line-height: 1.45; }
.hero-card .step:first-child { border-top: 0; }
.hero-card .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold-deep); color: var(--espresso); font-weight: 700; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.hero-card .step:first-child .n { background: var(--gold); border-color: var(--gold); }
.hero-card-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 1.35rem; border-top: 1px solid var(--line); background: var(--ivory); font-size: .82rem; color: var(--ink-3); }
.hero-card-foot strong { color: var(--espresso); }

/* Assurance strip */
.assurance { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assurance .container { display: grid; gap: 0; }
.assurance-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem 0; border-top: 1px solid var(--line-2); }
.assurance-item:first-child { border-top: 0; }
.assurance-item svg { width: 22px; height: 22px; color: var(--gold-deep); margin-top: .1rem; }
.assurance-item strong { display: block; font-size: .93rem; color: var(--espresso); }
.assurance-item span { font-size: .84rem; color: var(--ink-3); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--espresso); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--on-dark-2); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 680px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h1 + p, .section-head h2 + p { margin-top: 1rem; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.5; }
.section-split { display: grid; gap: 2rem; align-items: start; }
.section-split .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 1.1rem; }
.card {
    position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 1.9rem);
    transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
    width: 44px; height: 44px; border-radius: var(--r-md); background: var(--ivory); color: var(--gold-deep); border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
    transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon { background: var(--espresso); color: var(--gold); border-color: var(--espresso); }

.steps { counter-reset: step; display: grid; gap: .9rem; }
.step-item {
    display: flex; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem 1.3rem;
    transition: box-shadow var(--t-slow) var(--ease), border-color var(--t-med) var(--ease);
}
.step-item:hover { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.step-item::before { counter-increment: step; content: counter(step, decimal-leading-zero); flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold-deep); color: var(--espresso); font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
.step-item h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.step-item p { margin: 0; color: var(--ink-2); font-size: .93rem; }

.notice { border-radius: var(--r-md); padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--paper); font-size: .93rem; color: var(--ink); display: flex; gap: .8rem; align-items: flex-start; border-left-width: 3px; }
.notice::before { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; margin-top: .05rem; }
.notice-info { border-left-color: var(--info); }
.notice-info::before { content: "i"; background: var(--info-bg); color: var(--info); font-family: var(--font-display); font-style: italic; }
.notice-success { border-left-color: var(--ok); }
.notice-success::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.notice-warning { border-left-color: var(--warn); }
.notice-warning::before { content: "!"; background: var(--warn-bg); color: var(--warn); }
.notice-danger { border-left-color: var(--bad); }
.notice-danger::before { content: "!"; background: var(--bad-bg); color: var(--bad); }
.notice p { margin: 0; flex: 1; }
.notice a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

/* Packages */
.package {
    position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); background: var(--paper);
    transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-med) var(--ease);
}
.package:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.package.featured { background: var(--espresso); color: var(--on-dark); border-color: var(--espresso); box-shadow: var(--shadow-3); }
.package.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), var(--gold-deep)); }
.package.featured h3, .package.featured .price, .package.featured li { color: #fff; }
.package.featured .tagline, .package.featured .muted, .package.featured .price small { color: var(--on-dark-2); }
.package.featured::after { content: "Most chosen"; position: absolute; top: 1.35rem; right: 1.35rem; background: var(--gold); color: var(--espresso); font-size: .66rem; font-weight: 700; padding: .3rem .65rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .1em; }
.package.featured .btn-primary { background: var(--gold); color: var(--espresso); }
.package.featured .btn-primary:hover { background: var(--gold-2); }
.package.featured .btn-primary::after { display: none; }
.package.featured li::before { background: rgba(var(--gold-rgb), .18); color: var(--gold); border-color: transparent; }
.package h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.package .tagline { color: var(--ink-2); font-size: .93rem; min-height: 2.6em; margin-top: .3rem; }
.package .price { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--espresso); margin: 1.1rem 0 .3rem; }
.package .price small { display: block; font-size: .74rem; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .55rem; }
.package .price + .small.muted { margin-top: .9rem; line-height: 1.45; }
.package ul { list-style: none; margin: 1.25rem 0 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .55rem; flex: 1; }
.package.featured ul { border-top-color: var(--on-dark-line); }
.package li { display: flex; gap: .6rem; font-size: .93rem; align-items: flex-start; }
.package li::before { content: "✓"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line-2); color: var(--gold-deep); font-size: .6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: .2rem; }
.package .small.muted { font-size: .85rem; }

/* Founder note */
.founder { display: grid; gap: 1.75rem; align-items: start; }
.founder-person { display: flex; gap: 1rem; align-items: center; }
.founder-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--espresso); color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 2px rgba(var(--gold-rgb), .35), inset 0 0 0 4px var(--espresso); letter-spacing: .02em; overflow: hidden; }
.founder-mark img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-weight: 600; font-size: 1.05rem; color: var(--espresso); }
.founder-title { font-size: .84rem; color: var(--ink-3); }
.founder-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); line-height: 1.4; color: var(--espresso); font-weight: 400; max-width: 34em; }
.founder-quote::before { content: ""; display: block; width: 44px; height: 2px; background: var(--gold); margin-bottom: 1.25rem; }
.founder-quote p { margin-bottom: .9rem; white-space: pre-line; }
.founder-sig { margin-top: 1.25rem; font-size: .9rem; color: var(--ink-3); font-family: var(--font); }

/* Commitments */
.commitments { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.commitments li { display: grid; gap: .3rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-2); }
.commitments strong { font-size: 1rem; color: var(--espresso); display: flex; align-items: center; gap: .6rem; }
.commitments strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.commitments span { font-size: .93rem; color: var(--ink-2); padding-left: 1.25rem; }

/* Protection */
.protect { display: grid; gap: 1rem; }
.protect-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.protect-item .card-icon { margin: 0; }
.protect-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.protect-item p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq { border-bottom: 1px solid var(--line-2); background: transparent; }
details.faq:first-of-type { border-top: 1px solid var(--line-2); }
details.faq summary { padding: 1.2rem .25rem; font-weight: 500; font-size: 1.02rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color var(--t-fast) var(--ease); }
details.faq summary:hover { color: var(--gold-deep); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: no-repeat center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' stroke='%231b140e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform var(--t-med) var(--ease), background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); background-color: var(--espresso); border-color: var(--espresso); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' stroke='%23e9b949' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
details.faq div { padding: 0 3rem 1.35rem .25rem; color: var(--ink-2); font-size: .97rem; line-height: 1.55; animation: fade-up var(--t-med) var(--ease) both; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--espresso); color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(var(--gold-rgb), .18), transparent 65%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: var(--on-dark-2); font-size: 1.08rem; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-navy, .cta-band .btn-primary { background: var(--gold); color: var(--espresso); }
.cta-band .btn-navy:hover, .cta-band .btn-primary:hover { background: var(--gold-2); box-shadow: 0 12px 32px rgba(var(--gold-rgb), .3); }
.cta-band .btn-primary::after { display: none; }
.cta-band .btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.cta-band .btn-ghost:hover { border-color: rgba(255,250,240,.4); color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .45rem; color: var(--ink-2); }
.field .help { font-size: .8rem; color: var(--ink-3); margin-top: .4rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], select, textarea {
    width: 100%; padding: .8rem .95rem; min-height: 48px;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 1rem;
    font-family: inherit; background: var(--paper); color: var(--ink); -webkit-appearance: none; appearance: none;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .25); }
input:disabled, select:disabled, textarea:disabled { background: var(--ivory); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b140e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { accent-color: var(--espresso); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--ink-2); cursor: pointer; padding: .4rem 0; min-height: 44px; }
.check input { margin-top: .15rem; width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
.check span { padding-top: .1rem; }
.check a { text-decoration: underline; text-underline-offset: .15em; }
.file-input {
    position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 1.35rem 1rem; text-align: center; background: var(--ivory);
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.file-input:hover, .file-input.is-drag { border-color: var(--gold-deep); background: rgba(var(--gold-rgb), .08); }
.file-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-input strong { font-weight: 600; color: var(--espresso); }
.file-input .file-name { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; }
.form-section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.form-section h3 { margin-bottom: 1.1rem; font-size: 1.08rem; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-1); }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: clamp(.5rem, 3vw, 2rem) 0; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth-wrap h1 { margin-bottom: .5rem; text-align: center; font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.4rem); }
.auth-wrap .sub { color: var(--ink-2); margin-bottom: 1.6rem; text-align: center; font-size: 1rem; }
.auth-foot { text-align: center; margin-top: 1.4rem; font-size: .93rem; color: var(--ink-2); }
.auth-foot a { font-weight: 600; }
.auth-secure { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: 1.25rem; font-size: .78rem; color: var(--ink-3); }
.auth-secure svg { width: 14px; height: 14px; color: var(--ok); }

/* ---------- Flash ---------- */
.flash-list { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.flash { padding: .9rem 1.1rem; border-radius: var(--r-md); font-size: .93rem; border: 1px solid var(--line); border-left-width: 3px; background: var(--paper); display: flex; gap: .7rem; align-items: center; box-shadow: var(--shadow-1); animation: fade-up var(--t-med) var(--ease) both; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.flash::before { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.flash-success { border-left-color: var(--ok); }
.flash-success::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.flash-error { border-left-color: var(--bad); }
.flash-error::before { content: "!"; background: var(--bad-bg); color: var(--bad); }
.flash-info, .flash-message { border-left-color: var(--info); }
.flash-info::before, .flash-message::before { content: "i"; background: var(--info-bg); color: var(--info); font-family: var(--font-display); font-style: italic; }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); }

/* ---------- Pills / status ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1.2; border: 1px solid transparent; background: var(--tint-2); color: var(--ink-2); vertical-align: middle; }
.pill::before { font-size: .7rem; line-height: 1; }
.pill-success { background: var(--ok-bg); color: var(--ok); }
.pill-success::before { content: "✓"; }
.pill-warning { background: var(--warn-bg); color: var(--warn); }
.pill-warning::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); animation: pulse 1.6s var(--ease-io) infinite; }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-danger { background: var(--bad-bg); color: var(--bad); }
.pill-danger::before { content: "×"; font-size: .95rem; margin-top: -1px; }
.pill-muted { background: var(--tint); color: var(--ink-3); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
th, td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--ivory); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
tbody tr { transition: background var(--t-fast) var(--ease); }
tbody tr:hover { background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 500; }

/* ---------- Portal ---------- */
body.portal { background: var(--ivory); }
.portal-header { background: var(--espresso); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--on-dark-line); }
.portal-header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 clamp(1rem, 3vw, 1.5rem); max-width: 1320px; margin: 0 auto; gap: 1rem; }
.portal-header-actions { display: flex; align-items: center; gap: .6rem; }
.portal-user { display: none; font-size: .84rem; color: var(--on-dark-2); margin-right: .5rem; }
.portal-user strong { color: var(--on-dark); font-weight: 500; }
.icon-btn { color: var(--on-dark); position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--on-dark-line); transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.icon-btn:hover { background: var(--on-dark-tint); border-color: rgba(255,250,240,.3); }
.badge-dot { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--espresso); font-size: .65rem; font-weight: 700; border-radius: var(--r-pill); min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--espresso); }

.portal-shell { width: 100%; max-width: 1320px; margin: 0 auto; min-width: 0; }
.portal-nav { display: flex; gap: .25rem; overflow-x: auto; min-width: 0; max-width: 100%; padding: .7rem clamp(1rem, 3vw, 1.5rem); background: var(--paper); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 40; }
.portal-nav::-webkit-scrollbar { display: none; }
.portal-nav a { white-space: nowrap; padding: .5rem .85rem; border-radius: var(--r-sm); font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none !important; display: inline-flex; align-items: center; gap: .4rem; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.portal-nav a.active { background: var(--espresso); color: #fff; }
.portal-nav a.active .pill { background: var(--gold); color: var(--espresso); }
.portal-nav a:hover:not(.active) { background: var(--tint-2); color: var(--espresso); }
.portal-nav .pill { padding: .15rem .45rem; font-size: .62rem; }
.portal-nav-group { display: none; }
.portal-main { padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem) 3rem; min-width: 0; }
.portal-footnote { margin-top: 2.5rem; font-size: .8rem; color: var(--ink-3); text-align: center; text-wrap: balance; }

.page-title { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-title h1 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.2rem); }
.page-title p { margin: 0; color: var(--ink-2); font-size: .97rem; width: 100%; }
.page-title .pill { vertical-align: middle; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.5rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.stat .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; margin-bottom: 0; line-height: 1.35; text-wrap: balance; }
.stat .value { font-size: 1.02rem; font-weight: 600; color: var(--espresso); line-height: 1.3; margin-top: auto; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 1.25rem; }
.panel h2 { font-family: var(--font); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: .9rem; }
.panel p { color: var(--ink-2); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-ready { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.panel-pending { border-left: 3px solid var(--gold); }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.quick-actions a { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.05rem .9rem; text-align: center; font-weight: 600; color: var(--espresso); font-size: .9rem; text-decoration: none !important; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.quick-actions a:hover { border-color: var(--espresso); background: var(--espresso); color: var(--gold); }

/* Progress tracker */
.progress { list-style: none; display: grid; gap: 0; }
.progress li { display: flex; gap: .9rem; align-items: flex-start; padding: .55rem 0; position: relative; }
.progress li + li::before { content: ""; position: absolute; left: 11px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.progress li.done + li::before { background: var(--ok); }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.progress li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress li.done .dot::after { content: "✓"; }
.progress li.current .dot { border-color: var(--gold-deep); background: var(--paper); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .25); }
.progress li.current .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); animation: pulse 1.8s var(--ease-io) infinite; }
.progress .text { font-size: .93rem; padding-top: .15rem; color: var(--ink-2); }
.progress li.todo .text { color: var(--ink-3); }
.progress li.done .text { color: var(--ink); }
.progress li.current .text { font-weight: 600; color: var(--espresso); }

/* Definition list */
.dl { display: grid; gap: .65rem; }
.dl > div { display: grid; grid-template-columns: 1fr; gap: .15rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; }
.dl dd { font-weight: 500; color: var(--ink); word-break: break-word; }

/* MT5 credentials */
.cred { display: grid; gap: .65rem; }
.cred-row { display: flex; flex-wrap: wrap; gap: .6rem .75rem; align-items: center; justify-content: space-between; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem 1rem; }
.cred-row > div:first-child { min-width: 0; flex: 1 1 55%; }
.cred-row .btn, .cred-row .btn-row { flex: 0 0 auto; }
.cred-row .btn-row { gap: .5rem; }
.cred-row .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; margin-bottom: .15rem; }
.cred-row .v { font-weight: 600; font-size: 1.02rem; color: var(--espresso); overflow-wrap: anywhere; font-family: var(--font-mono); }
.cred-row .v.revealed { animation: fade-up var(--t-med) var(--ease) both; }
.pre { white-space: pre-wrap; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.25rem; font-size: .93rem; line-height: 1.55; color: var(--ink); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(var(--espresso-rgb), .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 100; padding: 1rem; animation: fade-in var(--t-fast) var(--ease) both; }
.modal-box { background: var(--paper); border-radius: var(--r-lg); padding: 1.75rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-3); animation: fade-up var(--t-med) var(--ease) both; }
.modal-box h3 { margin-bottom: .4rem; }
.error-text { color: var(--bad); font-size: .875rem; font-weight: 500; min-height: 1.2em; }

/* Lists */
.list { display: grid; gap: .6rem; }
.list-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; display: flex; justify-content: space-between; gap: .9rem; align-items: center; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease); }
.list-item:hover { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.list-item.unread { border-left: 3px solid var(--gold); }
.list-item .title { font-weight: 600; color: var(--espresso); }
.list-item .meta { font-size: .8rem; color: var(--ink-3); margin-top: .1rem; }
.list-item a.title:hover { text-decoration: underline; }
.tabs { display: inline-flex; gap: .25rem; margin-bottom: 1.25rem; background: var(--stone); padding: .25rem; border-radius: var(--r-md); }
.tabs a { padding: .5rem 1rem; border-radius: var(--r-sm); font-weight: 500; font-size: .88rem; color: var(--ink-2); text-decoration: none !important; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.tabs a.active { background: var(--paper); color: var(--espresso); box-shadow: var(--shadow-1); }
.tabs a:hover:not(.active) { color: var(--espresso); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-md); font-size: .93rem; }
.msg { border-radius: var(--r-md); padding: .85rem 1.05rem; margin-bottom: .6rem; max-width: 88%; font-size: .93rem; animation: fade-up var(--t-med) var(--ease) both; }
.msg-client { background: var(--espresso); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg-client .meta { color: var(--on-dark-2); }
.msg-admin { background: var(--stone); color: var(--ink); border-bottom-left-radius: 4px; }
.msg .meta { font-size: .68rem; color: var(--ink-3); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.msg p { margin: 0; white-space: pre-wrap; color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 3px solid var(--gold-deep); }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid .brand { margin-bottom: .25rem; }
.footer-grid h4 { color: #fff; margin-bottom: .8rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.footer-grid > div > a, .footer-grid > div > span { display: block; color: var(--on-dark-2); font-size: .93rem; padding: .45rem 0; }
.footer-grid a { transition: color var(--t-fast) var(--ease); }
.footer-grid a:hover { color: var(--gold); text-decoration: none; }
.footer-blurb { font-size: .93rem; margin-top: 1.1rem; max-width: 340px; color: var(--on-dark-2); }
.footer-bottom { border-top: 1px solid var(--on-dark-line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; color: var(--on-dark-3); display: grid; gap: .6rem; }
.footer-bottom p { margin: 0; max-width: 820px; line-height: 1.55; }
.footer-bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: .15em; }
.footer-bottom .reg { color: var(--on-dark-2); }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .55; } }

.hero-inner > * { animation: fade-up var(--t-slow) var(--ease) both; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .28s; }
.hero-inner > :nth-child(5) { animation-delay: .36s; }
.hero-card { animation: fade-up .9s var(--ease) .3s both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid .full { grid-column: 1 / -1; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-actions { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dl > div { grid-template-columns: 180px 1fr; gap: .8rem; align-items: baseline; }
    .modal { align-items: center; }
    .assurance .container { grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
    .assurance-item:nth-child(2) { border-top: 0; }
    .protect { grid-template-columns: repeat(2, 1fr); }
    .portal-user { display: inline; }
}
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .main-nav { position: static; flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; border: 0; box-shadow: none; background: transparent; opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
    .main-nav > a { position: relative; border: 0; padding: .7rem 0; font-size: .9rem; font-weight: 500; color: var(--on-dark-2); display: inline-flex; align-items: center; }
    .main-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
    .main-nav > a:hover, .main-nav > a.active { color: #fff; }
    .main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }
    .nav-actions { padding: 0; margin-left: .75rem; }
    .nav-actions .btn { flex: none; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; }
    .stat-grid { grid-template-columns: repeat(6, 1fr); }
    .hero .container { grid-template-columns: 1.1fr .9fr; }
    .hero-card { justify-self: end; }
    .assurance .container { grid-template-columns: repeat(4, 1fr); }
    .assurance-item { border-top: 0; border-left: 1px solid var(--line-2); padding: 1.35rem 1.5rem; }
    .assurance-item:first-child { border-left: 0; padding-left: 0; }
    .section-split { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
    .founder { grid-template-columns: 300px 1fr; gap: 3.5rem; }
    .founder-person { flex-direction: column; align-items: flex-start; }
    .founder-mark { width: 84px; height: 84px; font-size: 1.9rem; }
    .portal-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--header-h)); }
    .portal-nav { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); flex-direction: column; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 1.25rem .85rem; gap: .15rem; align-content: start; background: var(--paper); }
    .portal-nav a { border-radius: var(--r-sm); padding: .68rem .95rem; justify-content: space-between; }
    .portal-nav-group { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); font-weight: 700; padding: 1.1rem .95rem .4rem; }
    .portal-nav-group:first-child { padding-top: .3rem; }
    .portal-main { padding: 2rem 2.25rem 3.5rem; }
    .two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
}
@media (min-width: 1400px) {
    :root { --fs-body: 17px; }
}
@media print {
    .site-header, .site-footer, .portal-header, .portal-nav, .nav-toggle { display: none !important; }
    body { background: #fff; }
}
