/* Proszę czekać / Unhold - "Melodyjka": a now-playing screen for hold music. Team v8. */
:root {
  --paper: #F7F2E8;
  --paper-2: #EDE5D4;
  --card: #FFFCF5;
  --line: #D8CDB7;
  --line-strong: #B9AD93;
  --ink: #16140F;
  --ink-2: #5A554B;
  --hold: #FF6A3D;
  --hold-soft: #FF8A5B;
  --hold-ink: #A33A14;
  --hold-tint: #FBDFCF;
  --go: #2EDB84;
  --go-soft: #5BE39A;
  --go-ink: #0F6139;
  --go-tint: #D7F3E3;
  --device: #15201B;
  --device-2: #1E2C26;
  --device-line: #2F4038;
  --device-muted: #A7B3AC;
  --shadow: 0 30px 60px -30px rgba(22, 20, 15, 0.45);
  --shadow-card: 0 18px 40px -24px rgba(22, 20, 15, 0.4);
  --shadow-up: 0 -12px 30px -18px rgba(22, 20, 15, 0.5);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.72rem;
  --text-s: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-m: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-l: clamp(1.125rem, 1rem + 0.55vw, 1.4375rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --text-h2: clamp(2rem, 1.3rem + 2.8vw, 3.75rem);
  --text-h1: clamp(2.25rem, 11.6vw, 7.5rem);

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --radius: 22px;
  --radius-s: 14px;
  --max: 1200px;
  --stage: 400px;
  --stage-gap: 2.75rem;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-m);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* .q is the machine voice: one-line IVR snippets only. Longer agent lines use .said, the same colour in the body face. */
.q { color: var(--hold-ink); font-family: var(--font-mono); font-size: 0.92em; }
.said { color: var(--hold-ink); }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--go); color: var(--ink);
  font-weight: 700; font-size: var(--text-m); line-height: 1.1; text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--go-soft); }
.btn-small { padding: 10px 18px; font-size: 0.95rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.65; cursor: progress; transform: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; text-underline-offset: 4px;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 18px; height: 18px; }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-thickness: 2px; }

/* Header */
.site-header { padding: 14px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--ink); }
.brand-mark circle { fill: var(--paper); }
.brand-mark .d1 { opacity: 0.45; }
.brand-mark .d2 { opacity: 0.75; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.nav-links { display: none; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.lang {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 7px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.lang:hover { background: var(--paper-2); }
/* The sign-up pill stays at every width; on the narrowest phones the brand keeps its mark and the H1 carries the name */
@media (max-width: 419px) { .brand > span { display: none; } }

/* Ticker: the hotline speaking (tablet and up, contained to the page width) */
.ticker {
  display: none; margin-top: 4px;
  background: var(--device); color: var(--hold-soft);
  font-family: var(--font-mono); font-size: var(--text-s); font-weight: 500;
  overflow: hidden; white-space: nowrap; padding: 9px 0;
  border: 1px solid var(--device-line); border-radius: 999px;
  mask-image: linear-gradient(90deg, transparent, var(--ink) 5%, var(--ink) 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 5%, var(--ink) 95%, transparent);
}
.ticker-track { display: inline-flex; will-change: transform; animation: ticker 55s linear infinite; }
.ticker-track:hover, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-track > span { padding-inline: 1.1rem; }
.ticker-track > span::after { content: "\266A"; margin-left: 2.2rem; color: var(--device-muted); }
.ticker-track .flip { color: var(--go-soft); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.hero { padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem) 0 clamp(3rem, 2rem + 4vw, 6rem); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--hold-ink); font-size: var(--text-s); margin-bottom: 0.6rem;
}
.kicker svg { width: 18px; height: 18px; flex: none; }
.h1 {
  font-size: var(--text-h1); font-weight: 800; line-height: 0.93; letter-spacing: -0.028em;
  text-wrap: balance; isolation: isolate;
}
.h1 .line { white-space: nowrap; }
.h1 .flip { position: relative; display: inline-block; white-space: nowrap; }
.h1 .flip::before {
  content: ""; position: absolute; inset: 0.1em -0.12em -0.02em -0.14em; z-index: -1;
  background: var(--go); border-radius: 0.18em; transform: rotate(-1.2deg);
}
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); margin-top: clamp(1.25rem, 0.75rem + 2vw, 2.75rem); align-items: start; }
.hero-copy { max-width: 36rem; }
.lead { font-size: var(--text-l); line-height: 1.4; color: var(--ink); }
.lead strong { font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.status-note { margin-top: 1.1rem; color: var(--ink-2); font-size: var(--text-s); font-family: var(--font-mono); }
.status-note::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--go-ink); margin-right: 10px; vertical-align: 1px; }

