/* The whole site: landing pages (/ and /id/), privacy pages, 404. The app's "Laut" skin (app/src/styles/tokens.css,
   decision #16): teal backdrop, candy jelly tiles with a solid lip under each face, Bricolage Grotesque for display
   (self-hosted, /fonts/), the system sans for body text. No script and no inline style (the CSP allows neither), no
   animation; follows the system light/dark setting. The dark colours are this site's own: the app ships one light skin. */

@font-face {
  font-family: 'Brico';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --mango: #ffb31f; --mango-lip: #d98400;
  --lemon: #ffe45c; --lemon-lip: #e0b200;
  --pink: #e3166a; --pink-lip: #a30a49;
  --sky: #45bbff; --sky-lip: #1a86d2;
  --mint: #2fd89d; --mint-lip: #0f9e6b;
  --sun: #ff9a3d; --sun-lip: #cf640c;
  --snow: #ffffff; --snow-lip: #a8d2c7;
  --teal: #0a7a6f; --teal-lip: #05514a;
  --candy-ink: #0f2e2a;

  --bg: #eef7f4;
  --tray: #daeee8;
  --line: #c2e1d9;
  --surface: #ffffff;
  --ink: #0f2e2a;
  --ink2: #2d504b;
  --ink3: #4a6a65;
  --link: #08695f;
  --focus: #e3166a;

  --brand: #0a7a6f;
  --brand-lip: #05514a;
  --brand-ray: #0d8274;
  --brand-2: #087064;
  --deep: #075e55;
  --on-brand: #ffffff;
  --on-brand-2: #e3f6f1;

  --disp: 'Brico', 'Trebuchet MS', system-ui, sans-serif;
  --body: Roboto, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1c19;
    --tray: #12302b;
    --line: #04100e;
    --surface: #14302b;
    --ink: #e8f6f2;
    --ink2: #bcd8d1;
    --ink3: #93b6ae;
    --link: #74dccb;
    --focus: #ff5c9d;
    --brand: #08665d;
    --brand-lip: #022d29;
    --brand-ray: #0a7066;
    --brand-2: #075a52;
    --deep: #054a43;
    --snow-lip: #6f9d93;
  }
}

/* colour roles, as in the app */
.c-lemon { --face: var(--lemon); --lip: var(--lemon-lip); --fg: var(--candy-ink); }
.c-mango { --face: var(--mango); --lip: var(--mango-lip); --fg: var(--candy-ink); }
.c-sun   { --face: var(--sun);   --lip: var(--sun-lip);   --fg: var(--candy-ink); }
.c-sky   { --face: var(--sky);   --lip: var(--sky-lip);   --fg: var(--candy-ink); }
.c-mint  { --face: var(--mint);  --lip: var(--mint-lip);  --fg: var(--candy-ink); }
.c-pink  { --face: var(--pink);  --lip: var(--pink-lip);  --fg: #ffffff; }
.c-snow  { --face: var(--snow);  --lip: var(--snow-lip);  --fg: var(--candy-ink); }
.c-teal  { --face: var(--teal);  --lip: var(--teal-lip);  --fg: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .shot-list:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 760px; }

/* ---------- jelly tiles and the wordmark ---------- */
.tile {
  display: grid; place-items: center;
  width: var(--s, 48px); height: var(--s, 48px);
  border-radius: calc(var(--s, 48px) * 0.26);
  background: var(--face); color: var(--fg);
  font: 800 calc(var(--s, 48px) * 0.62)/1 var(--disp); font-style: normal;
  box-shadow: 0 calc(var(--s, 48px) * 0.09) 0 var(--lip), inset 0 2px 0 rgba(255, 255, 255, 0.42);
}

.wordmark { display: inline-flex; gap: 3px; text-decoration: none; padding: 2px 0 6px; }
.wordmark i {
  --s: 26px;
  display: grid; place-items: center; width: 24px; height: 28px; border-radius: 8px; padding-bottom: 1px;
  background: var(--face); color: var(--fg); font: 800 15px/1 var(--disp); font-style: normal;
  box-shadow: 0 3px 0 var(--lip), inset 0 2px 0 rgba(255, 255, 255, 0.42);
}
.wordmark i:nth-child(odd) { transform: translateY(-1px) rotate(-5deg); }
.wordmark i:nth-child(even) { transform: translateY(2px) rotate(4deg); }

/* ---------- top bar (on the teal header of every page) ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 8px; }
.bar nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { color: var(--on-brand-2); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.bar nav a:hover { color: #fff; text-decoration: underline; }
.bar nav a.lang {
  padding: 7px 12px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.bar nav a.lang:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }
@media (max-width: 759px) { .bar nav a:not(.lang) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--on-brand);
  background:
    radial-gradient(circle at 96% 4%, var(--brand-ray) 0 230px, transparent 231px),
    radial-gradient(circle at 0% 100%, var(--brand-2) 0 260px, transparent 261px),
    var(--brand);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 0 var(--brand-lip);
}
.hero-in { display: grid; gap: 8px; padding-top: 18px; }
.app-icon {
  width: 88px; height: 88px; border-radius: 24px;
  box-shadow: 0 0 0 3px #fff, 0 8px 0 3px var(--brand-lip);
  transform: rotate(-4deg);
}
.hero h1 { margin-top: 26px; font: 800 clamp(52px, 16vw, 92px)/0.95 var(--disp); letter-spacing: -0.03em; }
.hero h1 .sub { display: block; margin-top: 8px; font-size: clamp(28px, 8.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; color: var(--lemon); }
.lead { margin-top: 18px; max-width: 30em; font-size: 19px; line-height: 1.45; color: var(--on-brand-2); }

.soon {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  padding: 12px 22px 12px 16px; border-radius: 18px;
  background: #ffffff; color: var(--candy-ink);
  box-shadow: 0 6px 0 var(--brand-lip), inset 0 2px 0 rgba(255, 255, 255, 0.42);
  text-decoration: none;
}
.soon svg { width: 30px; height: 30px; color: var(--sun); }
.soon span { display: grid; line-height: 1.15; }
.soon small { font: 600 13px/1.2 var(--body); color: #4a6a65; letter-spacing: 0.01em; } /* the badge is white in both themes */
.soon strong { font: 800 21px/1.15 var(--disp); }
a.soon:hover { box-shadow: 0 4px 0 var(--brand-lip), inset 0 2px 0 rgba(255, 255, 255, 0.42); transform: translateY(2px); }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--on-brand-2); }

