/* Bucky website. Brand tokens from branding/palette/colors.json. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../fonts/Fredoka-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("../fonts/Fredoka-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/Nunito-Regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/Nunito-Bold.woff2") format("woff2"); }

:root {
  --cocoa: #72474F;
  --cocoa-deep: #4A2A31;
  --bubblegum: #F89DA5;
  --candy: #FDD2CE;
  --mint: #CFEAD7;
  --mint-deep: #8FCFA8;
  --popcorn: #FFF1D4;
  --cream: #FEF6E2;
  --peach: #FEC9A0;
  --golden: #EEC856;

  --bg: var(--cream);
  --surface: #FFFCF4;
  --surface-soft: var(--popcorn);
  --band-mint: #E6F4EA;
  --band-pink: #FFE9E5;
  --band-cream: #FDF0D5;
  --text: var(--cocoa);
  --text-soft: #82606A;
  --heading: var(--cocoa-deep);
  --line: rgba(114, 71, 79, 0.16);
  --accent: var(--bubblegum);
  --on-accent: var(--cocoa-deep);
  --highlight: #D65A67;
  --phone-frame: var(--cocoa);
  --shadow: 0 1px 2px rgba(114, 71, 79, 0.08), 0 12px 32px -12px rgba(114, 71, 79, 0.28);
  --radius: 24px;
  --radius-small: 14px;

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221718;
    --surface: #2F2021;
    --surface-soft: #3A2829;
    --band-mint: #1E2622;
    --band-pink: #2C1D1F;
    --band-cream: #2A201A;
    --text: #F4E4DC;
    --text-soft: #CDB5AE;
    --heading: #FFF4EC;
    --line: rgba(253, 210, 206, 0.16);
    --highlight: var(--bubblegum);
    --phone-frame: #120B0C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--highlight); }
ul { padding: 0; margin: 0; list-style: none; }
.small { font-size: 0.9rem; color: var(--text-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px;
  font: 600 1.05rem/1 var(--font-display); text-decoration: none; letter-spacing: 0.01em;
  border: 2.5px solid var(--cocoa); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--cocoa); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--cocoa); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cocoa); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 42px; padding: 0 1.1em; font-size: 0.95rem; box-shadow: 0 3px 0 var(--cocoa); }
@media (prefers-color-scheme: dark) {
  .btn { border-color: var(--cocoa-deep); }
  .btn-primary { box-shadow: 0 4px 0 #120B0C; }
  .btn-primary:hover { box-shadow: 0 6px 0 #120B0C; }
  .btn-small { box-shadow: 0 3px 0 #120B0C; }
  .btn-ghost { border-color: var(--line); }
}

.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 0.3em 0.9em; border-radius: 999px;
  background: var(--mint); color: var(--cocoa-deep);
  font: 700 0.8rem/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 128px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; color: var(--text); }
.nav a:hover { background: var(--surface-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions.end { margin-left: auto; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line);
  font: 700 0.85rem/1 var(--font-display); color: var(--text);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--text); }
.lang-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-options {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow);
}
.lang-options a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.lang-options a:hover { background: var(--surface-soft); }
.lang-options a[aria-current] { background: var(--mint); color: var(--cocoa-deep); }
@media (max-width: 920px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 380px) {
  .brand img { width: 104px; }
  .header-row { gap: 12px; }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background:
    radial-gradient(55% 55% at 85% 20%, color-mix(in srgb, var(--candy) 55%, transparent), transparent 70%),
    radial-gradient(40% 40% at 62% 62%, color-mix(in srgb, var(--mint) 55%, transparent), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      radial-gradient(55% 55% at 85% 20%, rgba(248, 157, 165, 0.13), transparent 70%),
      radial-gradient(40% 40% at 62% 62%, rgba(143, 207, 168, 0.1), transparent 70%);
  }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.facts li {
  font-weight: 700; font-size: 0.9rem; padding: 6px 14px 6px 30px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.facts li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--mint-deep);
}

.hero-art { position: relative; min-height: 560px; }
.hero-bucky { position: absolute; width: 56%; left: 0; bottom: 0; filter: drop-shadow(0 18px 24px rgba(114, 71, 79, 0.22)); animation: bob 4.5s ease-in-out infinite; z-index: 2; }
.phone.hero-phone { position: absolute; right: 2%; top: 0; width: 48%; transform: rotate(4deg); z-index: 1; }
.bubble {
  position: absolute; left: 0; top: 26%; z-index: 3;
  background: var(--surface); color: var(--heading); border: 2.5px solid var(--cocoa);
  padding: 10px 18px; border-radius: 22px; font: 700 1.15rem/1.2 var(--font-display);
  box-shadow: var(--shadow);
}
.bubble::after {
  content: ""; position: absolute; left: 36px; bottom: -11px; width: 18px; height: 18px;
  background: var(--surface); border-right: 2.5px solid var(--cocoa); border-bottom: 2.5px solid var(--cocoa);
  transform: rotate(45deg); border-bottom-right-radius: 4px;
}
.float-pal { position: absolute; width: 56px; z-index: 3; animation: float 6s ease-in-out infinite; }
.float-pal.p1 { left: 50%; top: 86%; }
.float-pal.p2 { left: 34%; top: 8%; width: 44px; animation-delay: -2s; }
.float-pal.p3 { right: 0; top: 64%; width: 40px; animation-delay: -4s; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .hero-bucky, .float-pal { animation: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 0.92; max-width: 520px; width: 100%; margin: 8px auto 0; }
}

/* Phone frame around real app screenshots */
.phone {
  margin: 0; border-radius: 34px; padding: 8px; background: var(--phone-frame);
  box-shadow: var(--shadow); position: relative;
}
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 440 / 956; object-fit: cover; object-position: top; background: var(--cream); }
.phone-crop img { aspect-ratio: 440 / 880; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; font-weight: 700; font-size: 0.95rem; color: var(--text); }