/* Stage: hotline chips, the agent's now-playing screen, your phone */
.stage-wrap { position: relative; max-width: 460px; display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips-label { flex: 0 0 100%; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
/* width 0 + min-width 100%: the scrolling row fills its line without pushing the page wider than the viewport on narrow phones */
.chips-row { display: flex; gap: 8px; width: 0; min-width: 100%; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 0.9rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* Phones: the player comes first and the chips follow it as one scrollable row, so the art and the queue line reach the first screen */
@media (max-width: 719px) {
  .chips { order: 2; margin-top: 18px; }
  .chips-row { overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 6px; margin: -2px -2px 0; scrollbar-width: none; }
  .chips-row::-webkit-scrollbar { display: none; }
  .chip { min-height: 34px; padding: 0 13px; font-size: 0.86rem; }
}
.stage { margin: 0; position: relative; }
.stage-scene { position: relative; }
.sticker {
  position: absolute; z-index: 3; top: -18px; right: 12px; transform: rotate(5deg);
  background: var(--go); color: var(--ink); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(22, 20, 15, 0.6);
}
.player {
  position: relative; background: var(--device); color: var(--paper);
  border-radius: var(--radius); padding: 24px 20px 54px; box-shadow: var(--shadow);
  display: grid;
}
.panel { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 320ms ease, visibility 0s linear 320ms; }
.stage[data-state="hold"] .panel-hold, .stage[data-state="ring"] .panel-ring, .stage[data-state="done"] .panel-done { opacity: 1; visibility: visible; transition-delay: 0s; }
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--device-muted); }
.player-top .live { color: var(--hold-soft); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hold); flex: none; }
.stage.is-live[data-state="hold"] .live::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.art {
  margin-top: 14px; aspect-ratio: 2.4 / 1; border-radius: 14px; background: var(--hold);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.art svg { width: 100%; height: 100%; }
.art .staff { stroke: var(--ink); opacity: 0.22; }
.art .note { fill: var(--ink); }
.art .wave { stroke: var(--ink); fill: none; stroke-width: 6; stroke-linecap: round; }
.art .bar { fill: var(--ink); transform-origin: center bottom; transform: scaleY(0.7); }
.art .bar:nth-child(2) { transform: scaleY(1); } .art .bar:nth-child(4) { transform: scaleY(0.5); }
.stage.is-live[data-state="hold"] .art .bar { animation: eq 1.1s ease-in-out infinite; }
.stage.is-live[data-state="hold"] .art .bar:nth-child(2) { animation-delay: 0.15s; } .stage.is-live[data-state="hold"] .art .bar:nth-child(3) { animation-delay: 0.3s; }
.stage.is-live[data-state="hold"] .art .bar:nth-child(4) { animation-delay: 0.45s; } .stage.is-live[data-state="hold"] .art .bar:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.track-title { margin-top: 12px; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.15; }
.track-sub { margin-top: 4px; color: var(--device-muted); font-size: 0.8rem; }
.queue { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--device-line); }
.queue-label { color: var(--device-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.queue-line { margin-top: 5px; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--hold-soft); line-height: 1.1; }
.queue-line .num { display: inline-block; min-width: 1.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { margin-top: 14px; height: 6px; border-radius: 999px; background: var(--device-line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 35%; background: var(--hold-soft); border-radius: inherit; transition: width 900ms linear; }
.times { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; font-size: 0.75rem; color: var(--device-muted); font-variant-numeric: tabular-nums; }
.times .plays { text-align: center; }
.times .plays b { color: var(--paper); font-weight: 600; }
.controls { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 6px; color: var(--paper); }
.controls svg { width: 20px; height: 20px; fill: currentColor; }
.controls .big { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--device); }
.controls .big svg { width: 18px; height: 18px; }
.controls .active { color: var(--go-soft); }

.panel-ring, .panel-done { align-items: center; justify-content: center; text-align: center; padding: 22px 6px; }
.ring-avatar, .done-check { width: 92px; height: 92px; border-radius: 50%; background: var(--go); display: grid; place-items: center; }
.ring-avatar svg, .done-check svg { width: 42px; height: 42px; }
.stage.is-live[data-state="ring"] .ring-avatar { animation: ring 1s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.ring-kicker { margin-top: 20px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--device-muted); }
.ring-name, .done-title { margin-top: 8px; font-weight: 800; font-size: 1.85rem; letter-spacing: -0.02em; line-height: 1.02; }
.ring-sub { margin-top: 12px; color: var(--device-muted); max-width: 30ch; line-height: 1.4; font-size: 0.95rem; }
.ring-sub .q { color: var(--hold-soft); }
.ring-go { margin-top: 14px; color: var(--go-soft); font-weight: 700; font-size: 0.95rem; }
.done-sub { margin-top: 12px; color: var(--device-muted); max-width: 28ch; line-height: 1.4; }

.phone {
  position: relative; z-index: 2; margin: -40px 14px 0; min-height: 92px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px;
  background: var(--card); color: var(--ink); border-radius: 16px;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-card);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.phone-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); transition: background-color 300ms ease, color 300ms ease; }