.hero-art { position: relative; height: 380px; margin-top: 18px; }
.hero-art .phone { --pw: 236px; position: absolute; left: 50%; top: 18px; transform: translateX(-50%) rotate(3deg); }
.hero-art .tile { position: absolute; z-index: 2; }
.hero-art .t1 { --s: 58px; left: calc(50% - 168px); top: 36px; transform: rotate(-12deg); }
.hero-art .t2 { --s: 50px; left: calc(50% + 112px); top: 150px; transform: rotate(9deg); }
.hero-art .t3 { --s: 46px; left: calc(50% - 160px); top: 250px; transform: rotate(-7deg); }

/* ---------- phone frame (the store screenshots' generic frame) ---------- */
.phone {
  --pw: 260px;
  width: var(--pw);
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.13);
  background: #0c1513;
  box-shadow: 0 26px 50px rgba(3, 30, 26, 0.32), 0 6px 14px rgba(3, 30, 26, 0.2), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
}
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--pw) * 0.1); background: #eef7f4; aspect-ratio: 1080 / 2280; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen::after {
  content: ''; position: absolute; top: calc(var(--pw) * 0.012); left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) * 0.045); height: calc(var(--pw) * 0.045); border-radius: 50%; background: #0c1513;
}

/* ---------- sections ---------- */
main { display: block; }
.block { padding-top: 64px; }
.kicker { font: 800 14px/1.2 var(--disp); letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
main h2 { font: 800 clamp(28px, 7.4vw, 44px)/1.08 var(--disp); letter-spacing: -0.02em; }
.section-head { max-width: 40em; }
.section-head p { margin-top: 12px; color: var(--ink2); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.intro { padding-top: 48px; }
.intro p {
  max-width: 30em; margin: 0 auto; text-align: center;
  font: 600 clamp(22px, 5.6vw, 32px)/1.3 var(--disp); letter-spacing: -0.01em; color: var(--ink);
}
.intro p em { font-style: normal; color: var(--link); }

/* feature rows: copy + phone */
.rows { display: grid; gap: 64px; padding-top: 56px; }
.row { display: grid; gap: 28px; align-items: center; }
.row .copy .tile { --s: 44px; margin-bottom: 18px; }
.row h2 { font-size: clamp(28px, 7vw, 40px); }
.row .copy p { margin-top: 14px; color: var(--ink2); font-size: 18px; max-width: 30em; }
.ticks { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 10px; color: var(--ink2); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--mint); box-shadow: 0 2px 0 var(--mint-lip);
}
.art {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 36px 16px;
  border-radius: 28px; background: var(--tray);
}
.art::before, .art::after { content: ''; position: absolute; border-radius: 50%; background: var(--line); opacity: 0.7; }
.art::before { width: 260px; height: 260px; right: -80px; top: -90px; }
.art::after { width: 200px; height: 200px; left: -70px; bottom: -80px; }
.art .phone { --pw: 240px; position: relative; z-index: 1; }

/* "made for playing" cards */
.cards { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-content: start;
  padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: 0 4px 0 var(--line);
}
.card .ic {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--face); color: var(--fg); box-shadow: 0 3px 0 var(--lip), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-top: 2px; font: 800 19px/1.2 var(--disp); }
.card p { font-size: 15.5px; line-height: 1.45; color: var(--ink2); }

