:root {
  --navy: #0f1b2d;
  --navy-light: #1e3350;
  --orange: #ff6a2b;
  --orange-dark: #cc4f17;
  --cream: #fff6ee;
  --white: #ffffff;
  --warm: #ffe7d6;
  --success: #2e9e5b;
  --danger: #d64545;
  --bg: var(--cream);
  --text: var(--navy);
  --text-2: var(--navy-light);
  --surface: var(--white);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 28px;
  --font: system-ui, Roboto, "Segoe UI", sans-serif;
  --max: 1080px;
  --shadow: 0 18px 50px rgba(15, 27, 45, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --text: var(--cream);
    --text-2: #d7cfc6;
    --surface: var(--navy-light);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-dark);
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--orange);
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-s);
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--navy-light) 18%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A native <details> disclosure rather than a <select>: it opens and closes without JS,
   and the panel holds plain links, so every language stays a crawlable, keyboard-reachable
   page link. Adding a language is one more <li>; nothing here depends on the count. */
.lang-menu {
  position: relative;
  flex-shrink: 0;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid color-mix(in srgb, var(--text-2) 30%, transparent);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

/* Chevron drawn with borders so it needs no extra markup and follows currentColor. */
.lang-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.lang-menu[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.lang-menu summary:hover {
  background: color-mix(in srgb, var(--text-2) 8%, transparent);
}

.lang-menu summary:focus-visible,
.lang-menu a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.lang-globe {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-1));
  z-index: 6;
  min-width: 180px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text-2) 18%, transparent);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.lang-menu a:hover {
  background: color-mix(in srgb, var(--text-2) 10%, transparent);
}

.lang-menu a[aria-current="page"] {
  font-weight: 700;
}

.lang-menu a[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 10px;
  margin: -3px 4px 0 0;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
}

.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* No top margin: the sticky header already carries the logo and name, so the
   headline opens the hero and the 40px section padding is the only gap above it. */
.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
}

@media (min-width: 860px) {
  .hero h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

.hero .lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 26px;
  color: #e8d8ca;
  max-width: 36ch;
}

.play-badge {
  height: 64px;
  width: auto;
}

.play-badge img {
  height: 64px;
  width: auto;
}

/* Only while the closed test runs (needed to reach Play's 12 testers); drop with the line at launch. */
.beta-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #e8d8ca;
}

.beta-note a {
  color: #ff6a2b;
  font-weight: 600;
}

.phone {
  width: min(280px, 72vw);
  margin-inline: auto;
  background: #070d16;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #2c425f;
}

/* The navy bezel disappears against the navy page in dark mode, so the frame
   gets a lighter edge there instead of a second, heavier frame. */
@media (prefers-color-scheme: dark) {
  .phone {
    border-color: #4a6283;
  }
}

.phone picture,
.shots picture {
  display: block;
}

.phone img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.section {
  padding: 48px 0;
}

.section h2 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 34px;
}

.benefits {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 800px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}

.benefit {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.benefit h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 24px;
}

.benefit p,
.muted {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--warm);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
}

@media (prefers-color-scheme: dark) {
  .icon {
    background: color-mix(in srgb, var(--orange) 18%, var(--navy-light));
    color: var(--orange);
  }
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shots {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  margin: 0;
  flex: 0 0 min(220px, 68vw);
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  background: var(--navy);
}

.shots figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* Premium is stated, not sold: small plain text in the secondary colour, no
   badge or button, so the page never reads as upgrade pressure (never-nag). */
.premium-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.plans {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 700px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 28px;
}

.plan.premium {
  outline: 2px solid var(--orange);
}

.badge-free {
  display: inline-block;
  margin-bottom: 12px;
  background: var(--warm);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  padding: 6px 10px;
  border-radius: 999px;
}

.plan ul {
  margin: 0;
  padding-left: 18px;
}

.plan li + li {
  margin-top: 8px;
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
  line-height: 22px;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-2);
}

.legal h1,
.page-hero h1 {
  font-size: 32px;
  line-height: 40px;
  margin: 32px 0 8px;
}

.legal .updated,
.lede {
  color: var(--text-2);
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 22px;
  line-height: 28px;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  max-width: 68ch;
}

.country {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  margin: 16px 0 24px;
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--navy-light) 18%, transparent);
  padding: 32px 0 48px;
  font-size: 14px;
  line-height: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.footer-nav a,
.site-footer a {
  color: inherit;
}

.notice {
  color: var(--text-2);
  font-size: 12px;
  line-height: 16px;
  margin-top: 16px;
}

.lang-list {
  padding: 48px 16px;
  max-width: 40rem;
  margin: 0 auto;
}

.lang-list a {
  display: block;
  padding: 12px 0;
  font-size: 18px;
}

/* Guide page styles */
.guide-section {
  display: grid;
  gap: var(--space-6);
  margin-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--navy-light) 15%, transparent);
}

@media (min-width: 720px) {
  .guide-section {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-text h2 {
  margin-top: 0;
  font-size: 22px;
  line-height: 28px;
}

.guide-text p {
  margin: 12px 0;
}

.guide-text ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.guide-text li + li {
  margin-top: 6px;
}

.guide-shot {
  max-width: 260px;
  margin: 12px auto 0;
}

@media (min-width: 720px) {
  .guide-shot {
    margin: 0;
  }
}

.guide-shot img {
  width: 100%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--navy-light) 15%, transparent);
  background: var(--navy);
}

.guide-banner {
  background: var(--surface);
  border-left: 4px solid var(--orange);
  padding: var(--space-4);
  border-radius: var(--radius-s);
  margin: 20px 0 28px;
}