.phone-icon svg { width: 22px; height: 22px; }
.phone-text { flex: 1 1 12rem; min-width: 0; display: grid; gap: 2px; }
.phone-app { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.phone-tag { color: var(--go-ink); font-weight: 700; }
.phone-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.phone-sub { font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }
.phone-answer { display: none; margin-left: auto; }
.stage[data-state="ring"] .phone { border-color: var(--go); box-shadow: var(--shadow-card), 0 0 0 4px var(--go-tint); }
.stage[data-state="ring"] .phone-icon, .stage[data-state="done"] .phone-icon { background: var(--go); color: var(--ink); }
/* The card keeps one height across hold, ring and done, so nothing below it jumps */
@media (max-width: 719px) { .phone-sub { min-height: 2.8em; display: flex; align-items: center; } }
@media (min-width: 720px) { .stage[data-state="ring"] .phone-answer { display: inline-flex; } }
.stage.is-live[data-state="ring"] .phone-icon svg { animation: ringing 0.5s ease-in-out infinite; }
@keyframes ringing { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.stage-caption { margin: 14px 14px 0; color: var(--ink-2); font-size: var(--text-s); font-family: var(--font-mono); line-height: 1.5; }

/* Sections */
.section { padding: clamp(3rem, 2rem + 4vw, 7rem) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--hold-ink); font-size: var(--text-s); }
.section-kicker svg { width: 18px; height: 18px; flex: none; }
.h2 { margin-top: 14px; font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.025em; line-height: 1; text-wrap: balance; max-width: 18ch; }
.section-lead { margin-top: 1.1rem; font-size: var(--text-l); line-height: 1.4; max-width: 36rem; }

/* How it works */
.how-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); align-items: start; }
.steps { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.key {
  width: 56px; height: 56px; border-radius: 14px; background: var(--device); color: var(--paper);
  display: grid; place-items: center; align-content: center; gap: 0; box-shadow: inset 0 -4px 0 var(--device-line), 0 2px 0 var(--ink);
  font-family: var(--font-mono); line-height: 1;
}
.key b { font-size: 1.45rem; font-weight: 700; }
.key small { font-size: 0.56rem; letter-spacing: 0.22em; color: var(--device-muted); margin-top: 3px; min-height: 0.56rem; }
.step h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.step p { margin-top: 8px; color: var(--ink-2); line-height: 1.5; }
.step-you h3 { color: var(--go-ink); }
/* The Agent / Ty ledger only appears beside the sticky call log; stacked under it on phones it would tell the story twice */
.ledger { display: none; margin-top: 12px; font-size: 0.9rem; line-height: 1.45; }
.ledger > div { display: grid; grid-template-columns: 3.6rem 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ledger > div:last-child { border-bottom: 1px solid var(--line); }
.ledger dt { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; padding-top: 3px; }
.ledger-agent dt { color: var(--hold-ink); }
.ledger-you dt { color: var(--go-ink); }
.ledger dd { color: var(--ink-2); }
.ledger-you dd { color: var(--ink); }

/* Call log */
.log { background: var(--device); color: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-family: var(--font-mono); }
.log-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--device-muted); padding-bottom: 14px; border-bottom: 1px solid var(--device-line); }
.log-top .live::before { background: var(--go-soft); }
.log-lines { margin-top: 10px; display: grid; gap: 9px; font-size: 0.86rem; line-height: 1.45; }
.log-lines li { display: grid; grid-template-columns: 4.2ch 1fr; gap: 12px; align-items: baseline; opacity: 0; transform: translateY(6px); transition: opacity 420ms ease, transform 420ms ease; transition-delay: calc(var(--i) * 220ms); }
.log.is-in .log-lines li, .log.static .log-lines li { opacity: 1; transform: none; }
.log-lines time { color: var(--device-muted); font-size: var(--text-xs); padding-top: 2px; font-variant-numeric: tabular-nums; }
.log-lines .q { color: var(--hold-soft); font-size: inherit; }
.log-you span { color: var(--go-soft); }
.log-you span::before { content: attr(data-you) " "; color: var(--device-muted); }
.log-human span { color: var(--paper); font-weight: 600; }
.log-ring span { color: var(--go-soft); font-weight: 700; }
.log-final { padding-top: 10px; border-top: 1px dashed var(--device-line); }
.log-final span { font-weight: 700; }
/* Stacked under the steps (below 900px) the log opens on its first six lines; the rest unfolds on request */
.log-more { display: none; margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer; background: var(--device-2); color: var(--go-soft); font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--device-line); }
.log-more:hover { background: var(--device-line); }
.log-more:focus-visible { outline-color: var(--go); }
@media (max-width: 899px) {
  .log.is-short .log-lines li:nth-child(n + 7) { display: none; }
  .log.is-short .log-more { display: inline-flex; }
}
.log-caption { margin-top: 14px; color: var(--ink-2); font-size: var(--text-s); font-family: var(--font-mono); line-height: 1.5; }