/* "no account" band */
.band { margin-top: 64px; padding: 36px 0 40px; background: var(--surface); border-block: 1px solid var(--line); }
.band .section-head { margin-bottom: 22px; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts li {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px;
  background: var(--bg); font: 700 16px/1.25 var(--disp);
}
.facts .tile { --s: 34px; flex: none; }

/* screenshot row: swipe on phones, a grid on wide screens */
.shot-list {
  list-style: none; margin: 22px 0 0; padding: 4px 16px 18px;
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: thin;
}
.shot-list li { flex: 0 0 auto; width: min(64vw, 260px); scroll-snap-align: start; }
.shot-list img { width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; background: var(--tray); box-shadow: 0 5px 0 var(--line); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 22px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 2px 20px; box-shadow: 0 4px 0 var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font: 700 18px/1.3 var(--disp);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 800 26px/1 var(--disp); color: var(--link); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 18px; color: var(--ink2); }

/* closing card */
.cta { padding-top: 64px; }
.cta-card {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center;
  padding: 34px 18px 38px; border-radius: 28px; color: var(--on-brand);
  background:
    radial-gradient(circle at 100% 0%, var(--brand-ray) 0 150px, transparent 151px),
    radial-gradient(circle at 0% 100%, var(--brand-2) 0 130px, transparent 131px),
    var(--brand);
  box-shadow: 0 6px 0 var(--brand-lip);
}
.cta-card .app-icon { width: 76px; height: 76px; border-radius: 21px; }
.cta-card h2 { margin-top: 22px; font-size: clamp(26px, 6.6vw, 38px); }
.cta-card .soon { margin-top: 22px; }
.cta-card .meta { margin-top: 16px; font-size: 15px; color: var(--on-brand-2); }

/* ---------- footer ---------- */
.foot { margin-top: 56px; padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 15px; }
.foot .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; }
.foot nav a { display: inline-block; padding: 8px 0; font-weight: 600; }
.foot .copy { font-size: 13.5px; }

/* ---------- privacy pages and 404 ---------- */
.page-head {
  color: var(--on-brand);
  background:
    radial-gradient(circle at 98% 0%, var(--brand-ray) 0 170px, transparent 171px),
    var(--brand);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 6px 0 var(--brand-lip);
  padding-bottom: 34px;
}
.page-head h1 { margin-top: 26px; font: 800 clamp(34px, 9vw, 52px)/1.05 var(--disp); letter-spacing: -0.02em; }
.page-head p { margin-top: 10px; color: var(--on-brand-2); }


.prose { padding-top: 34px; padding-bottom: 8px; }
.prose h2 { margin-top: 40px; font: 800 25px/1.2 var(--disp); letter-spacing: -0.01em; scroll-margin-top: 16px; }
.prose h3 { margin-top: 24px; font: 700 19px/1.3 var(--disp); }
.prose p, .prose ul, .prose ol { margin-top: 12px; color: var(--ink2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }
.summary {
  padding: 20px 22px; border-radius: 22px; background: var(--surface); box-shadow: 0 4px 0 var(--line);
}
.summary > strong { font: 800 19px/1.2 var(--disp); }
.prose .summary ul { margin-top: 10px; }
.toc { margin-top: 24px; padding: 16px 20px; border-radius: 18px; background: var(--tray); }
.toc strong { font: 700 16px/1.2 var(--disp); }
.prose .toc ol { margin-top: 8px; columns: 2 220px; column-gap: 28px; }
.prose .toc li { margin: 0 0 4px; break-inside: avoid; }
.table-scroll { overflow-x: auto; margin-top: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink2); }
.prose th { color: var(--ink); font-weight: 700; }

.lost { padding-block: 48px 24px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.lost .tiles { display: flex; gap: 10px; }
.lost .tile { --s: 64px; }
.lost .tile:nth-child(odd) { transform: rotate(-6deg); }
.lost .tile:nth-child(even) { transform: rotate(5deg) translateY(6px); }
.lost p { max-width: 28em; color: var(--ink2); }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .wrap { padding-inline: 28px; }
  .bar { padding-top: 22px; }
  .hero { border-radius: 0 0 48px 48px; }
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 24px; padding-top: 22px; }
  .hero-copy { padding: 30px 0 70px; }
  .app-icon { width: 104px; height: 104px; border-radius: 28px; }
  .lead { font-size: 21px; }
  .hero-art { height: 560px; margin-top: 0; align-self: end; }
  .hero-art .phone { --pw: 290px; top: 44px; }
  .hero-art .t1 { --s: 70px; left: calc(50% - 215px); top: 80px; }
  .hero-art .t2 { --s: 60px; left: calc(50% + 140px); top: 230px; }
  .hero-art .t3 { --s: 54px; left: calc(50% - 200px); top: 380px; }

  .block { padding-top: 96px; }
  .intro { padding-top: 80px; }
  .rows { gap: 96px; padding-top: 72px; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .row.flip .copy { order: 2; }
  .art { padding: 56px 24px; }
  .art .phone { --pw: 270px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .card { grid-template-columns: 1fr; row-gap: 10px; }
  .card .ic { grid-row: auto; }
  .band { margin-top: 96px; padding: 56px 0 60px; }

  .shot-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
    max-width: 960px; margin: 28px auto 0; padding: 4px 28px 0; overflow: visible;
  }
  .shot-list li { width: auto; }
  .cta { padding-top: 96px; }
  .cta-card { padding: 48px 24px 52px; }
  .foot .wrap { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .foot nav { justify-content: center; justify-self: center; }
}
