/* Odpal - colour chapters. Tokens first; everything below refers to them. */
:root {
  --yellow: #ffd249;
  --yellow-2: #f5c63c;
  --white: #ffffff;
  --pink: #ffc4ef;
  --cyan: #a4f6f8;
  --cyan-2: #86e3e6;
  --orange: #f9a21f;
  --magenta: #f53fd6;
  --ink: #0a0a0a;
  --paper: #ffffff;

  --bg: var(--yellow);
  --accent: var(--magenta);
  --accent-ink: var(--ink);

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* five sizes, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --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, 8.6vw, 9.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --frame: 10px;
  --radius: 0px;

  --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;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); font-weight: 400; line-height: 1.45; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
mark { color: inherit; }
:target { scroll-margin-top: 4rem; }
::selection { background: var(--magenta); color: var(--ink); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--paper); }
  .button--ink:hover { background: var(--paper); color: var(--ink); }
  .link:hover { text-decoration-color: currentColor; }
}
.wordmark { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
/* the chevron and the dot keep the logo colours, and swap to ink where the ground would swallow them */
.wordmark__mark { width: 0.95em; height: 0.95em; flex: none; overflow: visible; fill: none; stroke-width: 5.6; stroke-linecap: round; stroke-linejoin: round; }
.wordmark__mark .a { stroke: var(--logo-a, var(--magenta)); transition: stroke 300ms ease; }
.wordmark__mark .b { stroke: var(--logo-b, var(--yellow)); transition: stroke 300ms ease; }
.wordmark__dot { display: inline-block; width: 0.21em; height: 0.21em; margin: 0 0.05em 0 0.04em; border-radius: 50%; background: var(--logo-a, var(--magenta)); color: transparent; overflow: hidden; vertical-align: baseline; transition: background-color 300ms ease; }
.lang { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1; text-decoration: none; padding: 6px 2px; }

/* ---------- fixed bar: takes the chapter's ground and ink ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); height: 3.5rem; padding-inline: var(--margin); background: var(--header-bg, var(--yellow)); color: var(--header-ink, var(--ink)); transform: translateY(-100%); transition: transform 380ms var(--ease-out), background-color 300ms ease, color 300ms ease; }
.bar .wordmark { margin-right: auto; --logo-a: var(--header-logo-a, var(--magenta)); --logo-b: var(--header-logo-b, var(--ink)); }
.bar__links { display: flex; gap: clamp(1rem, 2vw, 2rem); font-size: var(--step-small); }
.bar .lang { font-size: var(--step-small); }
.is-past-hero .bar { transform: none; }
@media (max-width: 860px) { .bar__links { display: none; } }

/* ---------- hero: swatch column beside the view ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--frame); height: 100svh; min-height: 640px; padding: var(--frame); background: var(--yellow); }
.hero__panel { position: relative; grid-column: 1 / 11; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: var(--radius); isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__still { position: absolute; left: 50%; top: 56%; width: min(34vw, 46vh); transform: translate(-50%, -50%); z-index: -1; }
.hero__top { position: absolute; top: 28px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: baseline; }
.hero__title { position: absolute; top: 9%; left: 0; right: 0; text-align: center; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }
.prompt { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); width: min(620px, calc(100% - 56px)); display: grid; justify-items: center; gap: 16px; text-align: center; }
.prompt__line { display: flex; gap: 12px; align-items: baseline; min-height: 1.4em; font-size: var(--step-lead); line-height: 1.3; max-width: none; }
.prompt__caret { color: var(--magenta); }
.prompt__text::after { content: ''; display: inline-block; width: 0.08em; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--magenta); }
.hero__foot { position: absolute; left: 28px; right: 28px; bottom: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero__lead { max-width: 46ch; font-size: var(--step-body); }
.hero__cta { grid-column: 2; }
/* Below ~1400px the lead wraps to 4-5 lines and would reach the prompt: lift the prompt clear of it. */
@media (min-width: 801px) and (max-width: 1400px) { .prompt { bottom: 200px; } }
.hero__lead--phone { display: none; }
.hero__swatches { grid-column: 11 / 13; display: flex; flex-direction: column; }
.swatch { flex: 1; padding: 20px; text-decoration: none; font-size: var(--step-body); font-weight: 500; color: var(--ink); transition: padding-left var(--t-ui) var(--ease-out); }
.swatch span { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .swatch:hover span { transform: translateX(8px); } }
.swatch--white { background: var(--white); }
.swatch--cyan { background: var(--cyan); }
.swatch--yellow { background: var(--yellow-2); }
.swatch--pink { background: var(--pink); }
.swatch--magenta { background: var(--magenta); }

@media (max-width: 800px) {
  :root { --step-display: 13vw; }
  .hero { display: block; height: auto; min-height: 0; padding: 8px; }
  .hero__panel { height: 70svh; min-height: 520px; }
  .hero__top { top: 20px; left: 20px; right: 20px; }
  .hero__title { top: 72px; }
  .prompt { bottom: 88px; width: calc(100% - 40px); }
  .prompt__line { font-size: var(--step-body); }
  .hero__foot { left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: center; }
  .hero__foot .hero__lead { display: none; }
  .hero__swatches { margin-top: 8px; }
  .swatch { flex: none; height: 52px; padding: 14px 20px; }
  .hero__lead--phone { display: block; padding: 28px 12px 36px; font-size: var(--step-lead); line-height: 1.3; }
}

/* ---------- showcase: input half, output half ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; }
.show__in, .show__out { position: relative; padding: 16svh var(--margin); }
.show__in { background: var(--ink); color: var(--paper); padding-left: calc(var(--margin) + 4vw); }
.show__out { background: var(--white); color: var(--ink); display: flex; justify-content: center; align-items: flex-start; }
.show__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.show__tab { min-height: 2.75rem; padding: 0 1.1rem; font-weight: 500; background: #262626; color: var(--paper); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.show__tab:active { transform: scale(0.96); }
.show__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .show__tab:not([aria-selected="true"]):hover { background: #3a3a3a; } }
.show__prompt { display: block; width: 100%; max-width: 34ch; min-height: 7.5em; resize: none; field-sizing: content; background: transparent; border: 0; padding: 0; font-size: var(--step-lead); line-height: 1.4; color: var(--paper); caret-color: var(--magenta); }
.show__prompt:focus { outline: none; }
.show__in:focus-within .show__prompt { text-decoration: underline; text-decoration-color: #555; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.show__note { margin-top: 28px; max-width: 40ch; font-size: var(--step-small); color: #bdbdbd; }
.show__word { position: absolute; bottom: 32px; font-size: var(--step-head); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.show__word--left { left: calc(var(--margin) + 4vw); }
.show__word--right { right: var(--margin); }
.show__stage { width: min(500px, 100%); height: 470px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1200px) { .show__stage { zoom: 1.22; } }
@media (max-width: 800px) {
  .show { grid-template-columns: 1fr; }
  .show__in { padding: 48px 20px; }
  .show__out { padding: 40px 20px 56px; min-height: 0; }
  .show__word { font-size: var(--step-display); }
  .show__word--left { left: 20px; bottom: 28px; }
  .show__word--right { right: auto; left: 20px; top: 28px; bottom: auto; }
  .show__tabs { margin-bottom: 28px; }
  .show__prompt { font-size: 18px; }
}

/* ---------- product fragments (the product's own UI conventions) ---------- */
[data-ui].ui { --ui-ink: #0a0a0a; font-size: 15px; line-height: 1.35; color: var(--ui-ink); letter-spacing: -0.005em; }
[data-ui] .ui-btn { display: inline-block; font-style: normal; font-weight: 500; background: var(--ui-ink); color: #fff; padding: 9px 14px; border-radius: 8px; }
[data-ui].ui-web { border: 1px solid #d6d6d6; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); }
[data-ui] .ui-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f1f1; border-bottom: 1px solid #e2e2e2; }
[data-ui] .ui-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d0; }
[data-ui] .ui-url { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 13px; color: #555; }
[data-ui] .ui-page { background: var(--c); transition: background-color 400ms ease; }
[data-ui] .ui-nav { display: flex; gap: 18px; padding: 14px 18px; font-size: 14px; }
[data-ui] .ui-nav b { font-weight: 500; margin-right: auto; }
[data-ui] .ui-hero { display: grid; grid-template-columns: 1fr 170px; align-items: center; padding: 8px 18px 22px; gap: 8px; }
[data-ui] .ui-hero-copy { display: grid; gap: 8px; justify-items: start; }
[data-ui] .ui-hero-copy strong { font-size: 44px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 500; word-break: break-word; }
[data-ui] .ui-hero-copy span { font-size: 15px; margin-bottom: 8px; }
[data-ui] .ui-hero img { width: 170px; height: 170px; object-fit: contain; }
[data-ui] .ui-menu { background: #fff; padding: 8px 18px 14px; }
[data-ui] .ui-menu li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 14px; }
[data-ui] .ui-menu li:last-child { border-bottom: 0; }
[data-ui] .ui-menu b { font-weight: 500; font-variant-numeric: tabular-nums; }

[data-ui].ui-phone { width: 300px; margin-inline: auto; padding: 14px 16px 12px; background: #fff; border: 10px solid #0a0a0a; border-radius: 44px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); }
[data-ui] .ui-status { display: flex; justify-content: space-between; font-size: 12px; padding: 0 8px 12px; }
[data-ui] .ui-status b { font-weight: 500; }
[data-ui] .ui-app-head { background: var(--c); border-radius: 18px; padding: 16px; display: grid; gap: 2px; transition: background-color 400ms ease; }
[data-ui] .ui-app-head strong { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; word-break: break-word; }
[data-ui] .ui-sets { margin: 12px 0; display: grid; gap: 6px; }
[data-ui] .ui-sets li { display: flex; justify-content: space-between; padding: 10px 12px; background: #f3f3f3; border-radius: 12px; font-size: 14px; }
[data-ui] .ui-sets li.is-on { background: #0a0a0a; color: #fff; }
[data-ui] .ui-sets b { font-weight: 500; font-variant-numeric: tabular-nums; }
[data-ui] .ui-counter { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 12px; }
[data-ui] .ui-counter button { width: 44px; height: 44px; border-radius: 50%; background: var(--c); font-size: 22px; line-height: 1; cursor: default; }
[data-ui] .ui-counter div { text-align: center; display: grid; }
[data-ui] .ui-counter strong { font-size: 34px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
[data-ui] .ui-counter span { font-size: 12px; color: #555; }
[data-ui] .ui-reminder { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid #e5e5e5; border-radius: 12px; font-size: 14px; }
[data-ui] .ui-toggle { width: 38px; height: 22px; border-radius: 11px; background: #0a0a0a; position: relative; }
[data-ui] .ui-toggle::after { content: ''; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
[data-ui] .ui-tabs { display: flex; justify-content: space-around; padding-top: 12px; margin-top: 12px; border-top: 1px solid #eee; font-size: 12px; color: #777; }
[data-ui] .ui-tabs .is-on { color: #0a0a0a; font-weight: 500; }

[data-ui].ui-video { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: end; }
[data-ui] .ui-frame { position: relative; aspect-ratio: 9 / 16; background: #ffd249; border-radius: 14px; overflow: hidden; }
[data-ui] .ui-frame img, [data-ui] .ui-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-ui] .ui-frame strong { position: absolute; left: 10px; right: 10px; bottom: 10px; justify-self: start; max-width: max-content; background: var(--c); padding: 5px 8px; border-radius: 8px; font-size: 14px; line-height: 1.1; letter-spacing: -0.01em; font-weight: 500; word-break: break-word; transition: background-color 400ms ease; }
[data-ui] .ui-timeline { display: grid; gap: 8px; padding: 14px; background: #f3f3f3; border-radius: 14px; }
[data-ui] .ui-track { display: grid; gap: 4px; font-size: 12px; color: #444; }
[data-ui] .ui-track div { display: flex; gap: 3px; height: 26px; }
[data-ui] .ui-track i { border-radius: 5px; background: #0a0a0a; }
[data-ui] .ui-track:nth-child(2) i { background: var(--c); border: 1px solid rgba(0,0,0,.25); }
[data-ui] .ui-track:nth-child(3) i { background: #bdbdbd; }
[data-ui] .ui-render { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }

[data-ui].ui-agent { background: #fff; border: 1px solid #ddd; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); }
[data-ui] .ui-agent-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--c); transition: background-color 400ms ease; }
[data-ui] .ui-agent-head strong { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; }
[data-ui] .ui-agent-head span { display: flex; align-items: center; gap: 6px; font-size: 13px; background: #fff; padding: 4px 10px; border-radius: 99px; }
[data-ui] .ui-agent-head i { width: 8px; height: 8px; border-radius: 50%; background: #18b55a; }
[data-ui] .ui-log { padding: 6px 18px; }
[data-ui] .ui-log li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 14px; }
[data-ui] .ui-log time { color: #777; font-variant-numeric: tabular-nums; }
[data-ui] .ui-agent-foot { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px 16px; }
[data-ui] .ui-agent-foot strong { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
[data-ui] .ui-agent-foot span { font-size: 13px; color: #555; }

/* ---------- courses: one per poster line ---------- */
.courses { position: relative; background: var(--cyan); padding: 80px var(--margin); }
.course__line { font-size: inherit; }
.course__toggle { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 24px; text-align: left; }
.course__name { display: block; font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.05em; white-space: nowrap; transition: transform var(--t-ui) var(--ease-out); }
.course__fact { font-size: var(--step-lead); flex: none; }
.js .course:not(.is-open) .course__body { display: none; }
@media (hover: hover) and (pointer: fine) {
  .course__toggle:hover .course__name { transform: translateX(0.08em); }
}
.course__toggle:focus-visible { outline-offset: -3px; }
.course__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 32px 0 72px; }
.course__text { grid-column: 1 / 8; }
.course__about { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 36px 0 40px; }
.lessons li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.lessons img { width: 56px; height: 56px; flex: none; }
.course__object { grid-column: 8 / 13; align-self: center; }
.course__object img { width: 100%; max-width: 520px; margin-left: auto; transform: rotate(-4deg); }
.courses__preview { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.courses__list { position: relative; z-index: 1; }
.courses__preview img { position: absolute; left: var(--x, 60%); top: var(--y, 0); width: clamp(160px, 15vw, 240px); opacity: 0; transform: translate(0, -50%) rotate(-10deg) scale(0.85); transition: opacity var(--t-ui) ease, transform 420ms var(--ease-out); }
.courses__preview img.is-on { opacity: 1; transform: translate(0, -50%) rotate(-4deg) scale(1); }
@media (max-width: 800px) {
  .courses { padding: 56px 16px; }
  .course__toggle { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 8px; }
  .course__fact { font-size: var(--step-body); }
  .course + .course .course__line { padding-top: 20px; }
  .course__body { display: block; padding: 8px 0 48px; }
  .course__object img { width: 70%; margin: 24px auto 0; }
  .lessons { grid-template-columns: 1fr; margin: 24px 0 28px; }
  .lessons img { width: 48px; height: 48px; }
  .courses__preview { display: none; }
}

/* ---------- how it works: accordion of tinted panels ---------- */
.how { background: var(--yellow); padding: clamp(80px, 11vw, 160px) var(--margin); }
.how__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: 64px; align-items: end; }
.how__title { grid-column: 1 / 6; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }
.how__text { grid-column: 7 / 12; max-width: 52ch; }
.stages { display: flex; height: clamp(520px, 64svh, 700px); }
.stage { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow 450ms var(--ease-in-out); }
.stage.is-open { flex-grow: 6.4; }
.stage--1 { background: #5a2d00; color: var(--paper); }
.stage--2 { background: #8f4a00; color: var(--paper); }
.stage--3 { background: var(--orange); }
.stage--4 { background: #fbc46c; }
.stage--5 { background: #fde3b4; }
.stage__head { position: absolute; inset: 0; }
.stage__name { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px 20px; font-size: var(--step-lead); font-weight: 500; text-align: left; writing-mode: vertical-rl; transform: rotate(180deg); }
.stage.is-open .stage__name { writing-mode: horizontal-tb; transform: none; align-items: flex-start; padding: 32px 36px; font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; cursor: default; }
.stage__body { position: absolute; inset: 0; padding: 32px 36px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 300ms ease, visibility 0s 300ms; }
.stage.is-open .stage__body { opacity: 1; visibility: visible; transition: opacity 500ms ease 220ms; }
.stage__body p { max-width: 36ch; min-width: 28ch; }
.stage__img { width: clamp(160px, 18vw, 280px); height: auto; align-self: center; transform: translateY(12px) rotate(-6deg); transition: transform 700ms var(--ease-out) 200ms; }
.stage.is-open .stage__img { transform: rotate(-3deg); }
@media (hover: hover) and (pointer: fine) {
  .stage:not(.is-open) .stage__name:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
}
@media (max-width: 800px) {
  .how { padding: 64px 16px; }
  .how__intro { display: block; margin-bottom: 32px; }
  .how__title { margin-bottom: 16px; }
  .stages { flex-direction: column; height: auto; }
  .stage { flex: none; }
  .stage__head { position: static; }
  .stage__name, .stage.is-open .stage__name { position: static; writing-mode: horizontal-tb; transform: none; width: 100%; height: 64px; align-items: center; padding: 0 20px; font-size: var(--step-lead); letter-spacing: -0.01em; }
  .stage__body { position: static; display: none; padding: 0 20px 24px; grid-template-columns: 1fr 96px; }
  .stage.is-open .stage__body { display: grid; }
  .stage__body p { min-width: 0; }
  .stage__img { width: 96px; }
}

/* ---------- about: two columns, highlighted words ---------- */
.about { background: var(--white); padding: 120px var(--margin); }
.about__text { columns: 2; column-gap: 32px; font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.012em; max-width: none; }
.about__text b { font-weight: 500; }
.hl { padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--yellow { background: var(--yellow); }
.hl--cyan { background: var(--cyan); }
.hl--pink { background: var(--pink); }
.hl--orange { background: var(--orange); }
.hl--magenta { background: var(--magenta); }
.about__link { text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .about__link:hover { background: var(--ink); color: var(--paper); } }
@media (max-width: 800px) {
  .about { padding: 72px 18px; }
  .about__text { columns: 1; line-height: 1.25; }
  .about__link { display: block; width: fit-content; margin-top: 24px; padding: 6px 8px; }
}

/* ---------- pricing: two plans, two fields ---------- */
.pricing { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh; }
.plan { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 40px var(--margin) 40px; }
.plan--pink { background: var(--pink); }
.plan--orange { background: var(--orange); }
.plan__name { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.045em; }
.plan__who { margin-top: 16px; font-size: var(--step-lead); line-height: 1.25; max-width: 26ch; }
.plan__inc { margin-top: 24px; max-width: 46ch; }
.plan__objects { position: relative; flex: 1; min-height: 200px; }
.plan__objects img { position: absolute; top: 50%; width: clamp(150px, 15vw, 250px); transform: translate(-50%, -50%) rotate(var(--r)); left: var(--x); }
.plan__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.plan__price { font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.055em; font-weight: 500; white-space: nowrap; }
.plan__price span { font-size: var(--step-body); letter-spacing: 0; margin-left: 0.5em; font-weight: 400; }
@media (max-width: 800px) {
  .pricing { grid-template-columns: 1fr; }
  .plan { min-height: 70svh; padding: 32px 20px 20px; }
  .plan__objects { min-height: 150px; }
  .plan__objects img { width: 30vw; }
  .plan__foot .button { width: 100%; }
}

/* ---------- faq: a band per question ---------- */
.faq__head { display: flex; align-items: flex-end; min-height: 40svh; padding: 40px var(--margin) 32px; background: var(--magenta); }
.faq__title { font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.05em; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 56px var(--margin); }
.qa--a { background: var(--white); }
.qa--b { background: var(--pink); }
.qa__q { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }
.qa__a { grid-column: 7 / 13; max-width: 56ch; line-height: 1.5; }
@media (max-width: 800px) {
  .faq__head { min-height: 30svh; padding: 24px 20px; }
  .qa { display: block; padding: 32px 20px; }
  .qa__q { margin-bottom: 12px; }
}

/* ---------- cta: a sentence with a blank ---------- */
.cta { background: var(--cyan); padding: clamp(96px, 14vw, 200px) var(--margin) clamp(80px, 10vw, 140px); }
.cta__sentence { font-size: var(--step-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.045em; max-width: none; }
.cta__input { display: inline-block; width: 5.2em; height: 1.08em; vertical-align: -0.16em; padding: 0 0.2em; border: 0; background: var(--cyan-2); color: var(--ink); font-size: inherit; letter-spacing: -0.04em; border-radius: var(--radius); }
.cta__input::placeholder { color: #3f6e70; }
.cta__input:focus { outline: none; background: var(--paper); }
.cta__button { display: inline-block; height: 1.08em; vertical-align: -0.16em; padding: 0 0.25em; background: var(--magenta); color: var(--ink); font-weight: 500; letter-spacing: -0.045em; line-height: 1; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.cta__button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cta__button:hover { background: var(--ink); color: var(--paper); } }
.cta__after { margin-top: 32px; max-width: 52ch; }
@media (max-width: 800px) {
  .cta { padding: 72px 20px; }
  .cta__sentence { font-size: var(--step-head); }
  .cta__input { display: block; width: 100%; height: 1.2em; margin: 0.12em 0; font-size: 0.8em; }
}

/* ---------- footer: the mark, built large ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 56px var(--margin) 28px; }
.foot__mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; container-type: size; }
.block { position: relative; flex: 1; height: var(--h); overflow: hidden; }
.block b { position: absolute; left: 0.06em; bottom: -0.13em; font-size: 82cqh; font-weight: 500; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.block--yellow { background: var(--yellow); }
.block--pink { background: var(--pink); }
.block--cyan { background: var(--cyan); }
.block--orange { background: var(--orange); }
.block--magenta { background: var(--magenta); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 56px; font-size: var(--step-small); }
.foot__col { grid-column: span 2; }
.foot__col h3 { font-size: var(--step-small); font-weight: 500; margin-bottom: 12px; }
.foot__col li + li { margin-top: 6px; }
.foot__col a { color: #d9d9d9; text-decoration: none; }
.foot__col a:hover { color: var(--paper); }
.foot__contact { grid-column: 9 / 13; display: grid; gap: 6px; align-content: start; font-size: var(--step-lead); }
.foot__contact a { text-decoration: none; }
.foot__last { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; font-size: var(--step-small); color: #c9c9c9; }
.foot__last .button { background: var(--paper); color: var(--ink); }
@media (max-width: 800px) {
  .foot { padding: 40px 16px 24px; }
  .foot__mark { height: 22svh; min-height: 150px; }
  .block b { font-size: min(82cqh, 26cqw); }
  .foot__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot__col { grid-column: auto; }
  .foot__contact { grid-column: 1 / -1; }
  .foot__last { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion: content stays visible without script ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .hero__panel .prompt[data-rise] { transform: translate(-50%, 18px); animation-name: rise-prompt; }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__swatches .swatch { opacity: 0; transform: translateX(24px); animation: swatch-in 700ms var(--ease-out) forwards; }
  .js .hero__swatches .swatch:nth-child(1) { animation-delay: 420ms; }
  .js .hero__swatches .swatch:nth-child(2) { animation-delay: 490ms; }
  .js .hero__swatches .swatch:nth-child(3) { animation-delay: 560ms; }
  .js .hero__swatches .swatch:nth-child(4) { animation-delay: 630ms; }
  .js .hero__swatches .swatch:nth-child(5) { animation-delay: 700ms; }
  .js .block { transform: scaleY(0); transform-origin: bottom; transition: transform 900ms var(--ease-out); }
  .js .foot__mark.is-in .block { transform: none; }
  .js .foot__mark.is-in .block:nth-child(2) { transition-delay: 70ms; }
  .js .foot__mark.is-in .block:nth-child(3) { transition-delay: 140ms; }
  .js .foot__mark.is-in .block:nth-child(4) { transition-delay: 210ms; }
  .js .foot__mark.is-in .block:nth-child(5) { transition-delay: 280ms; }
  .course.is-open .course__body { animation: open-body 600ms var(--ease-out); }
  .course__object img { animation: bob 7s var(--ease-in-out) infinite alternate; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-prompt { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes line-up { to { transform: none; } }
@keyframes swatch-in { to { opacity: 1; transform: none; } }
@keyframes open-body { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes bob { from { transform: rotate(-5deg) translateY(-6px); } to { transform: rotate(-2deg) translateY(8px); } }
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .js .hero__swatches .swatch { transform: translateY(12px); }
}


/* ---------- before / after: two live pages under one slider ---------- */
.compare { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 160px) var(--margin); }
.compare__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: 56px; }
.compare__title { grid-column: 1 / 7; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }
.compare__text { grid-column: 7 / 12; max-width: 52ch; }
.compare__stage { position: relative; width: min(100%, calc((100svh - 140px) * 1.6)); margin-inline: auto; }
.compare__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a1a; }
.compare__view { cursor: ew-resize; touch-action: none; overscroll-behavior: contain; }
.compare__layer { position: absolute; inset: 0; overflow: hidden; }
.compare__layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__img { display: block; width: 100%; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
.compare__progress { position: absolute; right: 8px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: rgba(255,255,255,.18); pointer-events: none; }
.compare__progress i { position: absolute; left: 0; right: 0; top: 0; height: 18%; border-radius: 2px; background: var(--paper); transform: translateY(calc(var(--p, 0) * 455%)); }
.compare__live { display: flex; gap: 28px; flex-wrap: wrap; width: min(100%, calc((100svh - 140px) * 1.6)); margin: 24px auto 0; font-size: var(--step-small); color: #cfcfcf; max-width: none; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--paper); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--paper); transition: transform var(--t-press) var(--ease-out); }
.compare__handle span::before, .compare__handle span::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent; }
.compare__handle span::before { left: 9px; border-right-color: var(--ink); }
.compare__handle span::after { right: 9px; border-left-color: var(--ink); }
.compare__stage.is-dragging .compare__handle span { transform: scale(0.92); }
.compare__tag { position: absolute; top: 20px; padding: 8px 12px; font-size: var(--step-small); font-weight: 500; background: var(--paper); color: var(--ink); pointer-events: none; transition: opacity var(--t-ui) ease; }
.compare__tag--before { left: 20px; }
.compare__tag--after { right: 20px; background: var(--magenta); }
.compare__range { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.compare__stage:focus-within .compare__handle span { outline: 3px solid var(--magenta); outline-offset: 3px; }
@media (max-width: 800px) {
  .compare { padding: 64px 16px; }
  .compare__intro { display: block; margin-bottom: 28px; }
  .compare__title { margin-bottom: 16px; }
  .compare__view { aspect-ratio: 4 / 3; }
  .compare__handle span { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

/* the website tab shows a real site made on the course */
[data-ui].ui-web--shot { box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); }
[data-ui] .ui-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #0b0d12; }

/* ---------- course details page ---------- */
.is-subpage .bar { transform: none; }
.chead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; min-height: 88svh; padding: 120px var(--margin) 72px; background: var(--cyan); }
.chead__text { grid-column: 1 / 8; }
.chead__title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }
.chead__fact { margin-top: 20px; font-size: var(--step-lead); }
.chead__about { margin: 28px 0 36px; font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.chead__object { grid-column: 8 / 13; }
.chead__object img { width: 100%; max-width: 520px; margin-left: auto; transform: rotate(-4deg); }
.cprog { background: var(--white); padding: clamp(80px, 11vw, 160px) var(--margin); }
.cprog__title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 48px; }
.cprog__list { max-width: 980px; margin: 0; }
.cbuy { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 70svh; padding: 64px var(--margin) 40px; background: var(--pink); }
.cbuy__title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; max-width: 9em; }
.cbuy__foot { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; }
.cbuy__price { font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.055em; font-weight: 500; white-space: nowrap; }
.cbuy__price span { font-size: var(--step-body); letter-spacing: 0; margin-left: 0.5em; font-weight: 400; }
.cbuy__text { max-width: 40ch; }
.foot--short { padding-top: 28px; }
.foot--short .foot__last { margin-top: 0; }
.course__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.course__more { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 1.2rem; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.course__more:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .course__more:hover { background: var(--magenta); color: var(--ink); } }
.show__stage:has(.ui-web--shot) { width: min(620px, 100%); }
@media (max-width: 800px) {
  .chead { display: block; min-height: 0; padding: 96px 16px 56px; }
  .chead__object img { width: 70%; margin: 32px auto 0; }
  .cprog { padding: 64px 16px; }
  .cbuy { min-height: 0; padding: 56px 20px 24px; }
  .cbuy__foot { grid-template-columns: 1fr; gap: 16px; }
  .cbuy__foot .button { width: 100%; justify-content: center; }
}

.course.is-soon .course__name { color: rgba(10, 10, 10, 0.55); }
.course.is-soon .course__toggle:hover .course__name, .course.is-soon.is-open .course__name { color: var(--ink); }
.show__out { flex-direction: column; justify-content: flex-start; align-items: center; }
.show__details { margin-top: 32px; }
.show__details.is-off { background: #2a2a2a; color: #777; pointer-events: none; }
.show__note { margin-top: 28px; }
.cbuy__foot--soon { grid-template-columns: 1fr auto; }
@media (max-width: 800px) { .cbuy__foot--soon { grid-template-columns: 1fr; } }

.show__desc { max-width: 24ch; font-size: clamp(1.625rem, 1rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; text-wrap: pretty; }
.show__desc span { display: block; margin-top: 20px; max-width: 40ch; font-size: var(--step-body); line-height: 1.45; letter-spacing: 0; font-weight: 400; color: #d6d6d6; }
.show__desc { min-height: 5.7em; }
@media (min-width: 801px) and (max-width: 1100px) { .show__desc { min-height: 6.8em; } }
@media (max-width: 800px) { .show__desc { max-width: none; min-height: 186px; } .show__note { min-height: 4.4em; } }

/* animation tab: the course workflow, three steps lighting up and a loop back */
[data-ui].ui-flow { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid #e3e3e3; border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.3); }
[data-ui] .ui-flow-head { display: flex; justify-content: space-between; align-items: baseline; }
[data-ui] .ui-flow-head strong { font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
[data-ui] .ui-flow-head span { font-size: 12px; color: #666; }
[data-ui] .ui-flow-body { position: relative; padding-right: 40px; }
[data-ui] .ui-flow-steps { display: grid; }
[data-ui] .ui-step { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--t); transition: background-color 400ms ease, color 400ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-ui] .ui-step b { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
[data-ui] .ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
[data-ui] .ui-chips i { font-style: normal; font-size: 12.5px; padding: 5px 9px; border-radius: 8px; background: #fff; transition: opacity 350ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-ui] .ui-arrow { position: relative; height: 22px; }
[data-ui] .ui-arrow::before { content: ''; position: absolute; left: 50%; top: 3px; bottom: 7px; width: 2px; margin-left: -1px; background: #0a0a0a; transform-origin: top; transition: transform 350ms ease; }
[data-ui] .ui-arrow::after { content: ''; position: absolute; left: 50%; bottom: 2px; margin-left: -5px; border: 5px solid transparent; border-top: 6px solid #0a0a0a; border-bottom: 0; transition: opacity 200ms ease 250ms; }
[data-ui] .ui-loop { position: absolute; right: 8px; top: 24px; bottom: 24px; width: 26px; border: 2px dashed #0a0a0a; border-left: 0; border-radius: 0 14px 14px 0; clip-path: inset(0); transition: clip-path 900ms cubic-bezier(0.65, 0, 0.35, 1); }
[data-ui] .ui-loop::after { content: ''; position: absolute; left: -8px; top: -7px; border: 6px solid transparent; border-right: 8px solid #0a0a0a; border-left: 0; }
[data-ui] .ui-loop-label { margin: 0; font-size: 12.5px; line-height: 1.35; color: #333; transition: opacity 400ms ease; }
/* while it plays: everything after the current step waits dimmed */
[data-ui].ui-flow.is-playing .ui-step:not(.is-on) { background: #f1f1f1; color: #9a9a9a; transform: scale(0.98); }
[data-ui].ui-flow.is-playing .ui-step:not(.is-on) .ui-chips i { opacity: 0; transform: translateY(6px); }
[data-ui].ui-flow.is-playing .ui-step.is-on .ui-chips i:nth-child(2) { transition-delay: 120ms; }
[data-ui].ui-flow.is-playing .ui-arrow:not(.is-on)::before { transform: scaleY(0); }
[data-ui].ui-flow.is-playing .ui-arrow:not(.is-on)::after { opacity: 0; transition-delay: 0s; }
[data-ui].ui-flow.is-playing:not(.is-looping) .ui-loop { clip-path: inset(100% 0 0 0); }
[data-ui].ui-flow.is-playing:not(.is-looping) .ui-loop-label { opacity: 0.25; }
@media (max-width: 800px) {
  [data-ui].ui-flow { padding: 14px; gap: 10px; }
  [data-ui] .ui-flow-body { padding-right: 30px; }
  [data-ui] .ui-loop { right: 2px; width: 22px; }
  [data-ui] .ui-step { padding: 10px 12px; gap: 6px; }
  [data-ui] .ui-step b { font-size: 16px; }
  [data-ui] .ui-chips { gap: 4px; }
  [data-ui] .ui-chips i { font-size: 11.5px; padding: 4px 7px; }
  [data-ui] .ui-arrow { height: 18px; }
}

/* the six-step video workflow: one row per step, title left, what happens right */
[data-ui] .ui-flow-body--line { padding-right: 0; }
[data-ui].ui-flow--compact .ui-step { grid-template-columns: 7.5em 1fr; align-items: center; padding: 9px 12px; }
[data-ui].ui-flow--compact .ui-step b { font-size: 15px; }
[data-ui].ui-flow--compact .ui-arrow { height: 14px; }
[data-ui].ui-flow--compact .ui-arrow::before { top: 2px; bottom: 5px; }
[data-ui].ui-flow--compact .ui-arrow::after { border-width: 4px; border-top-width: 5px; margin-left: -4px; bottom: 1px; }
[data-ui].ui-flow--compact .ui-loop-label { font-weight: 500; color: #0a0a0a; }
[data-ui].ui-flow--compact.is-playing:not(.is-looping) .ui-loop-label { opacity: 0; }
@media (max-width: 800px) {
  [data-ui].ui-flow--compact .ui-step { grid-template-columns: 6.6em 1fr; padding: 8px 10px; }
  [data-ui].ui-flow--compact .ui-step b { font-size: 14px; }
}
[data-ui] .ui-flow-head { flex-wrap: wrap; gap: 2px 12px; }
@media (max-width: 800px) { [data-ui] .ui-flow-head strong { font-size: 20px; } }
.show__note { min-height: 4.4em; }

/* video tab: the workflow as a progress list that ticks itself off */
[data-ui].ui-prog { display: grid; gap: 14px; padding: 18px; background: #fff; border: 1px solid #e3e3e3; border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.3); }
[data-ui] .ui-prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
[data-ui] .ui-prog-head strong { font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
[data-ui] .ui-prog-count { font-size: 13px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
[data-ui] .ui-prog-count b { font-weight: 500; color: #0a0a0a; }
[data-ui] .ui-prog-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 8px; }
[data-ui] .ui-prog-bar i { position: relative; overflow: hidden; border-radius: 99px; background: #f1f1f1; }
[data-ui] .ui-prog-bar i::before { content: ''; position: absolute; inset: 0; background: var(--t); transform: scaleX(0); transform-origin: left; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-ui] .ui-prog-bar i.is-done::before { transform: none; }
[data-ui] .ui-prog-bar i.is-now::before { transform: scaleX(0.55); transition-duration: 1000ms; }
[data-ui] .ui-prog-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
[data-ui] .ui-prog-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: #9a9a9a; transition: background-color 350ms ease, color 350ms ease; }
[data-ui] .ui-prog-item.is-done { color: #0a0a0a; }
[data-ui] .ui-prog-item.is-now { background: var(--t); color: #0a0a0a; }
[data-ui] .ui-prog-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
[data-ui] .ui-prog-text b { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
[data-ui] .ui-prog-text small { font-size: 12.5px; color: #666; }
[data-ui] .ui-prog-item:not(.is-done):not(.is-now) small { color: #b5b5b5; }
[data-ui] .ui-prog-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d6d6d6; box-sizing: border-box; transition: background-color 250ms ease, border-color 250ms ease; }
[data-ui] .ui-prog-item.is-now .ui-prog-dot { border-color: #0a0a0a; border-right-color: transparent; animation: ui-prog-spin 800ms linear infinite; }
[data-ui] .ui-prog-item.is-done .ui-prog-dot { border-color: #0a0a0a; background: #0a0a0a; animation: ui-prog-pop 380ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-ui] .ui-prog-item.is-done .ui-prog-dot::after { content: ''; position: absolute; inset: 0; background: var(--t); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
[data-ui] .ui-prog-now { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 99px; background: #0a0a0a; color: #fff; opacity: 0; transition: opacity 250ms ease; }
[data-ui] .ui-prog-item.is-now .ui-prog-now { opacity: 1; }
[data-ui] .ui-prog-done { margin: 0; font-size: 13px; font-weight: 500; opacity: 0.25; transition: opacity 400ms ease; }
[data-ui].ui-prog.is-finished .ui-prog-done { opacity: 1; }
@keyframes ui-prog-spin { to { transform: rotate(360deg); } }
@keyframes ui-prog-pop { 0% { transform: scale(0.6); } 100% { transform: none; } }
@media (max-width: 800px) {
  [data-ui].ui-prog { padding: 14px; gap: 12px; }
  [data-ui] .ui-prog-head strong { font-size: 20px; }
  [data-ui] .ui-prog-item { gap: 10px; padding: 8px 10px; }
  [data-ui] .ui-prog-text b { font-size: 14px; }
  [data-ui] .ui-prog-text small { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { [data-ui] .ui-prog-dot { animation: none !important; } }

/* app tab: generated onboarding screens in a plain phone, tap for the next one */
[data-ui].ui-shots { display: grid; justify-items: center; gap: 12px; }
[data-ui] .ui-shots-phone { position: relative; height: 400px; aspect-ratio: 9 / 19; padding: 0; overflow: hidden; border: 8px solid #0a0a0a; border-radius: 40px; background: #fafaf7; cursor: pointer; box-shadow: 0 24px 60px -24px rgba(0,0,0,.4); transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-ui] .ui-shots-phone:active { transform: scale(0.98); }
[data-ui] .ui-shots-phone img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: translateX(30%); transition: opacity 320ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-ui] .ui-shots-phone img.is-back:not(.is-on) { transform: translateX(-30%); }
[data-ui] .ui-shots-phone img.is-on { opacity: 1; transform: none; }
[data-ui] .ui-shots-dots { display: flex; gap: 6px; }
[data-ui] .ui-shots-dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; background: #cfcfcf; transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms ease; }
[data-ui] .ui-shots-dots button.is-on { width: 22px; background: #0a0a0a; }
[data-ui] .ui-shots-hint { margin: 0; font-size: 12.5px; color: #666; }
@media (prefers-reduced-motion: reduce) { [data-ui] .ui-shots-phone img { transform: none !important; } }

/* YouTube results: the original screenshot, with room to read the chart. */
.video-proof { width: 100%; margin: 0; }
.video-proof__title { margin-bottom: 24px; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.video-proof a { display: block; }
.video-proof img { display: block; width: 100%; height: auto; }
.video-proof a:focus-visible { outline: 3px solid var(--magenta); outline-offset: 6px; }
.course-proof { padding: 80px var(--margin); }
.course-proof .video-proof { max-width: 1200px; margin-inline: auto; }
@media (max-width: 800px) {
  .course-proof { padding: 56px 16px; }
}

.video-proof__text { margin-top: 24px; max-width: 62ch; font-size: 20px; line-height: 1.5; }

/* Keep the next step clear beside email order and notification actions. */
.plan__action, .cbuy__action { display: grid; justify-items: start; gap: 12px; }
.plan__order-note { max-width: 28ch; font-size: var(--step-small); line-height: 1.45; }
@media (max-width: 800px) {
  .plan__action { width: 100%; }
  .cbuy__action { justify-items: stretch; }
}

/* Course guides (dist/kurs/<uuid>/), built by src/lessons.mjs. "Mapa kursu": the course map on the left, the lesson on the right. */
.lesson-page { display: grid; grid-template-columns: 19rem minmax(0, 1fr); min-height: 100vh; background: var(--paper); line-height: 1.6; }
.lmap { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--cyan); padding: 1.5rem 1.5rem 3rem; }
.lmap__logo { display: inline-block; margin-bottom: 2rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.lmap__status { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 500; }
.lmap__status a { color: inherit; }
.lmap__bar { height: 6px; margin-bottom: 2rem; background: rgba(10, 10, 10, 0.12); }
.lmap__bar span { display: block; height: 100%; background: var(--ink); }
.lmap__mod { margin: 0 0 1.5rem; }
.lmap__mod h3 { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.lmap__mod ol { list-style: none; margin: 0; padding: 0; }
.lmap__mod a { display: flex; gap: 0.6rem; margin: 0 -0.5rem; padding: 0.35rem 0.5rem; font-size: 0.93rem; line-height: 1.35; color: var(--ink); text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .lmap__mod a:hover { background: rgba(255, 255, 255, 0.5); } }
.lmap__mod b { flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--paper); font-size: 0.75rem; font-weight: 600; }
.lmap__mod .is-done b { background: var(--ink); color: var(--paper); }
.lmap__mod .is-now a { background: var(--paper); font-weight: 600; }
.lmap__mod .is-now b { background: var(--magenta); }

.lesson { width: 100%; max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--margin) 6rem; overflow-wrap: anywhere; }
.lesson__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; font-size: 0.875rem; font-weight: 500; }
.lesson__meta span { padding: 0.25rem 0.65rem; background: var(--cyan); }
.lesson__meta span + span { background: rgba(10, 10, 10, 0.06); }
.lesson h1 { margin: 0 0 2rem; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; overflow-wrap: normal; }
.lesson__body > p:first-child { font-size: 1.2em; line-height: 1.5; }
.lesson h2 { margin: 3rem 0 0.75rem; font-size: 1.7rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.lesson h3 { margin: 2rem 0 0.5rem; font-size: 1.2em; font-weight: 600; }
.lesson__body ul, .lesson__body ol { padding-left: 1.3em; }
.lesson__body :is(p, ul, ol) { margin: 0 0 1.1em; }
.lesson__body ul { list-style: disc; }
.lesson__body ol { list-style: decimal; }
.lesson__body li::marker { font-weight: 600; }
.lesson li + li { margin-top: 0.35em; }
.lesson a { color: var(--ink); text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lesson code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; }
.lesson :not(pre) > code { padding: 0.1em 0.3em; background: rgba(10, 10, 10, 0.06); }
.lesson table { display: block; overflow-x: auto; margin: 1.5rem 0; border-collapse: collapse; font-size: 0.95em; }
.lesson th, .lesson td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.lesson th { font-weight: 600; }
.lesson tr:nth-child(odd) td { background: rgba(164, 246, 248, 0.35); }
.lesson td:not(:last-child), .lesson th { overflow-wrap: normal; white-space: nowrap; }
.lesson pre { margin: 1.5rem 0; padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.5; background: var(--ink); color: var(--paper); }
.lesson-block { position: relative; margin: 1.5rem 0; }
.lesson-block pre { margin: 0; padding-right: 6rem; }
.lesson-block--prompt pre { background: #f2f2f2; color: var(--ink); }
.lesson-block--prompt code { font-family: var(--font); font-size: 0.98em; white-space: pre-wrap; }
.lesson-copy { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.35rem 0.7rem; border: 0; background: var(--paper); font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.lesson-block--prompt .lesson-copy { background: var(--cyan); }
.lesson-copy:active { transform: scale(0.97); }
.lesson__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.lesson__nav a { display: block; padding: 1.25rem; background: rgba(10, 10, 10, 0.05); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.lesson__nav a.next { grid-column: 2; text-align: right; background: var(--ink); color: var(--paper); }
.lesson__nav small { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; opacity: 0.7; }
.lesson__nav strong { font-weight: 600; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .lesson__nav a:hover { background: var(--cyan); }
  .lesson__nav a.next:hover { background: var(--magenta); color: var(--ink); }
}
@media (max-width: 860px) {
  .lesson-page { grid-template-columns: minmax(0, 1fr); }
  .lmap { position: static; height: auto; padding-bottom: 1rem; }
  .lmap__mod { display: none; }
  .lmap__mod.is-current { display: block; }
}
@media (max-width: 560px) {
  .lesson-block pre { padding-right: 1.25rem; padding-top: 2.75rem; }
  .lesson__nav { grid-template-columns: 1fr; }
  .lesson__nav a.next { grid-column: auto; }
}

/* "Get the free course" popup (#signup), opened by site.js */
.signup { width: min(34rem, calc(100vw - 2 * var(--margin))); max-height: calc(100dvh - 2 * var(--margin)); padding: 0; border: 0; background: var(--yellow); color: var(--ink); border-radius: var(--radius); }
.signup::backdrop { background: rgba(10, 10, 10, 0.6); }
.signup[open] { animation: signup-in 260ms var(--ease-out); }
.signup[open]::backdrop { animation: signup-fade 260ms ease; }
@keyframes signup-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes signup-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .signup[open], .signup[open]::backdrop { animation: none; } }
.signup__form { position: relative; padding: clamp(1.5rem, 5vw, 2.5rem); }
.signup__close { position: absolute; top: 0.5rem; right: 0.5rem; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; font-size: 1.75rem; line-height: 1; color: var(--ink); cursor: pointer; }
.signup__title { max-width: 14ch; margin-bottom: 1rem; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; }
.signup__text { margin-bottom: 1.5rem; line-height: 1.5; }
.signup__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signup__input { flex: 1 1 14rem; min-height: 3.25rem; padding: 0 1rem; border: 0; background: var(--paper); color: var(--ink); font: inherit; border-radius: var(--radius); }
.signup__input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.signup__button { flex: 1 1 auto; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.signup__note { margin-top: 1rem; font-size: var(--step-small); }
.signup__thanks { position: relative; padding: clamp(1.5rem, 5vw, 2.5rem); }
.signup__thanks .signup__title { outline: none; }
.signup__thanks .signup__button { min-height: 3.25rem; padding: 0 1.6rem; }

/* Legal pages (/regulamin/, /prywatnosc/, /en/terms/, /en/privacy/), built from legal/*.md */
.legal-page { background: var(--paper); }
.legal-bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--margin); background: var(--yellow); }
.legal-bar .lang { color: var(--ink); font-weight: 500; text-decoration: none; }
.legal .lesson__body > p:first-child { font-size: inherit; color: #555; }
.cta__legal { margin-top: 12px; font-size: var(--step-small); }
.signup__legal { margin-top: 0.5rem; font-size: var(--step-small); }
.signup__legal a { color: var(--ink); }
