:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2c2e32;
  --ink: #eff0f1;
  --muted: #a6a8ad;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --field: #eff0f1;
  --field-ink: #18191b;
  --field-2: #dfe1e3;
  --field-muted: #4b4d52;
  --name: #b9bbc0;
  color-scheme: dark;

  --font-display: "Onest", system-ui, sans-serif;
  --font: "Golos Text", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-sub: 1.25rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 0.6rem + 6.4vw, 7.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(7rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2f0;
    --surface: #e5e6e7;
    --surface-2: #d8dadc;
    --ink: #18191b;
    --muted: #55575c;
    --accent: #ff4a1f;
    --accent-ink: #18191b;
    --field: #18191b;
    --field-ink: #eff0f1;
    --field-2: #2c2e32;
    --field-muted: #a6a8ad;
    --name: #4b4d52;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f2f0;
  --surface: #e5e6e7;
  --surface-2: #d8dadc;
  --ink: #18191b;
  --muted: #55575c;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --field: #18191b;
  --field-ink: #eff0f1;
  --field-2: #2c2e32;
  --field-muted: #a6a8ad;
  --name: #4b4d52;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* on screens wider than ~1450px the whole page grows with the viewport, so a big monitor is not a sea of ground */
html { font-size: clamp(100%, 0.5rem + 0.56vw, 125%); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--ink); transition: background-color var(--t-ui), color var(--t-ui); font-family: var(--font); font-size: var(--step-body); line-height: 1.45; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
/* scrollbar: a thin rail in the page's ground, the thumb lights up in the accent under the pointer */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 28%, transparent); border: 2px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg); }
/* Firefox has no pseudo-elements, only the two colours; Chrome would drop the rules above if it saw these */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) var(--bg); }
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.92; text-wrap: balance; }
.wrap { padding-inline: var(--margin); }

/* the motif: one chunky tick; whatever it marks sits in its notch */
.tick { fill: var(--accent); }

/* buttons: square, one fill */
.btn { display: inline-flex; align-items: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover), color var(--t-hover); }
.btn svg { width: 1.1em; height: auto; fill: currentColor; transition: transform var(--t-hover) var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:hover svg { transform: translateX(3px) rotate(-8deg); }
.btn:active { transform: scale(0.97); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: color var(--t-hover); }
.link:hover { color: var(--accent); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--bg); transition: background-color var(--t-ui), transform 360ms var(--ease-out), opacity 240ms var(--ease-out); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem var(--margin); }
.mark { display: inline-flex; align-items: baseline; gap: 0.55rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-sub); letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 1.6rem; }
/* over the footer the header steps out of the way; keyboard focus brings it back */
.nav.is-away:not(:focus-within) { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav ul { display: flex; gap: 1.75rem; font-weight: 600; font-size: var(--step-small); }
.nav ul a { text-decoration: none; transition: color var(--t-hover); }
.nav ul a:hover { color: var(--accent); }
.nav__end { display: flex; align-items: center; gap: 0.75rem; }
.theme { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: var(--surface); transition: background-color var(--t-hover), transform var(--t-press) var(--ease-out); }
.theme:hover { background: var(--surface-2); }
.theme:active { transform: scale(0.94); }
.theme svg { width: 1.25rem; height: 1.25rem; transition: transform var(--t-ui) var(--ease-out); }
:root[data-theme="light"] .theme svg { transform: rotate(180deg); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme svg { transform: rotate(180deg); } }
.nav .btn { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--step-small); }