.how-closer { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }
.how-closer h3 { font-size: calc(var(--text-h3) * 1.3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; max-width: 18ch; text-wrap: balance; }
.how-closer p { font-size: var(--text-l); line-height: 1.4; max-width: 34rem; color: var(--ink); }

/* Where it helps: the keypad */
.where-grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); align-items: start; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key-btn {
  display: grid; gap: 6px; align-content: start; min-height: 104px; padding: 12px 10px 12px 12px;
  border: 0; border-radius: 16px; background: var(--device); color: var(--paper); text-align: left; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--device-line), 0 2px 0 var(--ink);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.key-btn b { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.key-btn b small { font-size: 0.56rem; letter-spacing: 0.2em; color: var(--device-muted); }
.key-btn span { font-size: 0.85rem; line-height: 1.25; font-weight: 600; hyphens: manual; }
.key-btn:hover { transform: translateY(-1px); }
.key-btn[aria-pressed="true"] { background: var(--go); color: var(--ink); box-shadow: inset 0 -4px 0 var(--go-ink), 0 2px 0 var(--ink); }
.key-btn[aria-pressed="true"] b small { color: var(--go-ink); }
/* The * and # keys are set dressing: outlined, dimmed, with a wink of a label; phones skip them and let 0 take the row */
.key-blank { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: default; opacity: 0.75; }
.key-blank:hover { transform: none; }
.key-blank b { color: var(--ink-2); }
.key-blank span { font-weight: 500; }
.keypad-note { margin-top: 14px; font-family: var(--font-mono); font-size: var(--text-s); color: var(--go-ink); font-weight: 600; min-height: 1.5em; line-height: 1.5; }
.keypad-note .link { color: var(--ink); margin-left: 2px; }
@media (max-width: 719px) {
  .key-btn { min-height: 96px; }
  .key-blank { display: none; }
  .key-btn[data-hotline="inne"] { grid-column: 1 / -1; min-height: 60px; grid-template-columns: auto 1fr; align-items: baseline; }
}
@media (max-width: 419px) { .key-btn b small { display: none; } }

/* Why it matters: the dark section */
.why { background: var(--device); color: var(--paper); }
.why .section-kicker { color: var(--hold-soft); }
.why-grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.why-block { padding-top: 18px; border-top: 1px solid var(--device-line); }
.why-block h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.why-block p { margin-top: 10px; color: var(--device-muted); line-height: 1.5; }
.why-block .q, .why-block .said { color: var(--hold-soft); }
.why-block strong { color: var(--go-soft); font-weight: 600; }
.why-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: clamp(1.5rem, 1rem + 1.5vw, 2rem); border-top: 1px solid var(--device-line); }
.why-cta span { font-family: var(--font-mono); font-size: var(--text-s); color: var(--device-muted); }

/* FAQ */
.faq { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; font-weight: 700; font-size: var(--text-l); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 20px; color: var(--ink-2); max-width: 42rem; line-height: 1.55; }

/* Waitlist */
.join-grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); align-items: start; }
.privacy-strip { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-s); background: var(--go-tint); color: var(--ink); margin-top: 1.5rem; }
.privacy-strip svg { flex: none; width: 26px; height: 26px; color: var(--go-ink); margin-top: 2px; }
.privacy-strip p { font-size: 0.98rem; line-height: 1.5; }
.form { background: var(--device); color: var(--paper); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--device-muted); padding-bottom: 14px; border-bottom: 1px solid var(--device-line); }
.form-top .live::before { background: var(--go-soft); }
.form.is-done .form-top .live { color: var(--go-soft); }
.form-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
/* Paper inputs on the dark card: the typing target is obvious at a glance and needs no autofill workaround */
.field input[type="email"], .field input[type="text"], .field select {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem;
}
.form :focus-visible { outline-color: var(--go); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; border-color: var(--go-ink); }
.field input[aria-invalid="true"] { border-color: var(--hold); box-shadow: inset 0 0 0 1px var(--hold); }
.field input[aria-invalid="true"]:focus-visible, .field-check input[aria-invalid="true"]:focus-visible { outline-color: var(--hold-soft); border-color: var(--hold); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 44px; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: calc(50% - 7px); width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.select-wrap.is-picked select { border-color: var(--go-ink); box-shadow: inset 0 0 0 1px var(--go-ink); }
.field-help, .field-error { font-size: 0.85rem; line-height: 1.4; }
.field-help { color: var(--device-muted); }
.field-error { color: var(--hold-soft); font-weight: 600; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--go); }
.field-check label { font-weight: 400; line-height: 1.45; font-size: 0.95rem; }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; line-height: 1.45; color: var(--device-muted); font-family: var(--font-mono); }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 16px; border-radius: 12px; background: var(--hold-tint); color: var(--ink); font-family: var(--font-display); }
.form-status.is-error a { color: var(--ink); }
.form-status.is-error:focus-visible { outline-color: var(--hold-soft); }
.form-retry { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 12px; }
.form-retry .btn { padding: 11px 20px; font-size: 0.95rem; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 14px 6px 8px; }
.form-success h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-top: 10px; max-width: 16ch; text-wrap: balance; }
.form-success h3:focus-visible { outline-color: var(--go); }
.form-success p { color: var(--device-muted); max-width: 34ch; line-height: 1.45; }
.btn-share { margin-top: 10px; padding: 11px 20px; font-size: 0.95rem; color: var(--paper); box-shadow: inset 0 0 0 2px var(--device-muted); }
.btn-share:hover { background: var(--device-2); }
.share-fallback { margin-top: 10px; font-size: 0.85rem; color: var(--device-muted); overflow-wrap: anywhere; }
.privacy { margin-top: 16px; font-size: 0.8rem; line-height: 1.55; color: var(--ink-2); }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--text-s); }
.site-footer .container { display: grid; gap: 1rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.footer-tag { font-family: var(--font-mono); color: var(--go-ink); font-weight: 700; font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); }

