/* Picano site. Colours, radii and the pressed-edge look come from the app's tokens
   (Numo/DesignTokens/Tokens.swift, Numo/DesignSystem/Chunky.swift). */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #F8F8F4;
  --surface: #FFFFFF;
  --surface-edge: #DEDFD8;
  --well: #EEEEE8;
  --on-card: #EEEEE8;
  --on-card-edge: #CBCBC3;
  --line: #E6E6DF;
  --ink: #1B1A2E;
  --ink-soft: #63637A;
  --ink-faint: #6E6E86;
  --lemon: #FFD21F;
  --lemon-edge: #DDA200;
  --on-lemon: #1B1A2E;
  --tab-tint: #B98300;
  --hero: #1B1A2E;
  --hero-edge: #07070F;
  --good: #1DA95A;
  --good-ink: #128543;
  --sky-top: #9CCBF5;
  --sky-mid: #CFE6FA;
  --clouds-opacity: 1;
  --sm-slow: #FF9AA5;
  --sm-steady: #FFC78A;
  --sm-quick: #7FDCA4;

  --edge: 5px;
  --radius: 18px;
  --gutter: 20px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13131B;
    --surface: #20202C;
    --surface-edge: #0B0B11;
    --well: #2A2A38;
    --on-card: #3A3A4E;
    --on-card-edge: #1C1C28;
    --line: #30303F;
    --ink: #F5F5F0;
    --ink-soft: #A9A9BC;
    --ink-faint: #8C8CA2;
    --tab-tint: #FFD21F;
    --hero: #2A2A3A;
    --hero-edge: #0B0B11;
    --good-ink: #55D990;
    --sky-top: #1C2340;
    --sky-mid: #191B2C;
    --clouds-opacity: 0.12;
    --sm-slow: #8F3C49;
    --sm-steady: #97622C;
    --sm-quick: #2B8C56;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  accent-color: var(--lemon-edge);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); font-weight: 950; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 850; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in srgb, var(--lemon) 70%, transparent); color: var(--on-lemon); }
html { scrollbar-color: color-mix(in srgb, var(--ink-faint) 55%, transparent) var(--bg); }
b { font-weight: 900; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  background: var(--lemon);
  color: var(--on-lemon);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header and footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.home .site-header { background: color-mix(in srgb, var(--bg) 55%, transparent); border-bottom-color: transparent; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 950;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 var(--lemon-edge); }

.site-header ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--well) 70%, transparent); }
.site-header nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 719px) { .nav-wide { display: none; } }

.site-footer { margin-top: 0; padding: 48px 0 32px; background: var(--well); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-brand { max-width: 380px; display: grid; gap: 12px; }
.foot-brand p { color: var(--ink-soft); }
.site-footer nav ul { flex-direction: column; gap: 2px; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 800;
  text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer nav a[aria-current="page"] { color: var(--tab-tint); }
.legal-line { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-line p { font-size: 0.875rem; color: var(--ink-faint); }

/* ---------- Pressed buttons ---------- */

.btn {
  --fill: var(--surface);
  --rim: var(--surface-edge);
  --text: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--text);
  box-shadow: 0 var(--edge) 0 var(--rim);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: translateY(calc(var(--edge) - 1px)); box-shadow: 0 1px 0 var(--rim); }
.btn-lemon { --fill: var(--lemon); --rim: var(--lemon-edge); --text: var(--on-lemon); }

.card {
  background: var(--surface);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 4px 0 var(--surface-edge);
}

.text-link { font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--lemon-edge); justify-self: start; }

/* ---------- Home: one column, one spacing scale ----------
   Every section sits on the same 1120px column and uses the same rhythm:
   section padding --section, heading block 16px inside, 56px to the content. */

.home {
  --section: clamp(88px, 10vw, 136px);
  --head-gap: clamp(40px, 5vw, 56px);
}
.section { padding-block: var(--section); }
.band-well { background: var(--well); }

.head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 680px; margin: 0 auto var(--head-gap); }
.head p { color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); max-width: 52ch; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; margin-top: -69px; padding-top: calc(69px + clamp(32px, 5vw, 64px)); overflow: clip; }
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("/img/clouds.webp") center bottom / max(1600px, 130%) auto no-repeat,
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--bg) 88%);
}
.sky::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(180deg, transparent, var(--bg) 85%); }
@media (prefers-color-scheme: dark) {
  .sky { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--bg) 90%); }
}

.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 0.9rem + 5.6vw, 5.5rem); letter-spacing: -0.03em; line-height: 1; margin-top: 24px; }
.hero h1 .l { display: block; }
@media (min-width: 640px) { .hero h1 .l { white-space: nowrap; } }
.lead { margin-top: 20px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem); color: var(--ink-soft); max-width: 36ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 479px) {
  .actions { display: grid; width: min(100%, 320px); }
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 3px 0 var(--surface-edge);
  font-weight: 850;
  font-size: 0.95rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lemon) 35%, transparent); }

/* Three real screens. The middle one leads; the side ones lean back. */
.stage {
  --w: clamp(208px, 24vw, 300px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-bottom: clamp(56px, 7vw, 96px);
  width: min(100% - 2 * var(--gutter), var(--max));
}
.stage .phone-main { z-index: 2; }
.stage .phone-side { --w: calc(clamp(208px, 24vw, 300px) * 0.86); margin-bottom: 4%; }
.stage .phone-left { margin-right: calc(var(--w) * -0.16); rotate: -7deg; }
.stage .phone-right { margin-left: calc(var(--w) * -0.16); rotate: 7deg; }
@media (max-width: 759px) {
  .stage { --w: min(62vw, 260px); }
  .stage .phone-side { --w: calc(min(62vw, 260px) * 0.82); }
  .stage .phone-left { margin-right: calc(var(--w) * -0.55); }
  .stage .phone-right { margin-left: calc(var(--w) * -0.55); }
}

/* The app's own islands and number stones drift around the phones. */
.world { position: absolute; inset: 0; pointer-events: none; }
.world img { position: absolute; height: auto; filter: drop-shadow(0 18px 22px rgb(20 30 60 / 0.18)); }
.isle { width: clamp(180px, 20vw, 300px); bottom: 14%; z-index: 0; }
.isle-l { left: 0; }
.isle-r { right: 0; bottom: 30%; }
.stone { width: clamp(52px, 5.2vw, 76px); z-index: 3; }
.s1 { left: 10%; top: 13%; rotate: -10deg; }
.s2 { right: 12%; top: 4%; rotate: 9deg; }
.s3 { left: 4%; top: 34%; rotate: 8deg; width: clamp(44px, 4.2vw, 60px); }
.s4 { right: 3%; top: 26%; rotate: -8deg; width: clamp(44px, 4.2vw, 60px); }
@media (prefers-reduced-motion: no-preference) {
  .world img { animation: drift 7s ease-in-out infinite alternate; }
  .world .isle-r, .world .s2, .world .s3 { animation-duration: 9s; animation-delay: -3s; }
  .world .s4 { animation-duration: 8s; animation-delay: -5s; }
}
@keyframes drift { from { translate: 0 -6px; } to { translate: 0 8px; } }
@media (max-width: 999px) {
  .isle { display: none; }
  .s1 { left: 4%; } .s2 { right: 4%; } .s3 { left: 1%; } .s4 { right: 1%; }
}
@media (max-width: 559px) {
  .s3, .s4 { display: none; }
  .s1 { left: 0; top: 0; } .s2 { right: 0; top: 4%; }
}

/* An iPhone drawn in CSS around a real screenshot. */
.phone {
  container-type: inline-size;
  position: relative;
  flex: none;
  width: var(--w, 280px);
  margin: 0;
  padding: calc(var(--w, 280px) * 0.035);
  border-radius: calc(var(--w, 280px) * 0.165);
  background: #15141F;
  box-shadow:
    inset 0 0 0 1.5px #3B3A4E,
    0 2px 2px rgb(27 26 46 / 0.12),
    0 24px 40px -12px rgb(27 26 46 / 0.32),
    0 48px 80px -32px rgb(27 26 46 / 0.28);
}
.phone img { width: 100%; height: auto; border-radius: 13cqw; background: var(--bg); }
.phone::after {
  content: "";
  position: absolute;
  top: 6.2cqw;
  left: 50%;
  translate: -50% 0;
  width: 29cqw;
  height: 8.6cqw;
  border-radius: 999px;
  background: #000;
}

/* ---------- Try the trick ---------- */

.try { padding-top: clamp(24px, 4vw, 48px); }
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 5vw, 64px);
  border-radius: 32px;
  background: var(--well);
}
.try-copy { display: grid; gap: 16px; }
.try-copy h2 { max-width: 16ch; }
.try-copy .sub { color: var(--ink-soft); font-size: 1.125rem; max-width: 46ch; }
.try-copy .note { color: var(--ink-soft); max-width: 46ch; }
.steps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 3px 0 var(--surface-edge);
  font-size: 1.1rem;
}
.steps b { font-size: 1.25rem; color: #7C5CFF; }
@media (prefers-color-scheme: dark) { .steps b { color: #A894FF; } }
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #7C5CFF;
  box-shadow: 0 3px 0 #5B3FD9;
  color: #fff;
  font-weight: 950;
}

.drill { padding: 20px; display: grid; gap: 14px; }
.drill-top { display: flex; align-items: center; gap: 14px; }
.progress { flex: 1; height: 14px; border-radius: 999px; background: var(--well); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0%; border-radius: inherit; background: #7C5CFF; transition: width 300ms var(--ease-out); }
.streak { font-weight: 850; color: var(--ink-soft); font-size: 0.95rem; min-width: 4.5em; text-align: right; }
.sum { text-align: center; font-size: clamp(2.6rem, 2rem + 2vw, 3.2rem); font-weight: 950; color: #7C5CFF; line-height: 1.1; padding-top: 6px; }
@media (prefers-color-scheme: dark) { .sum { color: #A894FF; } }
.answer {
  justify-self: center;
  min-width: 190px;
  min-height: 64px;
  padding: 6px 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--well);
  font-size: 2.25rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  transition: background-color 160ms ease, color 160ms ease;
}
.answer.right { background: color-mix(in srgb, var(--good) 22%, var(--surface)); color: var(--good-ink); }
.answer.wrong { background: color-mix(in srgb, #FF4B5F 18%, var(--surface)); color: #CF2B3F; }
@media (prefers-color-scheme: dark) { .answer.wrong { color: #FF8593; } }
.hint { text-align: center; color: var(--ink-soft); font-size: 0.98rem; min-height: 3.1em; }
.hint b { color: var(--ink); }

.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 5px; }
.key {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--on-card);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--on-card-edge);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.key:active, .key.down { transform: translateY(3px); box-shadow: 0 1px 0 var(--on-card-edge); }
.key-help { font-size: 0.95rem; }
.key-back { display: grid; place-items: center; }
.drill[data-ready="false"] .pad { opacity: 0.5; pointer-events: none; }

@media (max-width: 879px) {
  .board { grid-template-columns: 1fr; }
  .drill { width: min(100%, 420px); justify-self: center; }
}
@media (max-width: 479px) {
  .board { padding: 20px 16px 24px; border-radius: 26px; margin-inline: calc(var(--gutter) * -0.5); }
  .steps li { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Tour ---------- */

.tour-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tabs { display: grid; gap: 8px; }
.tabs [role="tab"] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.tabs img { width: 40px; height: 40px; flex: none; }
.tabs [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--surface-edge); }
@media (hover: hover) and (pointer: fine) {
  .tabs [aria-selected="false"]:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); }
}

.tour-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-panel .phone { --w: clamp(240px, 22vw, 290px); }
.tour-text { display: grid; gap: 14px; max-width: 40ch; }
.tour-text h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 900; }
.tour-text p { color: var(--ink-soft); font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .tour-panel:not([hidden]) .phone, .tour-panel:not([hidden]) .medals { animation: rise 420ms var(--ease-out); }
}
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
/* Wide screens: tabs | phone | text, with equal side columns so the phone sits on the page's centre line. */
@media (min-width: 900px) {
  .tour-grid { --tg: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--tg); }
  .tabs { justify-self: end; width: min(100%, 280px); }
  .tour-panels { grid-column: 2 / 4; display: grid; grid-template-columns: subgrid; column-gap: var(--tg); }
  .tour-panel { grid-column: 1 / 3; grid-template-columns: subgrid; column-gap: var(--tg); }
}

.medals {
  --w: clamp(240px, 22vw, 290px);
  width: var(--w);
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  aspect-ratio: 1 / 2.092;
  gap: 10px;
  border-radius: calc(var(--w) * 0.165);
  background: var(--hero);
  box-shadow: 0 5px 0 var(--hero-edge);
}
.medals img { width: 100%; aspect-ratio: 1; padding: 6px; }
.medals img:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }

@media (max-width: 899px) {
  .tour-grid { grid-template-columns: 1fr; gap: 28px; }
  .tabs {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role="tab"] { min-height: 52px; font-size: 1rem; padding: 6px 16px 6px 8px; gap: 10px; }
  .tabs img { width: 34px; height: 34px; }
  .tour-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .tour-panel .phone, .medals { --w: min(68vw, 280px); }
  .tour-text { justify-items: center; }
}

/* ---------- Course ---------- */

.stones {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px 8px;
}
.stones li { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; font-size: 0.9rem; font-weight: 800; line-height: 1.25; color: var(--ink-soft); }
.stones img { width: 72px; height: 72px; }
@media (max-width: 899px) { .stones { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 599px) {
  .stones { grid-template-columns: repeat(4, 1fr); gap: 22px 4px; }
  .stones img { width: 56px; height: 56px; }
  .stones li { font-size: 0.8rem; gap: 8px; }
}

/* ---------- Games ---------- */

.games { padding-top: 0; }
.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.game {
  min-height: 148px;
  padding: 20px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--c);
  box-shadow: 0 var(--edge) 0 var(--e);
  color: #fff;
  display: grid;
  align-content: start;
  gap: 6px;
}
.game h3 { font-size: 1.2rem; }
.game p { font-size: 0.95rem; font-weight: 700; color: rgb(255 255 255 / 0.92); }
@media (max-width: 1023px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) {
  .game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game { min-height: 124px; padding: 16px; }
  .game h3 { font-size: 1.05rem; }
  .game p { font-size: 0.88rem; }
}

/* ---------- Plus ---------- */

/* Free and Plus side by side, in the app's own paywall language: each daily
   limit, then the lemon infinity pill Plus turns it into. Numo sits on the Plus column. */
.plus h2 .l { display: block; }
.compare {
  --plus-bg: color-mix(in srgb, var(--lemon) 13%, var(--surface));
  --plus-line: color-mix(in srgb, var(--lemon-edge) 26%, var(--surface));
  max-width: 820px;
  margin: clamp(96px, 11vw, 124px) auto 0;
  padding: 0 clamp(12px, 3vw, 28px) clamp(20px, 3vw, 28px);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 5px 0 var(--surface-edge);
}
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare th, .compare td { padding: 0 12px; text-align: center; vertical-align: middle; }
.compare thead th { position: relative; padding-top: 28px; padding-bottom: 24px; vertical-align: bottom; width: 30%; }
.compare thead th > span { display: block; }
.plan-name { font-size: 1.1rem; font-weight: 900; }
.compare thead .is-plus { background: var(--lemon); color: var(--on-lemon); box-shadow: inset 0 -3px 0 var(--lemon-edge); }
.compare thead .is-plus .alt { color: color-mix(in srgb, var(--on-lemon) 78%, var(--lemon)); }
.price { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 950; line-height: 1.05; letter-spacing: -0.02em; margin-top: 6px; }
.alt { color: var(--ink-soft); font-weight: 800; font-size: 0.95rem; margin-top: 4px; text-wrap: balance; }
.compare tbody th, .compare tbody td { height: 68px; border-top: 1px solid var(--line); }
.compare tbody th { text-align: left; padding-left: 4px; font-weight: 900; font-size: 1.05rem; }
.compare tbody th img { width: 40px; height: 40px; display: inline-block; vertical-align: middle; margin-right: 12px; }
.compare tbody td { color: var(--ink-soft); font-weight: 800; }
.compare .is-plus { background: var(--plus-bg); }
.compare tbody .is-plus { border-top-color: var(--plus-line); }
.compare thead .is-plus { border-radius: 0; }
.compare tbody tr:last-child .is-plus { border-radius: 0 0 22px 22px; }
.numo {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 26px);
  width: clamp(120px, 15vw, 168px);
  height: auto;
  translate: -50% 0;
  filter: drop-shadow(0 14px 16px rgb(20 30 60 / 0.2));
  pointer-events: none;
}
.inf {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--lemon);
  box-shadow: 0 3px 0 var(--lemon-edge);
  color: var(--on-lemon);
}
.inf svg { width: 26px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.both { margin-top: 20px; padding-inline: 4px; text-align: center; color: var(--ink-soft); font-weight: 700; text-wrap: balance; }
.fine { margin: 24px auto 0; max-width: 680px; text-align: center; font-size: 0.9rem; color: var(--ink-faint); }
@media (max-width: 559px) {
  .compare th, .compare td { padding: 0 6px; }
  .compare thead th { width: 34%; padding-top: 22px; padding-bottom: 18px; }
  .plan-name { font-size: 0.95rem; }
  .price { font-size: 1.7rem; }
  .alt { font-size: 0.8rem; }
  .compare tbody th { font-size: 0.95rem; }
  .compare tbody th img { width: 30px; height: 30px; margin: 0 0 4px; display: block; }
  .compare tbody th, .compare tbody td { height: 76px; }
  .compare tbody td { font-size: 0.9rem; }
  .inf { width: 44px; height: 26px; }
}

/* ---------- Questions ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-side { display: grid; gap: 28px; position: sticky; top: 96px; }
.privacy-note { padding: 24px; display: grid; gap: 10px; }
.privacy-note img { width: 56px; height: 56px; }
.privacy-note h3 { font-size: 1.2rem; }
.privacy-note p { color: var(--ink-soft); font-size: 0.98rem; }
.faq-list { display: grid; gap: 12px; }
details { background: var(--surface); border-radius: 18px; box-shadow: 0 3px 0 var(--surface-edge); }
summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 20px;
  font-weight: 900;
  font-size: 1.08rem;
  cursor: pointer;
  border-radius: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  rotate: -90deg;
}
details[open] > summary::before { rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) { summary::before { transition: rotate 0.2s var(--ease-out); } }
@media (hover: hover) and (pointer: fine) { summary:hover { background: color-mix(in srgb, var(--well) 60%, transparent); } }
.answer-body { padding: 0 20px 20px 54px; color: var(--ink-soft); }
details::details-content { overflow: clip; }
.more { margin-top: 12px; color: var(--ink-soft); }
.more a { font-weight: 900; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-side { display: contents; }
  .faq-side h2 { order: -1; }
  .privacy-note { order: 2; }
}

/* ---------- Finale ---------- */

.finale { padding-block: var(--section); background: #1B1A2E; color: #fff; }
@media (prefers-color-scheme: dark) { .finale { background: #0E0E15; } }
.finale-inner { display: grid; justify-items: center; text-align: center; gap: 16px; }
.finale h2 { max-width: 18ch; margin-top: 24px; }
.finale p { color: #C9C9D8; font-size: 1.15rem; }
.finale .btn { margin-top: 16px; }
.avatars { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.avatars li { width: 76px; margin-inline: -6px; padding: 8px; border-radius: 50%; background: #2A2A3A; box-shadow: 0 4px 0 #07070F; }
.avatars li:nth-child(even) { translate: 0 10px; }
.avatars img { width: 100%; aspect-ratio: 1; }
@media (max-width: 599px) {
  .avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; max-width: 360px; }
  .avatars li { width: auto; margin: 0; padding: 5px; }
  .avatars li:nth-child(even) { translate: 0 6px; }
}

/* ---------- Document pages (privacy, support, terms) ---------- */

.doc { padding-block: 48px 96px; }
.doc-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.doc-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.doc-head p { color: var(--ink-soft); font-size: 1.125rem; }
.updated { font-size: 0.95rem !important; color: var(--ink-faint) !important; }
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose h2 { font-size: 1.55rem; margin-top: 28px; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--ink-soft)); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose a { font-weight: 850; text-decoration-color: var(--lemon-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 900; color: var(--ink); }
.prose .card { padding: 20px 22px; display: grid; gap: 8px; }

.contact { display: flex; align-items: center; gap: 18px; padding: 22px; }
.contact img { width: 64px; height: 64px; flex: none; }
.contact div { display: grid; gap: 4px; }
.contact a { font-size: 1.25rem; font-weight: 950; }
@media (max-width: 599px) { .contact { flex-direction: column; align-items: flex-start; } }

.lost { min-height: 60svh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost > div { display: grid; gap: 16px; justify-items: center; }
.lost img { width: 120px; height: 120px; }
.lost p { color: var(--ink-soft); }

@media (forced-colors: active) {
  .btn, .key, .card, details, .soon, .tabs [role="tab"], .phone { border: 1px solid CanvasText; }
}

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* App Store badge (launch day): Apple's artwork, unchanged, at least 40px tall. */
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-badge:focus-visible { outline: 3px solid var(--lemon-edge); outline-offset: 3px; }
.hero-badge { align-self: center; }