/* ---------- hero: noise → one message ---------- */
/* At rest (no script, reduced motion, phone): centred text, the digest under it, bubbles by the sides. */
.hero__stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(7rem, 14vh, 9rem) var(--margin) 4rem; text-align: center; }
.hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--step-display); max-width: 9.5em; }
.hero__lead { margin-top: 2rem; max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.hero__acts { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.75rem; }
.hero__note { margin-top: 1.25rem; color: var(--muted); font-size: var(--step-small); max-width: 40ch; }
.hero__digest { position: relative; z-index: 2; margin-top: 4rem; width: min(34rem, 100%); text-align: left; }
.hero__say { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: var(--step-lead); line-height: 1.2; text-align: center; margin-bottom: 1.25rem; }
.hero__digest .chat { background: var(--surface); }
.hero__noise { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hb { position: absolute; top: var(--y); width: max-content; max-width: 12.5rem; text-align: left; }
/* below this width only the four corner bubbles stay, above and below the text */
@media (max-width: 1240px) { .hb.minor { display: none; } .hb { top: var(--ty, var(--y)); } }
.hb--l { left: var(--x); }
.hb--r { right: var(--x); }
.hb .msg { min-width: 10rem; font-size: var(--step-small); line-height: 1.35; background: var(--surface-2); transform: rotate(var(--rot)); animation: bob var(--dur) ease-in-out var(--del) infinite alternate; }
.hb .msg b, .hb .msg time { font-size: var(--step-small); }
@keyframes bob { from { transform: translateY(-7px) rotate(var(--rot)); } to { transform: translateY(7px) rotate(calc(var(--rot) * -0.6)); } }
/* Live: the stage holds while the bubbles fall into the digest. */
.hero.is-live .hero__digest { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% -50%; width: min(42rem, 92%); opacity: 0; visibility: hidden; }
.hero__count { display: none; }
.hero.is-live .hero__count { display: grid; justify-items: center; position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; opacity: 0; visibility: hidden; pointer-events: none; }
.hero__n { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.9; font-size: var(--step-display); font-variant-numeric: tabular-nums; }
.hero__w { font-size: var(--step-lead); color: var(--muted); }
.hero.is-live .hero__say { font-size: var(--step-lead); }
.hero.is-live .hero__digest .chat { font-size: var(--step-body); padding: 1.25rem; }

/* Max chat fragment (product UI) */
[data-ui] { font-family: var(--font); letter-spacing: 0; }
.chat { background: var(--bg); color: var(--ink); padding: 1rem; display: grid; gap: 0.6rem; font-size: var(--step-small); line-height: 1.4; }
.chat__head { display: flex; align-items: center; gap: 0.7rem; padding: 0.25rem 0.25rem 0.75rem; }
.chat__ava { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.chat__ava svg { width: 1.3rem; fill: var(--accent-ink); }
.chat__who { font-weight: 600; }
.chat__sub { color: var(--muted); font-size: var(--step-small); }
.msg { max-width: 88%; padding: 0.6rem 0.8rem 0.5rem; border-radius: 14px; background: var(--surface-2); }
.msg b { display: block; font-weight: 600; font-size: var(--step-small); color: var(--name); margin-bottom: 0.1rem; }
.msg time { display: block; text-align: right; color: var(--muted); font-size: var(--step-small); margin-top: 0.15rem; }
.msg--bot { background: var(--surface); max-width: 96%; }
.digest { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.digest li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.55rem; align-items: start; }
.digest li svg { width: 0.95rem; margin-top: 0.22rem; }
.digest strong { font-weight: 600; }

/* ---------- section heads ---------- */
.sec { padding-block: calc(var(--section) / 2); }

/* ---------- showcase: the live thing ---------- */
.show { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: end; }
.show__stage { grid-column: 5 / span 8; grid-row: 1 / span 2; align-self: stretch; background: var(--surface); padding: clamp(1.25rem, 3vw, 3rem); display: grid; align-items: center; overflow: clip; }
.show__pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.show__pane[hidden] { display: none; }
.from { padding: 0; display: grid; gap: 0.45rem; font-size: var(--step-body); }
.from .msg { max-width: 92%; }
.to { display: grid; grid-template-columns: 0.9em 1fr; gap: 0.45em; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; }
.to svg { width: 0.9em; margin-top: 0.22em; }
.to strong { font-weight: 600; }
.show__list { grid-column: 1 / span 4; grid-row: 1; position: relative; z-index: 2; align-self: end; }
.show__list h2 { font-size: var(--step-head); color: var(--ink); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.show__list ul { display: grid; }
.show__list button { font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); line-height: 1.15; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--muted); text-align: left; display: inline-flex; align-items: center; gap: 0; transition: color var(--t-hover), transform var(--t-ui) var(--ease-out); }
.show__list button svg { width: 0; margin-left: 0; opacity: 0; transform: scale(0.4); transition: opacity var(--t-ui), transform var(--t-ui) var(--ease-out), width var(--t-ui) var(--ease-out), margin-left var(--t-ui) var(--ease-out); }
.show__list button:hover { color: var(--ink); transform: translateX(4px); }
.show__list button[aria-selected="true"] { color: var(--ink); }
.show__list button[aria-selected="true"] svg { width: 0.62em; margin-left: 0.35em; opacity: 1; transform: none; }
.show__fact { grid-column: 1 / span 4; grid-row: 2; align-self: end; max-width: 26ch; position: relative; z-index: 2; font-size: var(--step-body); }
.show__fact strong { display: block; font-family: var(--font-display); font-size: var(--step-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.5rem; }

/* ---------- how it works: tiles that grow ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; row-gap: 1.25rem; align-items: end; }
.how h2 { grid-column: 1 / span 7; grid-row: 1; align-self: start; font-size: var(--step-head); }
.how__step { grid-row: 2; display: grid; gap: 1.1rem; align-self: end; }
.how__step:nth-of-type(1) { grid-column: 1 / span 3; }
.how__step:nth-of-type(2) { grid-column: 4 / span 4; }
.how__step:nth-of-type(3) { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.how__tile { overflow: hidden; display: grid; place-items: center; padding: 1.25rem; }
.how__step:nth-of-type(1) .how__tile { height: 30vh; min-height: 15rem; background: var(--surface); }
.how__step:nth-of-type(2) .how__tile { height: 44vh; min-height: 21rem; background: var(--surface-2); }
.how__step:nth-of-type(3) .how__tile { height: 60vh; min-height: 28rem; background: var(--field); }
.how h3 { font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.how__step p { color: var(--muted); max-width: 34ch; margin-top: 0.35rem; }
/* fragments inside tiles */
.find { width: 100%; max-width: 17rem; display: grid; gap: 0.6rem; font-size: var(--step-small); }
.find__bar { background: var(--surface-2); border-radius: 10px; padding: 0.65rem 0.9rem; color: var(--ink); }
.find__bar span { color: var(--muted); }
.find__card { background: var(--bg); border-radius: 12px; padding: 0.9rem; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.7rem; align-items: center; }
.find__card .chat__ava { grid-row: span 2; }
.find__card small { color: var(--muted); font-size: var(--step-small); }
/* the mock's button really opens the bot; for the mouse only, the keyboard has the real buttons */
.find__btn { grid-column: 1 / -1; margin-top: 0.6rem; background: var(--accent); color: var(--accent-ink); border-radius: 8px; text-align: center; padding: 0.55rem; font-weight: 600; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover), color var(--t-hover); }
.find__btn:hover { background: var(--ink); color: var(--bg); }
.find__btn:active { transform: scale(0.97); }
.rights { width: 100%; max-width: 20rem; background: #fff; color: #18191b; border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: 0.15rem; font-size: var(--step-small); }
.rights h4 { margin: 0 0 0.5rem; font-size: var(--step-small); font-weight: 600; }
.rights li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0; }
.sw { width: 2.6rem; height: 1.5rem; border-radius: 1rem; background: #c9cbcf; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #fff; }
.sw.on { background: var(--accent); }
.sw.on::after { left: auto; right: 3px; }
.rights .hl { font-weight: 600; }
.how__step:nth-of-type(3) .chat { width: 100%; max-width: 22rem; }

/* ---------- band: the cancelled lesson (signature crossfade) ---------- */
.band { position: relative; margin-inline: var(--margin); }
.band__pics { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface); }
.band__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(1) contrast(1.05); opacity: 0; transition: opacity 1.6s var(--ease-soft); }
.band__pics img.on { opacity: 1; }
.band__cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 1.75rem; }
.band__cap h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.band__cap p { grid-column: 9 / span 4; align-self: end; }

