/* PumpCoPilot marketing site. Colours follow the app's design system (src/PPM.UI/wwwroot/app.css). */

:root {
    --navy-950: #041526;
    --navy-900: #0a2540;
    --navy-800: #12304f;
    --navy-700: #1d3d61;

    --brand: #f97316;
    --brand-strong: #ea580c;
    --brand-text: #c2410c; /* orange dark enough for small text on white */
    --brand-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);

    --primary: #2563eb;
    --success: #059669;
    --danger: #be123c;
    --danger-soft: #fff1f2;

    --bg: #ffffff;
    --tint: #f6f8fb;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --text: #0f172a;
    --text-2: #334155;
    --text-muted: #5b6b80;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 30px 60px -24px rgba(4, 21, 38, 0.45);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    --header-height: 64px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--text);
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--text); }

a { color: var(--primary); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-weight: 600;
}

.skip-link:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-text);
}

.eyebrow.on-dark { color: #fdba74; }

.accent {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tag {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--tint);
    border: 1px solid var(--border);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-sm { height: 38px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }

/* White on the app's orange is too faint to read, so the brand button carries navy text. */
.btn-brand { background: var(--brand); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(249, 115, 22, 0.9); }
.btn-brand:hover { background: #fb923c; }

.btn-ghost { border-color: rgba(148, 163, 184, 0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.7); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 37, 64, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #fff;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.logo { flex: none; width: 40px; height: 40px; margin: 0 -4px 0 -6px; }

.brand-name {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-name span { color: #fb923c; }

.nav-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-button .icon { width: 24px; height: 24px; }
.nav-button .icon-close { display: none; }
.nav-button[aria-expanded="true"] .icon-open { display: none; }
.nav-button[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.site-nav.is-open { display: flex; }

.site-nav a:not(.btn) {
    padding: 12px 4px;
    color: #cbd5e1;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:not(.btn):hover { color: #fff; }
.site-nav .btn { margin-top: 8px; }

@media (min-width: 960px) {
    .brand-name span { color: #fb923c; }

.nav-button { display: none; }

    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        padding: 0;
        background: none;
        border: 0;
    }

    .site-nav a:not(.btn) { padding: 6px 0; font-size: 0.875rem; }
    .site-nav .btn { margin: 0 0 0 4px; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    color: #cbd5e1;
    background:
        radial-gradient(700px 460px at 100% 0%, rgba(37, 99, 235, 0.24), transparent 70%),
        radial-gradient(560px 400px at 0% 100%, rgba(234, 88, 12, 0.16), transparent 70%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero h1 { margin-top: 16px; color: #fff; }

.lede {
    max-width: 34em;
    margin-top: 20px;
    font-size: 1.125rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-points {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.9375rem;
    color: #94a3b8;
}

.hero-points li { display: flex; align-items: flex-start; gap: 10px; }
.hero-points .icon { margin-top: 3px; color: #34d399; }

@media (min-width: 1000px) {
    .hero { padding: 88px 0 104px; }
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}

/* The shift sheet */

.sheet {
    width: 100%;
    max-width: 520px;
    justify-self: center;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text-2);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.sheet-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.sheet-sub { font-size: 0.8125rem; color: var(--text-muted); }

.nozzle { padding: 14px 20px; border-bottom: 1px dashed var(--border); }

.nozzle-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
}

.nozzle-name { color: var(--text-muted); }
.nozzle-amount { margin-left: auto; font-weight: 600; color: var(--text); }

.fuel-chip {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fuel-chip.petrol { background: #ecfdf5; color: #047857; }
.fuel-chip.diesel { background: #eff6ff; color: #1d4ed8; }

.nozzle-readings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 10px;
    color: var(--text-muted);
}

.nozzle-readings .icon { width: 14px; height: 14px; }

/* A pump's totaliser: digits on a dark strip. */
.meter {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--navy-900);
    color: #fde68a;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.litres { margin-left: auto; font-size: 0.75rem; }

.tally { padding: 12px 20px 14px; font-size: 0.875rem; }

.tally > div,
.mini-lines > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
}

.tally dt, .mini-lines dt { min-width: 0; }
.tally dd, .mini-lines dd { flex: none; color: var(--text); }
.tally .less dt { padding-left: 14px; color: var(--text-muted); }
.tally .less dd { color: var(--text-muted); }

.tally .total,
.mini-lines .total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-strong);
    font-weight: 700;
    color: var(--text);
}

.sheet-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 14px 20px;
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 600;
}

.sheet-result strong { font-size: 1.125rem; font-weight: 700; }
.sheet-result-note { font-size: 0.8125rem; font-weight: 500; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-tint { background: var(--tint); }

.section-navy {
    color: #cbd5e1;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 { margin-top: 12px; }
.section-head > p:last-child { margin-top: 16px; font-size: 1.0625rem; }

@media (min-width: 1000px) {
    .section { padding: 104px 0; }
    .section-head { margin-bottom: 64px; }
}

.ticks { display: grid; gap: 10px; margin-top: 20px; font-size: 0.9375rem; }

.ticks li {
    position: relative;
    padding-left: 28px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-4-4'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Three leaks ---------- */

.leak {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.leak:last-child { padding-bottom: 0; }

.leak-where {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--navy-900);
    color: #fde68a;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leak h3 {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-wrap: balance;
}

.leak-copy > p:not(.leak-where) { margin-top: 14px; }

@media (min-width: 900px) {
    .leak { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; padding: 56px 0; }
    .leak.flip .leak-copy { order: 2; }
}

/* Small product cards */

.mini {
    width: 100%;
    max-width: 460px;
    justify-self: center;
    padding: 18px 20px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.35);
    font-size: 0.875rem;
}

.mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--text);
}

.due-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: var(--radius);
    background: var(--tint);
}

.avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.8125rem;
    font-weight: 700;
}

.avatar.blue { background: #dbeafe; color: #1e40af; }

.due-who { display: grid; min-width: 0; margin-right: auto; }
.due-who strong { color: var(--text); }
.due-who small { font-size: 0.75rem; color: var(--text-muted); }
.due-amount { font-weight: 700; color: var(--danger); }

.badge {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.bad { background: var(--danger-soft); color: var(--danger); }
.mini-lines .bad, .mini-lines .bad dd { color: var(--danger); }

/* Tank variation: a week of differences, the growing ones marked. */

.bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 190px;
    margin-bottom: 14px;
    padding: 0 2px;
}

/* The value sits on its bar: the row above the bar takes the slack. */
.bars li {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 6px;
    height: 100%;
    text-align: center;
}

.bars .num { font-size: 0.75rem; color: var(--text-muted); align-self: end; }
.bars small { font-size: 0.75rem; color: var(--text-muted); }

.bars i {
    height: calc(var(--h) * 1.3px); /* --h is the day's share of the week's largest difference, 0 to 100 */
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    background: #94a3b8;
}

.bars .hot i { background: var(--danger); }
.bars .hot .num { color: var(--danger); font-weight: 700; }

/* ---------- A day at the pump ---------- */

.day {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    counter-reset: day;
}

.day li {
    position: relative;
    padding: 0 0 36px 44px;
    counter-increment: day;
}

.day li:last-child { padding-bottom: 0; }

.day li::before {
    content: counter(day);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--navy-950);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
}

/* The line that joins one step to the next. */
.day li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 34px;
    bottom: 6px;
    width: 2px;
    background: rgba(148, 163, 184, 0.3);
}

.day-when {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fdba74;
}

.day p { margin-top: 8px; font-size: 0.9375rem; color: #a9b8cb; }

@media (min-width: 1000px) {
    .day { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
    .day li { padding: 48px 0 0; }

    .day li:not(:last-child)::after {
        left: 36px;
        right: -28px;
        top: 13px;
        bottom: auto;
        width: auto;
        height: 2px;
    }
}

/* ---------- What it covers ---------- */

.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.module {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.module h3 { margin-top: 18px; }

.module ul { display: grid; gap: 10px; margin-top: 14px; font-size: 0.9375rem; }

.module li { position: relative; padding-left: 16px; }

.module li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
}

.tile {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
}

.tile .icon { width: 22px; height: 22px; }

.tone-orange { background: #fff7ed; color: var(--brand-strong); }
.tone-blue { background: #eff6ff; color: var(--primary); }
.tone-green { background: #ecfdf5; color: var(--success); }
.tone-purple { background: #f5f3ff; color: #7c3aed; }

/* ---------- Owner's view ---------- */

.owner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.owner-copy h2 { margin-top: 12px; }
.owner-copy > p:not(.eyebrow) { margin-top: 16px; font-size: 1.0625rem; }

.owner-visual { display: grid; gap: 16px; justify-items: center; }

.mini.dash { max-width: 520px; }

.figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.figures > div {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 0;
}

.figures small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.figures strong { font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.figures span { font-size: 0.75rem; color: var(--text-muted); }
.figures .warn { border-color: #fed7aa; background: #fff7ed; }
.figures .warn span { color: var(--brand-text); font-weight: 600; }

/* The evening message, as it lands on the owner's phone. */
.chat {
    width: 100%;
    max-width: 520px;
    padding: 14px 16px 16px;
    border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
    background: #dcfce7;
    color: #14532d;
    font-size: 0.875rem;
    line-height: 1.55;
}

.chat figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.chat .tag { background: rgba(255, 255, 255, 0.6); border-color: transparent; color: #166534; }

@media (min-width: 1000px) {
    .owner-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
}

/* ---------- Safeguards ---------- */

.guards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 36px 40px;
}

.guards article { padding-top: 20px; border-top: 2px solid var(--navy-900); }
.guards .icon { width: 24px; height: 24px; color: var(--brand-strong); }
.guards h3 { margin-top: 12px; }
.guards p { margin-top: 8px; font-size: 0.9375rem; }

/* ---------- Questions ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.section-head.left { margin-bottom: 16px; }

.faq details { border-bottom: 1px solid var(--border-strong); }
.faq details:first-child { border-top: 1px solid var(--border-strong); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.faq details p { max-width: 44rem; padding: 0 0 22px; }

@media (min-width: 1000px) {
    .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
    .section-head.left { position: sticky; top: calc(var(--header-height) + 32px); }
}

/* ---------- Demo ---------- */

.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.demo-copy h2 { margin-top: 12px; }
.demo-copy > p:not(.eyebrow) { margin-top: 16px; font-size: 1.0625rem; }
.demo-mail a { color: #fdba74; font-weight: 600; }

.demo-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text-2);
    box-shadow: var(--shadow-lg);
}

.field { display: grid; gap: 6px; min-width: 0; }

.field label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.optional { font-weight: 400; color: var(--text-muted); }

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 1rem;
}

.field textarea { resize: vertical; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}

.field .btn { width: 100%; }
.field .btn:disabled { opacity: 0.6; cursor: progress; }
.form-note { margin-top: 10px; font-size: 0.8125rem; color: var(--text-muted); }
.form-note.is-sent { font-size: 0.9375rem; font-weight: 600; color: var(--success); }
.form-note.is-failed { font-size: 0.9375rem; font-weight: 600; color: var(--danger); }

/* A field for programs that fill in forms, kept away from people. */
.field.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
    .demo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px; }
    .field.wide { grid-column: 1 / -1; }
    .field .btn { width: auto; }
}

@media (min-width: 1000px) {
    .demo-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; }
}

/* ---------- Pricing ---------- */

/* A figure or a fact still to be filled in. Loud on purpose: nothing marked like this should go live. */
.todo {
    padding: 0 6px;
    border-radius: 4px;
    outline: 2px dashed #ca8a04;
    background: #fef9c3;
    color: #713f12;
}

.pricing {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.plan {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.35);
}

.plan-name {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-text);
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-top: 12px;
    color: var(--text-muted);
}

.plan-price strong { font-size: clamp(2.5rem, 6vw, 3.25rem); font-weight: 700; line-height: 1.1; }
.plan-small { display: inline-block; margin-top: 14px; padding: 6px 10px; font-size: 0.8125rem; }
.plan .ticks { margin: 24px 0 28px; }

.plan-notes { display: grid; gap: 28px; }
.plan-notes article { padding-top: 18px; border-top: 2px solid var(--navy-900); }
.plan-notes p { margin-top: 8px; font-size: 0.9375rem; }

@media (min-width: 900px) {
    .pricing { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
    .plan { padding: 40px; }
}

/* ---------- Inner pages ---------- */

.page-hero {
    padding: 56px 0;
    color: #cbd5e1;
    background:
        radial-gradient(700px 460px at 100% 0%, rgba(37, 99, 235, 0.24), transparent 70%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.page-hero h1 { max-width: 20em; margin-top: 14px; font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; }
.page-hero .lede { max-width: 40em; margin-top: 16px; }

@media (min-width: 1000px) {
    .page-hero { padding: 80px 0; }
}

.draft-note {
    margin-bottom: 32px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Running text: the about page and the legal pages. */
.prose > * { max-width: 46rem; }
.prose h2 { margin-top: 48px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose li::marker { color: var(--border-strong); }
.prose a { font-weight: 500; }

.signature { margin-top: 24px; font-weight: 600; color: var(--text); }
.signature small { display: block; font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }

.beliefs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 36px 40px;
}

.beliefs article { padding-top: 20px; border-top: 2px solid var(--navy-900); }
.beliefs p { margin-top: 8px; font-size: 0.9375rem; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-card h2 { margin-top: 18px; font-family: var(--font); font-stretch: normal; font-size: 1.125rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.contact-card p { margin-top: 8px; font-size: 0.9375rem; }
.contact-card .contact-value { font-size: 1.0625rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 18em; margin: 0 auto; }
.cta-band p { max-width: 36em; margin: 16px auto 28px; font-size: 1.0625rem; }

/* ---------- Footer ---------- */

.site-footer {
    padding: 56px 0 32px;
    background: var(--navy-950);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
}

.footer-about { grid-column: 1 / -1; }
.footer-about p { max-width: 22em; margin-top: 14px; }

.site-footer nav { display: grid; gap: 10px; align-content: start; }

.site-footer nav h2 {
    margin-bottom: 4px;
    font-family: var(--font);
    font-stretch: normal;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
    color: #64748b;
}

.site-footer nav a { color: #cbd5e1; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

@media (min-width: 800px) {
    .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
    .footer-about { grid-column: auto; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
