/* straviq.io: the app's colours and type (web/src/theme.css), light and dark. */
:root {
  --page: #EEF1EF; --panel: #FFFFFF; --tile: #F3F6F4; --mint: #CBEBDB; --mint-line: #B5DFCA;
  --ink: #0B2B22; --ink2: #3B5249; --mut: #5F7A6F; --line: #D3E3DA;
  --brand: #1F9D63; --brand-ink: #157A4B; --on-brand: #FFFFFF; --bad: #B34A22; --bad-soft: #FBEDE6;
  --stage: #0B2B22; --stage-ink: #E6F2EC; --stage-mut: #9DB5AA; --stage-tile: rgba(255, 255, 255, .06); --stage-accent: #6EE7A8; --hot: #EF8A62;
  --warn: #9A6212; --warn-bg: #FBF1DF; --shadow: rgba(11, 43, 34, .12);
  --radius: 20px; --radius-s: 12px; --wide: 1180px;
  --display: 'Alexandria', 'Readex Pro', system-ui, sans-serif; --body: 'Readex Pro', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --page: #0F1411; --panel: #171D19; --tile: #1E2621; --mint: #193A2B; --mint-line: #24503B;
  --ink: #E7ECE8; --ink2: #B9C3BC; --mut: #8A958E; --line: #29322C;
  --brand: #4FD18F; --brand-ink: #6EE7A8; --on-brand: #0B2B22; --bad: #EF8A62; --bad-soft: #3A2219;
  --stage: #131A15; --stage-tile: rgba(255, 255, 255, .05); --shadow: rgba(0, 0, 0, .5); --warn: #E2B56A; --warn-bg: #33291A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
button, select { border: 0; }   /* nothing on the page is drawn with lines: shapes are told apart by their fill */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.75;
  transition: background .35s, color .35s; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(26px, 3.1vw, 38px); font-weight: 700; max-width: 26ch; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100% - var(--wide)) / 2));
  background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; }
/* the STRAVIQ logo (site/brand/animated): plays once on load, the light or the dark one by the theme */
.brand .logo-dark, [data-theme=dark] .brand .logo-light { display: none; }
[data-theme=dark] .brand .logo-dark { display: block; }
.top nav { display: flex; gap: 22px; font-size: 15px; color: var(--ink2); }
.top nav a { text-decoration: none; position: relative; }
.top nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
.top nav a:hover::after { transform: scaleX(1); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); color: var(--ink);
  font: 600 14px var(--body); cursor: pointer; transition: background .2s, transform .2s; }
.icon:hover { background: var(--mint); }
.icon:active { transform: scale(.94); }
.cta, .ghost { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; font-weight: 500;
  border-radius: 999px; padding: 9px 18px; transition: background .2s, transform .2s; white-space: nowrap; }
.cta { background: var(--brand); color: var(--on-brand); }
.cta:hover { background: var(--brand-ink); transform: translateY(-1px); }
.ghost { background: var(--mint); color: var(--brand-ink); }
.ghost:hover { background: var(--mint); }
.big { padding: 13px 26px; font-size: 16px; }

