/* squashtriage.com landing page. Brand tokens match triage/frontend/src/styles/tokens.css.
   Served under `style-src 'self'`: no inline style attributes anywhere in index.html. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0f0c;
  --panel: #15170f;
  --surface: #1b1e16;
  --chip: #23271c;
  --line: rgba(242, 241, 234, 0.1);
  --line-strong: rgba(242, 241, 234, 0.2);
  --fg: #f2f1ea;
  --muted: #9ea093;
  --faint: #62655b;
  --accent: #cbf24e;
  --accent-ink: #0e0f0c;
  --ok: #a6cc34;
  --crit: #ff6a45;
  --info: #74b8ff;
  --warn: #ffc24a;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); }
a:hover { color: #e2ff86; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; }
p { margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grow { flex-grow: 1; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(14, 15, 12, 0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--fg); }
.brand-word .dot { color: var(--accent); }
.brand-sm { font-size: 17px; }
.nav-links { display: flex; gap: 4px 22px; font-size: 13.5px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.nav-links a:hover, .nav-signin:hover { color: var(--fg); }
.nav-signin { color: var(--fg); text-decoration: none; font-size: 13.5px; padding: 10px 6px; }
.nav-cta { white-space: nowrap; }
.nav-cta .lbl-short { display: none; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 15px 24px; border-radius: 12px; text-align: center; }
.btn-sm { font-size: 13.5px; padding: 11px 18px; border-radius: 10px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d8ff6a; color: var(--accent-ink); }
.btn-outline { color: var(--fg); border: 1px solid var(--line-strong); font-weight: 400; }
.btn-outline:hover { color: var(--fg); border-color: var(--fg); }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 45% at 58% 78%, rgba(203, 242, 78, 0.06), rgba(203, 242, 78, 0) 70%); }
.hero-inner { padding-top: 76px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--accent); border: 1px solid rgba(203, 242, 78, 0.35); background: rgba(203, 242, 78, 0.08); padding: 6px 12px; border-radius: 999px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em; margin: 22px auto 20px; max-width: 920px; text-wrap: balance; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 auto 30px; max-width: 640px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fine { color: var(--muted); font-size: 13px; margin-top: 22px; }
.hero-media {
  width: 100%; max-width: 1180px; margin: -8px auto 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hero-media video {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--bg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
}

/* sections */
.band { border-top: 1px solid var(--line); }
.band-panel { background: var(--panel); }
.section { padding-top: 88px; padding-bottom: 88px; }
.eyebrow { font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.section h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 12px 0 44px; max-width: 760px; text-wrap: balance; }
.section h2:has(+ .section-lead) { margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 16px; margin: 0 0 44px; max-width: 660px; }

