/* Tourelle site (ART-7809). One stylesheet for every page, in layers:
   tokens → base → layout → components → page sections → product mockups → responsive.
   Pages are built from the shared layout and component classes; reach for a new
   page-specific rule only when no component fits. No horizontal rules: whitespace separates. */

/* ========== tokens ========== */
:root {
    --bg:            #FFFFFF;
    --surface:       #FFFFFF;
    --surface-muted: #F6F6F4;
    --paper-deep:    #EDEFF3;
    --ink:           #1C1E21;
    --ink-soft:      #63676E;
    --ink-faint:     #DADDE2;
    --line:          #E2E5E9;
    --highlight:     rgba(201, 212, 240, .55);
    --tint:          #BAD4FF;
    --dusty:         #8D98B5;   /* the footer wordmark */   /* a section's page colour: the highlighter's blue, brighter */
    --primary-tint:  rgba(37,99,235,.10);
    --primary-dark:  #1D4ED8;
    --white:         #FFFFFF;

    --font-display: 'Season Serif', Georgia, serif;
    --font-body:    'Saans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    /* the product mockups keep the app's own face */
    --font-ui:      'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* the type scale: every piece of page text uses one of these six */
    --fs-label: .78rem;
    --fs-small: .95rem;
    --fs-body:  1.25rem;
    --fs-h3:    1.5rem;
    --fs-h2:   clamp(2rem, 3.6vw, 2.9rem);
    --fs-h1:   clamp(2.5rem, 5.2vw, 4.25rem);

    --gutter:    40px;
    --nav-h:     4.5rem;
    --section-y: clamp(6rem, 12vw, 10rem);
    --intro-gap: clamp(3rem, 6vw, 5rem);   /* intro block → the content under it */
    --grid-gap:  clamp(1.25rem, 2.5vw, 2rem);
    --card-pad:  clamp(1.4rem, 2.4vw, 2rem);
    --measure:   44rem;                    /* readable line length */

    --radius:    18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(28,30,33,.05), 0 20px 54px -26px rgba(28,30,33,.30);
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* Geist Pixel Square — Vercel, SIL OFL 1.1 (see GeistPixel-OFL.txt). Kept out of
   fonts/fonts-all.css, which other sites copy unchanged so its SRI hash holds. */
@font-face {
    font-family: 'Geist Pixel';
    src: url('GeistPixel-Square.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Displaay trial cuts, shipped for v1 while the site is internal. The trial license
   doesn't cover a public site: swap in licensed files before it gets real traffic. */
/* Season is declared at 400 only, so a bold request still draws it regular */
@font-face {
    font-family: 'Season Serif';
    src: url('season-trial.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Saans';
    src: url('saans-trial.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
/* medium only for small emphasis (mention pills, the window's task title); page text stays regular */
@font-face {
    font-family: 'Saans';
    src: url('saans-medium-trial.woff2') format('woff2');
    font-weight: 500 900;
    font-display: swap;
}

/* Season's serif axis at half: SERF runs 0 (sans) to 100 (full serif) */
.wordmark, .footer-mark, .h1, .h2, .h3, .plan-name, .plan-price span, .step h3, .legal-title, .legal h2 {
    font-variation-settings: "SERF" 50;
}

/* ========== base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; height: 100%; -webkit-text-size-adjust: 100%; font-synthesis: none; }

/* the page colour, registered so it can fade: a section marked data-tint turns the whole
   page that colour while it fills the screen (see script.js), after instrument.com */
@property --page-bg { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
body[data-tint="blue"] { --page-bg: var(--tint); }

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.45;
    color: var(--ink);
    background: var(--page-bg);
    transition: --page-bg .35s ease-in-out;
    min-height: 100%;
    display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
/* no one-word last lines in running text; short intro paragraphs balance their lines like headings */
p, li, summary { text-wrap: pretty; }
.lede { text-wrap: balance; }
img { display: block; max-width: 100%; }
:target, [id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.015em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1;  letter-spacing: -.01em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.muted { color: var(--ink-soft); }
.strong { color: var(--ink); }
.eyebrow {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
}
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-faint); transition: text-decoration-color .18s; }
.link:hover { text-decoration-color: var(--ink); }
.highlight { padding: 0 .2em; color: var(--ink); background: linear-gradient(transparent 55%, var(--highlight) 55%); }

/* ========== layout ========== */
.container { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

/* vertical rhythm: children of a stack get --stack between them */
.stack > * + * { margin-top: var(--stack, 1rem); }
.stack--lg { --stack: 1.5rem; }

/* the heading block that opens a section; centred by default. Wide enough for a one-line
   heading, with its paragraphs held to a readable measure */
.intro { max-width: 64rem; margin: 0 auto var(--intro-gap); text-align: center; }
.intro > .lede { max-width: var(--measure); margin-inline: auto; }
.intro--left > .lede { margin-inline: 0; }
.intro > * + * { margin-top: 1.1rem; }
.intro > .btn-row { margin-top: 2rem; }
.intro .eyebrow { justify-content: center; }
.intro--left { margin-left: 0; text-align: left; }
.intro--left .eyebrow { justify-content: flex-start; }
.intro:last-child { margin-bottom: 0; }

/* equal columns; --cols collapses at the responsive breakpoints */
.grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }
.grid--right { max-width: 52rem; margin-left: auto; }   /* sits under its intro, pushed to the right half */
.grid--wide-gap { column-gap: clamp(2.5rem, 6vw, 6rem); row-gap: clamp(3rem, 5vw, 4.5rem); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.intro .btn-row { justify-content: center; }
.intro--left .btn-row { justify-content: flex-start; }

/* ========== components ========== */

/* buttons: a black pill after corner.inc's "download now"; the inset top highlight makes it
   read as raised. */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-size: var(--fs-small); line-height: 30px;
    padding: 3px 16px;
    border: 1px solid #000; border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-primary { background: #000; color: var(--white); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: #1c1c1c; transform: translateY(-1px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.45); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-brand { gap: .55rem; }
.btn-brand img { width: 16px; height: 16px; }
/* a square button holding only an icon; the check shows for a moment after a copy */
.btn-icon { width: 38px; padding: 0; }
.btn-icon svg { width: 17px; height: 17px; }
.btn-icon .icon-check, .btn-icon.is-copied .icon-copy { display: none; }
.btn-icon.is-copied .icon-check { display: block; }
.btn.is-disabled, .btn.is-disabled:hover { cursor: default; color: var(--ink-soft); border-color: var(--line); transform: none; }

.pill {
    display: inline-flex; padding: 1px 9px; border-radius: 999px;
    background: var(--primary-tint); color: var(--primary-dark);
    font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase;
}
.trust-line { display: flex; align-items: center; gap: .5rem; }
.trust-line svg { width: 1.1em; height: 1.1em; flex: none; }
.intro .trust-line { justify-content: center; }
.intro--left .trust-line { justify-content: flex-start; }

.card { padding: var(--card-pad); border-radius: var(--radius-sm); background: var(--surface-muted); }
.card > * + * { margin-top: .7rem; }
.card p { line-height: 1.35; }
.card--outline { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.card--featured { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }

.fact-icon { display: block; width: 34px; height: 34px; margin-bottom: 1.1rem; }
.fact h3 { font-size: var(--fs-body); font-weight: 400; color: var(--ink); }
.fact p { margin-top: .45rem; font-size: var(--fs-small); }

.checklist { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; }
.checklist li::before { content: "\2713"; color: var(--ink); }

.quotes { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.quotes li { padding: .8rem 1rem; border-radius: 10px; background: var(--surface); }
.card--featured .quotes li, .card--outline .quotes li { background: var(--surface-muted); }

.faq { display: flex; flex-direction: column; gap: .75rem; max-width: var(--measure); margin: 0 auto; text-align: left; }
.faq-item { border-radius: var(--radius-sm); background: var(--surface-muted); }
.faq-item summary {
    display: flex; justify-content: space-between; gap: 1.5rem;
    padding: 1.3rem 1.5rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-soft); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.5rem 1.4rem; }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.logo-strip img { width: 34px; height: 34px; object-fit: contain; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.25rem; align-items: center; }
.flow-arrow { font-size: var(--fs-h3); color: var(--ink-soft); text-align: center; }

/* feature cards: a tag, a title and a line, all the same height in a row */
.feature-card { display: flex; flex-direction: column; }
.feature-card .eyebrow { margin-bottom: auto; padding-bottom: 2.5rem; }
.feature-group-title { margin-bottom: 1.25rem; }
.grid + .feature-group-title { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* a left-aligned heading over a row of cards that scrolls sideways to the page edge, after town.com */
.rail {
    display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    /* the row starts one card in from the heading, and that space stays empty: cards clip at it */
    --rail-offset: calc(19rem + .75rem);
    margin-left: var(--rail-offset);
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 19rem; min-height: 22rem; scroll-snap-align: start; }

/* integrations: square logo tiles that fill the row, under each group's heading */
.tile-grid { display: grid; gap: .75rem; grid-template-columns: repeat(var(--tiles, 6), minmax(0, 1fr)); }
.tile {
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
    padding: 1rem; border-radius: var(--radius-sm); background: var(--surface-muted);
    font-size: var(--fs-small); text-align: center;
}
.tile img { width: 40px; height: 40px; object-fit: contain; }
.tile-group + .tile-group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.tile-group-head { margin-bottom: 1.5rem; }
.tile-group-head > * + * { margin-top: .5rem; }

/* ========== nav ========== */
.nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    /* the page colour itself: the page's background is drawn on the canvas, which the blur
       never sees, so a see-through nav came out paler than the tinted page */
    background: var(--page-bg);
    backdrop-filter: saturate(1.5) blur(14px);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
}
/* three columns so the page links sit at the true centre whatever the sides' widths */
.nav-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 100%; }
.wordmark { justify-self: start; font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: -.01em; }
.nav-center { display: flex; align-items: center; gap: 3rem; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 1.4rem; }
/* the nav's links and its button share one size, a step above small */
.nav-link, .nav-right .btn { font-size: 1.0625rem; }
.nav-link { color: var(--ink); transition: color .18s; }
.nav-link:hover { color: var(--ink-soft); }

/* ========== footer ========== */
.footer { flex-shrink: 0; padding: var(--section-y) 0 .3rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand > * + * { margin-top: 1rem; }
.footer-mission { max-width: 24rem; color: var(--ink-soft); }
.footer-brand > .trust-line { margin-top: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col h3 { margin-bottom: .35rem; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.footer-col a { font-size: var(--fs-small); transition: color .18s; }
.footer-col a:hover { color: var(--ink-soft); }
.footer-copyright { margin-top: 4.5rem; font-size: var(--fs-small); color: var(--ink-soft); }
/* sized to the footer's width: "tourelle" set at 1px is ~3.05px wide in Season at SERF 50.
   overflow: hidden clips the font's descent area, which hangs below the tight line box and adds blank page */
.footer-mark-wrap { container-type: inline-size; margin-top: 1rem; overflow: hidden; }
.footer-mark {
    display: block; font-family: var(--font-display); font-weight: 400;
    font-size: calc(100cqw / 3.06); line-height: .75; letter-spacing: -.02em;
    white-space: nowrap; color: var(--dusty);
}

/* ========== page sections ========== */

/* home hero: a full first screen, centred */
.hero { padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 9vw, 8rem); }
.hero .intro { max-width: 46rem; margin-bottom: 0; }
.hero .h1 { max-width: none; }
.hero .intro > .hero-note { margin-top: 1.75rem; }
.hero .btn-row { margin-top: 2rem; }

/* inner page header: top left of the page */
.page-head { padding: clamp(5rem, 10vw, 8rem) 0 calc(var(--section-y) * .55); }
.page-head .intro { max-width: 52rem; margin: 0; text-align: left; }
.page-head .eyebrow { justify-content: flex-start; }
.page-head + .section { padding-top: 0; }


.plans { max-width: 60rem; }
/* each card spans the same five rows (name, price, blurb, button, checklist) through subgrid,
   so a card missing a price or a button still lines its blurb and checks up with the other */
.plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; justify-items: start; align-content: start; }
.plan > * + * { margin-top: 0; }
.plan-name { grid-row: 1; display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); }
.plan-price { grid-row: 2; margin-top: 1.2rem; color: var(--ink-soft); }
.plan-price span { margin-right: .2rem; font-family: var(--font-display); font-size: 3.25rem; line-height: 1; color: var(--ink); }
.plan-blurb { grid-row: 3; margin-top: 1rem; }
.plan .btn { grid-row: 4; margin-top: 1.6rem; }
.plan .checklist { grid-row: 5; margin-top: 2rem; }
/* no price: the blurb moves up under the name, taking the price row too; the checks stay aligned */
.plan--no-price .plan-blurb { grid-row: 2 / span 2; }

.flow .card { text-align: center; }

/* ========== home showcase ==========
   The product window floating over a painting, after polarbrowser.com. The window is laid
   out at app scale and enlarged whole with zoom; its text is all Saans, the site's body face. */
.showcase { padding-bottom: var(--section-y); }
.showcase-frame {
    --frame-pad-x: clamp(1rem, 3vw, 2.75rem);
    max-width: 70rem; margin: 0 auto;
    display: grid; place-items: center; overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.5rem) var(--frame-pad-x);
    border-radius: var(--radius);
    background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url('showcase-gauguin.jpg') center / cover no-repeat, var(--paper-deep);
}
.app-window {
    --window-zoom: 1.25;
    zoom: var(--window-zoom);
    width: 820px; max-width: calc((min(100vw - 2 * var(--gutter), 70rem) - 2 * var(--frame-pad-x)) / var(--window-zoom));
    border-radius: 12px; overflow: hidden;
    /* after Dia: the bar's colour wraps the whole window, and the page sits inset in it */
    padding: 0 6px 6px;
    background: var(--paper-deep);
    box-shadow: 0 34px 80px -34px rgba(10, 22, 48, .6);
    font-family: var(--font-body); text-align: left;
}
/* two classes deep, to win over the mockup rules that set Geist Pixel or Mono */
.showcase .app-window * { font-family: inherit; }
.hero-app-body { display: flex; background: var(--surface); }
.app-window .hero-app-bar { border-bottom: 0; padding: 0 6px; }
.app-window .hero-app-url { font-size: 10px; }
.app-window .app-nav .app-ic { stroke-width: 1.5; }
.app-window .hero-app-body { border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(28,30,33,.06); }

/* Sidebar after the real app's: #F9F9F9 rail, #EDEFF3 active row, children indented
   under a hairline. Scaled down, since the window stands in for a desktop screen. */
.app-nav {
    flex: 0 0 152px;
    padding: 10px 8px;
    background: #f9f9f9;
    border-right: 1px solid #e7e7e7;
    display: flex; flex-direction: column; gap: 1px;
}

.app-nav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 5px 8px; border-radius: 5px;
    font-size: 10.5px; line-height: 1.3; color: #1c1c1c;
}
.app-nav-item.is-active { background: #edeff3; }

.app-nav-kids {
    display: flex; flex-direction: column; gap: 1px;
    margin: 2px 0 7px 15px; padding-left: 9px;
    border-left: 1px solid #d8d8d8;
}
.app-nav-kids span {
    padding: 3px 7px; border-radius: 4px;
    font-size: 9.5px; line-height: 1.35; color: #57534e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.app-main {
    flex: 1; min-width: 0; display: flex; gap: 12px;
    padding: 13px 14px; background: var(--surface);
}

/* the one decision that needs a person, with its context already assembled */
.app-doc { flex: 1; min-width: 0; }
/* after shadcn's Alert, in amber so it reads as a warning; the icon is amber-600 for 3:1 on amber-50 */
.doc-alert {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 10px; border-radius: 7px;
    border: 1px solid #fbbf24; background: #fffbeb;
    font-size: 10px; color: #1c1c1c;
}
.doc-alert-ic { width: 12px; height: 12px; flex-shrink: 0; color: #d97706; }
.doc-alert-t { font-weight: 500; }
.doc-alert-sep { font-size: 12px; line-height: 1; color: #6b7280; }
.doc-title { margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.25; color: #1c1c1c; letter-spacing: -.01em; }
.doc-why { margin-top: 5px; font-size: 10.5px; line-height: 1.5; color: #6b7280; }

.who-ic { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-left: 2px; }
.who-sara   { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
.who-dan    { color: #9333ea; background: #f3e8ff; border-color: #e9d5ff; }
.who-priya  { color: #c2410c; background: #ffedd5; border-color: #fed7aa; }
.who-marcus { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.who-claude { color: #57534e; background: #f5f5f4; border-color: #e7e5e4; }

.doc-hist { margin-top: 14px; }
/* newest first, on a stepper rail — the live dot marks the most recent change */
.tl { position: relative; }
.tl-row {
    position: relative; display: flex; align-items: baseline; gap: 6px;
    padding: 10px 0 10px 15px; font-size: 10px; line-height: 1.45;
}
.tl-row::before {
    content: ""; position: absolute; left: 3px; top: 0; bottom: 0;
    width: 1px; background: #e7e7e7;
}
/* the rail runs between the first and last node rather than past them */
.tl-row:first-child::before { top: 17px; }
.tl-row:last-child::before { bottom: auto; height: 17px; }
/* centred on the first line (10px padding + half of a 14.5px line), however long the item runs */
.tl-node {
    position: absolute; left: 1px; top: 15px;
    width: 5px; height: 5px; border-radius: 50%;
    background: #fff; border: 1px solid #cfd4da;
}
/* emerald-500, no halo — a filled dot already reads louder than the hollow ones */
.tl-row.is-latest .tl-node { background: #10b981; border-color: #10b981; }
.ev-ic { width: 10px; height: 10px; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: #57534e; }
.ev-line { color: #6b7280; }
.ev-sum { font-size: 10px; line-height: 1.5; color: #1c1c1c; }
.ev-sum .who { vertical-align: baseline; }
.ev-line code {
    font-family: var(--font-mono); font-size: 9px;
    background: #f3f3f2; border-radius: 3px; padding: 0 3px; color: #57534e;
}
.ev-when { flex-shrink: 0; font-family: var(--font-mono); font-size: 8.5px; color: #9ca3af; }


/* ========== install steps and product mockups ========== */
.hero-app-bar {
    display: flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}
.hero-app-dot { width: 9px; height: 9px; border-radius: 50%; background: #cfd4da; }
.hero-app-url {
    margin-left: 10px; padding: 2px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    font-family: 'Geist Pixel', var(--font-mono);
    font-size: .8rem; line-height: 1.4; color: var(--ink-soft);
}
.app-ic { width: 12px; height: 12px; flex-shrink: 0; color: #57534e; }

/* mention pills: the app's own .who rule (apps/tourelle/app/style.css), at the window's scale */
.who {
    padding: 0 6px; margin-right: 1px; border-radius: 999px; border: 1px solid;
    font-size: 9.5px; font-weight: 500; white-space: nowrap; vertical-align: middle;
}

/* ---------- how setup works ----------
   The visual sticks while the steps scroll past it; script.js sets data-step on it to
   the step in the middle of the screen. Text and windows are hero-scale, not to be read. */
.steps { padding: clamp(3rem, 8vw, 7rem) 0 clamp(6rem, 12vw, 11rem); }
.steps-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}
.steps-visual {
    position: sticky; top: max(calc(var(--nav-h) + 1rem), calc(50vh - 14rem + var(--nav-h) / 2));
    align-self: start;
}
.steps-stage {
    font-family: var(--font-body);
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--radius);
    /* Monet's Cliff Walk at Pourville (1882, public domain), tinted like the home painting */
    background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url('steps-art.jpg') center / cover no-repeat, var(--paper-deep);
}

.sv-win {
    position: absolute; left: 9%; right: 9%; top: 10%; bottom: 10%;
    display: flex; flex-direction: column;
    border-radius: 12px; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 34px 80px -34px rgba(10, 22, 48, .6);
    transition: opacity .45s var(--ease), visibility .45s, transform .45s var(--ease);
}
/* the step mockups are all Saans, like the home window: two classes deep to win over the
   rules that set Geist Pixel or Mono */
.steps .steps-stage * { font-family: inherit; }
/* step 4's browser, after Dia like the home window: the bar's colour wraps the window */
.sv-page { padding: 0 5px 5px; background: var(--paper-deep); border: 0; }
.sv-page .hero-app-bar { border-bottom: 0; padding: 0 5px; }
.sv-page .hero-app-url { font-size: 9px; }
.sv-page .sv-today { border-radius: 7px; background: var(--surface); box-shadow: 0 0 0 1px rgba(28,30,33,.06); }
.sv-side .app-ic { stroke-width: 1.5; }

/* chat, steps 1-3: the thread is bottom-anchored, so new messages push old ones up */
.sv-thread {
    flex: 1; min-height: 0; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
    padding: 14px 16px;
    font-size: 11.5px; line-height: 1.5; color: var(--ink);
}
.sv-msg { max-width: 86%; animation: sv-in .4s var(--ease) both; }
.sv-me {
    align-self: flex-end; padding: 7px 11px;
    background: var(--paper-deep); border-radius: 12px 12px 3px 12px;
}
.sv-ai { align-self: flex-start; }
.sv-picks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sv-pick {
    padding: 2px 9px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--ink-soft); font-size: 10.5px;
}
.sv-pick.is-on { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.sv-build { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.sv-bar { width: 70px; height: 4px; border-radius: 2px; background: var(--paper-deep); overflow: hidden; }
.sv-bar span { display: block; height: 100%; width: 60%; background: #10b981; border-radius: 2px; }

.sv-compose {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0 12px 12px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 11px; color: #9ca3af;
}
.sv-tool {
    padding: 1px 8px; border-radius: 999px;
    font-family: 'Geist Pixel', var(--font-mono); font-size: 10px;
    color: var(--ink); background: var(--paper-deep);
    transition: opacity .45s var(--ease), visibility .45s;
}

.sv-dialog {
    position: absolute; left: 50%; top: 50%; width: 74%;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 0 0 999px rgba(28, 30, 33, .28), 0 24px 50px -20px rgba(10, 22, 48, .5);
    font-size: 11px;
    transition: opacity .35s var(--ease), visibility .35s;
}
.sv-dialog-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.sv-field-k { color: var(--ink-soft); font-size: 10px; margin-top: 4px; }
.sv-field {
    padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px;
    font-family: var(--font-mono); font-size: 10.5px;
}
.sv-dialog-btn {
    align-self: flex-end; margin-top: 10px; padding: 3px 12px;
    border-radius: 999px; background: #000; color: #fff; font-weight: 600; font-size: 10.5px;
}

/* the finished page, step 4: the logged-in Today page, in a browser and on a phone.
   Colors and layout follow apps/tourelle/app/style.css, scaled down. */
.sv-page { left: 6%; right: 26%; }
.sv-today { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.sv-side {
    flex: 0 0 27%; display: flex; flex-direction: column; gap: 1px;
    padding: 12px 8px; background: #f9f9f9; border-right: 1px solid #e7e7e7;
}
.sv-nav {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 6px; border-radius: 5px; font-size: 9.5px; color: #1c1c1c;
}
.sv-nav.is-active { background: #edeff3; font-weight: 500; }
.sv-nav .app-ic { width: 11px; height: 11px; }
.sv-count { margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; color: #9ca3af; }
.sv-main { flex: 1; min-width: 0; padding: 12px 14px; }
.sv-ooo, .sv-row {
    display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
    padding: 6px 9px; border-radius: 5px; font-size: 9.5px; white-space: nowrap;
}
.sv-ooo { gap: 4px; color: #374151; background: #fff; border: 1px solid #e7e7e7; }
.sv-row { background: #f6f5f3; }
.sv-when { flex: 0 0 70px; font-weight: 600; color: #57534e; }
.sv-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #374151; }
.sv-t.is-strong { color: #1c1c1c; }
.sv-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #6b7280; }
.sv-dot.s-blocking { background: #dc2626; }
.sv-dot.s-in_progress { background: #facc15; }
.sv-today .who, .sv-phone .who { font-size: inherit; line-height: 1.35; padding: 0 4px; }
.sv-c1 { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
.sv-c2 { color: #9333ea; background: #f3e8ff; border-color: #e9d5ff; }
.sv-c3 { color: #0f766e; background: #ccfbf1; border-color: #99f6e4; }
.sv-c4 { color: #c2410c; background: #ffedd5; border-color: #fed7aa; }
.sv-c5 { color: #be185d; background: #fce7f3; border-color: #fbcfe8; }

.sv-phone {
    position: absolute; right: 5%; bottom: 6%; height: 80%; aspect-ratio: 9 / 18;
    display: flex; flex-direction: column;
    padding: 0 7px; overflow: hidden;
    border-radius: 22px; background: var(--surface);
    border: 3px solid #1c1e21;
    box-shadow: 0 30px 60px -26px rgba(10, 22, 48, .7);
    transition: opacity .45s var(--ease) .12s, visibility .45s .12s, transform .45s var(--ease) .12s;
}
.sv-topbar {
    display: flex; align-items: center; gap: 6px;
    margin: 0 -7px 8px; padding: 14px 9px 7px; color: #57534e;
}
.sv-topbar svg { width: 12px; height: 12px; }
.sv-mark { font-family: 'Geist Pixel', var(--font-mono); font-size: 11px; line-height: 1; color: #5b92e9; }
.sv-ttitle { font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: #1c1c1c; }
.sv-prose { margin-top: 8px; font-size: 9px; line-height: 1.55; color: #374151; }
.sv-sec {
    margin-top: 10px; padding-top: 8px; border-top: 1px solid #e7e7e7;
    font-size: 8.5px; font-weight: 600; color: #6b7280;
}
/* the app's activity timeline (.atl): newest first, a hairline through the nodes */
.sv-tl-row { position: relative; display: flex; gap: 6px; padding: 7px 0 7px 13px; }
.sv-tl-row::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: #e7e7e7; }
.sv-tl-row:first-child::before { top: 12px; }
.sv-tl-row:last-child::before { bottom: auto; height: 12px; }
.sv-tl-node {
    position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%;
    background: #fff; border: 1.5px solid #9ca3af;
}
.sv-tl-row.is-latest .sv-tl-node { background: #10b981; border-color: #10b981; }
.sv-ic { width: 10px; height: 10px; flex: none; margin-top: 1px; }
.sv-tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 8.5px; line-height: 1.45; }
.sv-tl-title { font-weight: 500; color: #1c1c1c; }
.sv-quote {
    margin-top: 3px; padding-left: 6px; border-left: 2px solid #e7e7e7;
    font-style: italic; color: #6b7280;
}
.sv-act-when { font-family: var(--font-mono); font-size: 7.5px; color: #9ca3af; padding-top: 1px; }
.sv-go {
    margin: auto 0 8px; padding: 6px 0; text-align: center;
    border-radius: 999px; background: #047857; color: #fff; font-size: 9px; font-weight: 600;
}

/* what each step shows: .from-N appears at step N and stays; .only-2 is the dialog */
.steps-visual[data-step="1"] :is(.from-2, .from-3, .from-4),
.steps-visual[data-step="2"] :is(.from-3, .from-4),
.steps-visual[data-step="3"] .from-4,
.steps-visual:not([data-step="2"]) .only-2 { opacity: 0; visibility: hidden; }
.steps-visual:is([data-step="1"], [data-step="2"]) .sv-thread .from-3 { display: none; }
.steps-visual[data-step="4"] .sv-chat { opacity: 0; visibility: hidden; transform: scale(.97); }
.steps-visual:not([data-step="4"]) :is(.sv-page, .sv-phone) { transform: translateY(14px); }

@keyframes sv-in { from { opacity: 0; transform: translateY(8px); } }

.steps-list { list-style: none; }
.step {
    min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
    opacity: .35; transition: opacity .35s var(--ease);
}
.step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 12vh; }
.step:last-child { min-height: 50vh; justify-content: flex-end; padding-bottom: 12vh; }
.step.is-active { opacity: 1; }
.step-n {
    display: inline-grid; place-items: center; width: 28px; height: 28px;
    border-radius: 50%; background: #000; color: #fff;
    font-size: var(--fs-small); font-weight: 700;
}
.step h3 { margin-top: .9rem; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; }
.step p { margin-top: .5rem; max-width: 26rem; }

/* ---------- install prompt (step 1 of How setup works) ---------- */
.install {
    position: relative; margin-top: .9rem; text-align: left;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.install-prompt {
    margin: 0; padding: 1.25rem; padding-right: 6rem;
    font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.6; color: var(--ink);
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.install-copy { position: absolute; top: .75rem; right: .75rem; }
.install-prompt a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal pages ---------- */
.legal { padding: 4.5rem 0 5.5rem; }
.legal-inner { max-width: 680px; }
.legal-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); letter-spacing: -.01em; line-height: 1.05; }
.legal-updated { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .04em; color: var(--ink-soft); margin: .7rem 0 2.2rem; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -.01em; margin: 2.1rem 0 .6rem; }
.legal p { margin-bottom: .9rem; }
.legal-link { color: var(--primary); font-weight: 500; }
.legal-link:hover { color: var(--primary-dark); }

/* ========== responsive ========== */
/* one column: the visual pins under the nav and the steps scroll up beneath it */
@media (max-width: 860px) {
    .steps-grid { grid-template-columns: 1fr; gap: 0; }
    .steps-visual { top: var(--nav-h); z-index: 1; padding-top: 8px; background: var(--bg); }
    /* At most half the screen tall, so the steps keep room to scroll. --stage-zoom draws the
       mockups at desktop size and shrinks them whole; zoom scales vh, hence the division. */
    .steps-stage {
        zoom: var(--stage-zoom, 1); margin: 0 auto;
        width: min(100%, calc(50vh * 4 / 3 / var(--stage-zoom, 1)));
        border-radius: calc(var(--radius) / var(--stage-zoom, 1));
    }
    .step, .step:first-child, .step:last-child { min-height: 42vh; justify-content: center; padding: 0; }
}
@media (max-width: 860px) and (max-height: 600px) {
    .steps-stage { --stage-zoom: .5; }
}
@media (max-width: 1200px) {
    .app-window { --window-zoom: 1.1; }
}
@media (max-width: 1000px) {
    .app-window { --window-zoom: .9; }
    .grid--4 { --cols: 2; }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .nav-center { display: none; }
    .nav-container { grid-template-columns: 1fr auto; }
    .split { grid-template-columns: 1fr; }
    .rail { --rail-offset: 0px; }
    .tile-grid { --tiles: 4; }
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 760px) {
    .tile-grid { --tiles: 3; }
    .app-window { --window-zoom: .6; }
    .app-nav { display: none; }
    .grid { --cols: 1; }
}
@media (max-width: 560px) {
    :root { --gutter: 18px; --fs-body: 1.125rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .tile-grid { --tiles: 2; }
    .rail > .card { flex-basis: 16rem; min-height: 19rem; }
    .nav-link { display: none; }
    .wordmark { font-size: 1.7rem; }
    .nav .btn { padding: 3px 12px; font-size: var(--fs-label); line-height: 26px; }
    .install-prompt { padding-right: 1.25rem; padding-top: 3.5rem; }
    .steps-stage { --stage-zoom: .6; }
}

/* ========== reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
