/* Stintwise website. Tokens follow the app's neutral default theme. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --card: #ffffff;
  --text: #16181d;
  --muted: #5d6470;
  --line: #e0e4ea;
  --accent: #d22630;
  --accent-text: #b81f28; /* accent used as text: AA on light surfaces */
  --on-accent: #ffffff;
  --ok: #157a39;
  --live: #157a39;
  --wash: rgba(210, 38, 48, 0.07);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --r-sm: 0.35rem;
  --r-md: 0.5rem;
  --r-lg: 0.7rem;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317;
    --surface: #15181e;
    --surface-2: #1d2027;
    --card: #1a1d23;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --line: #2c3139;
    --accent-text: #ff7a80;
    --ok: #3ecf70;
    --live: #3ecf70;
    --wash: rgba(210, 38, 48, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"],
.dark {
  --bg: #111317;
  --surface: #15181e;
  --surface-2: #1d2027;
  --card: #1a1d23;
  --text: #e8eaee;
  --muted: #9aa1ad;
  --line: #2c3139;
  --accent-text: #ff7a80;
  --ok: #3ecf70;
  --live: #3ecf70;
  --wash: rgba(210, 38, 48, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--text);
  background:
    radial-gradient(40rem 30rem at 100% 0, var(--wash), transparent 70%),
    radial-gradient(40rem 30rem at 0 100%, var(--wash), transparent 70%),
    var(--bg);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.05em 0.35em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.dark :focus-visible { outline-color: #ff7a80; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 48rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.75rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--r-md); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.brand small { font-weight: 500; color: var(--muted); }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.45rem 0.7rem; border-radius: var(--r-md); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.menu-btn { display: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

@media (max-width: 52rem) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .nav a { padding: 0.75rem; font-size: 1rem; }
  .brand small { display: none; }
}
/* Without JS the menu button does nothing, so keep the nav visible. */
.no-js .menu-btn { display: none; }
.no-js .nav { position: static; display: block; box-shadow: none; border: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.7rem 1.25rem; border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #b81f28; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:hover { transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.center .btn-row { justify-content: center; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.dark { background: #111317; color: var(--text); }
.dark.section, .hero { background-image: radial-gradient(50rem 30rem at 100% 0, rgba(210, 38, 48, 0.18), transparent 70%), radial-gradient(40rem 30rem at 0 100%, rgba(210, 38, 48, 0.1), transparent 70%); }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }

.live-dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(62, 207, 112, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 112, 0.55); } 70% { box-shadow: 0 0 0 0.5rem rgba(62, 207, 112, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 112, 0); } }

/* Cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: grid; place-items: center; background: var(--wash); color: var(--accent-text); margin-bottom: 1rem; }
.card .icon svg { width: 1.5rem; height: 1.5rem; }
.feature .benefit { font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.feature .desc { color: var(--muted); font-size: 0.97rem; }
.feature.soon { background: var(--surface-2); box-shadow: none; border-style: dashed; }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.badge { display: inline-block; white-space: nowrap; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }

/* Feature groups */
.group { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.group-head { display: grid; gap: 1.5rem 3rem; align-items: start; margin-bottom: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .group-head { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.group-head h2 { display: flex; align-items: center; gap: 0.75rem; }
.group-head h2 .icon { width: 2.5rem; height: 2.5rem; flex: none; color: var(--accent-text); }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toc a { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; background: var(--surface); }
.toc a:hover { border-color: var(--accent); }

/* Screenshots */
.shot { margin: 0; }
.shot-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.25); }
.shot-frame img { width: 100%; }
.shot figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.shot-ph { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--muted); font-weight: 600; font-size: 0.95rem; background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px); }
.shot-phone { max-width: 16rem; margin: 0 auto; }
.shot-phone .shot-frame { border-radius: 1.4rem; border-width: 6px; border-color: #2c3139; }
.shot-phone .shot-ph { aspect-ratio: 9 / 19; }
.gallery { display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .wide { grid-column: 1 / -1; }
}
.showcase { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .showcase { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }

/* Spotlights: one feature per row, picture and words side by side, alternating */
.spot { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
.spot + .spot { margin-top: clamp(3.5rem, 8vw, 6rem); }
@media (min-width: 60rem) {
  .spot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .spot.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .spot.flip > .shot { order: 2; }
}
.spot h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.spot .kicker { font-size: 0.85rem; font-weight: 700; color: var(--accent-text); margin-bottom: 0.5rem; }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.7rem; height: 0.35rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { color: var(--text); font-weight: 600; }

/* Two-column plain list of small facts */
.small-print { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.small-print h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.small-print p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 1.5rem; padding-top: 4.25rem; }
.steps > li::before { content: counter(step); position: absolute; top: 1.5rem; left: 1.5rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.doc-steps { padding-left: 0; list-style: none; counter-reset: step; margin: 0 0 1.5rem; }
.doc-steps > li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; }
.doc-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.9rem; }

/* Prose / docs */
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 3vw, 1.8rem); scroll-margin-top: 5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--r-md); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.tbd { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px dashed var(--muted); color: var(--muted); vertical-align: middle; }

/* Pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.plan li { padding: 0.45rem 0 0.45rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.25rem 0; }
.facts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; border-radius: var(--r-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Quote */
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 0 1rem; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.quote figcaption { color: var(--muted); }

/* CTA */
.cta { text-align: center; border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.7rem 0.85rem;
}
input:focus-visible, textarea:focus-visible { border-color: var(--accent); }
textarea { min-height: 9rem; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.checks label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; margin: 0; }
.checks input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.contact-grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 3rem 0 2rem; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: 2rem; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.footer-legal p { margin-bottom: 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* ===================================================================
   Editorial layer (2026-10-27): warm paper, ink, hairlines, square
   corners; Archivo headlines with an Instrument Serif italic accent,
   Inter body, JetBrains Mono labels. Red stays for the brand and the live parts.
   =================================================================== */
:root {
  --bg: #f2f1ee;
  --surface: #ebe9e4;
  --surface-2: #e4e2dc;
  --card: #f7f6f3;
  --text: #121212;
  --muted: #57554f;
  --line: #d4d1c9;
  --ink: #121212;
  --on-ink: #f2f1ee;
  --wash: transparent;
  --shadow: none;
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 3px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0e; --surface: #141415; --surface-2: #1b1b1d; --card: #141415;
    --text: #ecebe7; --muted: #9b9a95; --line: #2a2a2c; --ink: #ecebe7; --on-ink: #0d0d0e;
    --wash: transparent; --shadow: none;
  }
}
:root[data-theme="dark"], .dark {
  --bg: #0d0d0e; --surface: #141415; --surface-2: #1b1b1d; --card: #141415;
  --text: #ecebe7; --muted: #9b9a95; --line: #2a2a2c; --ink: #ecebe7; --on-ink: #0d0d0e;
  --wash: transparent; --shadow: none;
}
body { background: var(--bg); font-size: 1.0625rem; }
.dark { background: var(--bg); }
.dark.section, .hero { background-image: none; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.06; }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { color: var(--muted); }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
a:hover { text-decoration-color: var(--accent); }
code, kbd { border-radius: 0; }
.eyebrow, .kicker, .label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.kicker b, .eyebrow b { color: var(--accent-text); font-weight: 500; margin-right: 0.6em; }

/* Header: hairline bar, uppercase links divided by rules */
.site-header { background: var(--bg); backdrop-filter: none; }
.site-header .wrap { min-height: 3.25rem; }
.brand span { font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }
.nav a { border-radius: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; padding: 0.4rem 0.7rem; }
.nav a:hover { background: transparent; color: var(--text); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.icon-btn { border-radius: 0; background: transparent; }

/* Buttons: square, uppercase, ink */
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.82rem; font-weight: 700; min-height: 3rem; padding: 0.8rem 1.5rem; }
.btn:hover { transform: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }

/* Cards and frames: flat, hairline */
.card { background: transparent; box-shadow: none; border-radius: 0; }
.feature.soon { border-style: dashed; }
.shot-frame { border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.shot figcaption { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.cta { border-radius: 0; }

/* Centred hero with the product clip underneath */
.hero-center { text-align: center; }
.hero-center .lead { margin: 0 auto 2rem; max-width: 40rem; }
.hero-center .btn-row { justify-content: center; }
.hero-center .label { margin: 1.5rem 0 0; }
.hero-media { margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 64rem; }
.hero-media video, .hero-media img { width: 100%; height: auto; display: block; }

/* Plain list of facts, two columns, no bold labels */
.facts-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 52rem) { .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.facts-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }

/* Spotlight numbers */
.spot .kicker { color: var(--muted); }
.steps > li::before, .doc-steps > li::before { border-radius: 0; background: var(--ink); color: var(--on-ink); font-family: var(--mono); font-weight: 500; font-size: 0.85rem; }
.faq details { border-radius: 0; }
.plan.featured { border: 1px solid var(--text); }
.price { font-family: var(--display); letter-spacing: -0.03em; }

/* ===================================================================
   Timing layer (2026-10-27): the site borrows the look of a modern
   timing tower. Dark by default, narrow italic Archivo for labels,
   tabular mono for times, sector colours (purple = fastest, green =
   personal best, yellow = slower) and the logo's forward slant.
   =================================================================== */
:root {
  --purple: #a855f7;
  --green: #22c55e;
  --yellow: #eab308;
  --row: #15171b;
  --row-2: #191c21;
  --slant: -12deg;
}
:root:not([data-theme="light"]), .dark {
  --bg: #0b0c0e; --surface: #111317; --surface-2: #171a1f; --card: #121418;
  --text: #f1f1ef; --muted: #8e929b; --line: #24272e; --ink: #f1f1ef; --on-ink: #0b0c0e;
  --accent-text: #ff6b72; color-scheme: dark;
}
:root[data-theme="light"] { --row: #e9e7e2; --row-2: #e2e0da; }

/* Narrow italic labels, like broadcast graphics */
.eyebrow, .kicker, .label, .nav a, .btn, .shot figcaption, .tower {
  font-family: var(--display); font-stretch: 75%; font-style: italic; font-weight: 700; letter-spacing: 0.06em;
}
.eyebrow, .kicker, .label { font-size: 0.85rem; }
h1, h2 { font-style: italic; font-stretch: 100%; }
.serif { font-style: italic; }

/* Position block: the red P-number from a timing tower */
.kicker b, .eyebrow b {
  display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.6rem; padding: 0 0.4rem; margin-right: 0.7rem;
  background: var(--accent); color: #fff; font-style: italic; font-weight: 800;
  clip-path: polygon(0.35rem 0, 100% 0, calc(100% - 0.35rem) 100%, 0 100%);
}

/* Slanted buttons: the colour sits on a skewed layer behind straight text */
.btn { position: relative; isolation: isolate; background: transparent !important; border: 0 !important; font-size: 0.95rem; letter-spacing: 0.08em; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--slant)); transition: background-color 0.15s ease; }
.btn-primary { color: #fff; }
.btn-primary::before { background: var(--accent); }
.btn-primary:hover::before { background: #b81f28; }
.btn-ghost { color: var(--text); }
.btn-ghost::before { border: 1px solid var(--text); }
.btn-ghost:hover { color: var(--bg); }
.btn-ghost:hover::before { background: var(--text); }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; clip-path: polygon(0.3rem 0, 100% 0, calc(100% - 0.3rem) 100%, 0 100%); }

/* Hero: words on the left, a live timing tower on the right */
.hero-race { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .hero-race { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.hero-race .label { margin-top: 1.5rem; display: flex; gap: 0.6rem; align-items: center; }

/* The tower */
.tower { background: #0b0c0e; color: #f1f1ef; border: 1px solid #24272e; font-size: 1rem; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.tower-head { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.9rem; background: #15171b; border-bottom: 2px solid var(--accent); letter-spacing: 0.08em; }
.tower-head .flag { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--green); }
.tower-head .flag i { width: 0.6rem; height: 0.6rem; background: var(--green); display: inline-block; }
.tower ol { list-style: none; margin: 0; padding: 0; position: relative; }
.tower li { display: grid; grid-template-columns: 2.4rem 0.3rem minmax(0, 1fr) 5.2rem 5.6rem; align-items: center; height: 2.35rem; background: #15171b; border-bottom: 1px solid #0b0c0e; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.tower li:nth-child(even) { background: #191c21; }
.tower .pos { display: grid; place-items: center; height: 100%; font-weight: 800; font-style: italic; background: #22252b; }
.tower li:first-child .pos { background: var(--accent); }
.tower .team { height: 62%; }
.tower .name { padding-left: 0.65rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tower .gap, .tower .lap { font-family: var(--mono); font-style: normal; font-stretch: 100%; font-variant-numeric: tabular-nums; font-size: 0.82rem; text-align: right; padding-right: 0.8rem; letter-spacing: 0; }
.tower .gap { color: #c9ccd2; }
.tower .lap { color: #8e929b; }
.tower .lap.pb { color: var(--green); }
.tower .lap.fl { color: var(--purple); }
.tower li.up .pos { box-shadow: inset 0 -3px 0 var(--green); }
.tower li.down .pos { box-shadow: inset 0 -3px 0 var(--yellow); }
.tower-foot { display: flex; justify-content: space-between; padding: 0.55rem 0.9rem; background: #15171b; font-size: 0.85rem; color: #8e929b; }
.tower-foot b { color: var(--purple); font-weight: 700; }
@media (max-width: 30rem) { .tower li { grid-template-columns: 2.1rem 0.25rem minmax(0, 1fr) 4.6rem; } .tower .lap { display: none; } }

/* Sector bar: three segments, like the splits under a lap time */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin: 0 0 1.25rem; }
.sectors span { height: 0.4rem; transform: skewX(var(--slant)); }
.sectors .s-pb { background: var(--green); }
.sectors .s-fl { background: var(--purple); }
.sectors .s-slow { background: var(--yellow); }
.steps > li::before { content: "S" counter(step); background: var(--accent); color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; clip-path: polygon(0.3rem 0, 100% 0, calc(100% - 0.3rem) 100%, 0 100%); border-radius: 0; width: 2.6rem; }

/* Features as leaderboard rows */
.group .grid { grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: row; border-top: 1px solid var(--line); }
.group .feature { counter-increment: row; display: grid; grid-template-columns: 3rem minmax(0, 15rem) minmax(0, 1fr); gap: 0 1.25rem; align-items: baseline; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); }
.group .feature:nth-child(even) { background: color-mix(in srgb, var(--row) 45%, transparent); }
.group .feature::before { content: counter(row, decimal-leading-zero); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.1rem; color: var(--muted); text-align: center; }
.group .feature .feature-top h3 { margin: 0; font-style: italic; }
.group .feature .desc { margin: 0; }
@media (max-width: 44rem) { .group .feature { grid-template-columns: 2.5rem minmax(0, 1fr); } .group .feature .desc { grid-column: 2; margin-top: 0.3rem; } }

/* Pricing cards get a tower header */
.plan h3 { margin: -1.5rem -1.5rem 1rem; padding: 0.6rem 1.5rem; background: var(--row); border-bottom: 2px solid var(--line); font-style: italic; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.06em; }
.plan.featured h3 { border-bottom-color: var(--accent); }
.price { font-family: var(--mono); font-style: normal; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .tower li { transition: none; } }
.toc a { border-radius: 0; border: 0; position: relative; isolation: isolate; background: transparent; font-family: var(--display); font-stretch: 75%; font-style: italic; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; padding: 0.45rem 1rem; }
.toc a::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line); background: var(--row); transform: skewX(var(--slant)); }
.toc a:hover::before { border-color: var(--accent); }

/* Text panels with a tower header, so long copy never floats loose */
.spot > div:not(.shot) { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 0 1.5rem 1.5rem; }
.spot > div:not(.shot) .kicker { margin: 0 -1.5rem 1.25rem; padding: 0.6rem 1.5rem; background: var(--row); border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.spot > div:not(.shot) p:last-child { margin-bottom: 0; }

/* "Why it exists" facts as numbered tower rows */
.facts-list { counter-reset: fact; border-top: 2px solid var(--accent); column-gap: 0; }
.facts-list li { counter-increment: fact; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1rem; align-items: center; padding: 0.85rem 1rem 0.85rem 0; background: var(--row); border-bottom: 1px solid var(--bg); color: var(--text); }
.facts-list li:nth-child(even) { background: var(--row-2); }
.facts-list li::before { content: counter(fact); align-self: stretch; display: grid; place-items: center; margin: -0.85rem 0; background: #22252b; color: #f1f1ef; font-family: var(--display); font-style: italic; font-weight: 800; }
@media (min-width: 52rem) { .facts-list { column-gap: 2px; } }
:root:not([data-theme="light"]) .facts-list li, .dark .facts-list li { --row: #15171b; --row-2: #191c21; }
