/* PromptBackup website: a dark developer-tool look in the app's teal family. Inter for text, the system monospace
   only for real code and terminal output. The hero shows the mechanism (terminal → saved → found weeks later); the
   one warm colour is the search-hit highlight. */
@font-face {
    font-family: "Inter";
    src: url("assets/inter-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #051c18;           /* deep pine: the page */
    --bg-alt: #072420;       /* alternate sections */
    --surface: #0b2c27;      /* panels and boxes */
    --surface-2: #10372f;
    --line: #1c4a42;
    --line-soft: #133a33;
    --text: #e3f2ef;
    --muted: #95bdb6;
    --teal: #2bb3a3;         /* the app's teal, lifted for a dark background */
    --teal-bright: #6fe0d0;  /* links */
    --on-teal: #03201b;
    --mark: #ffe066;         /* search hits, as in the app */
    --code-bg: #03140f;
    --danger: #ff8a80;
    --pad: clamp(20px, 4vw, 40px);
    --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0;
    font: 400 17px/1.6 "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffffff; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
code {
    font: 0.88em/1.4 var(--mono);
    background: var(--code-bg);
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    padding: 0.1em 0.38em;
    color: #c7ece6;
}
h1, h2, h3 { margin: 0; color: #f4fbfa; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1rem + 1.9vw, 2.4rem); line-height: 1.12; font-weight: 720; letter-spacing: -0.022em; }
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 650; }
p { margin: 0; }
strong { color: #f4fbfa; font-weight: 600; }
mark { background: var(--mark); color: #1d1a05; border-radius: 3px; padding: 0 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line-soft); background: rgba(5, 28, 24, 0.86); backdrop-filter: blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.wordmark { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; }
.wordmark b { font-weight: 800; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 26px); font-size: 0.93rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav .nav-download { color: var(--on-teal); background: var(--teal); font-weight: 650; border-radius: 8px; padding: 7px 14px; }
.top nav .nav-download:hover { background: var(--teal-bright); color: var(--on-teal); }
.top nav .nav-admin { color: var(--teal-bright); font-weight: 600; }

/* profile icon and its menu (signed in) */
.profile { position: relative; }
.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    background: var(--surface-2);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}
.avatar:hover, .avatar[aria-expanded="true"] { background: var(--teal); color: var(--on-teal); }
.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 230px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.profile-email { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.top nav .profile-menu a, .profile-menu button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.93rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.top nav .profile-menu a:hover, .profile-menu button:hover { background: var(--surface-2); color: #ffffff; text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--teal);
    color: var(--on-teal);
    font: inherit;
    font-weight: 680;
    font-size: 1.02rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(111, 224, 208, 0.25), 0 12px 30px -12px rgba(43, 179, 163, 0.55);
}
.button:hover { background: var(--teal-bright); color: var(--on-teal); }
.button.ghost, .button.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover, .button.quiet:hover { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--teal); }
.button.danger { background: #d9534a; color: #fff; box-shadow: none; }
.button.danger:hover { background: #ef6a60; }
button:disabled { opacity: 0.55; cursor: progress; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.hero::before {
    /* faint blueprint grid, fading out from the top right */
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(111, 224, 208, 0.07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(111, 224, 208, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 75% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 {
    font-size: clamp(2.5rem, 1.4rem + 3.2vw, 3.7rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #f6fcfb;
}
.lede { margin-top: 22px; font-size: 1.14rem; line-height: 1.62; color: #c4dfda; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fineprint { margin-top: 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* terminal → "3 weeks later" → search */
.hero-visual { position: relative; }
.term { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #071d19; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #23463f; }
.term-title { font: 0.78rem var(--mono); color: var(--muted); }
.term-body { margin: 0; padding: 16px 18px 18px; font: 0.82rem/1.62 var(--mono); color: #cfe7e3; white-space: pre-wrap; }
.t-dim { color: #5f8a83; }
.t-user { color: #ffffff; }
.t-ai { color: var(--teal-bright); }
.t-code { color: #9fd8ce; }
.t-ok { color: var(--teal-bright); }
.later { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px 18%; color: var(--muted); font-size: 0.85rem; }
.later::before { content: ""; width: 2px; height: 26px; background: linear-gradient(var(--line), var(--teal)); border-radius: 2px; }
.demo {
    margin-left: 12%;
    background: #ffffff;
    color: #004d40;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(111, 224, 208, 0.25), 0 40px 80px -36px rgba(0, 0, 0, 0.85);
}
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #00796b; color: #fff; }
.demo-query { flex: 1; display: flex; align-items: center; padding: 7px 11px; border-radius: 7px; background: #fff; color: #004d40; font-size: 0.93rem; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: #004d40; }
.demo-body { padding: 4px 14px 14px; }
.result { margin-top: 10px; padding: 12px 14px; border: 1px solid #dcefec; border-left: 4px solid #00796b; border-radius: 9px; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #3f7a74; font-size: 0.78rem; }
.badge { padding: 1px 9px; border: 1px solid #b2dfdb; border-radius: 999px; background: #f0fbfa; color: #00695c; font-weight: 650; }
.result-q { margin-top: 7px; font-weight: 650; font-size: 0.95rem; line-height: 1.4; color: #004d40; }
.result-a { margin-top: 5px; color: #2f6b65; font-size: 0.88rem; line-height: 1.5; }

/* ---------------------------------------------------------------- sections */
.block { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-soft); }
.block.alt { background: var(--bg-alt); }
.block h2 { max-width: 24ch; }
.section-lede { margin-top: 12px; font-size: 1.08rem; color: var(--muted); max-width: 42em; }

/* architecture: tools → PromptBackup → disk */
.flow { display: grid; grid-template-columns: minmax(0, 1.25fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; margin-top: 44px; }
.flow-col { display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.flow-stack { display: grid; gap: 12px; align-content: center; }
.flow-head { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.flow-box { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.flow-box strong { font-size: 0.98rem; }
.flow-box span { color: var(--muted); font-size: 0.88rem; }
.flow-box em { font-style: normal; color: var(--teal-bright); font-size: 0.85rem; margin-top: 4px; }
.flow-box.main { justify-items: start; gap: 6px; padding: 22px 20px; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(43, 179, 163, 0.12), 0 24px 50px -30px rgba(43, 179, 163, 0.6); }
.flow-box.main strong { font-size: 1.15rem; }
.flow-box code { margin-top: 4px; font-size: 0.8rem; }
.flow-arrow { align-self: center; color: var(--teal); padding-inline: 6px; padding-top: 34px; }
.flow-arrow svg { width: 100%; height: 16px; }

.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 18px; }
.steps li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--teal-bright);
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 8px; color: var(--muted); }
.steps code { overflow-wrap: anywhere; }
.needs { margin-top: 36px; color: var(--muted); font-size: 0.93rem; }

/* spec sheet */
.specs-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 650; color: #f4fbfa; }
.spec dd { margin: 0; color: #bfdcd7; }

.shots { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; margin-top: 40px; }
.shot { margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.shot img { border-radius: 8px; }

.private-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.facts { margin: 0; }
.facts div { border-top: 1px solid var(--line); padding: 18px 0; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; font-size: 1.06rem; color: #f4fbfa; }
.facts dd { margin: 4px 0 0; color: var(--muted); max-width: 36em; }

.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--teal-bright);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); max-width: 42em; }
.faq details p:last-child { margin-bottom: 20px; }
.hash code { display: inline-block; word-break: break-all; font-size: 0.82rem; }

.closing { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-soft); background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(43, 179, 163, 0.16), transparent 70%), var(--bg-alt); }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.closing p { margin-top: 8px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line-soft); padding-block: 28px 40px; font-size: 0.88rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- legal pages */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal article { max-width: 74ch; }
.legal h1 { font-size: clamp(2rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; font-weight: 760; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; max-width: none; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.68; color: #cfe5e1; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 14px; }
.legal li { margin: 6px 0; }
.legal .meta { color: var(--muted); }
.back { display: inline-block; margin-top: 32px; }

/* ---------------------------------------------------------------- sign-in, download and account pages */
.app-page { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.app-page article { max-width: 30rem; }
.app-page h1 { font-size: clamp(2rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; font-weight: 780; letter-spacing: -0.025em; }
.app-page h2 { font-size: 1.15rem; margin: 36px 0 10px; max-width: none; }
.app-page p { margin-top: 14px; }
.intro { margin-top: 14px; font-size: 1.05rem; color: #c4dfda; }
.hint { color: var(--muted); font-size: 0.92rem; }
.app-page .fineprint { margin-top: 28px; }
.app-page .hash { margin-top: 6px; }
.app-page .button { margin-top: 22px; }

.google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
    padding: 13px 20px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    background: #ffffff;
    color: #1f1f1f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.google:hover { background: #f2f6f5; }
.or { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 0.9rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.field { display: block; margin-top: 18px; font-weight: 600; font-size: 0.94rem; }
.field input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 400;
    font-size: 1rem;
}
.field input:hover { border-color: #2a6158; }
.field input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
#password-hint { margin-top: 6px; }

.button.wide { display: flex; width: 100%; justify-content: center; }
.text-button {
    border: 0;
    padding: 4px 0;
    background: none;
    color: var(--teal-bright);
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}
.text-button:hover { color: #ffffff; }
#forgot { display: block; margin-top: 14px; }
.danger-text { color: var(--danger); }
.switch { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.app-page .actions .button { margin-top: 0; }

.status:empty { display: none; }
.status { margin-top: 18px; padding: 12px 14px; border-left: 4px solid var(--line); background: var(--surface); border-radius: 6px; }
.status.ok { border-left-color: var(--teal); }
.status.error { border-left-color: var(--danger); background: #2e1412; color: #ffd2cc; }
.notice { margin-top: 22px; padding: 12px 14px; border-left: 4px solid #e0b000; background: #2b2508; color: #f6e7a8; border-radius: 6px; }
.notice p { margin: 0; }
.confirm { margin-top: 20px; padding: 16px 18px; border: 1px solid #6b2a25; border-radius: 10px; background: #241311; }
.confirm p { margin: 0; }

.account-facts { margin-top: 24px; }
.account-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.account-facts dt { font-size: 1rem; }
.account-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; color: #cfe5e1; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--teal); flex: none; }
.next-steps { padding-left: 1.3em; margin: 0; color: #cfe5e1; }
.next-steps li { margin-top: 8px; }

/* ---------------------------------------------------------------- admin */
.admin-page { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.admin-page .wrap > article { max-width: none; }
.admin-page h1 { font-size: clamp(2rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; font-weight: 780; letter-spacing: -0.025em; }
.admin-page h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.admin-head .intro { margin-top: 6px; color: var(--muted); }
.filters { display: flex; align-items: center; gap: 18px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.segmented button { border: 0; border-radius: 7px; padding: 7px 14px; background: transparent; color: var(--muted); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: #ffffff; box-shadow: inset 0 0 0 1px var(--line); }
#dashboard { margin-top: 28px; transition: opacity 0.15s ease; }
#dashboard.loading { opacity: 0.55; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tiles + .tiles { margin-top: 14px; }
.tile { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tile-label { color: var(--muted); font-size: 0.88rem; }
.tile-value { margin-top: 4px; font-size: 2rem; line-height: 1.15; font-weight: 700; color: #f4fbfa; letter-spacing: -0.02em; }
.tile-note { margin-top: 2px; color: var(--muted); font-size: 0.85rem; }
.quiet-tiles .tile { background: transparent; }
.quiet-tiles .tile-value { font-size: 1.5rem; }

.card { margin-top: 14px; padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.card .hint { margin-top: 4px; }
.card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-row > .card { margin-top: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.check.small { font-size: 0.92rem; color: var(--muted); margin-top: 0; }

.chart { position: relative; margin-top: 12px; min-height: 220px; }
.chart svg { display: block; overflow: visible; }
.chart svg:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }
.chart .grid { stroke: #183f38; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: #26a596; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: #26a596; fill-opacity: 0.1; }
.chart .dot { fill: #26a596; stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: #26a596; }
.chart .bar.hot { fill: #4cc3b3; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.tip {
    position: absolute;
    transform: translateX(-50%);
    display: grid;
    gap: 1px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #031512;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    white-space: nowrap;
    font-size: 0.85rem;
}
.tip strong { color: #ffffff; }
.tip span { color: var(--muted); }
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
.table-view .data-table { margin-top: 8px; }

.funnel { display: grid; gap: 12px; margin-top: 16px; }
.f-row { display: grid; grid-template-columns: 13em minmax(0, 1fr); align-items: center; gap: 16px; }
.f-name { color: #d5ebe7; font-size: 0.95rem; }
.f-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f-bar { height: 18px; min-width: 2px; border-radius: 0 4px 4px 0; background: #26a596; flex: none; max-width: calc(100% - 9em); }
.f-value { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-value small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.92rem; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.82rem; padding: 6px 10px 8px 0; border-bottom: 1px solid var(--line); }
.data-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); color: #d5ebe7; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 24px; }
.data-table .num:last-child { padding-right: 0; }
.table-scroll { overflow-x: auto; }
.table-scroll .data-table { min-width: 760px; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1020px) {
    .hero-grid, .specs-grid, .private-grid { grid-template-columns: minmax(0, 1fr); }
    .flow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .flow-arrow { justify-self: center; padding: 6px 0; transform: rotate(90deg); width: 40px; }
    .flow-col { grid-template-rows: auto; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps.three { grid-template-columns: minmax(0, 1fr); }
    .shots { grid-template-columns: minmax(0, 1fr); }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .top nav > a:not(.nav-download):not(.nav-account):not(.nav-admin) { display: none; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .spec div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .foot-row { flex-direction: column; }
    .demo, .later { margin-left: 0; }
    .term-body { font-size: 0.76rem; }
    .f-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
    .button, .top nav a, .google { transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
    .caret { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }
