/* picassofa.com. One stylesheet for every page. Colors are the app's own
   (SoffaUI/Theme.swift and the app icon).

   Headlines use the app's face: SF Pro Rounded, reached as ui-rounded in
   Safari on iPhone, iPad and Mac. Apple's licence does not allow serving SF
   fonts from a website, so every other browser gets Nunito (OFL), the
   closest free rounded face, self-hosted, latin subset, 700 to 900. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2a2340;
  --ink-2: #5d5672;
  --ink-3: #8a84a0;
  --paper: #fff7f0;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(42, 35, 64, 0.1);
  --peach: #ffb86b;
  --orange: #ff7a5c;
  --coral: #ff5a36;
  --pink: #ff5fa2;
  --purple: #7b3fe4;
  --blue: #2440ff;
  --sky: #5bc8f5;
  --green: #1fa463;
  --yellow: #ffd400;
  --grad: linear-gradient(135deg, var(--peach) 0%, var(--orange) 45%, var(--pink) 100%);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow: 0 1px 2px rgba(42, 35, 64, 0.06), 0 12px 40px -12px rgba(42, 35, 64, 0.18);
}

*, *::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: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

/* ── Background: soft blobs that drift ─────────────────────────────────── */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(255, 95, 162, 0.18), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(255, 184, 107, 0.22), transparent 70%),
    var(--paper);
}
.sky i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.sky i:nth-child(1) { width: 44vmax; height: 44vmax; left: -12vmax; top: -10vmax; background: var(--peach); }
.sky i:nth-child(2) { width: 36vmax; height: 36vmax; right: -10vmax; top: 8vmax; background: var(--pink); animation-duration: 31s; animation-delay: -8s; }
.sky i:nth-child(3) { width: 26vmax; height: 26vmax; left: 30vmax; top: 52vmax; background: var(--sky); opacity: 0.35; animation-duration: 36s; animation-delay: -14s; }
.sky i:nth-child(4) { width: 22vmax; height: 22vmax; right: 18vmax; bottom: -8vmax; background: var(--purple); opacity: 0.22; animation-duration: 40s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.08); }
  100% { transform: translate(-4vmax, 8vmax) scale(0.95); }
}

/* ── Header ────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(255, 247, 240, 0.7);
  border-bottom: 1px solid transparent;
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--round); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(255, 90, 54, 0.6); }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.top nav a:hover { color: var(--ink); }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font: 600 14px/1 var(--sans); color: #fff; background: var(--ink);
  white-space: nowrap;
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.top .lang {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 14px/1 var(--sans); color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.top .lang:hover { color: var(--ink); border-color: rgba(42, 35, 64, 0.25); }
@media (max-width: 820px) { .top nav { display: none; } .top .lang { margin-left: auto; } }
@media (max-width: 420px) { .top .soon { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; }
.hero-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; }
.hero-side .badges { margin-top: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.eyebrow b { padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 900; }
.hero h1 em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 32em; }
.badges { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 32px; }
.badges figure { margin: 0; }
.badges img { display: block; height: 50px; width: auto; }
.badges figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.note .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; animation: ping 2.2s infinite; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.facts li { padding: 18px 16px 0; font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.facts li:first-child { padding-left: 0; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { display: block; margin-bottom: 4px; font: 800 28px/1.1 var(--round); color: var(--ink); }
@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ── The stage: a real round of Picassofa on a TV and a phone ─────────── */
/* Sizes inside each screen use cqw of that screen, measured from the app's
   own screenshots (the TV at 1280 wide, the phone at 600 wide). */
.stage {
  position: relative; container-type: inline-size; aspect-ratio: 100 / 60; margin-top: 56px;
  --pw: 21cqw; /* phone width */
}
.tv::after { /* the stand's shadow on the sideboard */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -1.1cqw; height: 2.2cqw; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(42, 35, 64, 0.34), transparent 72%); filter: blur(4px);
}

