/* WA Desk marketing site. Same system as the SMSUG site: light-first monochrome, every grey has one job.
   Colour appears only where it means something (status pills, the reply-window dot). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/Geist-Variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Pixel"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/GeistPixel-Square.woff2") format("woff2"); }

:root {
    --bg-1: #ffffff;
    --bg-2: #f7f7f6;
    --surface: #ffffff;
    --border: #e7e7e5;
    --border-strong: #d4d4d1;
    --text-1: #111111;
    --text-2: #555553;
    --text-3: #6e6e6b;
    --inverse-bg: #111111;
    --inverse-text: #fafafa;
    --inverse-2: #a3a39f;
    --inverse-border: rgb(255 255 255 / 0.12);
    --ok: #15803d;
    --fail: #b91c1c;
    --bubble: #ededeb;
    --note: #f4f1e8;
    --shadow: 0 1px 1px rgb(0 0 0 / 0.04), 0 4px 8px rgb(0 0 0 / 0.04), 0 16px 32px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 2px 2px rgb(0 0 0 / 0.04), 0 8px 16px rgb(0 0 0 / 0.06), 0 32px 64px rgb(0 0 0 / 0.10);
    --highlight: inset 0 0 0 0 transparent;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --container: 1200px;
    --gutter: 24px;
    --section: 128px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pixel: "Geist Pixel", "Geist Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-1: #0b0b0c;
        --bg-2: #121214;
        --surface: #18181b;
        --border: rgb(255 255 255 / 0.08);
        --border-strong: rgb(255 255 255 / 0.16);
        --text-1: #f5f5f4;
        --text-2: #a8a8a3;
        --text-3: #8a8a85;
        --inverse-bg: #f5f5f4;
        --inverse-text: #0b0b0c;
        --inverse-2: #55554f;
        --inverse-border: rgb(0 0 0 / 0.12);
        --ok: #4ade80;
        --fail: #f87171;
        --bubble: #26262a;
        --note: #24221c;
        --shadow: 0 0 0 1px rgb(255 255 255 / 0.04);
        --shadow-lg: 0 0 0 1px rgb(255 255 255 / 0.06), 0 32px 64px rgb(0 0 0 / 0.5);
        --highlight: inset 0 1px 0 rgb(255 255 255 / 0.06);
    }
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    background: var(--bg-1);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.container {
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    background: var(--inverse-bg);
    color: var(--inverse-text);
    font-size: 14px;
}

.skip-link:focus { top: 12px; }

.mono-label {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
}

.pixel {
    font-family: var(--pixel);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.kbd {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.text-link {
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s var(--ease);
}

.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-1);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}

.site-header.scrolled { border-bottom-color: var(--border); }

.nav-shell {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

/* The mark follows the theme: dark tile on light pages, light tile on dark pages. */
.brand-logo { width: 28px; height: 28px; flex: none; }
.brand-logo rect { fill: var(--text-1); }
.brand-logo path { fill: none; stroke: var(--bg-1); stroke-width: 2; stroke-linejoin: round; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    font-size: 15px;
}

.nav-links a {
    padding: 6px 12px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-links a:hover { color: var(--text-1); background: var(--bg-2); }
.nav-links .nav-login { margin-left: auto; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--text-1);
    transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:active { transform: scale(0.98); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

.btn-primary { background: var(--inverse-bg); color: var(--inverse-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--inverse-bg) 82%, var(--bg-1)); }

.btn-ghost { border-color: var(--border-strong); color: var(--text-1); }
.btn-ghost:hover { background: var(--bg-2); }

.btn-invert { background: var(--inverse-text); color: var(--inverse-bg); }
.btn-invert:hover { background: color-mix(in srgb, var(--inverse-text) 85%, var(--inverse-bg)); }

.btn-outline-invert { border-color: var(--inverse-border); color: var(--inverse-text); }
.btn-outline-invert:hover { background: color-mix(in srgb, var(--inverse-text) 8%, transparent); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(42px, 5.6vw + 8px, 80px);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.04em;
    max-width: 12ch;
    text-wrap: balance;
}

.hero-sub {
    margin-top: 28px;
    max-width: 50ch;
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-2);
    text-wrap: pretty;
}

.hero-sub strong { color: var(--text-1); font-weight: 600; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 40px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-3);
}

.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 4px; height: 4px; border-radius: 1px; background: var(--text-3); }

