/* ============================================================
   FRAILWARDEN "operations terminal" design
   One accent (signal green) on a green-tinted near-black.
   Display/UI: Outfit · Data/labels: IBM Plex Mono
   ============================================================ */

:root {
    --bg: #0a0c0a;
    --surface: #0f120f;
    --surface-2: #141814;
    --line: #212721;
    --line-2: #2e362e;
    --txt: #e8ede6;
    --muted: #9ba69b;
    --faint: #6a756b;
    --accent: #43d47c;
    --accent-ink: #08130c;
    --accent-dim: rgba(67, 212, 124, .12);
    --accent-line: rgba(67, 212, 124, .35);
    --warn: #d9b45c;
    --danger: #e0685e;
    --shadow-md: 0 10px 34px rgba(0, 0, 0, .45);
    --shadow-green: 0 10px 34px rgba(67, 212, 124, .14);
    --font-ui: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* film grain: breaks digital flatness */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 3; pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(67, 212, 124, .3); color: #fff; }

main { flex: 1; }

a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; }
p { text-wrap: pretty; }

.mono { font-family: var(--font-mono); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; width: 100%; }

.skip-link {
    position: absolute; left: -9999px; top: 12px; z-index: 100;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- BUTTONS & LINKS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-ui); font-weight: 600; font-size: 15px; line-height: 1;
    padding: 12px 24px; border-radius: 8px; border: 0; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 20px rgba(67, 212, 124, .16);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 28px rgba(67, 212, 124, .28); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.btn-outline {
    background: transparent; color: var(--txt);
    border: 1px solid var(--line-2);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--accent-line); color: var(--accent);
    background: var(--accent-dim);
    box-shadow: none; filter: none;
}
.btn-outline:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 10px; }

.text-link {
    font-weight: 500; color: var(--txt); padding-bottom: 3px;
    border-bottom: 1px solid var(--line-2);
    transition: color .18s, border-color .18s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---------- NAV ---------- */
nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 12, 10, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 18px; letter-spacing: -.01em;
}
.logo-mark { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.nav-links { display: flex; gap: 32px; font-size: 14.5px; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a.active { color: var(--txt); }
.nav-links a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
    background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    display: none; background: transparent; border: 1px solid var(--line-2);
    color: var(--txt); font-size: 17px; border-radius: 8px;
    width: 38px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
/* blueprint grid, faded with a radial mask */
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(232, 237, 230, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 237, 230, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 45% 20%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 45% 20%, #000 30%, transparent 75%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 45% at 70% 10%, rgba(67, 212, 124, .07), transparent 70%);
}

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.02fr .98fr;
    gap: 64px; align-items: center;
}

.status {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
    border: 1px solid var(--line-2); border-radius: 6px;
    padding: 7px 13px; margin-bottom: 28px;
    background: rgba(15, 18, 15, .7);
}
.pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 0 rgba(67, 212, 124, .5);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 212, 124, .45); }
    70% { box-shadow: 0 0 0 7px rgba(67, 212, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 212, 124, 0); }
}

h1 {
    font-size: clamp(40px, 5.6vw, 74px);
    font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
    text-wrap: balance;
}
h1 em { font-style: normal; color: var(--faint); font-weight: 500; }
h1 .hl {
    color: var(--accent);
    background: linear-gradient(transparent 68%, var(--accent-dim) 68%);
}

.lead {
    margin-top: 24px; max-width: 34em;
    color: var(--muted); font-size: 17.5px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 26px; align-items: center; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }

/* ---------- TERMINAL ---------- */
.hero-visual { position: relative; }

.float {
    position: absolute; z-index: 2;
    font-size: 13px; color: var(--muted);
    background: var(--surface-2); border: 1px solid var(--line-2);
    padding: 11px 17px; border-radius: 10px; box-shadow: var(--shadow-md);
    animation: bob 6s ease-in-out infinite;
}
.float b { display: inline; color: var(--txt); font-weight: 600; }
.float small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.f1 { top: -30px; left: -34px; }
.f2 { bottom: -32px; right: -26px; animation-delay: -3s; }
.f2 b { color: var(--accent); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.term {
    background: rgba(13, 16, 13, .92);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .04);
    font-family: var(--font-mono);
    overflow: hidden;
}
.term-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.t-dot.r { background: rgba(224, 104, 94, .75); }
.t-dot.y { background: rgba(217, 180, 92, .75); }
.t-dot.g { background: rgba(67, 212, 124, .75); }
.term-title { margin-left: 10px; font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }

.term-body { padding: 14px 10px 8px; }
.t-row {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; padding: 8px 10px; border-radius: 6px;
    transition: background .15s;
}
.t-row:hover { background: var(--accent-dim); }
.t-time { color: var(--faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.t-src { color: var(--accent); width: 34px; flex-shrink: 0; }
.t-evt { flex: 1; color: #c3cdc2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-tag {
    flex-shrink: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
    padding: 3px 9px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.t-tag.ok { color: var(--accent); background: var(--accent-dim); }
.t-tag.warn { color: var(--warn); background: rgba(217, 180, 92, .12); }

.t-spark {
    display: flex; align-items: flex-end; gap: 5px;
    height: 44px; margin: 12px 10px 8px;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
}
.t-spark i {
    flex: 1; border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--accent), rgba(67, 212, 124, .25));
    opacity: .8;
}

.term-foot {
    display: flex; justify-content: space-between;
    padding: 10px 16px; border-top: 1px solid var(--line);
    font-size: 11.5px; color: var(--faint);
    background: var(--surface);
}
.term-foot .t-green { color: var(--accent); }

/* ---------- STATS STRIP ---------- */
section { padding: 96px 0; }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line);
}
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n {
    font-family: var(--font-mono); font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.stat .l {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--faint); margin-top: 6px; letter-spacing: .02em;
}

/* ---------- SECTION HEADS ---------- */
.sec-head { margin-bottom: 56px; max-width: 640px; }
.eyebrow-mono {
    display: block; font-family: var(--font-mono);
    font-size: 13px; color: var(--accent); margin-bottom: 14px;
}
.sec-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600; letter-spacing: -.03em; text-wrap: balance;
}
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ---------- ASYMMETRIC FEATURE GRID ---------- */
.feature-grid {
    display: grid; grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min-content; gap: 16px;
}
.feat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 28px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feat:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}
.feat-lg { grid-column: 1 / 8; grid-row: 1 / 3; }
.feature-grid .feat:not(.feat-lg) { grid-column: 8 / 13; }

.ico {
    width: 26px; height: 26px;
    fill: none; stroke: var(--accent); stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
    margin-bottom: 18px;
}
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 14.5px; }

.code {
    margin-top: 22px; padding: 16px 18px;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 9px;
    font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
    color: var(--muted); overflow-x: auto;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
    font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
    border: 1px solid var(--line-2); border-radius: 5px;
    padding: 5px 10px; background: var(--bg);
}
.metric {
    margin-top: 22px; font-size: 13.5px; color: var(--muted);
    border-top: 1px dashed var(--line); padding-top: 16px;
}
.metric b {
    font-family: var(--font-mono); color: var(--accent);
    font-size: 17px; font-variant-numeric: tabular-nums;
    margin-right: 6px;
}
.center-link { text-align: center; margin-top: 40px; }

/* ---------- STEPS RAIL ---------- */
.steps { max-width: 720px; border-left: 1px solid var(--line); }
.step {
    position: relative; display: grid;
    grid-template-columns: 52px 1fr; gap: 18px;
    padding: 26px 0 26px 36px;
}
.step + .step { border-top: 1px dashed var(--line); }
.step::before {
    content: ''; position: absolute; left: -5px; top: 37px;
    width: 9px; height: 9px; border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-2);
}
.num { font-size: 14px; color: var(--faint); padding-top: 3px; }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; max-width: 34em; }

/* ---------- CTA ---------- */
.cta-band {
    position: relative; overflow: hidden; text-align: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 20px; padding: 72px 32px 60px;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(232, 237, 230, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 237, 230, .03) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 20%, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.cta-band p { color: var(--muted); margin: 14px auto 34px; font-size: 16px; max-width: 34em; }
.cta-note { margin-top: 26px; font-size: 12px; color: var(--faint); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 44px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.foot-desc { color: var(--faint); font-size: 13.5px; line-height: 1.75; margin-top: 14px; max-width: 300px; }
.foot-col h4 {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
    color: var(--faint); margin-bottom: 16px; font-weight: 500;
}
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--txt); }
.foot-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--faint);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.foot-bottom .mono { font-size: 12px; }