/* ---------- features: close-ups on a board ---------- */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; padding-inline: 10px; }
.board > * { position: relative; overflow: hidden; padding: 20px; container-type: inline-size; }
.t-head { grid-column: span 6; grid-row: span 2; background: var(--bg); padding-left: calc(var(--margin) - 10px); }
.t-head h2 { font-size: var(--step-head); }
.t-money { grid-column: span 6; grid-row: span 2; background: var(--field); color: var(--field-ink); }
.t-morning { grid-column: span 6; grid-row: span 4; background: var(--field); color: var(--field-ink); }
.t-evening { grid-column: span 3; grid-row: span 4; background: var(--surface); }
.t-fold { grid-column: span 3; grid-row: span 4; background: var(--field-2); color: var(--field-ink); }
.t-family { grid-column: span 4; grid-row: span 2; background: var(--surface-2); }
.t-cancel { grid-column: span 4; grid-row: span 2; background: var(--surface); }
.t-noise { grid-column: span 4; grid-row: span 2; background: var(--field); color: var(--field-ink); }
.cap { position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 1; }
.cap h3 { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.cap p { font-size: var(--step-small); margin-top: 0.2rem; }
.big { position: absolute; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.8; white-space: nowrap; }
.t-morning .big { font-size: min(44cqw, 15.5rem); right: 20px; top: 20px; }
.t-evening .big { font-size: min(34cqw, 10rem); left: 20px; top: 20px; color: var(--ink); }
.t-money .big { font-size: min(28cqw, 7.5rem); right: 20px; top: 20px; display: flex; align-items: baseline; gap: 0.12em; }
.big__for { font-size: 0.24em; letter-spacing: -0.01em; line-height: 1; }
/* struck word stays in the text colour, only the line is the accent */
.nope { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.t-money .cap { right: 50%; }
.disc-row { position: absolute; right: 20px; top: 20px; display: flex; font-size: min(14cqw, 3.5rem); }
.disc-row span { width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.8em; margin-left: -0.35em; color: var(--accent-ink); }
.disc-row span:nth-child(1) { background: var(--accent); }
.disc-row span:nth-child(2) { background: #eff0f1; }
.disc-row span:nth-child(3) { background: #8f9298; }
.word { position: absolute; right: 20px; top: 20px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); letter-spacing: -0.02em; padding: 0.05em 0.3em 0.12em; line-height: 1; }
.t-fold [data-ui] { position: absolute; left: 20px; right: 20px; top: 20px; font-size: var(--step-sub); display: grid; gap: 0.5rem; }
.t-fold .msg { background: #fff; color: #18191b; font-size: 1em; }
.t-fold .msg--res { background: var(--bg); color: var(--ink); display: flex; gap: 0.5rem; align-items: center; }
.t-fold .msg--res svg { width: 1em; }
.t-noise [data-ui] { position: absolute; left: 20px; right: 20px; top: 20px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; font-size: var(--step-body); }
.t-noise .msg { background: #fff; color: #5f6166; text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.t-noise .cap, .t-family .cap, .t-cancel .cap { right: 30%; }

/* ---------- sections: picture and three lines ---------- */
.sections { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: stretch; }
/* the photo takes the height of the text next to it, so neither leaves an empty corner */
.sections__pic { grid-column: 1 / span 5; margin: 0; position: relative; min-height: 22rem; }
.sections__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; filter: grayscale(1) contrast(1.05); }
.sections__text { grid-column: 7 / span 6; }
.sections h2 { font-size: var(--step-head); }
.sections__lead { margin-top: 1.5rem; max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.sections__list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.sections__list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.75rem; align-items: start; }
.sections__list svg { width: 1.1rem; margin-top: 0.3rem; }
.sections__list strong { font-weight: 600; }

/* ---------- about: inset panel, shaped picture ---------- */
.panel { margin-inline: 20px; background: var(--field); color: var(--field-ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding: clamp(28px, 4vw, 56px); }
.panel h2 { grid-column: 1 / -1; font-size: var(--step-head); max-width: 12em; }
.panel__fig { grid-column: 1 / span 6; grid-row: 2; margin: 0; }
.panel__pic { position: relative; overflow: hidden; aspect-ratio: 100 / 88; clip-path: polygon(0% 56.8%, 20% 34.1%, 38% 54.5%, 80% 6.8%, 100% 29.5%, 38% 100%); }
/* the family sits on the tick: scaled and shifted so the faces fall inside its strokes */
.panel__pic img { position: absolute; width: 125%; max-width: none; height: auto; left: -10%; top: 6%; filter: grayscale(1) contrast(1.05); }
.panel__text { grid-column: 8 / span 5; grid-row: 2; display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); max-width: 26rem; }
.panel__text h3 { font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; margin-bottom: 0.6rem; }
.panel__text p { color: var(--field-ink); }
.panel .btn:hover { background: var(--field-ink); color: var(--field); }

/* ---------- privacy: one promise per poster line ---------- */
.poster { padding-block: 80px; }
.poster__line { font-family: var(--font-display); font-weight: 800; font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.02em; }
.poster__head { color: var(--muted); }
.poster__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: 0.6rem; }
.poster__row .poster__line { grid-column: 1 / span 8; transition: color var(--t-hover); }
.poster__row:hover .poster__line { color: var(--accent); }
.poster__detail { grid-column: 9 / span 4; font-size: var(--step-body); line-height: 1.4; color: var(--muted); max-width: 34ch; }
details.is-animating { overflow: hidden; }

/* ---------- faq: questions beside a tall photograph ---------- */
.faq-sec { background: var(--surface); padding-block: 0; }
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: stretch; padding-block: 80px 24px; }
.faq__main { grid-column: 1 / span 5; grid-row: 1; }
.faq h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.faq__facts { margin-top: 1.5rem; display: grid; gap: 0.25rem; }
.faq__list { margin-top: 2.5rem; display: grid; gap: 28px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; transition: color var(--t-hover); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.chev { position: relative; width: 14px; height: 14px; flex: none; transition: transform var(--t-ui) var(--ease-out); }
.chev::before, .chev::after { content: ""; position: absolute; top: 6px; width: 9px; height: 2px; background: currentColor; }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
details[open]:not(.is-closing) > summary .chev { transform: rotate(180deg); }
.faq details p { margin-top: 0.75rem; max-width: 46ch; color: var(--muted); font-size: var(--step-body); line-height: 1.55; }
.faq__acts { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.faq__pics { grid-column: 7 / span 6; grid-row: 1 / span 2; margin: -80px calc(var(--margin) * -1) -24px 0; display: flex; flex-direction: column; }
.faq__pics figure { margin: 0; }
.faq__pics img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.faq__tall { flex: 1; min-height: 28rem; }
.faq__tall img { object-position: 30% 30%; }
.faq__cap { grid-column: 1 / span 6; grid-row: 2; align-self: end; margin: 0; padding-top: 3rem; padding-right: var(--gutter); color: var(--muted); font-size: var(--step-small); }

/* ---------- cta: one word is the button ---------- */
.cta { display: block; position: relative; margin-top: 0; height: 60svh; min-height: 22rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; overflow: hidden; }
.cta:hover, .cta:focus-visible { background: var(--ink); color: var(--bg); }
.cta:focus-visible { outline: none; }
.cta__say { position: absolute; left: var(--margin); top: 2rem; max-width: 30ch; font-size: var(--step-sub); font-weight: 600; line-height: 1.3; }
.cta__arrow { position: absolute; right: var(--margin); top: 2rem; width: 48px; height: 48px; stroke: currentColor; stroke-width: 5; fill: none; transition: transform var(--t-ui) var(--ease-out); }
.cta:hover .cta__arrow { transform: translate(6px, -6px); }
.cta__word { position: absolute; left: var(--margin); bottom: 24px; font-family: var(--font-display); font-weight: 800; font-size: 19vw; line-height: 0.74; letter-spacing: -0.03em; white-space: nowrap; }

/* ---------- footer: the mark, built large ---------- */
.foot { min-height: 100svh; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; background: var(--field); color: var(--field-ink); padding: 40px var(--margin) 20px; }
.foot__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.foot__say { grid-column: 1 / span 5; font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; max-width: 20ch; }
.foot__label { color: var(--field-muted); font-size: var(--step-small); margin-bottom: 0.9rem; }
.foot__nav { grid-column: 7 / span 3; }
.foot__nav ul { display: grid; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
/* links slide right and the tick comes in from the left, the motif of the page */
.foot__nav a { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--step-sub); letter-spacing: -0.015em; color: var(--field-ink); text-decoration: none; }
.foot__nav a svg { width: 0; height: 0.8em; margin-right: 0; flex: none; opacity: 0; transition: width var(--t-ui) var(--ease-out), margin-right var(--t-ui) var(--ease-out), opacity var(--t-ui) var(--ease-out); }
.foot__nav a span { transition: color var(--t-hover); }
.foot__nav a:hover svg, .foot__nav a:focus-visible svg { width: 0.9em; margin-right: 0.45em; opacity: 1; }
.foot__nav a:hover span { color: var(--accent); }
.foot__contact { grid-column: 10 / span 3; color: var(--field-muted); font-size: var(--step-small); }
.foot__bot { display: inline-flex; align-items: center; gap: 0.4em; margin-bottom: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; color: var(--field-ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 0.18em; transition: color var(--t-hover); }
.foot__bot svg { width: 0.8em; height: 0.8em; transition: transform var(--t-hover) var(--ease-out); }
.foot__bot:hover { color: var(--accent); }
.foot__bot:hover svg { transform: translate(3px, -3px) rotate(-45deg); }
.foot__mark { grid-row: 3; margin-top: 20svh; display: flex; align-items: baseline; gap: 4px; height: 34svh; min-height: 12rem; }
.foot__mark svg { height: 100%; width: auto; max-width: 30%; flex: none; }
.foot__mark span { font-family: var(--font-display); font-weight: 800; font-size: 15vw; line-height: 0.72; letter-spacing: -0.03em; white-space: nowrap; }
.foot__legal { grid-row: 4; margin-top: 20px; display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); color: var(--field-muted); }
.foot__legal a { color: var(--field-ink); }

/* ---------- entrances ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
  .hb .msg { animation: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .band__pics img { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav ul { display: none; }
  /* fewer, smaller bubbles, kept to the corners above and below the text */
  .hb { max-width: 11rem; }
  .band__cap h2 { grid-column: 1 / -1; }
  .band__cap p { grid-column: 1 / span 8; margin-top: 1.25rem; }
  .board { grid-auto-rows: 88px; }
  /* the heading has the full width here, so its row is as tall as the heading, not two tiles */
  .board { grid-template-rows: auto; }
  .t-head { grid-row: span 1; padding-block: 0 1rem; }
  .t-morning { grid-column: span 12; }
  .t-money .big { font-size: min(20cqw, 7.5rem); }
  .t-head, .t-money { grid-column: span 12; }
  .t-evening { grid-column: span 5; }
  .t-fold { grid-column: span 7; }
  .t-family { grid-column: span 7; }
  .t-cancel { grid-column: span 5; }
  .t-noise { grid-column: span 12; }
  .foot__say { grid-column: 1 / -1; }
  .foot__nav { grid-column: 1 / span 6; }
  .foot__contact { grid-column: 7 / span 6; }
  .sections__text { grid-column: 6 / span 7; }
  .poster__row .poster__line { grid-column: 1 / span 7; }
  .poster__detail { grid-column: 8 / span 5; font-size: var(--step-small); }
  .show__pane { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .nav { gap: 0.75rem; }
  .nav__end { gap: 0.5rem; }
  .nav .btn { padding: 0 0.85rem; white-space: nowrap; }
  .hero__stage { min-height: auto; padding-top: 6rem; padding-bottom: 0; }
  .hero h1 { font-size: 12vw; }
  .hero__lead { margin-top: 1.5rem; }
  .hero__acts { margin-top: 1.75rem; }
  /* the phone gets the finished composition: a small pile of the evening's messages, then the digest */
  .hero__noise { position: static; order: 2; display: grid; gap: 0.5rem; margin-top: 3rem; width: 100%; }
  .hb { position: static; max-width: 16rem; }
  .hb:nth-child(even of .keep) { justify-self: end; }
  .hero__digest { order: 3; margin-top: 1.5rem; }

  .show { display: flex; flex-direction: column; align-items: stretch; row-gap: 0; }
  .show__list { order: -1; align-self: stretch; min-width: 0; margin-top: 0 !important; margin-bottom: 1.25rem; }
  .show__stage { min-height: 0; }
  .show__list h2 { margin-bottom: 1rem; }
  .show__list ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .show__list button { font-size: 1.625rem; white-space: nowrap; }
  .show__fact { align-self: stretch; max-width: none; margin-top: 1rem; }

  .how { display: grid; grid-template-columns: 1fr; row-gap: 28px; }
  .how h2, .how__step:nth-of-type(n) { grid-column: 1; grid-row: auto; }
  .how__step:nth-of-type(1) .how__tile { height: auto; min-height: 60vw; }
  .how__step:nth-of-type(2) .how__tile { height: auto; min-height: 76vw; }
  .how__step:nth-of-type(3) .how__tile { height: auto; min-height: 96vw; }

  .band__pics { aspect-ratio: 4 / 3; }
  .band__cap { display: block; }
  .band__cap p { margin-top: 1rem; }

  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px; padding-inline: var(--margin); }
  .board { grid-auto-flow: dense; }
  .board > * { grid-column: span 1 !important; grid-row: span 2 !important; }
  .t-fold { grid-column: span 2 !important; }
  .t-fold .cap { right: 50% !important; }
  .t-fold [data-ui] { left: 52% !important; }
  .t-head, .t-morning, .t-money { grid-column: span 2 !important; }
  .t-head { grid-row: span 1 !important; padding: 0 0 1rem; }
  .t-morning { grid-row: span 3 !important; }
  .cap { left: 14px; right: 14px !important; bottom: 14px; }
  .cap h3 { font-size: var(--step-body); }
  .cap p { font-size: var(--step-small); }
  .t-evening .big { left: 14px; top: 14px; }
  .t-morning .big, .t-money .big { right: 14px; top: 14px; }
  .t-money .cap { right: 40% !important; }
  .t-fold [data-ui] { font-size: var(--step-small); top: 14px; right: 14px; }
  .t-noise [data-ui] { left: 14px; right: 14px; top: 14px; }
  .disc-row { right: 14px; top: 14px; }
  .word { font-size: var(--step-lead); right: 14px; top: 14px; }

  .sections { display: flex; flex-direction: column; align-items: stretch; row-gap: 2rem; }
  .sections__pic { min-height: 0; }
  .sections__pic img { position: static; aspect-ratio: 4 / 5; }
  .panel { margin-inline: 10px; display: flex; flex-direction: column; row-gap: 2rem; padding: 32px 20px; }
  .panel__text { max-width: none; }

  .faq { display: flex; flex-direction: column; align-items: stretch; padding-block: 0 24px; }
  .faq__pics { order: -1; margin: 0 calc(var(--margin) * -1) 2.5rem; }
  .faq__tall { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .faq__cap { margin: 1.5rem 0 0; }
  .faq__list { gap: 24px; }
  .faq summary { min-height: 44px; }
  .faq__acts .btn { width: 100%; justify-content: center; }

  .cta { height: 46svh; }
  .cta__say { top: 1.25rem; font-size: var(--step-body); max-width: 18ch; }
  .cta__arrow { top: 1.25rem; width: 32px; height: 32px; }

  .foot__mark { height: 22svh; min-height: 8rem; }
  .foot__cols { row-gap: 2rem; }
  .foot__say { grid-column: 1 / -1; }
  .foot__nav, .foot__contact { grid-column: span 6; }
  .foot__legal { flex-wrap: wrap; }
  .poster { padding-block: 56px; }
  .poster__line { font-size: 12vw; }
  .poster__row { display: block; margin-bottom: 22px; }
  .poster__detail { display: block; margin-top: 6px; font-size: var(--step-small); }
}

/* light theme: the features board alternates light and dark tiles so no two dark ones touch */
:root[data-theme="light"] .t-morning, :root[data-theme="light"] .t-fold { background: var(--surface); color: var(--ink); }
:root[data-theme="light"] .t-evening { background: var(--surface-2); color: var(--ink); }
:root[data-theme="light"] .t-family { background: var(--field); color: var(--field-ink); }
:root[data-theme="light"] .t-noise { background: var(--field-2); color: var(--field-ink); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .t-morning, :root:not([data-theme="dark"]) .t-fold { background: var(--surface); color: var(--ink); }
  :root:not([data-theme="dark"]) .t-evening { background: var(--surface-2); color: var(--ink); }
  :root:not([data-theme="dark"]) .t-family { background: var(--field); color: var(--field-ink); }
  :root:not([data-theme="dark"]) .t-noise { background: var(--field-2); color: var(--field-ink); }
}
:root[data-theme="light"] .t-fold .msg--res { background: var(--field); color: var(--field-ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .t-fold .msg--res { background: var(--field); color: var(--field-ink); } }