/* Phone */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 0 72px;
}

.phone {
    width: 300px;
    padding: 10px;
    border-radius: 48px;
    background: #111111;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.phone-screen {
    height: 580px;
    border-radius: 38px;
    background: var(--bg-1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 26px 6px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.phone-notch { width: 84px; height: 24px; border-radius: 999px; background: #111111; }

.phone-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--border);
}

.phone-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--inverse-bg);
    color: var(--inverse-text);
    font-weight: 600;
    font-size: 15px;
}

.phone-sender { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.phone-meta { display: block; font-size: 11px; color: var(--text-3); line-height: 1.3; }

/* Anchored to the bottom like a real chat: if a scene is long, the oldest lines scroll off the top. */
.phone-thread {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 12px;
    background: var(--bg-2);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.phone-thread > * { flex: none; }

.thread-day {
    align-self: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 2px;
}

/* Chat bubbles: the customer on the left, the business on the right */
.bubble {
    max-width: 86%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.bubble-in {
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    background: var(--surface);
    color: var(--text-1);
    box-shadow: 0 0 0 1px var(--border);
}

.bubble-out {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: var(--inverse-bg);
    color: var(--inverse-text);
}

.bubble-buttons {
    align-self: flex-end;
    display: grid;
    gap: 4px;
    width: 72%;
    margin-top: -4px;
}

.bubble-buttons span {
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.bubble-card { display: grid; gap: 2px; width: 72%; padding: 6px 6px 10px; }
.bubble-card strong { padding: 6px 6px 0; font-weight: 600; }
.bubble-card > span:not(.card-photo) { padding: 0 6px; font-size: 13px; opacity: 0.75; }

/* Tinted from the bubble's own text colour, so it shows on both the dark and light bubble. */
.card-photo {
    display: block;
    height: 72px;
    border-radius: 11px;
    background:
        radial-gradient(circle at 30% 40%, color-mix(in srgb, currentColor 22%, transparent), transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, currentColor 16%, transparent), color-mix(in srgb, currentColor 6%, transparent));
}

.bubble-note {
    align-self: center;
    font-size: 11px;
    color: var(--text-3);
}

.float-card {
    position: absolute;
    left: max(-8%, -40px);
    bottom: -12px;
    display: grid;
    gap: 4px;
    width: 210px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow), var(--highlight);
}

.float-card strong { font-size: 17px; font-weight: 600; }

.float-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
}

.float-cost {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-family: var(--pixel);
    font-size: 20px;
}

/* Rotating hero scenes (main.js) */
.phone-thread,
.phone-head,
.float-card { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.is-swapping { opacity: 0; transform: translateY(6px); }
.phone-head.is-swapping { transform: none; }

/* Hero entrance: content is visible by default; motion is a bonus */
@media (prefers-reduced-motion: no-preference) {
    .phone-thread > *, .float-card { animation: rise 0.5s var(--ease) backwards; }
    .phone-thread > :nth-child(2) { animation-delay: 0.15s; }
    .phone-thread > :nth-child(3) { animation-delay: 0.55s; }
    .phone-thread > :nth-child(4) { animation-delay: 0.75s; }
    .phone-thread > :nth-child(5) { animation-delay: 1.1s; }
    .phone-thread > :nth-child(6) { animation-delay: 1.5s; }
    .float-card { animation-delay: 1.8s; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Who it's for ---------- */
.logos {
    padding: 40px 0 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-label {
    font-size: 14px;
    color: var(--text-3);
    text-align: center;
}

.use-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-2);
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--bg-2); }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head h2,
.row-copy h2,
.pricing-head h2,
.closing h2 {
    font-size: clamp(32px, 2.6vw + 14px, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-head p,
.row-copy p,
.pricing-head p {
    margin-top: 16px;
    color: var(--text-2);
    max-width: 58ch;
    text-wrap: pretty;
}

h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

.avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bubble);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-1);
}

.pill {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap;
}

.pill-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

.mock-muted { font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- Inbox mock ---------- */
.inbox {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow), var(--highlight);
    overflow: hidden;
}

.inbox-list { border-right: 1px solid var(--border); }

.inbox-tabs {
    display: flex;
    gap: 4px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-3);
    overflow: hidden;
}