/* ---------------------------------------------------------------- sections */
main > section { padding: 92px max(24px, calc((100% - var(--wide)) / 2)); }
main > section > h2 { margin-bottom: 30px; }
.band { background: var(--panel); }
.lede { color: var(--ink2); max-width: 60ch; margin: -14px 0 26px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 64px !important; padding-bottom: 80px !important; }
.hero-text { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text p { color: var(--ink2); font-size: 18.5px; max-width: 48ch; margin-top: 22px; }
.hero-text .who { margin-top: 14px; color: var(--ink2); font-size: 16.5px; font-weight: 500; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* the product at work: a window on the real home screen; a light sweeps it and pins what it finds */
.screen { margin: 0; background: var(--panel); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -44px var(--shadow); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: var(--tile); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.screen-bar span { margin-inline-start: 10px; font-size: 12.5px; color: var(--mut); direction: ltr; }
.screen-body { position: relative; aspect-ratio: 1200 / 750; background: var(--page); }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s; }
.live { position: relative; overflow: visible; animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.live .screen-body { overflow: hidden; border-radius: 0 0 18px 18px; }
.scan { position: absolute; inset-block: 0; width: 22%; inset-inline-start: -22%; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 22%, transparent), transparent); animation: sweep 5.5s 1.2s ease-in-out infinite; }
@keyframes sweep { 0% { inset-inline-start: -22%; } 55%, 100% { inset-inline-start: 100%; } }
.pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.pins li { position: absolute; display: flex; align-items: center; gap: 8px; max-width: 62%; padding: 7px 12px 7px 10px; border-radius: 12px;
  background: var(--panel); color: var(--ink); font-size: 13px; line-height: 1.35; box-shadow: 0 14px 30px -14px var(--shadow), 0 0 0 1px var(--line);
  animation: pin-in .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.pins li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.pins li b { color: var(--bad); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.pins li.out { animation: pin-out .4s ease both; }
@keyframes pin-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes pin-out { to { opacity: 0; transform: translateY(-6px); } }
.found { position: absolute; inset-block-end: -22px; inset-inline-start: 22px; display: grid; padding: 10px 18px; border-radius: 16px;
  background: var(--stage); color: var(--stage-ink); box-shadow: 0 20px 40px -20px var(--shadow); }
.found small { color: var(--stage-mut); font-size: 12.5px; }
.found b { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--hot); font-variant-numeric: tabular-nums; line-height: 1.25; }
.found b i { font-style: normal; font-size: 13px; color: var(--stage-mut); font-weight: 500; }

/* ---------------------------------------------------------------- the story while you scroll */
/* the text runs on one side; the stage beside it stays put and changes scene with the paragraph in view */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.beat { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s; }
.beat.on { opacity: 1; }
.beat p { color: var(--ink2); margin-top: 16px; max-width: 46ch; }
.stage { position: sticky; top: calc(50vh - 190px); height: 380px; display: grid; }
.scene { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .55s, transform .55s cubic-bezier(.2, .7, .2, 1); }
.stage[data-at="1"] .s1, .stage[data-at="2"] .s2, .stage[data-at="3"] .s3 { opacity: 1; transform: none; }
.s1 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sys { display: grid; background: var(--tile); border-radius: 16px; padding: 16px 18px; }
.sys b { font-weight: 500; font-size: 14.5px; color: var(--ink2); }
.sys em { font-style: normal; font-family: var(--display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sys small { color: var(--mut); font-size: 13px; }
.gap-note { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; justify-content: center; padding: 12px; border-radius: 14px;
  background: var(--bad-soft); color: var(--bad); font-size: 15px; }
.gap-note b { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.gap-note i, .tl-cost i { font-style: normal; font-size: 14px; }
.beat .scene { display: none; }
.tl-cost { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; color: var(--ink2); }
.tl-cost b { font-family: var(--display); font-size: 30px; color: var(--bad); font-variant-numeric: tabular-nums; margin-inline-start: auto; }

/* ---------------------------------------------------------------- the morning, and the conversation */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split p { color: var(--ink2); margin-top: 18px; max-width: 54ch; }
.split h2 { margin: 0; }
.timeline { display: grid; gap: 18px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr 92px; align-items: center; gap: 12px; font-size: 15px; }
.tl-row em { font-style: normal; color: var(--mut); text-align: end; font-size: 14px; }
.tl-bar { height: 10px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.tl-bar::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; width: 0; transition: width 1.6s cubic-bezier(.3, .7, .2, 1) .2s; }
.tl-bar.slow::after { background: var(--bad); }
.tl-bar.fast::after { background: var(--brand); }
.stage[data-at="2"] .tl-bar.slow::after { width: 100%; } .stage[data-at="2"] .tl-bar.fast::after { width: 4%; }

.brief { background: var(--stage); color: var(--stage-ink); border-radius: 26px; padding: 26px 26px 20px; box-shadow: 0 30px 60px -30px var(--shadow); }
.brief-head { display: flex; align-items: center; gap: 10px; }
.brief-head b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.brief-head small { margin-inline-start: auto; color: var(--stage-mut); font-size: 13px; }
.brief-lead { margin-top: 14px; color: var(--stage-ink); opacity: .85; font-size: 16px; }
.brief-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.brief-list li { display: flex; align-items: center; gap: 14px; background: var(--stage-tile); border-radius: 14px; padding: 12px 16px;
  opacity: 0; transform: translateX(calc(var(--x, 1) * 20px)); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
[dir=ltr] .brief-list li { --x: -1; }
.stage[data-at="3"] .brief-list li { opacity: 1; transform: none; }
.stage[data-at="3"] .brief-list li:nth-child(2) { transition-delay: .15s; } .stage[data-at="3"] .brief-list li:nth-child(3) { transition-delay: .3s; }
.brief-list span { display: grid; }
.brief-list b { font-weight: 500; font-size: 15.5px; }
.brief-list small { color: var(--stage-mut); font-size: 13px; }
.brief-list em { margin-inline-start: auto; font-style: normal; font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.brief-list .down { color: var(--hot); } .brief-list .up { color: var(--stage-accent); }
.fine { margin-top: 12px; color: #8A958E; font-size: 12.5px; }

/* ---------------------------------------------------------------- how: three steps on one line */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps li { position: relative; background: var(--panel); border-radius: var(--radius); padding: 26px;
  opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.steps.in li { opacity: 1; transform: none; }
.steps.in li:nth-child(3) { transition-delay: .6s; } .steps.in li:nth-child(4) { transition-delay: 1.2s; }
/* each step's icon draws itself, one after another along the journey */
.step-ic { position: relative; z-index: 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--mint); margin-bottom: 18px; }
.step-ic svg { width: 38px; height: 38px; overflow: visible; }
.step-ic .d { fill: none; stroke: var(--brand-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.step-ic .hit { fill: var(--bad); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.step-ic i { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font: 700 12px var(--display); font-style: normal; }
.steps.in .step-ic .d { animation: draw 1.1s cubic-bezier(.6, 0, .3, 1) forwards; }
.steps.in li:nth-child(3) .step-ic .d { animation-delay: .7s; } .steps.in li:nth-child(4) .step-ic .d { animation-delay: 1.4s; }
.steps.in .plug { animation: draw 1.1s forwards, plug-in 2.8s 1.2s ease-in-out infinite; }
.steps.in .spin { transform-box: fill-box; transform-origin: center; animation: spin 2.4s 2s linear infinite; }
.steps.in .tick { animation: draw .6s 2.2s forwards; }
.steps.in .dart { animation: draw .9s 1.6s forwards, dart 2.6s 2.5s ease-in-out infinite; }
.steps.in .hit { animation: hit 2.6s 2.5s ease-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes plug-in { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2px, 2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dart { 0%, 60%, 100% { transform: translate(0, 0); } 30% { transform: translate(2px, -2px); } }
@keyframes hit { 0%, 30% { transform: scale(0); } 40% { transform: scale(1.4); } 55%, 100% { transform: scale(1); } }
/* the journey under the cards, from one icon to the next */
.journey { position: absolute; z-index: 2; inset-inline: 0; top: 18px; width: 100%; height: 80px; pointer-events: none; overflow: visible; }
[dir=rtl] .journey { transform: scaleX(-1); }
.journey path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 10; vector-effect: non-scaling-stroke; opacity: .7; }
.journey .drawn { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 2s .3s cubic-bezier(.6, 0, .3, 1); }
.steps.in .journey .drawn { transform: none; }
.journey circle { fill: var(--brand); opacity: 0; transition: opacity .4s 1.8s; }
.steps.in .journey circle { opacity: 1; }
.steps b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.steps p { color: var(--ink2); margin-top: 8px; font-size: 15.5px; }

/* ---------------------------------------------------------------- the tour: a small copy of the app to click around */
.tour-frame { overflow: hidden; }
.tour { display: grid; grid-template-columns: 200px minmax(0, 1fr); font-size: 14.5px; line-height: 1.6; }
.tv-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--tile); }
.tv-nav button { text-align: start; background: none; color: var(--ink2); font: inherit; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.tv-nav button:hover { background: var(--panel); }
.tv-nav button[aria-current=page] { background: var(--mint); color: var(--brand-ink); font-weight: 600; }
.tv-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tour button, .tour select, .tour input { font: inherit; color: inherit; }
.tv-h { font-size: 20px; }
.tv-sub { margin: 4px 0 0; font-size: 15.5px; font-family: var(--display); font-weight: 600; }
.tv-story { background: var(--mint); border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.tv-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tv-figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tv-figs > div { display: grid; align-content: start; border-radius: 12px; padding: 12px 14px; background: var(--tile); }
.tv-out .tv-figs > div { background: var(--panel); }
.tv-figs b { font-family: var(--display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.tv-figs span { color: var(--ink2); font-size: 13px; } .tv-figs small { color: var(--mut); font-size: 12px; }
.tv-figs .bad b, .tour .neg { color: var(--bad); } .tour .pos { color: var(--brand-ink); font-weight: 600; }
.tv-out .tv-figs .after { background: var(--mint); }
.tv-list { display: grid; gap: 8px; }
.tv-item { display: flex; align-items: flex-start; gap: 12px; text-align: start; background: var(--tile); border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.tv-item:hover { background: var(--mint); }
.tv-item > span { display: grid; flex: 1; min-width: 0; }
.tv-item b { font-weight: 500; } .tv-item small { color: var(--mut); font-size: 12.5px; } .tv-item em { font-style: normal; color: var(--ink2); margin-top: 4px; }
.tv-item strong { font-family: var(--display); color: var(--bad); font-variant-numeric: tabular-nums; }
.tv-chips { display: flex; gap: 6px; }
.tv-chips button { background: var(--tile); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.tv-chips button[aria-pressed=true] { background: var(--mint); }
.tv-plan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tv-table .th, .tv-table .tr { display: grid; grid-template-columns: minmax(0, 1.2fr) 78px 78px 120px; gap: 8px; align-items: center; }
.tv-table .th { color: var(--mut); font-size: 12.5px; padding: 0 8px 6px; }
.tv-table .tr { width: 100%; text-align: start; background: none; padding: 8px; cursor: pointer; }
.tv-table .tr:hover { background: var(--tile); }
.tv-table .tr[aria-pressed=true] { background: var(--mint); border-radius: 10px; }
.tv-table .tr b { font-weight: 500; } .tv-table .tr b small { display: block; color: var(--mut); font-size: 12px; font-weight: 400; }
.tv-table .tr span { font-variant-numeric: tabular-nums; text-align: end; }
.call { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); justify-self: start; white-space: nowrap; }
.call.c-keep, .call.c-give_time { background: var(--mint); color: var(--brand-ink); } .call.c-close { background: var(--bad-soft); color: var(--bad); }
.tv-detail { display: grid; gap: 12px; background: var(--tile); border-radius: 14px; padding: 14px; }
.tv-lines { display: grid; gap: 7px; }
.tv-lines > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; gap: 8px; align-items: center; font-size: 13.5px; }
.tv-lines i { height: 9px; border-radius: 5px; background: var(--panel); overflow: hidden; }
.tv-lines em { display: block; height: 9px; border-radius: 5px; background: var(--line); }
.tv-lines .sales em { background: var(--brand); } .tv-lines .profit em { background: var(--brand); } .tv-lines .profit em.neg { background: var(--bad); }
.tv-lines b { text-align: end; font-variant-numeric: tabular-nums; }
.tv-why { font-size: 14px; color: var(--ink2); } .tv-why b { color: var(--ink); }
.tv-go, .tv-reset { border-radius: 10px; padding: 8px 14px; cursor: pointer; justify-self: start; }
.tv-go { background: var(--brand); color: var(--on-brand) !important; font-weight: 500; }
.tv-reset { background: var(--tile); } .tv-reset:disabled { opacity: .45; cursor: default; }
.tv-tryhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tv-tryhead .acts { display: flex; gap: 8px; margin-inline-start: auto; }
.tv-pick, .tv-hours label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13px; }
.tour select { background: var(--tile); border-radius: 9px; height: 32px; padding: 0 8px; }
.tv-try { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tv-lever { padding: 8px 0 10px; }
.tv-lever:first-child { padding-top: 0; }
.tv-lever .tv-top { display: grid; grid-template-columns: 104px minmax(0, 1fr) 72px; gap: 8px; align-items: baseline; font-size: 13.5px; }
.tv-lever .tv-top b { font-weight: 600; } .tv-lever .tv-top span { color: var(--ink2); font-size: 12.5px; }
.tv-lever .tv-top em { font-style: normal; text-align: end; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.tv-lever input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; margin: 10px 0 4px; cursor: pointer;
  background: linear-gradient(to var(--toward, left), var(--brand) var(--at), var(--tile) var(--at)); }
[dir=ltr] .tv-lever input { --toward: right; }
.tv-lever input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); border: 3px solid var(--brand); }
.tv-lever input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--brand); }
.tv-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.tv-hours .strip { display: flex; gap: 2px; height: 20px; flex: 1 1 160px; }
.tv-hours .strip i { flex: 1; border-radius: 3px; background: var(--brand); opacity: .8; }
.tv-hours .strip i.lose { background: var(--bad); }
.tv-hours .strip i.off { opacity: .2; }
.tv-out { display: grid; gap: 12px; background: var(--tile); border-radius: 14px; padding: 14px; }
.tv-verdict { font-size: 14.5px; }
.tv-watch { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tv-watch li { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 7px 11px; }
.tv-note { color: var(--mut); font-size: 12.5px; margin-top: auto; }

/* ---------------------------------------------------------------- Ask STRAVIQ */
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 26px; }
.asks button { background: var(--tile); color: var(--ink); font: inherit; font-size: 14.5px; border-radius: 999px;
  padding: 7px 15px; cursor: pointer; transition: background .2s; }
.asks button:hover { background: var(--mint); }
.asks button[aria-pressed=true] { background: var(--mint); }
.chat { background: var(--page); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -36px var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.chat-head b { font-weight: 600; } .chat-head small { color: var(--mut); font-size: 13px; margin-inline-start: auto; }
.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 318px; padding-top: 16px; }
.msg { max-width: 92%; font-size: 15px; line-height: 1.7; animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.msg.me { align-self: flex-start; background: var(--ink); color: var(--panel); border-radius: 16px; padding: 9px 14px; }
.msg.mj { align-self: flex-end; background: var(--mint); border-radius: 16px; padding: 12px 15px; width: 92%; }
[dir=ltr] .msg.me { align-self: flex-end; } [dir=ltr] .msg.mj { align-self: flex-start; }
.msg .typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.msg .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: bob 1s ease-in-out infinite; }
.msg .typing i:nth-child(2) { animation-delay: .15s; } .msg .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 50% { transform: translateY(-5px); opacity: .5; } }
.rows { display: grid; gap: 5px; margin-top: 10px; }
.row { display: grid; grid-template-columns: 7.5em 1fr 4.5em; gap: 10px; align-items: center; font-size: 13.5px; }
.row .bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--panel) 70%, transparent); overflow: hidden; }
.row .bar i { display: block; height: 100%; border-radius: 4px; background: var(--bad); transform-origin: var(--from, right); animation: grow .7s cubic-bezier(.2, .7, .2, 1) both; }
[dir=ltr] .row .bar i { --from: left; }
.row .bar i.good { background: var(--brand); }
.row em { font-style: normal; text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------------------------------------------------------------- trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust article { background: var(--tile); border-radius: var(--radius); padding: 22px; }
.trust p { color: var(--ink2); font-size: 15.5px; margin-top: 8px; }
.trust article { display: flex; flex-direction: column; }
/* each promise acts itself out, on a loop, once the section is seen */
.tr-scene { height: 148px; margin-bottom: 18px; border-radius: var(--radius-s); background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.tr-scene svg { width: 100%; height: 128px; overflow: visible; }
.tr-scene * { animation-play-state: paused !important; }
.trust.in .tr-scene * { animation-play-state: running !important; }
/* read only: a light reads down the rows, a pen tries to write and is stopped */
.tr-scene .row { fill: var(--mint-line); }
.tr-scene .beam { fill: var(--brand); opacity: .16; animation: read 4.8s ease-in-out infinite; }
.tr-scene .pen path { fill: none; stroke: var(--ink2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.tr-scene .pen { animation: pen 4.8s ease-in-out infinite; }
.tr-scene .nope { opacity: 0; transform-box: fill-box; transform-origin: center; animation: nope 4.8s ease-out infinite; }
.tr-scene .nope circle { fill: var(--bad); } .tr-scene .nope path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
@keyframes read { 0% { transform: translateY(0); } 50% { transform: translateY(58px); } 100% { transform: translateY(0); } }
@keyframes pen { 0%, 35% { transform: translate(0, 0); } 48% { transform: translate(-14px, 6px); } 52% { transform: translate(-10px, 6px); }
  56% { transform: translate(-14px, 6px); } 70%, 100% { transform: translate(0, 0); } }
@keyframes nope { 0%, 46% { opacity: 0; transform: scale(.3); } 52% { opacity: 1; transform: scale(1.15); } 58%, 68% { opacity: 1; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(.6); } }
/* one place per customer: the data drops only into yours, and it locks */
.tr-scene .vault { fill: var(--tile); }
.tr-scene .vault.mine { fill: var(--mint); }
.tr-scene .drop { fill: var(--brand); opacity: 0; animation: drop 3.6s cubic-bezier(.5, 0, .7, .4) infinite; }
.tr-scene .drop:nth-of-type(2) { animation-delay: .5s; } .tr-scene .drop:nth-of-type(3) { animation-delay: 1s; }
.tr-scene .lock { fill: var(--brand); }
.tr-scene .shackle { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; animation: shackle 3.6s ease-in-out infinite; }
@keyframes drop { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 45% { opacity: 1; transform: translateY(52px); } 55%, 100% { opacity: 0; transform: translateY(56px); } }
@keyframes shackle { 0%, 55% { transform: translateY(-6px); } 65%, 92% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
/* everyone sees what is theirs: the lit branches narrow from the company to an area to one branch */
.roles { grid-template-columns: auto 1fr; gap: 14px; padding-inline: 16px; }
.roles svg { width: 96px; height: 96px; }
.roles .dot { fill: var(--mint-line); animation: lit-all 7.2s infinite; }
.roles .dot.area { animation-name: lit-area; }
.roles .dot.mine { animation-name: lit-one; }
.roles ul { list-style: none; margin: 0; padding: 0; display: grid; }
.roles li { grid-area: 1 / 1; display: grid; align-content: center; gap: 4px; font: 14px/1.4 var(--body); color: var(--ink2); opacity: 0; animation: say-1 7.2s infinite; }
.roles li:nth-child(2) { animation-name: say-2; } .roles li:nth-child(3) { animation-name: say-3; }

.roles li b { font: 700 15px/1.3 var(--display); color: var(--ink); white-space: nowrap; }
@keyframes lit-all { 0%, 30% { fill: var(--brand); } 36%, 100% { fill: var(--mint-line); } }
@keyframes lit-area { 0%, 63% { fill: var(--brand); } 69%, 100% { fill: var(--mint-line); } }
@keyframes lit-one { 0%, 100% { fill: var(--brand); } }
@keyframes say-1 { 0%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes say-2 { 0%, 33% { opacity: 0; transform: translateY(6px); } 39%, 63% { opacity: 1; transform: none; } 69%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes say-3 { 0%, 66% { opacity: 0; transform: translateY(6px); } 72%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* two-step sign-in: the password fills, a code arrives on the phone, then it lets you in */
.tr-scene .field, .tr-scene .phone { fill: var(--tile); }
.tr-scene .pw { fill: var(--ink2); opacity: 0; animation: pw 5s infinite; animation-delay: calc(var(--i) * .18s) !important; }
.tr-scene .code { fill: var(--brand); opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: code 5s infinite; animation-delay: calc(1.2s + var(--i) * .15s) !important; }
.tr-scene .ok { fill: var(--brand); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ok 5s infinite; }
.tr-scene .tick { fill: none; stroke: var(--on-brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick 5s infinite; }
@keyframes pw { 0% { opacity: 0; } 4%, 84% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes code { 0% { opacity: 0; transform: scaleY(.2); } 6%, 62% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; } }
@keyframes ok { 0%, 48% { opacity: 0; transform: scale(.4); } 54% { opacity: 1; transform: scale(1.15); } 58%, 86% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; } }
@keyframes tick { 0%, 54% { stroke-dashoffset: 20; opacity: 1; } 62%, 86% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { opacity: 0; } }

/* ---------------------------------------------------------------- prices */
.calc { display: flex; align-items: center; gap: 18px; background: var(--panel); border-radius: 999px; padding: 12px 24px; max-width: 580px; }
.calc label { font-weight: 500; white-space: nowrap; }
.calc output { font-family: var(--display); font-weight: 600; min-width: 84px; text-align: end; }
.calc input { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to var(--toward, left), var(--brand) var(--fill, 7%), var(--line) var(--fill, 7%)); }
[dir=ltr] .calc input { --toward: right; }
.calc input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); border: 3px solid var(--brand); }
.calc input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 3px solid var(--brand); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius); padding: 28px;
  transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -34px var(--shadow); }
.plan.pick { background: var(--mint); }
.plan .tag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: var(--on-brand); font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; min-height: 60px; }
.price b { font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.price span, .price small { color: var(--mut); font-size: 14px; }
.sum { color: var(--brand-ink); font-size: 14.5px; min-height: 26px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 8px 0; font-size: 15.5px; }
.note { margin-top: 18px; color: var(--mut); font-size: 14px; }

/* ---------------------------------------------------------------- questions */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.faq details { background: var(--tile); border-radius: var(--radius-s); padding: 14px 20px; transition: background .2s; }
.faq details[open] { background: var(--mint); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--brand); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink2); margin-top: 8px; }

/* ---------------------------------------------------------------- ask for a demo */
.demo { text-align: center; display: grid; justify-items: center; gap: 16px; }
.demo h2 { max-width: none; margin-bottom: 0 !important; }
.demo p { font-size: 17px; color: var(--ink2); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px max(24px, calc((100% - var(--wide)) / 2)); color: var(--mut); font-size: 14px; }
.foot .brand { font-size: 14px; font-weight: 500; font-family: var(--body); gap: 8px; }

@media (max-width: 1020px) {
  .top nav { display: none; }
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .journey { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .tv-plan, .tv-try { grid-template-columns: minmax(0, 1fr); }
  /* the story without the sticky stage: each scene under its paragraph */
  .story { grid-template-columns: 1fr; gap: 0; }
  .beat { min-height: 0; opacity: 1; padding-block: 18px 8px; }
  .stage { display: none; }
  .beat .scene { opacity: 1; transform: none; margin-top: 20px; pointer-events: auto; }
  .beat .s1 { display: grid; } .beat .s2, .beat .s3 { display: block; }
  .beat .tl-bar.slow::after { width: 100%; } .beat .tl-bar.fast::after { width: 4%; }
  .beat .brief-list li { opacity: 1; transform: none; }
  }
@media (max-width: 600px) {
  .faq { grid-template-columns: 1fr; }
  .top { gap: 10px; padding-inline: 16px; } .hide-s { display: none; }
  main > section { padding: 64px 18px; }
  .tl-row { grid-template-columns: 96px 1fr 74px; }
  .tour { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tv-nav { flex-direction: row; overflow-x: auto; padding: 10px; }
  .tv-nav button { white-space: nowrap; }
  .tv-main { padding: 14px; }
  .tv-figs { grid-template-columns: 1fr 1fr; } .tv-figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tv-figs b { font-size: 19px; }
  .tv-table .th, .tv-table .tr { grid-template-columns: minmax(0, 1fr) 64px 92px; } .tv-table .th span:nth-child(2), .tv-table .tr > span:first-of-type { display: none; }
  .trust { grid-template-columns: 1fr; }
  .pins li { font-size: 11.5px; padding: 5px 9px 5px 8px; max-width: 78%; }
  .found { inset-inline-start: 12px; padding: 8px 14px; } .found b { font-size: 21px; }
  .chat-body { min-height: 300px; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .brief-list li, .scene, .beat, .steps li { opacity: 1; transform: none; }
  .tr-scene * { animation: none !important; } .roles li:not(:first-child) { display: none; } .roles li:first-child { opacity: 1; }
  .tr-scene .pw, .tr-scene .code, .tr-scene .ok { opacity: 1; } .tr-scene .tick { stroke-dashoffset: 0; }
  .step-ic .d { stroke-dashoffset: 0; } .journey .drawn { transform: none; } .step-ic .hit { transform: none; } .journey circle { display: none; }
  html { scroll-behavior: auto; }
}