/* Promise strip */
.promise { padding: 0 0 clamp(24px, 4vw, 48px); }
.promise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.promise-grid > div { padding: 26px 28px; display: grid; gap: 4px; align-content: start; }
.promise-grid > div + div { border-left: 1px dashed var(--line); }
.promise-grid strong { font: 600 1.15rem/1.3 var(--font-display); color: var(--heading); }
.promise-grid span { color: var(--text-soft); font-size: 0.98rem; }
@media (max-width: 760px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid > div + div { border-left: 0; border-top: 1px dashed var(--line); }
}

/* Sections */
.section { padding: var(--section-space) 0; scroll-margin-top: 64px; }
.band { position: relative; }
.band-mint { background: var(--band-mint); }
.band-pink { background: var(--band-pink); }
.band-cream { background: var(--band-cream); }
.band::before, .band::after {
  /* The pink and mint stripes of Bucky's bucket, as a thin edge on coloured bands */
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--candy) 0 40px, var(--mint) 40px 80px);
  opacity: 0.9;
}
.band::before { top: 0; }
.band::after { bottom: 0; }
@media (prefers-color-scheme: dark) { .band::before, .band::after { opacity: 0.35; } }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p:last-child { font-size: 1.12rem; color: var(--text-soft); margin: 0; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 26px; box-shadow: var(--shadow);
}
.step img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.step img.step-pal { object-fit: contain; background: var(--band-pink); padding: 14%; }
.step p { margin: 0; color: var(--text-soft); }
.step-num {
  position: absolute; top: 10px; left: 10px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--golden); color: var(--cocoa-deep);
  border: 2.5px solid var(--cocoa); font: 700 1.2rem/1 var(--font-display);
}
.step + .step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(16px, 3vw, 32px) / 2 - 9px); top: 38%;
  width: 18px; height: 18px; border-top: 3px solid var(--mint-deep); border-right: 3px solid var(--mint-deep);
  transform: rotate(45deg); z-index: 2;
}
.loop-note {
  display: flex; align-items: center; gap: 20px; max-width: 820px; margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 18px 26px 18px 18px; border-radius: var(--radius); background: var(--surface-soft);
  border: 2px dashed color-mix(in srgb, var(--cocoa) 30%, transparent);
}
.loop-note img { width: 84px; border-radius: 18px; flex: none; }
.loop-note p { margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .step + .step::before { left: 50%; top: -22px; margin-left: -9px; transform: rotate(135deg); }
  .step { display: grid; grid-template-columns: 104px 1fr; column-gap: 18px; align-items: center; padding: 16px; }
  .step img { grid-row: span 2; margin: 0; border-radius: 16px; }
  .step h3 { align-self: end; margin-bottom: 0.25em; }
  .step p { align-self: start; font-size: 0.96rem; }
  .step-num { width: 34px; height: 34px; font-size: 1rem; top: 6px; left: 6px; }
  .loop-note { flex-direction: column; text-align: center; padding: 20px; }
}