/* ---------- REVEAL ---------- */
/* Visible by default; only hidden when JS is running (html.js) so content
   can never be lost to a failed/timed-out script. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .float, .pulse { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
    .hero { padding: 80px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 72px; }
    .lead { max-width: 40em; }
    .f1 { left: -8px; }
    .f2 { right: -8px; }
    .feat-lg, .feature-grid .feat:not(.feat-lg) { grid-column: 1 / 13; }
}

@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        flex-direction: column; gap: 0; padding: 8px 28px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-links a.active::after { display: none; }
    section { padding: 68px 0; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 14px 20px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 22px 18px; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .step { grid-template-columns: 40px 1fr; padding-left: 28px; }
    .t-evt { white-space: normal; }
    .hero-actions .btn-lg { width: 100%; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-head { padding: 100px 0 16px; max-width: 780px; }
.page-head h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 600; letter-spacing: -.035em; line-height: 1.04;
    text-wrap: balance;
}
.page-head .sub { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 34em; }

.features-page .feature-grid.grid-even .feat { grid-column: span 6; }

.stack-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- PRICING ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 30px 28px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan.featured {
    border-color: var(--accent-line); box-shadow: var(--shadow-green);
    background: linear-gradient(180deg, rgba(67, 212, 124, .05), transparent 45%), var(--surface);
}
.plan .badge {
    position: absolute; top: -11px; left: 24px;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
    color: var(--accent-ink); background: var(--accent);
    padding: 3px 10px; border-radius: 4px;
}
.plan .name { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.plan .amount {
    font-family: var(--font-mono); font-size: 40px; font-weight: 600;
    letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums;
}
.plan .amount small { font-size: 14px; color: var(--faint); font-weight: 400; }
.plan .for { color: var(--faint); font-size: 13px; margin-top: 4px; }
.plan ul { list-style: none; margin: 24px 0 28px; flex: 1; }
.plan li { font-size: 14px; color: #c3cdc2; padding: 6px 0; display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: '\2713'; color: var(--accent); font-size: 12px; flex-shrink: 0; }
.btn-block { width: 100%; }
.plans-note { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 9px; padding: 16px 20px; margin-bottom: 10px;
    transition: border-color .2s;
}
.faq details[open], .faq details:hover { border-color: var(--line-2); }
.faq summary {
    cursor: pointer; font-weight: 500; font-size: 15px; list-style: none;
    display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; font-family: var(--font-mono); color: var(--accent);
    font-size: 18px; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-line {
    display: grid; grid-template-columns: 92px 1fr; gap: 14px;
    padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.contact-line .k { font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding-top: 3px; }
.contact-line .v a { color: var(--txt); border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.contact-line .v a:hover { color: var(--accent); border-color: var(--accent-line); }
.contact-line .v span { color: var(--muted); }

form {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 30px 28px; display: grid; gap: 18px;
}
.field label {
    display: block; font-family: var(--font-mono);
    font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.field label em { color: var(--faint); font-style: normal; }
.field input, .field textarea {
    width: 100%; background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 8px; padding: 12px 14px; color: var(--txt);
    font-family: var(--font-ui); font-size: 14.5px;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { min-height: 130px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field-err {
    display: block; font-family: var(--font-mono);
    font-size: 11.5px; color: var(--danger); margin-top: 7px;
}
.form-ok { background: var(--surface); border: 1px solid var(--accent-line); border-radius: 14px; padding: 32px 28px; }
.form-ok h3 { color: var(--accent); font-size: 20px; margin-bottom: 10px; }
.form-ok p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

/* ---------- LEGAL PROSE ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 21px; letter-spacing: -.02em; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose strong { color: var(--txt); }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.prose .updated {
    font-family: var(--font-mono); font-size: 12px; color: var(--faint);
    margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 140px 0 120px; }
.err-page .code {
    font-family: var(--font-mono); font-size: clamp(64px, 10vw, 110px);
    font-weight: 600; color: var(--accent); letter-spacing: -.04em;
}
.err-page .trace { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); margin: 22px 0 30px; }

@media (max-width: 900px) {
    .page-head { padding-top: 72px; }
    .plans { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-page .feature-grid.grid-even .feat { grid-column: 1 / 13; }
}
