/* Venuewand landing page: "Öövahetus" brand (dark ground, amber accent, Instrument Sans).
   Layout follows a printed-report direction: one column axis at ~42%, flat colour fields, no ornaments. */

:root {
  color-scheme: dark;
  --bg: #0f1012;
  --deep: #08090a;
  --surface: #17191c;
  --raised: #1f2226;
  --step-2: #2a2d32;
  --ink: #eceae4;
  --muted: #a3a39c;
  --accent: #f2a93b;
  --accent-strong: #ffc66b;
  --accent-ink: #1a1205;
  --amber-dark: #6b4a1a;
  --paper: #dcdedc;
  --paper-ink: #0f1012;
  --paper-muted: #55554f;
  --live: #5bd69a;

  --font: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* five type steps */
  --step-small: 0.875rem;                               /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17–19px */
  --step-lead: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);  /* 22–30px */
  --step-head: clamp(2.5rem, 1.2rem + 4.6vw, 6rem);         /* 40–96px */
  --step-display: clamp(3.25rem, 1rem + 6.6vw, 8.5rem);     /* 52–136px */

  --margin: clamp(1.25rem, 4vw, 4rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);
  --tile-gap: 8px;
  --tile-pad: clamp(20px, 2.2vw, 32px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:target { scroll-margin-top: 1rem; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.photo { filter: grayscale(1) contrast(1.05) brightness(0.85); }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button.ghost { background: var(--raised); color: var(--ink); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button.ghost:hover { background: var(--step-2); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- hero: two-by-two board ---------- */
.board {
  display: grid; gap: var(--tile-gap); padding: var(--tile-gap);
  grid-template-columns: 1fr 1fr; grid-template-rows: 60px minmax(0, 0.85fr) minmax(0, 1.15fr);
  height: 100svh; min-height: 720px; max-height: 1100px;
}
.board > * { min-width: 0; min-height: 0; }
.bar { grid-column: 1 / -1; display: grid; grid-template-columns: 60px 1fr auto; gap: var(--tile-gap); }
.bar .mark { background: var(--ink); display: grid; place-items: center; text-decoration: none; }
.bar .mark svg { width: 30px; height: 30px; }
.bar nav { background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--tile-pad); gap: 16px; }
.bar nav .wordmark { font-weight: 600; letter-spacing: -0.02em; font-size: 1.125rem; text-decoration: none; }
.bar nav .links { display: flex; gap: 28px; font-size: 1rem; margin-left: auto; margin-right: 28px; }
/* Language menu: a <details> so it opens without JavaScript */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; padding: 8px 10px; margin-right: -10px; display: flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--t-hover) ease; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang ul { list-style: none; margin: 0; position: absolute; right: -10px; top: calc(100% + 10px); z-index: 20; min-width: 168px; padding: 6px; background: var(--raised); box-shadow: 0 12px 32px rgb(0 0 0 / 0.45); display: grid; }
.lang ul a { display: block; padding: 10px 12px; font-size: 0.9375rem; }
.lang ul a[aria-current='true'] { color: var(--accent); }
.lang summary:focus-visible, .lang ul a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lang summary:hover { color: var(--accent); } .lang ul a:hover { background: var(--surface); } }
.bar nav a { text-decoration: none; }
.bar .action { background: var(--accent); color: var(--accent-ink); font-weight: 600; display: flex; align-items: center; padding: 0 24px; text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .bar .action:hover { background: var(--accent-strong); } .bar nav a:hover { color: var(--accent); } }

.tile-title { background: var(--surface); padding: var(--tile-pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; }
.tile-title h1 { font-size: calc(var(--step-display) * var(--h1-scale, 1)); max-width: 7.5em; line-height: 0.92; letter-spacing: -0.045em; }
.tile-title p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; color: var(--ink); }
.tile-photo { position: relative; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-report { background: var(--deep); overflow: hidden; display: flex; align-items: flex-start; justify-content: flex-start; padding: var(--tile-pad); }
.tile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tile-gap); }
.tile-dark { background: var(--raised); padding: var(--tile-pad); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile-dark p { font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem); line-height: 1.3; }
.tile-accent { background: var(--accent); color: var(--accent-ink); padding: var(--tile-pad); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; text-decoration: none; transition: background-color var(--t-hover) ease; }
.tile-accent p { font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem); line-height: 1.3; font-weight: 500; }
.tile-accent span { font-weight: 600; font-size: 1.0625rem; display: inline-flex; gap: 8px; align-items: center; }
.tile-accent span::after { content: '→'; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile-accent:hover { background: var(--accent-strong); } .tile-accent:hover span::after { transform: translateX(4px); } }
.tile-accent:active { transform: scale(0.99); }