.inbox-tabs span { padding: 4px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.inbox-tabs .is-on { background: var(--bg-2); color: var(--text-1); box-shadow: 0 0 0 1px var(--border); }
.inbox-tabs b { font-weight: 600; color: var(--text-1); }

.inbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.inbox-item:last-child { border-bottom: 0; }
.inbox-item.is-active { background: var(--bg-2); box-shadow: inset 2px 0 0 var(--text-1); }

.inbox-text { flex: 1; min-width: 0; display: grid; font-size: 14px; line-height: 1.4; }
.inbox-text strong { font-weight: 600; }
.inbox-text span { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.inbox-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-1); }

.inbox-thread { display: flex; flex-direction: column; min-width: 0; }

.inbox-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.inbox-bar > span:first-child { display: grid; line-height: 1.35; }
.inbox-bar strong { font-weight: 600; }
.inbox-bar .mock-muted { font-family: var(--mono); font-size: 12px; }
.inbox-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.inbox-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 20px;
    background: var(--bg-2);
}

.inbox-messages .bubble { max-width: 74%; }

.note {
    align-self: center;
    max-width: 80%;
    padding: 8px 12px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
    background: var(--note);
    font-size: 13px;
    color: var(--text-2);
}

.note .mono-label { font-size: 11px; margin-bottom: 2px; }

.typing { align-self: flex-end; font-size: 12px; color: var(--text-3); font-style: italic; }

.inbox-compose {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

.compose-field {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-3);
}

.compose-field b { font-family: var(--mono); color: var(--text-1); }

.window {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

.window-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.inbox-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 48px;
    font-size: 15px;
    color: var(--text-2);
}

.inbox-points strong { display: block; margin-bottom: 4px; color: var(--text-1); font-weight: 600; }

/* ---------- Features bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--highlight);
}

.tile > p:not(.bubble) { color: var(--text-2); font-size: 15px; }
.tile .bubble { margin-top: auto; max-width: 100%; }

.tile-lg { grid-row: span 2; }

.tile-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-end;
    gap: 32px;
}

.tile-wide > div { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tile-wide > div p { color: var(--text-2); font-size: 15px; }

.tile-link {
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.15s var(--ease);
    white-space: nowrap;
}

.tile-link:hover { opacity: 0.65; }

.flow {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    counter-reset: flow;
}

.flow li {
    position: relative;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg-2);
    font-size: 15px;
}

.flow li + li::before {
    content: "";
    position: absolute;
    left: 22px;
    top: -11px;
    height: 10px;
    border-left: 1px solid var(--border-strong);
}

.flow .mono-label { font-size: 11px; margin-bottom: 2px; }
.flow-branch { margin-left: 24px; }
.flow-branch + .flow-branch::before { left: -2px; }

.meter {
    display: flex;
    gap: 3px;
    height: 8px;
    margin-top: auto;
}

.meter span { border-radius: 2px; }
.meter-ok { width: 74%; background: var(--text-1); }
.meter-wait { width: 22%; background: var(--border-strong); }
.meter-fail { width: 4%; background: var(--fail); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.stats dd { font-size: 24px; line-height: 1.2; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 50%; }

.tags li {
    padding: 4px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-2);
}

.tags li:last-child { border-style: dashed; color: var(--text-3); }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--text-1);
}

.steps li { padding: 24px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--border); }

.step-n {
    font-family: var(--pixel);
    font-size: 28px;
    line-height: 1;
}

.steps h3 { margin-top: 32px; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- Product rows ---------- */
.row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
}

.row + .row { margin-top: 112px; }
.row-flip .row-copy { order: 2; }

.dev-list { margin-top: 24px; display: grid; gap: 8px; font-size: 15px; }
.dev-list li { display: flex; gap: 12px; color: var(--text-2); }
.dev-list li::before { content: "\2014"; color: var(--text-3); }

.mock {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow), var(--highlight);
}

.mock-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
}

.mock-table { font-size: 14px; font-variant-numeric: tabular-nums; }

.mock-table th {
    padding: 0 0 10px;
    text-align: left;
    font-family: var(--mono);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
}

.mock-table td { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mock-table td:nth-child(2), .mock-table th:nth-child(2) { width: 56px; text-align: center; }
.mock-table td:last-child, .mock-table th:last-child { text-align: right; }
.mock-total td { border-bottom: 0; font-weight: 600; }

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-3);
}

.timeline li { padding-top: 10px; border-top: 3px solid var(--border); }
.timeline .is-done { border-top-color: var(--text-1); color: var(--text-1); }
.timeline .is-now { border-top-color: var(--text-1); border-top-style: dashed; color: var(--text-1); font-weight: 600; }