/* category chips and little squares */
.chips { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.sq { flex: none; width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.sq-bug { background: var(--crit); }
.sq-feature { background: var(--ok); }
.sq-question { background: var(--info); }
.sq-other { background: var(--muted); }
.sq-dashed { width: 8px; height: 8px; border: 1.5px dashed var(--muted); }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card-dark { background: var(--bg); }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.card p { color: var(--muted); font-size: 14px; }
.retry-row { font-size: 12.5px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.retry-text { flex: 1 1 auto; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.retry-link { color: var(--accent); }
.pin { color: var(--info); font-size: 11.5px; }

/* setup */
.setup { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.setup-steps { flex: 1 1 400px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.setup-steps li { display: flex; gap: 18px; }
.setup-steps li > div { min-width: 0; }
.setup-steps h3 { font-size: 20px; letter-spacing: -0.02em; margin: 2px 0 6px; }
.setup-steps p { color: var(--muted); font-size: 14px; }
.step { flex: none; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent-ink); background: var(--accent); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.step-quiet { color: var(--accent); background: var(--chip); }
.optional { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.term { flex: 1 1 440px; min-width: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; }
.term-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.term-body { padding: 18px; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-x: auto; }
.term-body .hl { color: var(--accent); }
.term-result { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.dim { color: var(--muted); }
.term-note { padding: 0 18px 16px; font-size: 12px; color: var(--muted); }

/* security & privacy */
.byok { display: flex; flex-wrap: wrap; gap: 28px 48px; background: var(--bg); border: 1px solid rgba(203, 242, 78, 0.3); border-radius: 22px; padding: clamp(22px, 4vw, 40px); margin-bottom: 56px; }
.byok-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.byok-copy h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; margin: 0; }
.byok-copy p { color: var(--muted); font-size: 14.5px; }
.new-pill { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 6px; }
.checks { flex: 1.3 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--muted); }
.checks li, .pilot-points li { display: flex; gap: 12px; }
.checks b { color: var(--fg); font-weight: 500; }
.tick { flex: none; color: var(--accent); }

.grid-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px 36px; }
.grid-trust h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.grid-trust p { color: var(--muted); font-size: 14px; }

.flow { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 40px; }
.flow h3 { font-size: 22px; margin: 0 0 20px; letter-spacing: -0.02em; }
.flow-list { margin: 0; display: flex; flex-direction: column; }
.flow-list > div { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.flow-list dt { font-family: var(--display); font-weight: 600; font-size: 16px; }
.flow-list dd { margin: 0; color: var(--muted); max-width: 760px; }

/* pilot */
.pilot { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pilot-copy { flex: 1 1 380px; min-width: 0; }
.section .pilot-title { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 12px 0 16px; }
.pilot-lead { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 32px; max-width: 480px; }
.pilot-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 480px; }

.pform { flex: 1.2 1 440px; min-width: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(20px, 3vw, 32px); font-size: 14px; line-height: 1.55; }
.pform form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.pform-head { display: flex; flex-direction: column; gap: 6px; }
.pform-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pform-head p { font-size: 13px; color: var(--muted); }
.pform-head .fg { color: var(--fg); }
.pform-alert { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 106, 69, 0.14); border: 1px solid rgba(255, 106, 69, 0.35); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pform-alert svg { flex: none; margin-top: 2px; }
.pform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.pfield { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.pfield label, .pfield legend { font-size: 12.5px; color: var(--muted); padding: 0; }
.pfield legend { margin-bottom: 6px; }
.opt { color: var(--faint); }
.pfield input, .pfield select, .pfield textarea {
  font-family: inherit; font-size: 14px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px;
  width: 100%; min-height: 44px;
}
.pfield textarea { resize: vertical; line-height: 1.5; }
.pfield [aria-invalid="true"] { border-color: var(--crit); }
.pfield-err { font-size: 12px; color: var(--crit); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; font-size: 13px; color: var(--fg); cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); }
.seg input:checked + span { background: var(--fg); color: var(--accent-ink); border-color: var(--fg); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pform-submit { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: 12px; padding: 0 22px; min-height: 50px; cursor: pointer; }
.pform-submit:hover { background: #d8ff6a; }
.pform-submit:disabled { opacity: 0.6; cursor: progress; }
/* Honeypot: off-screen for people, still in the DOM for form-filling bots. */
.pform-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pform-fine { font-size: 12px; color: var(--muted); }

.pform-sent { display: flex; flex-direction: column; gap: 20px; }
.pform-sent h3:focus { outline: none; }
.sent-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.next { display: flex; flex-direction: column; gap: 12px; }
.next-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.next ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.next li { display: flex; gap: 12px; }
.next .n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--chip); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }
.sent-actions { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; padding-top: 4px; border-top: 1px solid var(--line); }
.sent-actions a { font-size: 13.5px; padding: 10px 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-family: var(--display); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { flex: none; color: var(--accent); font-size: 22px; transition: transform .2s; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; max-width: 680px; }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 13px; color: var(--muted); padding-top: 32px; padding-bottom: 32px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- the tour ---------- */
.tour { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; font-size: 14px; }
.tour-steps { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tour-step { font-family: inherit; text-align: left; width: 100%; display: flex; gap: 14px; align-items: center; padding: 12px 14px; min-height: 60px; border-radius: 14px; cursor: pointer; color: inherit; background: transparent; border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.tour-step[aria-selected="true"] { background: var(--panel); border-color: rgba(203, 242, 78, 0.45); }
.tour-num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--chip); color: var(--muted); }
.tour-step[aria-selected="true"] .tour-num { background: var(--accent); color: var(--accent-ink); }
.tour-step.done .tour-num { background: rgba(166, 204, 52, 0.14); color: var(--ok); }
.tour-step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tour-step-title { font-family: var(--display); font-size: 16px; font-weight: 600; }
.tour-step-sub { font-size: 12.5px; color: var(--muted); }

.tour-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tour-window { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.tour-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tour-dots { display: flex; gap: 6px; flex: none; }
.tour-dots span { width: 9px; height: 9px; border-radius: 50%; background: #2c3024; }
.tour-url { flex: 1 1 auto; min-width: 0; background: var(--bg); border-radius: 8px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-sample { flex: none; font-size: 11px; color: var(--warn); background: rgba(255, 194, 74, 0.14); padding: 2px 9px; border-radius: 999px; }
.tour-body { padding: clamp(16px, 3vw, 32px); min-height: 500px; font-family: var(--display); font-size: 14px; line-height: 1.45; }
.tour-screen { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.tour-screen[data-screen="1"] { max-width: none; }
.tour-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.tour-caption { flex: 1 1 320px; min-width: 0; font-size: 14.5px; text-wrap: pretty; }
.tour-nav { display: flex; gap: 8px; flex: none; }

.t-row { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; }
.t-between { justify-content: space-between; }
.t-top { align-items: flex-start; gap: 14px; }
.t-small { font-size: 13px; }
.t-muted { font-size: 13px; color: var(--muted); }
.t-dim { font-size: 12.5px; color: var(--muted); }
.t-strong { font-weight: 700; }
.t-accent { color: var(--accent); }
.t-warn { color: var(--warn); }
.t-crit { color: var(--crit); }
.t-ok { color: var(--ok); }
.t-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.t-mono.t-warn { color: var(--warn); }
.t-mono-sm { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.t-mono-caps { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.t-progress { display: flex; gap: 5px; align-items: center; }
.t-progress span { width: 8px; height: 6px; border-radius: 3px; background: #2c3024; }
.t-progress span.on { width: 26px; background: var(--fg); }
.t-card { background: var(--surface); border: 1px solid rgba(242, 241, 234, 0.12); border-radius: 18px; padding: clamp(18px, 2.5vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.t-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.t-tag-crit { color: var(--crit); background: rgba(255, 106, 69, 0.14); }
.t-tag-warn { color: var(--warn); background: rgba(255, 194, 74, 0.14); }
.t-title { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: pretty; }
.t-title-sm { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; }
.t-title-xs { font-size: 20px; letter-spacing: -0.01em; }
.t-stack-4 { display: flex; flex-direction: column; gap: 4px; }
.t-quote { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.t-facts { display: flex; gap: 28px; flex-wrap: wrap; }
.t-facts > div { display: flex; flex-direction: column; }
.t-fact { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.t-fact-label { font-size: 12px; color: var(--muted); }
.t-overnight { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.t-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.t-btn { font-family: inherit; font-size: 13.5px; color: var(--fg); background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none; }
.t-btn-lg { min-height: 44px; padding: 0 18px; }
.t-btn-accent { font-weight: 700; color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
a.t-btn-accent:hover { color: var(--accent-ink); }
.t-btn:disabled { opacity: 0.4; cursor: default; }

.t-count { flex: none; min-width: 56px; height: 52px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--crit); background: rgba(255, 106, 69, 0.14); border: 1px solid rgba(255, 106, 69, 0.35); }
.t-cluster-head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.t-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.t-dotlabel { display: inline-flex; align-items: center; gap: 6px; }
.t-dotlabel .sq { width: 8px; height: 8px; }
.dot-crit { width: 6px; height: 6px; border-radius: 50%; background: var(--crit); }
.t-body { font-size: 14.5px; line-height: 1.55; max-width: 640px; text-wrap: pretty; }
.t-chart { display: flex; flex-direction: column; gap: 6px; }
.t-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; border-bottom: 1px solid var(--line-strong); }
.t-bar { flex: 1 1 0; height: 2px; border-radius: 3px 3px 0 0; background: rgba(242, 241, 234, 0.12); }
.t-bar:nth-child(4) { height: 7px; }
.t-bar:nth-child(5) { height: 15px; }
.t-bar:nth-child(6) { height: 22px; }
.t-bar:nth-child(7) { height: 58px; }
.t-bar.on { background: rgba(242, 241, 234, 0.3); }
.t-bar.now { background: var(--accent); }
.t-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: center; }
.t-members { display: flex; flex-direction: column; }
.t-member { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(242, 241, 234, 0.07); font-size: 13.5px; }
.t-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-more { padding: 9px 0; border-top: 1px solid rgba(242, 241, 234, 0.07); font-size: 12.5px; color: var(--muted); }

.t-select { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 10px; font-family: var(--mono); font-size: 12.5px; }
.t-badge-warn { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255, 194, 74, 0.14); color: var(--warn); }
.t-note { display: flex; gap: 10px; align-items: flex-start; background: rgba(116, 184, 255, 0.1); border: 1px solid rgba(116, 184, 255, 0.3); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.t-note svg { flex: none; margin-top: 2px; }
.t-field { display: flex; flex-direction: column; gap: 6px; }
.t-field input { font-family: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; }
.t-md { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.t-labels span { font-family: var(--mono); font-size: 12px; background: var(--chip); padding: 3px 9px; border-radius: 999px; }
.t-filed { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(166, 204, 52, 0.1); border: 1px solid rgba(166, 204, 52, 0.35); border-radius: 12px; padding: 12px 14px; }
.t-filed > div { flex: 1 1 240px; min-width: 0; }
.t-pop { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* tour motion; delays come from data-d via site.js (--d) */
@keyframes tIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tPop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes tPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes tOld { 0% { background: transparent; } 35% { background: rgba(255,106,69,.28); color: #ff6a45; } 70% { opacity: 1; background: rgba(255,106,69,.28); color: #ff6a45; } 100% { opacity: 0; background: rgba(255,106,69,.28); } }
@keyframes tNew { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.t-in { animation: tIn .45s cubic-bezier(.2,.7,.2,1) both; }
.t-up { animation: tUp .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
.t-right { animation: tRight .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
.t-bar { transform-origin: bottom; animation: tBar .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
.t-pop { animation: tPop .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: 150ms; }
.t-pulse { display: inline-block; animation: tPulse .6s ease-in-out 2; animation-delay: var(--d, 900ms); }
.t-swap { display: inline-grid; }
.t-swap > span { grid-area: 1 / 1; }
.t-old { animation: tOld 1s ease forwards; animation-delay: var(--d, 0ms); }
.t-new { opacity: 0; color: var(--info); animation: tNew .35s ease forwards; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .t-in, .t-up, .t-right, .t-bar, .t-pop, .t-pulse, .t-new, .t-old { animation: none !important; }
  .t-old { display: none; }
  .t-new { opacity: 1; }
}

/* Header: below ~820px the links can't share a row with the CTA, so they get their own
   row under it. On phones the first row is just brand + a shorter CTA, and "Sign in" moves
   to the end of the links row (the ::after is a forced line break between the two rows). */
@media (max-width: 820px) {
  .nav { gap: 6px 18px; }
  .nav-links { order: 3; width: 100%; gap: 4px 18px; }
}
@media (max-width: 480px) {
  .nav { gap: 4px 12px; padding-left: 16px; padding-right: 16px; }
  .nav::after { content: ""; order: 2; flex-basis: 100%; }
  .nav-links { order: 3; width: auto; gap: 4px 14px; }
  .nav-signin { order: 4; margin-left: auto; padding-right: 0; }
  .nav-cta { padding-left: 14px; padding-right: 14px; }
  .nav-cta .lbl-full { display: none; }
  .nav-cta .lbl-short { display: inline; }
}
@media (max-width: 720px) {
  .hero-inner { padding-top: 48px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .flow-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tour-body { min-height: 0; }
  .t-member { grid-template-columns: minmax(0, 1fr) auto; }
  .t-member > span:first-child { display: none; }
}