/* Mobile sign-up bar: slides in once the hero button is gone, leaves when the form arrives */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow-up);
  visibility: hidden; transform: translateY(110%); transition: transform 260ms ease, visibility 0s linear 260ms;
}
.sticky-cta.is-on { visibility: visible; transform: none; transition: transform 260ms ease, visibility 0s; }
.sticky-cta span { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--ink); min-width: 0; }
.sticky-cta .btn { flex: none; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* Layout: tablet and up */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .ticker { display: block; }
  .kicker { display: none; }
  .hero-head { margin-top: 1.25rem; }
  .stage-wrap { width: 100%; display: block; }
  .chips { margin-bottom: 36px; }
  .chips-row { width: auto; min-width: 0; max-width: 100%; flex: 1 1 auto; flex-wrap: wrap; }
  .chips-label { flex: 0 0 auto; margin-right: 4px; }
  .site-footer .container { grid-template-columns: auto 1fr auto; align-items: center; }
  .site-footer .container > p { text-align: center; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
  .stage-wrap { justify-self: end; }
  .how-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); }
  .ledger { display: grid; }
  .log-wrap { position: sticky; top: 24px; }
  .how-closer { grid-template-columns: 1fr 1fr; align-items: start; }
  .where-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 4rem; }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .join-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 4rem; }
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 4rem; }
  .step { grid-template-columns: 72px 1fr; gap: 22px; }
  .key { width: 72px; height: 72px; }
  .key b { font-size: 1.6rem; }
  .key small { font-size: 0.6rem; }
}
/* Desktop: the hero is one grid; the player starts level with the claim, so the quiet phone card is on the first screen even at 1366x768.
   The claim is capped by its column: the first line of the claim is about 6.4px wide per 1px of font size. */
@media (min-width: 1200px) {
  .hero .container { display: grid; grid-template-columns: minmax(0, 1fr) var(--stage); column-gap: var(--stage-gap); align-items: start; }
  .ticker { grid-column: 1 / -1; }
  .hero-head { grid-column: 1; margin-top: 1.5rem; }
  .h1 { font-size: min(7rem, calc((min(var(--max), 100vw - 2 * var(--gutter)) - var(--stage) - var(--stage-gap)) / 6.4)); }
  .hero-grid, .stage-wrap { display: contents; }
  .hero-copy { grid-column: 1; margin-top: clamp(1.5rem, 1rem + 1vw, 2.25rem); }
  .chips { grid-column: 1; margin: 1.75rem 0 0; max-width: 36rem; }
  .stage { grid-column: 2; grid-row: 2 / 5; margin-top: 1.75rem; width: 100%; justify-self: end; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .live::before, .art .bar, .ring-avatar, .phone-icon svg { animation: none !important; }
  .bar-fill, .btn, .log-lines li, .panel, .phone, .phone-icon, .chip, .key-btn, .faq summary::after, .sticky-cta { transition: none; }
  .log-lines li { opacity: 1; transform: none; }
}