.events { display: grid; font-size: 14px; }

.events li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.events li:last-child { border-bottom: 0; padding-bottom: 0; }
.events .mono-label { padding-top: 2px; }
.events .is-strong { color: var(--text-1); font-weight: 600; }

.code {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-1);
    overflow: hidden;
    box-shadow: var(--shadow), var(--highlight);
}

.code-panel {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
}

.c-k { color: var(--text-1); font-weight: 600; }
.c-s { color: var(--text-1); }
.c-v { color: var(--text-1); font-style: italic; }
.c-c { color: var(--text-3); }

.soon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 112px;
    padding: 24px 28px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}

.soon h3 { font-size: 17px; }
.soon p { margin-top: 4px; color: var(--text-2); font-size: 15px; }

.soon-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

/* ---------- Pricing band (inverted) ---------- */
.band {
    position: relative;
    background: var(--inverse-bg);
    color: var(--inverse-text);
    isolation: isolate;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.band .mono-label { color: var(--inverse-2); }

.pricing-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.pricing-head h2 { margin-top: 16px; max-width: 18ch; }
.pricing-head p { color: var(--inverse-2); }

.cycle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--inverse-border);
    border-radius: 999px;
}

.cycle button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--inverse-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.cycle button span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }
.cycle button[aria-pressed="true"] { background: var(--inverse-text); color: var(--inverse-bg); }

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--inverse-border);
    border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--inverse-text) 3%, transparent);
}

.plan-featured {
    border-color: color-mix(in srgb, var(--inverse-text) 40%, transparent);
    background: color-mix(in srgb, var(--inverse-text) 7%, transparent);
}

.plan-tag {
    position: absolute;
    top: 32px;
    right: 32px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--inverse-text);
    color: var(--inverse-bg);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-desc { margin-top: 8px; min-height: 3.2em; color: var(--inverse-2); font-size: 15px; line-height: 1.5; }

.plan-price {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 28px;
    line-height: 0.9;
}

.price-cur { font-size: 16px; font-weight: 500; padding-top: 6px; color: var(--inverse-2); }
/* Sized so the longest yearly price (2,990,000) still fits a three-column card. */
.plan-price .pixel { font-size: clamp(36px, 3.2vw, 48px); white-space: nowrap; }

.plan-per { margin-top: 8px; font-size: 14px; color: var(--inverse-2); }

.plan-list {
    display: grid;
    gap: 10px;
    margin: 28px 0 32px;
    padding-top: 24px;
    border-top: 1px solid var(--inverse-border);
    font-size: 15px;
}

.plan-list li { display: flex; gap: 12px; align-items: baseline; }
.plan-list li::before { content: "\2014"; color: var(--inverse-2); }

.plan .btn { margin-top: auto; }

.pricing-note {
    margin-top: 32px;
    font-size: 14px;
    color: var(--inverse-2);
    max-width: 70ch;
}

/* ---------- FAQ ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
}

.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: color 0.15s var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text-2); }

.faq summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--text-3);
    border-bottom: 1.5px solid var(--text-3);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.faq details p {
    padding: 0 40px 24px 0;
    color: var(--text-2);
    max-width: 64ch;
}

/* ---------- Closing ---------- */
.closing {
    padding: var(--section) 0;
    border-top: 1px solid var(--border);
}

.closing-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.closing h2 { font-size: clamp(40px, 4.4vw + 12px, 72px); letter-spacing: -0.04em; line-height: 1; }
.closing .hero-actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-brand p { margin-top: 14px; color: var(--text-3); max-width: 30ch; }

.footer-col h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.footer-col ul { display: grid; gap: 10px; color: var(--text-3); }
.footer-col a { transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 13px;
}

:focus-visible {
    outline: 2px solid var(--text-1);
    outline-offset: 3px;
    border-radius: 4px;
}

.band :focus-visible { outline-color: var(--inverse-text); }

/* Scroll reveal: progressive enhancement only, content is visible without it */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- Legal pages (privacy, terms, data deletion) ---------- */
.legal { padding: 72px 0 112px; }
.legal .container { max-width: 760px; }