/* Lessons */
.lesson-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lesson { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lesson img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lesson > div { padding: 18px 20px 22px; }
.lesson p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }
.lesson-soon img { object-fit: contain; padding: 12%; background: repeating-linear-gradient(90deg, var(--candy) 0 28px, var(--mint) 28px 56px); }
@media (prefers-color-scheme: dark) { .lesson-soon img { background: var(--surface-soft); } }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--golden); color: var(--cocoa-deep); font: 700 0.72rem/1.6 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
}
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 36px);
  margin: clamp(48px, 6vw, 72px) auto 0; padding-bottom: 48px; max-width: 980px;
}
@media (max-width: 1000px) { .lesson-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 56px;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  /* Compact cards on phones: picture on the left, text on the right */
  .lesson-grid { grid-template-columns: 1fr; gap: 14px; }
  .lesson { flex-direction: row; align-items: center; }
  .lesson img { width: 108px; flex: none; margin: 14px 0 14px 14px; border-radius: 16px; }
  .lesson-soon img { padding: 6%; }
  .lesson > div { padding: 14px 18px; }
}

/* Kids */
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
.faces li { text-align: center; font-weight: 700; font-size: 0.95rem; }
.faces img { width: 100%; max-width: 140px; margin: 0 auto 8px; transition: transform 0.2s ease; }
.faces li:hover img { transform: translateY(-6px) rotate(-3deg); }
@media (max-width: 760px) { .faces { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }
.bank-card { position: relative; max-width: 420px; margin: 0 auto; width: 100%; padding-bottom: 40px; }
.bank-card > img { width: 78%; border-radius: var(--radius); box-shadow: var(--shadow); }
.phone-tilt { position: absolute; width: 52%; right: 0; top: 18%; transform: rotate(5deg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .bank-card { padding-bottom: 110px; } }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* Parents */
.parents-top { display: grid; grid-template-columns: 0.8fr 1.4fr 0.8fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.parents-top .phone:first-child { transform: rotate(-3deg); }
.parents-top .phone:last-child { transform: rotate(3deg); }
.parents-copy h3 { font-size: 1.5rem; }
.parents-copy h3:not(:first-child) { margin-top: 1.4em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px 6px 34px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 700; font-size: 0.92rem; position: relative;
}
.chips li::before {
  /* small warning triangle */
  content: ""; position: absolute; left: 12px; top: 50%; margin-top: -7px; width: 16px; height: 14px;
  background: var(--highlight); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@media (max-width: 900px) {
  .parents-top { grid-template-columns: 1fr 1fr; }
  .parents-copy { grid-column: 1 / -1; order: -1; }
  .parents-top .phone { max-width: 260px; justify-self: center; width: 100%; }
}

.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.grid-features h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.grid-features p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.grid-features svg {
  width: 44px; height: 44px; padding: 9px; margin-bottom: 14px; border-radius: 14px; background: var(--mint);
  fill: none; stroke: var(--cocoa-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.grid-features li:nth-child(4n+2) svg { background: var(--candy); }
.grid-features li:nth-child(4n+3) svg { background: var(--popcorn); }
.grid-features li:nth-child(4n+4) svg { background: var(--peach); }
@media (max-width: 1000px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .grid-features { grid-template-columns: 1fr; gap: 12px; }
  .grid-features li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .grid-features svg { grid-row: span 2; margin: 0; }
}

.cinema {
  display: grid; grid-template-columns: 200px 1fr 160px; gap: clamp(20px, 4vw, 40px); align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding: 24px; border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, #3B2E5A, #5B3F6E); color: #FBEFF3;
}
.cinema h3 { color: #FFF; font-size: 1.6rem; }
.cinema p { margin: 0; color: #EBD9E4; }
.cinema img { border-radius: 20px; }
@media (max-width: 760px) {
  .cinema { grid-template-columns: 1fr 1fr; }
  .cinema > div { grid-column: 1 / -1; order: -1; }
}

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.privacy-card { border-radius: var(--radius); padding: 28px 30px; border: 1px solid var(--line); background: var(--surface); }
.privacy-card h3 { font-size: 1.35rem; }
.privacy-card ul { display: grid; gap: 10px; margin-top: 18px; }
.privacy-card li { position: relative; padding-left: 34px; }
.privacy-card li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%234A2A31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.privacy-card.never li::before {
  background-color: var(--candy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%234A2A31' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.privacy-card.stored { border-top: 6px solid var(--mint-deep); }
.privacy-card.never { border-top: 6px solid var(--bubblegum); }
.privacy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.privacy-notes li { color: var(--text-soft); font-size: 0.98rem; }
.privacy-notes strong { display: block; color: var(--heading); font: 600 1.08rem/1.3 var(--font-display); margin-bottom: 4px; }
@media (max-width: 800px) {
  .privacy-grid, .privacy-notes { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font: 600 1.1rem/1.35 var(--font-display); color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--highlight); border-bottom: 3px solid var(--highlight); transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-soft); }

/* Early access */
.cta {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 12px);
  background: var(--surface); border: 3px solid var(--cocoa); box-shadow: 0 8px 0 var(--cocoa);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 300px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--candy) 0 34px, var(--mint) 34px 68px);
  clip-path: ellipse(80% 90% at 0% 50%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { max-width: 34em; }
.cta .small { margin: 14px 0 0; }
@media (prefers-color-scheme: dark) {
  .cta { border-color: var(--cocoa-deep); box-shadow: 0 8px 0 #120B0C; }
  .cta::before { opacity: 0.25; }
}
@media (max-width: 700px) {
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta img { width: 180px; margin: 0 auto; }
  .cta::before { width: 100%; height: 190px; inset: 0 0 auto 0; clip-path: ellipse(90% 80% at 50% 0%); }
  .cta p { margin-left: auto; margin-right: auto; }
}

/* Footer */
.site-footer { padding: 56px 0 64px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 140px; margin-bottom: 14px; }
.footer-head { font-size: 1rem; font-weight: 600; margin-bottom: 0.6em; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font-weight: 700; }
.footer-langs a[aria-current] { text-decoration: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Language chooser and 404 */
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.chooser-card { text-align: center; }
.chooser-card img { width: 180px; margin: 0 auto 12px; }
.chooser-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Download page */
.download { padding: clamp(32px, 6vw, 72px) 0 var(--section-space); }
.download-hero { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.download-bucky { width: 100%; filter: drop-shadow(0 18px 24px rgba(114, 71, 79, 0.22)); animation: bob 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .download-bucky { animation: none; } }
.download-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.download-actions { margin: 28px 0 24px; }
.download-actions .small { margin: 12px 0 0; }
.btn-big { min-height: 64px; padding: 0 1.8em; font-size: 1.2rem; }
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ios-note { padding: 14px 18px; border-radius: var(--radius-small); background: var(--surface); border: 1px solid var(--line); max-width: 36em; }
.install { margin-top: clamp(48px, 7vw, 88px); max-width: 860px; }
.install-steps { list-style: none; counter-reset: install; display: grid; gap: 14px; padding: 0; margin: 24px 0; }
.install-steps li {
  counter-increment: install; position: relative; padding: 18px 22px 18px 72px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.install-steps li::before {
  content: counter(install); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--cocoa-deep);
  border: 2.5px solid var(--cocoa); font: 700 1.05rem/1 var(--font-display);
}
.install-steps strong { font-family: var(--font-display); font-weight: 600; color: var(--heading); }
.install-note { color: var(--text-soft); max-width: 44em; }
@media (max-width: 700px) {
  .download-hero { grid-template-columns: 1fr; text-align: center; }
  .download-bucky { width: 200px; margin: 0 auto; }
  .download-hero .lead, .ios-note { margin-left: auto; margin-right: auto; text-align: left; }
}