/* ---------- product fragments (the real interface conventions live here) ---------- */
[data-ui] { font-family: var(--font); color: var(--ink); font-size: 15px; line-height: 1.4; }
[data-ui] .ui-card { background: #17191c; border-radius: 14px; padding: 20px; width: 100%; }
[data-ui] .ui-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
[data-ui] .ui-head strong { font-size: 17px; letter-spacing: -0.01em; }
[data-ui] .ui-head small, [data-ui] .ui-sub { color: #a3a39c; font-size: 13px; }
[data-ui] .ui-badge { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid #2a2d32; white-space: nowrap; color: #c9c7c0; }
[data-ui] .ui-badge.ok { color: #5bd69a; border-color: rgba(91, 214, 154, 0.35); }
[data-ui] .ui-badge.warn { color: #f2a93b; border-color: rgba(242, 169, 59, 0.4); }
[data-ui] .ui-rows { list-style: none; margin: 0; padding: 0; }
[data-ui] .ui-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #2a2d32; }
[data-ui] .ui-rows li:last-child { border-bottom: 0; }
[data-ui] .ui-rows .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-ui] .ui-rows .neg { color: #c9c7c0; }
[data-ui] .ui-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid #3a3d42; }
[data-ui] .ui-total { gap: 12px; }
[data-ui] .ui-total strong.loss { color: #ff7a6b; }
[data-ui] .ui-total strong { font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #f2a93b; white-space: nowrap; }
[data-ui] .ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
[data-ui] .ui-tiles div { background: #1f2226; border-radius: 10px; padding: 10px 12px; }
[data-ui] .ui-tiles b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
[data-ui] .ui-tiles span { font-size: 12.5px; color: #a3a39c; }
[data-ui] .ui-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
[data-ui] .ui-sample { font-size: 12.5px; color: #8e8d86; margin-top: 10px; }

.report-ui { width: min(100%, 520px); }

/* ---------- intro: right-half statement, lone photo ---------- */
.intro { padding-block: var(--section); }
.intro .statement { grid-column: 7 / 13; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.125rem); line-height: 1.25; text-indent: 3em; max-width: 42ch; letter-spacing: -0.01em; }
.intro .body { grid-column: 7 / 12; margin-top: 32px; }
.intro .body p + p { margin-top: 0.9em; }
.intro figure { grid-column: 1 / 4; grid-row: 1 / 3; align-self: end; }
.intro figure img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.intro .note { grid-column: 1 / 3; grid-row: 3; margin-top: 24px; font-size: var(--step-small); color: var(--muted); max-width: 26ch; }

/* ---------- how it works: stages as one bar ---------- */
.stages { padding-bottom: var(--section); }
.stages h2 { font-size: var(--step-head); margin-bottom: 64px; max-width: 14ch; }
.stage-bar { display: flex; gap: 6px; height: 22vh; min-height: 170px; }
.stage-bar .seg { padding: var(--tile-pad); min-width: 12%; flex-basis: 0; }
.stage-bar .seg b { font-size: clamp(1.25rem, 0.9rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.seg-1 { flex-grow: 4; background: var(--raised); }
.seg-2 { flex-grow: 2.4; background: var(--step-2); }
.seg-3 { flex-grow: 1.7; background: var(--amber-dark); }
.seg-4 { flex-grow: 1.6; background: var(--accent); color: var(--accent-ink); }
.stage-notes { display: flex; gap: 6px; margin-top: 24px; }
.stage-notes p { min-width: 12%; flex-basis: 0; font-size: 1.0625rem; max-width: none; padding: 0 var(--tile-pad); }
.stage-notes p:nth-child(1) { flex-grow: 4; } .stage-notes p:nth-child(2) { flex-grow: 2.4; }
.stage-notes p:nth-child(3) { flex-grow: 1.7; } .stage-notes p:nth-child(4) { flex-grow: 1.6; }
.stage-notes strong { font-weight: 600; }

/* ---------- showcase: input half, output half (break-even) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.split .in { background: var(--deep); padding: clamp(64px, 9vw, 144px) var(--margin); }
.split .out { background: var(--paper); color: var(--paper-ink); padding: clamp(64px, 9vw, 144px) var(--margin); }
.split h2, .split .h2-half { font-size: clamp(2.25rem, 5.2vw, 5rem); white-space: nowrap; font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; margin-bottom: clamp(40px, 4vw, 64px); max-width: none; }
.split .h-rest { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calc { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); line-height: 1.9; max-width: 34ch; }
.calc p + p { margin-top: 0.8em; }
.calc label { white-space: nowrap; }
.calc input {
  width: 4.2ch; padding: 0 0.15em; background: transparent; color: var(--accent); border: 0;
  border-bottom: 2px solid var(--amber-dark); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right;
  -moz-appearance: textfield; appearance: textfield; transition: border-color var(--t-hover) ease;
}
.calc input.wide { width: 5.2ch; }
@supports (field-sizing: content) { .calc input, .calc input.wide { field-sizing: content; width: auto; min-width: 2ch; text-align: center; } }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus { outline: none; border-color: var(--accent); }
.calc .hint { font-size: var(--step-small); color: var(--muted); margin-top: 28px; line-height: 1.5; }
.be-ui { width: min(100%, 500px); }
.be-ui .ui-card { background: #0f1012; }
.be-meter { position: relative; height: 34px; background: #1f2226; border-radius: 8px; margin: 18px 0 8px; overflow: hidden; }
.be-meter .fill { position: absolute; top: 0; bottom: 0; left: 0; background: #6b4a1a; transition: width 300ms var(--ease-out), left 300ms var(--ease-out); }
.be-meter .fill.profit { background: #f2a93b; }
.be-meter .mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #eceae4; transition: left 300ms var(--ease-out); }
.be-meter .mark[hidden] { display: none; }
.be-scale { position: relative; display: flex; justify-content: space-between; height: 18px; font-size: 12.5px; color: #a3a39c; font-variant-numeric: tabular-nums; }
.be-scale .be-label { position: absolute; top: 0; transform: translateX(-50%); color: #eceae4; white-space: nowrap; transition: left 300ms var(--ease-out); }
.be-scale .be-label[data-edge="end"] { transform: translateX(-100%); }
.be-scale .be-label[data-edge="start"] { transform: none; }
.be-verdict { margin-top: 14px; font-size: 15px; }
.out .caption { margin-top: 20px; font-size: var(--step-small); color: var(--paper-muted); max-width: 44ch; }

/* ---------- features: fixed output, live controls ---------- */
.pinned { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.pinned .stage { grid-column: 1 / 7; position: sticky; top: 0; height: 100svh; background: var(--surface); display: grid; place-items: center; padding: var(--margin); }
.event-ui { width: min(100%, 440px); }
.event-ui .ui-card { background: #0f1012; }
.event-ui .ui-rows li { align-items: flex-start; padding: 12px 0; }
.event-ui .ui-rows .k { color: #a3a39c; font-size: 13px; min-width: 76px; padding-top: 1px; }
.event-ui .ui-rows .v { flex: 1; }
.event-ui .ui-rows .v small { display: block; color: #a3a39c; font-size: 13px; }
.event-ui .flash { animation: ui-flash 600ms ease; }
@keyframes ui-flash { from { background: rgba(242, 169, 59, 0.16); } to { background: transparent; } }
.pinned .blocks { grid-column: 8 / 13; padding: var(--section) var(--margin) 22vh 0; }
.pinned .blocks h2 { font-size: clamp(2.25rem, 1.5rem + 1.6vw, 2.75rem); max-width: 14ch; }
.cap { margin-top: 24vh; max-width: 44ch; }
.cap:first-of-type { margin-top: 14vh; }
.cap h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; line-height: 1.12; }
.cap p { margin-top: 14px; }
.control { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg-ctl { display: inline-flex; background: var(--raised); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg-ctl button { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.seg-ctl button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .seg-ctl button:not([aria-pressed='true']):hover { color: var(--ink); background: var(--step-2); } }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 1rem; }
.switch input { appearance: none; width: 48px; height: 28px; background: var(--step-2); border-radius: 999px; position: relative; cursor: pointer; transition: background-color var(--t-hover) ease; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform var(--t-hover) var(--ease-out); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: var(--accent-ink); }
.range { display: grid; gap: 8px; width: min(100%, 360px); }
.range label { display: flex; justify-content: space-between; font-size: 1rem; }
.range input { accent-color: var(--accent); width: 100%; min-height: 44px; }

/* ---------- list: one weekend, day tabs and banded agenda ---------- */
.weekend { padding-block: var(--section); }
.weekend-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.weekend-head h2 { font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.75rem); line-height: 1.02; }
.weekend-head h2 span { display: block; }
.weekend-head h2 .soft { color: var(--muted); }
.agenda { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; margin-top: 56px; }
.days { display: flex; flex-direction: column; gap: 6px; }
.days button { width: 100%; min-height: 64px; text-align: left; padding: 10px 16px; background: var(--surface); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.days button b { display: block; font-weight: 600; font-size: 1rem; }
.days button span { display: block; font-size: var(--step-small); color: var(--muted); }
.days button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.days button[aria-selected='true'] span { color: #4a4a45; }
@media (hover: hover) and (pointer: fine) { .days button[aria-selected='false']:hover { background: var(--raised); } }
.bands { display: grid; gap: 4px; }
.bands[hidden] { display: none; }
.band { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; min-height: 76px; padding: 10px 20px; background: var(--surface); gap: 16px; }
.band:nth-child(even) { background: var(--raised); }
.band time { font-size: 1.25rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.band b { display: block; font-weight: 500; font-size: 1.125rem; }
.band span { display: block; font-size: var(--step-small); color: var(--muted); }
.band .plan { text-align: right; font-size: var(--step-small); color: var(--muted); }
.band .plan.pro { color: var(--ink); }
.band .plan.max { color: var(--accent); }
.bands-anim .band { animation: band-in 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes band-in { from { opacity: 0; transform: translateY(10px); } }
.legend { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }

/* ---------- integrations: recognition as a table ---------- */
.integrations { background: var(--surface); padding-block: var(--section); }
.integrations h2 { grid-column: 1 / 9; font-size: clamp(2.5rem, 1.2rem + 3.6vw, 5rem); }
.integrations h2 span { display: block; }
.integrations h2 span + span { padding-left: 16.66%; }
.int-table { width: 100%; border-collapse: collapse; margin-top: 72px; font-size: 1.0625rem; }
.int-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: var(--step-small); padding: 0 16px 14px; }
.int-table td { padding: 14px 16px; vertical-align: top; }
.int-table tbody tr:nth-child(even) td { background: var(--raised); }
.int-table td:first-child { color: var(--muted); width: 18%; }
.int-table td:nth-child(2) { font-weight: 500; width: 22%; }
.int-table td:last-child, .int-table th:last-child { text-align: right; width: 12%; }
.int-table .gap td { padding: 10px; background: transparent !important; }
.trust { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 96px; }
.trust p { grid-column: 6 / 12; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.trust .small { grid-column: 6 / 11; font-size: var(--step-body); line-height: 1.5; color: var(--ink); margin-top: 16px; max-width: 52ch; }

/* ---------- pricing: plan names, one live figure ---------- */
.pricing { padding-block: var(--section); }
.plans { grid-column: 1 / 7; display: flex; flex-direction: column; align-items: flex-start; }
.plans button { font-size: clamp(3rem, 1.4rem + 4.4vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--muted); display: inline-flex; align-items: center; gap: 0.25em; transition: color var(--t-hover) ease; }
.plans button::before { content: ''; width: 0.3em; height: 0.3em; border-radius: 50%; background: transparent; transition: background-color var(--t-hover) ease; }
.plans button[aria-selected='true'] { color: var(--ink); }
.plans button[aria-selected='true']::before { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .plans button:hover { color: var(--ink); } }
.plan-stage { grid-column: 8 / 13; }
.plan-opts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 40px; }
.venues { display: inline-flex; align-items: center; background: var(--raised); }
.venues button { width: 44px; height: 44px; font-size: 1.25rem; transition: background-color var(--t-hover) ease; }
.venues button:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .venues button:hover { background: var(--step-2); } }
.venues output { min-width: 7.5ch; text-align: center; font-variant-numeric: tabular-nums; font-size: 1rem; }
.plan-body { transition: opacity 200ms ease; }
.plan-body.swap { opacity: 0; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price b { font-size: clamp(4rem, 2rem + 6vw, 8.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.price span { font-size: 1.125rem; color: var(--muted); }
.price-total { margin-top: 12px; color: var(--muted); font-size: 1rem; min-height: 1.5em; }
.plan-desc { margin-top: 28px; max-width: 44ch; }
.plan-body .button { margin-top: 32px; }
.plan-fine { margin-top: 40px; font-size: var(--step-small); color: var(--muted); max-width: 52ch; }
.plan-fine p + p { margin-top: 0.7em; }
.trial-line { margin-top: 18px; font-size: 1rem; }
.founding { grid-column: 1 / -1; margin-top: clamp(72px, 8vw, 128px); background: var(--amber-dark); padding: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: end; }
.founding h3 { grid-column: 1 / 7; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.founding p { grid-column: 7 / 12; }
.founding a { grid-column: 7 / 13; justify-self: start; }

/* ---------- FAQ: large questions, answers beside ---------- */
.faq { padding-bottom: var(--section); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.qa + .qa { margin-top: 80px; }
.qa h2, .qa h3 { grid-column: 1 / 7; font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; max-width: 20ch; }
.qa h2 { color: var(--muted); }
.qa p { grid-column: 8 / 13; max-width: 42ch; line-height: 1.55; padding-top: 0.25em; }

/* ---------- CTA: three photographs, then a field ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 40svh; min-height: 260px; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figure { overflow: hidden; }
.close { background: var(--accent); color: var(--accent-ink); padding: clamp(56px, 8vw, 128px) var(--margin) clamp(96px, 12vw, 192px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
.close .statement { grid-column: 1 / 8; font-size: clamp(1.5rem, 1rem + 1vw, 1.875rem); line-height: 1.3; font-weight: 500; max-width: 30ch; }
.close .statement a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .close .statement a:hover { text-decoration-color: var(--paper-ink); } .close .lines a:hover { text-decoration-thickness: 2px; } }
.close .lines { grid-column: 1 / 8; margin-top: 32px; font-size: 1rem; }
.close .lines p + p { margin-top: 6px; }

/* ---------- footer: name first ---------- */
.foot { background: var(--deep); padding: clamp(96px, 10vw, 144px) var(--margin) 40px; overflow: hidden; }
.foot .name { font-size: clamp(4rem, 15.5vw, 16rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.8; display: block; margin-bottom: -0.12em; }
.foot-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(48px, 5vw, 80px); }
.places { grid-column: 1 / 6; display: grid; gap: 6px; }
.places a { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.25rem); color: var(--accent); text-decoration: none; letter-spacing: -0.02em; }
.foot-links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 0.9375rem; }
.foot-links b { display: block; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.foot-links a { display: block; text-decoration: none; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover, .places a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
.legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(48px, 5vw, 80px); font-size: var(--step-small); color: var(--muted); }
.legal p { max-width: 90ch; }
.credits { margin-top: 24px; font-size: var(--step-small); color: var(--muted); max-width: 110ch; }
.credits a { color: var(--muted); }

/* ---------- motion (content stays visible without JavaScript) ---------- */
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] > * { transform: scale(1.12); transform-origin: top left; transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in > * { transform: none; }
  .js .hero-shutter { animation: shutter 1100ms var(--ease-in-out) 250ms both; }
  .js .hero-shutter > * { transform-origin: top left; animation: settle 1500ms var(--ease-soft) 250ms both; }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .drift { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
@media (prefers-reduced-motion: reduce) { .bands-anim .band, .event-ui .flash { animation: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .bar nav .links { gap: 18px; margin-right: 18px; }
  .tile-pair { grid-template-columns: 1fr; }
  .intro .statement, .intro .body { grid-column: 5 / 13; }
  .intro figure { grid-column: 1 / 5; }
  .intro .note { grid-column: 1 / 4; }
}

/* ---------- phone ---------- */
@media (max-width: 400px) { .bar nav .wordmark { display: none; } .bar nav { justify-content: flex-end; } }
@media (max-width: 760px) {
  .board { height: auto; min-height: 0; max-height: none; grid-template-columns: 1fr; grid-template-rows: auto; gap: 6px; padding: 6px; }
  .bar { grid-template-columns: 52px 1fr auto; height: 52px; }
  .bar .action { padding: 0 14px; max-width: 9.5rem; font-size: 0.9375rem; line-height: 1.15; text-align: center; justify-content: center; }
  .bar nav { min-width: 0; }
  .bar nav { padding: 0 14px; }
  .bar nav .links { display: none; }
  .tile-title { min-height: 46svh; }
  .tile-photo { aspect-ratio: 4 / 3; order: 3; }
  .tile-pair { order: 2; grid-template-columns: 1fr 1fr; }
  .tile-dark, .tile-accent { aspect-ratio: auto; min-height: 220px; }
  .tile-report { order: 4; padding: 12px; }
  .tile-dark p, .tile-accent p { font-size: 1.0625rem; }

  .grid, .pinned, .qa, .trust, .foot-row, .close, .founding { grid-template-columns: minmax(0, 1fr); }
  .grid > *, .pinned > *, .qa > *, .trust > *, .foot-row > *, .close > *, .founding > * { grid-column: 1 / -1 !important; }

  .intro .statement { text-indent: 0; font-size: 1.375rem; max-width: none; }
  .intro .body { margin-top: 24px; }
  .intro-media { display: grid; grid-template-columns: 30% 1fr; gap: 16px; align-items: end; margin-top: 40px; }
  .intro figure { grid-column: 2 !important; grid-row: 1; margin: 0; }
  .intro figure img { aspect-ratio: 4 / 5; }
  .intro .note { grid-column: 1 !important; grid-row: 1; margin: 0; }

  .stages h2 { margin-bottom: 32px; }
  .stage-bar { flex-direction: column; height: auto; }
  .stage-bar .seg { min-height: 96px; }
  .stage-bar .seg b { font-size: 1.375rem; }
  .stage-bar .seg p { margin-top: 8px; font-size: 1rem; }
  .stage-notes { display: none; }

  .split { grid-template-columns: 1fr; }
  .split .in, .split .out { min-height: 0; padding: 56px var(--margin); }
  .split h2 { font-size: 11vw; margin-bottom: 32px; white-space: normal; }
  .split .h-rest { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .split .h2-half { display: none; }
  .calc { font-size: 1.125rem; }

  .pinned .stage { position: sticky; top: 0; height: 46svh; z-index: 1; padding: 12px var(--margin); align-items: start; overflow: hidden; }
  .event-ui { width: 100%; }
  .event-ui .ui-card { padding: 14px; }
  .event-ui .ui-rows li { padding: 8px 0; }
  .event-ui .ui-head { margin-bottom: 6px; }
  .pinned .blocks { padding: 32px var(--margin) 16vh; }
  .cap { margin-top: 14vh; } .cap:first-of-type { margin-top: 4vh; }
  .cap h3 { font-size: 1.375rem; }
  .control > * { width: 100%; }
  .seg-ctl { display: flex; }
  .seg-ctl button { flex: 1; }

  .agenda { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .days { flex-direction: row; position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 6px 0; }
  .days button { flex: 1; padding: 8px 10px; }
  .band { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'time plan' 'text text'; padding: 16px 20px; gap: 6px 12px; }
  .band time { grid-area: time; }
  .band div { grid-area: text; }
  .band .plan { grid-area: plan; }
  .weekend-head .button { width: 100%; }

  .integrations h2 { font-size: 11vw; }
  .integrations h2 span + span { padding-left: 0; }
  .int-table thead { display: none; }
  .int-table, .int-table tbody, .int-table tr, .int-table td { display: block; width: auto !important; text-align: left !important; }
  .int-table tr { padding: 14px 16px; }
  .int-table tbody tr:nth-child(even) { background: var(--raised); }
  .int-table td { padding: 0; background: transparent !important; }
  .int-table td:first-child { font-size: var(--step-small); }
  .int-table td:nth-child(3) { color: var(--muted); }
  .int-table td:last-child { font-size: var(--step-small); color: var(--accent); }
  .int-table .gap { display: none; }
  .trust { margin-top: 56px; }

  .plans button { font-size: 12vw; }
  .plan-stage { margin-top: 32px; }
  .price b { font-size: 22vw; }
  .plan-body .button { width: 100%; }
  .founding { margin-top: 72px; }

  .qa + .qa { margin-top: 56px; }
  .qa h2, .qa h3 { font-size: 1.5rem; }
  .qa p { margin-top: 12px; }

  .strip { grid-template-columns: 1fr 1fr; height: auto; }
  .strip figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .strip figure:not(:first-child) { aspect-ratio: 1; }
  .close .statement { font-size: 1.375rem; }

  .foot .name { font-size: 21vw; }
  .foot-links { grid-template-columns: 1fr 1fr; margin-top: 48px; }
}

/* helpers placed last so they win over section rules */
.only-phone { display: none; }
.intro-media { display: contents; }
@media (max-width: 760px) {
  .only-phone { display: block; }
  .intro-media { display: grid; }
}

.pinned-title-phone { display: none; }
@media (max-width: 760px) {
  .pinned-title-phone { display: block; font-size: 2.25rem; padding-block: 0 32px; max-width: 14ch; }
  .pinned .blocks h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- motion layer: entrances per section, live details ---------- */
.foot .name { overflow: hidden; padding-top: 0.12em; margin-top: -0.12em; }
.foot .name .name-in { display: block; }
.strip img { will-change: transform; transform: translateY(var(--shift, 0px)) scale(1.18); }
@media (prefers-reduced-motion: no-preference) {
  /* stage bar: segments grow from the left one after another, then their words appear */
  .js .stage-bar.grow[data-reveal] { opacity: 1; transform: none; }
  .js .stage-bar.grow .seg { transform: scaleX(0); transform-origin: left center; transition: transform 900ms var(--ease-out); }
  .js .stage-bar.grow .seg > * { opacity: 0; transition: opacity 500ms ease; }
  .js .stage-bar.grow.is-in .seg { transform: none; }
  .js .stage-bar.grow.is-in .seg > * { opacity: 1; }
  .js .stage-bar.grow .seg:nth-child(2), .js .stage-bar.grow .seg:nth-child(2) > * { transition-delay: 140ms; }
  .js .stage-bar.grow .seg:nth-child(3), .js .stage-bar.grow .seg:nth-child(3) > * { transition-delay: 280ms; }
  .js .stage-bar.grow .seg:nth-child(4), .js .stage-bar.grow .seg:nth-child(4) > * { transition-delay: 420ms; }
  .js .stage-bar.grow.is-in .seg > * { transition-delay: 700ms; }

  /* integrations: rows arrive one by one */
  .js .rows-in[data-reveal] { opacity: 1; transform: none; }
  .js .rows-in tbody tr { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--r, 0) * 55ms); }
  .js .rows-in.is-in tbody tr { opacity: 1; transform: none; }

  /* weekend agenda: bands stagger in on first view */
  .js .bands[data-reveal] { opacity: 1; transform: none; }
  .js .bands[data-reveal] .band { opacity: 0; }
  .js .bands[data-reveal].is-in .band { opacity: 1; animation: band-in 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }

  /* footer wordmark rises out of its own baseline */
  .js .foot .name[data-reveal] { opacity: 1; transform: none; }
  .js .foot .name .name-in { transform: translateY(105%); transition: transform 1300ms var(--ease-out); }
  .js .foot .name.is-in .name-in { transform: none; }

  /* hero: the two statement tiles follow the headline */
  .js .tile-pair > * { animation: rise 800ms var(--ease-out) both; }
  .js .tile-pair > :nth-child(1) { animation-delay: 420ms; }
  .js .tile-pair > :nth-child(2) { animation-delay: 520ms; }
  .js .tile-photo img { animation: photo-in 1400ms var(--ease-soft) both, drift 24s ease-in-out 1400ms infinite alternate; }

  /* live door: the online badge breathes */
  [data-ui] #r-door-b.ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5bd69a; margin-right: 6px; vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
  [data-ui] #r-door-b.warn::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #f2a93b; margin-right: 6px; vertical-align: 1px; animation: pulse 0.9s ease-in-out infinite; }

  /* buttons: the label nudges on hover */
  .button { transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, letter-spacing var(--t-hover) ease; }
  @media (hover: hover) and (pointer: fine) { .button:hover { transform: translateY(-2px); } .button:active { transform: scale(0.97); } }
}
@keyframes photo-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .strip img { transform: scale(1.18); } }