.legal h1 {
    font-size: clamp(36px, 3vw + 16px, 56px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.legal-meta { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.legal-lead { margin-top: 24px; font-size: 19px; color: var(--text-2); }

.legal h2 {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.legal h3 { margin-top: 28px; font-size: 17px; }
.legal p, .legal ul, .legal ol, .legal table { margin-top: 14px; color: var(--text-2); }
.legal strong { color: var(--text-1); font-weight: 600; }
.legal ul { display: grid; gap: 8px; }
.legal ul li { display: flex; gap: 12px; }
.legal ul li::before { content: "\2014"; color: var(--text-3); flex: none; }
.legal ol { display: grid; gap: 10px; padding-left: 22px; list-style: decimal; }
.legal a:not(.btn) { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.legal a:not(.btn):hover { text-decoration-color: currentColor; }

.legal table { font-size: 15px; }
.legal th { padding: 0 16px 10px 0; text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); }
.legal td { padding: 12px 16px 12px 0; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal td:first-child { color: var(--text-1); font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.legal-note {
    margin-top: 32px;
    padding: 16px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
    font-size: 15px;
    color: var(--text-2);
}

/* ---------- Responsive (kept last so it wins) ---------- */
@media (max-width: 1024px) {
    :root { --section: 96px; }

    .hero-grid,
    .row,
    .faq-grid { grid-template-columns: 1fr; gap: 48px; }

    .row-flip .row-copy { order: 0; }
    .hero h1 { max-width: 13ch; }
    .float-card { left: calc(50% - 260px); }

    .inbox-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
    .steps li:nth-child(n+3) { margin-top: 40px; }

    .plans { grid-template-columns: 1fr; max-width: 560px; }
    .plan-desc { min-height: 0; }

    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-actions .btn { display: none; }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--bg-1);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-radius: 0; font-size: 17px; color: var(--text-1); }
    .nav-links a:hover { background: none; }
    .nav-links .nav-login { margin-left: 0; }
    .nav-actions { margin-left: auto; }

    .inbox { grid-template-columns: 1fr; }
    .inbox-list { border-right: 0; border-bottom: 1px solid var(--border); }
    .inbox-item:nth-child(n+5) { display: none; }

    .bento { grid-template-columns: 1fr 1fr; }
    .tile-lg { grid-column: 1 / -1; grid-row: auto; }
    .tile-wide { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
    .tags { max-width: none; justify-content: flex-start; }

    .soon { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
}

@media (max-width: 600px) {
    :root { --section: 72px; --gutter: 16px; }

    .legal { padding: 40px 0 72px; }
    .legal h2 { margin-top: 40px; }
    .legal td:first-child { white-space: normal; }
    body { font-size: 16px; }

    .hero { padding: 48px 0 32px; }
    .hero-sub { font-size: 17px; margin-top: 20px; }
    .hero-actions { margin-top: 28px; }
    .hero-actions .btn { flex: 1; }
    .trust-row { margin-top: 28px; }

    .phone { width: 280px; }
    .hero-visual { flex-direction: column; align-items: center; padding-bottom: 0; }
    .float-card { position: static; width: 280px; margin-top: 16px; }

    .use-row { gap: 8px 24px; font-size: 15px; }

    .section-head { margin-bottom: 40px; }

    .inbox-tabs span:nth-child(4) { display: none; }
    .inbox-bar { flex-direction: column; align-items: flex-start; }
    .inbox-badges { justify-content: flex-start; }
    .inbox-messages { padding: 16px; }
    .inbox-messages .bubble { max-width: 88%; }
    .inbox-compose { flex-direction: column; align-items: stretch; padding: 14px 16px; }
    .inbox-points { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }

    .bento { grid-template-columns: 1fr; }
    .tile { padding: 24px 20px; }

    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { padding: 24px 0 0; border-left: 0; margin-top: 0; }
    .steps li + li { margin-top: 24px; border-top: 1px solid var(--border); }
    .steps h3 { margin-top: 16px; }

    .row + .row, .soon { margin-top: 72px; }
    .mock { padding: 18px; }
    .code-panel { padding: 18px; font-size: 12px; }
    .timeline { font-size: 11px; }

    .pricing-head { margin-bottom: 32px; }
    .cycle { width: 100%; }
    .cycle button { flex: 1; justify-content: center; padding: 0 10px; }
    .plan { padding: 24px 20px; }
    .plan-tag { top: 24px; right: 20px; }

    .closing-inner { flex-direction: column; align-items: stretch; }
    .closing .hero-actions { flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}