/* TV: thin bezel, glass, a pedestal stand. */
.tv { position: absolute; left: 0; top: 0; width: 80%; z-index: 1; }
.tv-body {
  position: relative; padding: 0.42cqw 0.42cqw 0.62cqw; border-radius: 0.7cqw;
  background: linear-gradient(180deg, #2b2a31 0%, #111114 12%, #0b0b0d 100%);
  box-shadow:
    0 0 0 1px #050506, inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 2.6cqw 5cqw -1.6cqw rgba(42, 35, 64, 0.5), 0 0.6cqw 1.4cqw -0.6cqw rgba(42, 35, 64, 0.4);
}
.tv-body::after { /* glass: a soft reflection across the panel */
  content: ""; position: absolute; inset: 0.42cqw 0.42cqw 0.62cqw; border-radius: 0.2cqw; pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 26%, rgba(255, 255, 255, 0) 26.2%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%);
}
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.2cqw; container-type: inline-size;
  background: #0b0b0d; font-family: var(--round); color: #fff;
}
.tv-neck {
  width: 3.4%; height: 2.6cqw; margin: -0.1cqw auto 0;
  background: linear-gradient(90deg, #3b3a42, #8f8d98 45%, #5a5962 60%, #2f2e35);
}
.tv-base {
  width: 30%; height: 0.75cqw; margin: 0 auto; border-radius: 0.6cqw 0.6cqw 50% 50% / 0.5cqw 0.5cqw 100% 100%;
  background: linear-gradient(180deg, #a3a1ab, #5d5c65 40%, #2a2930);
  box-shadow: 0 1.2cqw 1.6cqw -0.6cqw rgba(42, 35, 64, 0.55);
}

/* iPhone: metal edge, black bezel, Dynamic Island, side buttons. */
.iphone {
  position: absolute; right: 2.5%; top: 15%; width: var(--pw); z-index: 2;
  padding: calc(var(--pw) * 0.012); border-radius: calc(var(--pw) * 0.175);
  background: linear-gradient(140deg, #9a98a3 0%, #4a4950 18%, #1d1d22 45%, #3b3a41 75%, #8c8a95 100%);
  box-shadow: 0 3cqw 5cqw -1.8cqw rgba(42, 35, 64, 0.6), 0 0.8cqw 1.4cqw -0.6cqw rgba(42, 35, 64, 0.45);
  rotate: 2.5deg;
}
.iphone .btn {
  position: absolute; width: calc(var(--pw) * 0.014); border-radius: 2px;
  background: linear-gradient(90deg, #2c2b31, #8f8d97 60%, #4b4a51);
}
.iphone .act { left: calc(var(--pw) * -0.01); top: 17%; height: 4.2%; }
.iphone .vup { left: calc(var(--pw) * -0.01); top: 24.5%; height: 7%; }
.iphone .vdn { left: calc(var(--pw) * -0.01); top: 33%; height: 7%; }
.iphone .pwr { right: calc(var(--pw) * -0.01); top: 27%; height: 10.5%; }
.ip-screen {
  position: relative; aspect-ratio: 600 / 1304; overflow: hidden; container-type: inline-size;
  border: calc(var(--pw) * 0.026) solid #000; border-radius: calc(var(--pw) * 0.162);
  background: #000; font-family: var(--round); color: #fff;
}
.ip-screen::after { /* glass */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 30.3%);
}
.status { position: absolute; inset: 0 0 auto; height: 13cqw; z-index: 4; color: #fff; }
.clock { position: absolute; left: 9cqw; top: 3.4cqw; font: 650 3.9cqw/1 system-ui, -apple-system, sans-serif; letter-spacing: -0.02em; }
.island { position: absolute; left: 50%; top: 2.6cqw; width: 21cqw; height: 6.4cqw; translate: -50% 0; border-radius: 99px; background: #000; }
.sys { position: absolute; right: 7cqw; top: 3.6cqw; width: 15.5cqw; fill: currentColor; stroke: currentColor; }

/* Both screens: layers that cross-fade. */
.scr, .ps { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; }
.stage[data-phase="draw"] .scr-draw, .stage[data-phase="reveal"] .scr-reveal,
.stage[data-phone="draw"] .ps-draw, .stage[data-phone="done"] .ps-done { opacity: var(--seam, 1); }
.scr::before, .ps::before { /* the app's soft background shapes */
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}

/* TV, drawing phase: "Rita i telefonen!" */
.scr-draw {
  background:
    radial-gradient(45% 60% at 8% 0%, rgba(255, 196, 150, 0.85), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgba(255, 160, 130, 0.7), transparent 70%),
    linear-gradient(160deg, #ff8f86 0%, #ff6a96 40%, #ee4f8d 75%, #ff8a84 100%);
}
.scr-draw::before { width: 8cqw; height: 8cqw; right: 12cqw; top: 31cqw; }
.scr-reveal {
  background:
    radial-gradient(45% 60% at 10% 0%, rgba(140, 236, 190, 0.8), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgba(90, 210, 200, 0.6), transparent 70%),
    linear-gradient(160deg, #4fcf9c 0%, #2db592 40%, #1c9894 72%, #2a8bb0 100%);
}
.scr-reveal::before { width: 7cqw; height: 7cqw; left: 54cqw; top: -2.5cqw; }
.tv-top { position: absolute; left: 8.4cqw; right: 8.4cqw; top: 5.3cqw; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5cqw; font-weight: 800; font-size: 1.75cqw; }
.logo .sofa { width: 2cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pill { font-weight: 700; font-size: 1.25cqw; padding: 0.45cqw 1.1cqw; border-radius: 99px; background: rgba(110, 20, 70, 0.26); }
.scr-reveal .pill { background: rgba(0, 70, 70, 0.3); }
.pill.mid { font-size: 1.55cqw; padding: 0.55cqw 1.4cqw; font-weight: 800; background: rgba(0, 90, 70, 0.45); }
.ring { position: absolute; left: 50%; top: 12.9cqw; width: 10.6cqw; height: 10.6cqw; translate: -50% 0; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 6.5; }
.ring .track { stroke: rgba(255, 255, 255, 0.3); }
.ring .prog { stroke: #fff; stroke-linecap: round; stroke-dasharray: 1; }
.ring-n { font-size: 3.6cqw; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-title { position: absolute; inset: 25.2cqw 0 auto; text-align: center; font-size: 3.9cqw; font-weight: 900; letter-spacing: -0.01em; }
.tv-sub { position: absolute; inset: 31.7cqw 0 auto; text-align: center; font-size: 1.6cqw; opacity: 0.92; font-weight: 600; }
.tray {
  position: absolute; left: 21cqw; width: 58cqw; top: 37.9cqw; height: 12cqw; margin: 0; padding: 0 1.5cqw; list-style: none;
  display: flex; justify-content: space-around; align-items: center; border-radius: 1.9cqw;
  background: rgba(140, 25, 75, 0.38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.tray li { display: grid; justify-items: center; gap: 0.3cqw; width: 9cqw; }
.tray .av { width: 4.8cqw; height: 4.8cqw; }
.tray b { font-size: 1.3cqw; font-weight: 700; }
.tray em {
  font-style: normal; font-size: 1.05cqw; font-weight: 800; padding: 0.25cqw 0.7cqw 0.25cqw 0.5cqw; border-radius: 99px;
  background: rgba(255, 255, 255, 0.24); opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tray em::before { content: "✓ "; }
.tray li.done em { opacity: 1; scale: 1; }

/* TV, reveal: the drawing on paper, the answer and everyone's guesses. */
.paper {
  position: absolute; left: 8.4cqw; top: 11.7cqw; width: 49.9cqw; height: 37.5cqw; border-radius: 2cqw; overflow: hidden;
  background: linear-gradient(180deg, #fdfcf9, #f1eee7); box-shadow: 0 1.6cqw 3cqw -1.4cqw rgba(0, 50, 50, 0.55);
  transform-origin: 40% 60%; transition: transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.4s;
}
.stage:not([data-phase="reveal"]) .paper { transform: translateY(2cqw) scale(0.94) rotate(-1.5deg); opacity: 0; }
.tv-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.byline {
  position: absolute; left: 1.5cqw; bottom: 1.6cqw; display: flex; align-items: center; gap: 0.8cqw;
  padding: 0.6cqw 0.7cqw 0.6cqw 0.8cqw; border-radius: 99px; background: #fff3cf; color: var(--ink);
  box-shadow: 0 0.4cqw 1cqw -0.4cqw rgba(80, 60, 0, 0.35); opacity: 0; scale: 0.7; transform-origin: left center;
  transition: opacity 0.3s, scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.byline.on { opacity: 1; scale: 1; }
.byline .av { width: 3cqw; height: 3cqw; }
.byline small { display: block; font-size: 1.05cqw; font-weight: 600; opacity: 0.7; }
.byline b { display: block; font-size: 1.75cqw; line-height: 1.05; font-weight: 800; }
.byline em { font-style: normal; font-weight: 800; font-size: 1.5cqw; padding: 0.45cqw 0.9cqw; border-radius: 99px; background: #ffc23d; }
.panel {
  position: absolute; left: 60.5cqw; top: 11.1cqw; width: 31.1cqw; height: 38.75cqw; padding: 2.2cqw 1.7cqw; border-radius: 2cqw;
  background: rgba(8, 92, 86, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 1.4cqw 3cqw -1.6cqw rgba(0, 40, 40, 0.6);
}
.answer { font-size: 3.9cqw; font-weight: 900; line-height: 1; }
.right { margin-top: 1cqw; font-size: 1.4cqw; font-weight: 600; opacity: 0.92; }
.rows { margin: 1.4cqw 0 0; padding: 0; list-style: none; display: grid; gap: 0.75cqw; }
.row {
  display: flex; align-items: center; gap: 0.9cqw; height: 3.6cqw;
  opacity: 0; translate: 2cqw 0; transition: opacity 0.3s, translate 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.row.on { opacity: 1; translate: 0 0; }
.row .av { width: 2.9cqw; height: 2.9cqw; }
.row small { display: block; font-size: 1.12cqw; font-weight: 600; opacity: 0.9; }
.row b { display: block; font-size: 1.6cqw; font-weight: 800; line-height: 1.1; }
.row.miss b { text-decoration: line-through; text-decoration-thickness: 0.18cqw; opacity: 0.8; }
.row i { margin-left: auto; font-style: normal; font-weight: 800; font-size: 1.3cqw; padding: 0.3cqw 0.8cqw; border-radius: 99px; background: #fff; color: #0f6f64; }
.row.miss i { background: rgba(255, 255, 255, 0.24); color: #fff; }
.next {
  position: absolute; left: 1.7cqw; right: 1.7cqw; bottom: 1.7cqw; height: 4cqw; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; gap: 0.6cqw;
  background: #d9fbea; color: var(--ink); font-size: 1.55cqw; font-weight: 800;
}
.next svg { width: 1.8cqw; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Phone, drawing. */
.ps-draw {
  background:
    radial-gradient(60% 30% at 0% 0%, rgba(255, 190, 150, 0.9), transparent 70%),
    radial-gradient(70% 30% at 100% 100%, rgba(255, 170, 130, 0.75), transparent 70%),
    linear-gradient(170deg, #ff9b8c 0%, #ff6f98 32%, #ea5590 62%, #f56b8f 100%);
}
.ps-draw::before { width: 15cqw; height: 15cqw; right: 8cqw; top: 132cqw; }
.ph-head { position: absolute; left: 4.7cqw; right: 4.7cqw; top: 19.5cqw; display: flex; justify-content: space-between; align-items: flex-end; }
.ph-head small { display: block; font-size: 2.8cqw; font-weight: 600; opacity: 0.8; }
.ph-head b { display: block; font-size: 7cqw; font-weight: 900; line-height: 1; }
.ph-time {
  font-size: 4.4cqw; font-weight: 800; padding: 1.9cqw 3.6cqw; border-radius: 99px; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.ph-canvas {
  position: absolute; left: 4.7cqw; top: 35.7cqw; width: 90.6cqw; aspect-ratio: 4 / 3; border-radius: 5cqw; overflow: hidden;
  background: #fff; box-shadow: 0 2cqw 5cqw -2cqw rgba(110, 20, 70, 0.55);
}
.ph-art { width: 100%; height: 100%; display: block; }
.pal {
  position: absolute; left: 4.7cqw; top: 107.5cqw; height: 10cqw; padding: 0 1.7cqw; border-radius: 99px;
  display: flex; align-items: center; gap: 2cqw; background: rgba(255, 255, 255, 0.38);
}
.pal i { width: 6.7cqw; height: 6.7cqw; border-radius: 50%; transition: box-shadow 0.2s; }
.pal i[data-ink="ink"] { background: #0b0b0f; }
.pal i[data-ink="blue"] { background: #2440ff; }
.pal i[data-ink="coral"] { background: #ff5a36; }
.pal i[data-ink="yellow"] { background: #ffd400; }
.pal i.sel { box-shadow: 0 0 0 0.75cqw #fff; }
.sizes { position: absolute; left: 48cqw; top: 107.5cqw; height: 10cqw; width: 33cqw; display: flex; align-items: center; justify-content: space-around; }
.sizes i { display: grid; place-items: center; width: 11cqw; height: 6.6cqw; border-radius: 99px; transition: background 0.2s; }
.sizes i::after { content: ""; border-radius: 50%; background: #0b0b0f; }
.sizes i[data-size="thin"]::after { width: 2.4cqw; height: 2.4cqw; }
.sizes i[data-size="medium"]::after { width: 3.4cqw; height: 3.4cqw; }
.sizes i[data-size="thick"]::after { width: 4.4cqw; height: 4.4cqw; }
.sizes i.sel { background: #fff; }
.undo {
  position: absolute; left: 85.3cqw; top: 107.5cqw; width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 230, 220, 0.85); color: #6a2a2a; transition: scale 0.15s;
}
.undo svg { width: 5cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.klar {
  position: absolute; left: 4.7cqw; right: 4.7cqw; top: 193cqw; height: 11.7cqw; border-radius: 99px;
  display: grid; place-items: center; font-size: 3.9cqw; font-weight: 800;
  background: linear-gradient(180deg, #2fbb7b, #1d9a62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1.6cqw 3cqw -1.6cqw rgba(10, 80, 40, 0.6);
  transition: scale 0.15s, filter 0.15s;
}
.pressed { scale: 0.92; filter: brightness(1.12); }

/* Phone, done: waiting for the others. */
.ps-done {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; text-align: center;
  background: radial-gradient(70% 40% at 50% 0%, rgba(255, 200, 160, 0.8), transparent 70%), linear-gradient(170deg, #ff8a6a, #ff5f6f 60%, #f04f7d);
}
.ps-done::before { width: 18cqw; height: 18cqw; left: 6cqw; top: 150cqw; }
.ps-done .av.big { width: 34cqw; height: 34cqw; margin-bottom: 2cqw; }
.ps-done b { font-size: 9cqw; font-weight: 900; }
.ps-done > span:last-child { font-size: 4cqw; font-weight: 600; opacity: 0.9; }

/* A still frame (reduced motion, or #hero=ms): no transitions. */
.stage.still, .stage.still * { transition: none !important; }

/* The fingertip that draws. */
.finger {
  position: absolute; left: 0; top: 0; width: 8.5cqw; height: 8.5cqw; margin: -4.25cqw 0 0 -4.25cqw; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle, rgba(40, 30, 50, 0.26) 0%, rgba(40, 30, 50, 0.18) 55%, rgba(40, 30, 50, 0.08) 72%, transparent 74%);
  box-shadow: 0 0 0 0.35cqw rgba(255, 255, 255, 0.45); opacity: 0; pointer-events: none; will-change: transform, opacity;
}

/* The drawing itself. */
.art path { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Avatars. */
.av { display: block; flex: none; }
.av svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Doodles floating around the stage. */
.doodle { position: absolute; pointer-events: none; animation: float 7s ease-in-out infinite; z-index: 3; }
.doodle path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.doodle.star { width: 5.5cqw; left: -2.5cqw; bottom: 7cqw; }
.doodle.squig { width: 9cqw; right: 26cqw; bottom: -1cqw; animation-delay: -2s; }
.doodle.heart { width: 4.6cqw; right: 1cqw; top: 2cqw; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }

@media (max-width: 700px) {
  .stage { aspect-ratio: 100 / 95; margin-top: 36px; --pw: 25cqw; }
  .tv { width: 88%; }
  .iphone { right: 0; top: 40cqw; }
  .doodle.star { bottom: 2cqw; left: -1cqw; width: 8cqw; }
  .doodle.squig { width: 13cqw; right: 36cqw; bottom: 1cqw; }
  .doodle.heart { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001s !important; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
.h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 900; max-width: 18em; }
.sub { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 36em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  position: relative; padding: 26px 24px 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px;
  font: 900 22px/1 var(--round); color: #fff; background: var(--c);
  box-shadow: 0 10px 20px -10px var(--c);
}
.steps li:nth-child(1) { --c: var(--orange); }
.steps li:nth-child(2) { --c: var(--pink); }
.steps li:nth-child(3) { --c: var(--purple); }
.steps li:nth-child(4) { --c: var(--green); }
.steps h3 { font-size: 22px; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Screenshots */
.shots { overflow: hidden; }
.reel {
  --edge: max(20px, (100% - 1160px) / 2);
  display: flex; gap: 22px; margin-top: 44px; padding: 10px var(--edge) 30px; scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.reel:focus-visible { outline: none; }
.reel::-webkit-scrollbar { display: none; }
.reel figure { flex: none; margin: 0; scroll-snap-align: start; }
.reel figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.reel .tvshot img { width: min(640px, 82vw); height: auto; border-radius: 18px; border: 8px solid #15131c; box-shadow: 0 30px 60px -28px rgba(42, 35, 64, 0.6); }
.reel .phoneshot img { width: min(230px, 46vw); height: auto; border-radius: 34px; border: 7px solid #15131c; box-shadow: 0 30px 60px -28px rgba(42, 35, 64, 0.6); }
.reel-nav { display: flex; align-items: center; gap: 16px; }
.reel-nav .dots { display: flex; gap: 8px; flex: 1; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(42, 35, 64, 0.18); cursor: pointer; transition: width 0.25s, background 0.25s; }
.dots button[aria-current="true"] { width: 24px; background: var(--orange); }
.arrow {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 50%; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform 0.15s, opacity 0.2s;
}
.arrow:hover:not(:disabled) { transform: scale(1.06); }
.arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reel-nav .arrow[data-dir="-1"] { order: 1; }
.reel-nav .arrow[data-dir="1"] { order: 2; }
@media (prefers-reduced-motion: reduce) { .reel { scroll-behavior: auto; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.feat {
  padding: 26px; border-radius: var(--r-lg); background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.feat .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--c); margin-bottom: 18px; box-shadow: 0 10px 22px -12px var(--c); }
.feat .ic svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 20px; font-weight: 800; }
.feat p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.feat.wide { grid-column: span 2; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .feat.wide { grid-column: auto; } }

/* What you need */
.need {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 44px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(42, 35, 64, 0.7);
}
.need div { padding: 34px 30px; position: relative; }
.need div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.need svg { width: 44px; height: 44px; stroke: var(--peach); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.need h3 { font-size: 24px; font-weight: 800; }
.need p { margin-top: 8px; color: rgba(255, 255, 255, 0.72); }
.need .price { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 99px; background: var(--grad); font: 800 15px/1 var(--round); color: #fff; }
@media (max-width: 800px) { .need { grid-template-columns: 1fr; } .need div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); } }

/* Word packs */
.packs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.packs li {
  aspect-ratio: 1; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background: var(--c); position: relative; overflow: hidden;
  box-shadow: 0 18px 30px -18px var(--c); transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.4);
}
.packs li:hover { transform: translateY(-4px) rotate(-2deg); }
.packs li::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -22%; bottom: -22%; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.packs svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.packs b { font: 800 20px/1.1 var(--round); position: relative; z-index: 1; }
.packs small { display: block; font: 600 13px/1.3 var(--sans); opacity: 0.85; }
@media (max-width: 960px) { .packs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .packs { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 700 19px/1.3 var(--round); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* Closing band */
.band {
  position: relative; overflow: hidden; border-radius: 36px; padding: 64px 48px; text-align: center; color: #fff;
  background: var(--grad); box-shadow: 0 40px 80px -40px rgba(255, 90, 54, 0.8);
}
.band::before, .band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.band::before { width: 340px; height: 340px; left: -120px; top: -160px; }
.band::after { width: 260px; height: 260px; right: -80px; bottom: -140px; }
.band h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; position: relative; }
.band p { margin: 14px auto 0; max-width: 30em; font-size: 19px; opacity: 0.92; position: relative; }
.band .badges { justify-content: center; position: relative; }

/* Footer */
footer { padding: 48px 0 56px; font-size: 15px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { flex-basis: 100%; font-size: 13px; }

/* Reveal on scroll, where the browser can do it without script. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* ── Text pages (support, privacy) ─────────────────────────────────────── */
.doc { padding: 40px 0 80px; }
.doc article {
  width: min(760px, 100%); margin-inline: auto; padding: clamp(28px, 5vw, 56px);
  border-radius: 32px; background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 40px 0 10px; color: var(--coral); }
.doc .meta { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 10px; }
.doc li strong { color: var(--ink); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0 8px; }
.doc a { color: var(--coral); }
@media (max-width: 480px) { .facts li { padding-inline: 12px; font-size: 14px; } .facts b { font-size: 24px; } }
