:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #2dd4bf;
  --teal-soft: #ccfbf1;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --line: #1e293b;
    --bg: #020617;
    --card: #0f172a;
    --teal-soft: #134e4a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--teal-light), var(--teal-dark));
  color: #fff;
  overflow: hidden;
}
.hero .nav .brand, .hero .nav-links a { color: #fff; }
.hero .nav-links a { opacity: 0.85; }
.hero-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 0; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; opacity: 0.92; margin: 0 0 28px; max-width: 34ch; }
.hero-shot { align-self: end; }
.hero-shot img { width: 100%; max-width: 340px; margin: 0 auto -120px; filter: drop-shadow(0 20px 50px rgba(4, 47, 46, 0.45)); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0b1220; color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; line-height: 1.2;
}
.store small { display: block; font-weight: 400; font-size: 11px; opacity: 0.75; }
.store[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.pill { display: inline-block; background: rgba(255, 255, 255, 0.18); padding: 4px 12px; border-radius: 999px; font-size: 14px; margin-bottom: 16px; }

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 19px; margin: 0 0 40px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { font-size: 28px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.demo { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
.demo .sub { margin-bottom: 0; }
.demo-video { width: 100%; height: auto; border-radius: 28px; background: var(--teal-dark); box-shadow: 0 20px 50px rgba(4, 47, 46, 0.35); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots img { border-radius: 18px; width: 100%; height: auto; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan h3 { margin: 0; }
.plan .price { font-size: 28px; font-weight: 800; margin: 6px 0 12px; }
.plan ul { padding-left: 20px; margin: 0; color: var(--muted); }
.plan.featured { border: 2px solid var(--teal); }

/* Documents (privacy, terms, support) */
.doc { max-width: 760px; padding: 24px 0 80px; }
.doc h1 { font-size: 40px; letter-spacing: -0.02em; margin: 24px 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 600; cursor: pointer; }

/* Centered message pages (email confirmed, invite) */
.center { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center .box { max-width: 440px; }
.center img.logo { width: 84px; height: 84px; margin: 0 auto 16px; }
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 14px; }
.btn.secondary { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.code { font: 700 22px ui-monospace, Menlo, monospace; letter-spacing: 0.08em; background: var(--card); border: 1px dashed var(--line); padding: 10px 16px; border-radius: 12px; display: inline-block; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a.social { display: inline-flex; align-items: center; gap: 5px; vertical-align: bottom; }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; padding-top: 16px; }
  .grid, .pricing { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; gap: 28px; }
  .demo-video { max-width: 320px; margin: 0 auto; }
  .nav-links { gap: 14px; font-size: 14px; }
  section { padding: 52px 0; }
}

/* Tester guide (/test) */
.muted { color: var(--muted); }
.test-requirements { margin: 8px 0 8px; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding: 6px 0; }

/* Language menu (nav) and the "view in your language?" banner. */
.lang-menu, .lang-menu[open] { position: relative; background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
.lang-menu summary { list-style: none; cursor: pointer; opacity: 0.85; white-space: nowrap; padding: 0; font-weight: inherit; font-size: inherit; color: inherit; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { opacity: 1; }
.lang-menu div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; min-width: 170px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); }
.lang-menu div a { color: var(--ink) !important; opacity: 1 !important; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.lang-menu div a:hover, .lang-menu div a[aria-current] { background: var(--line); }
.lang-banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px;
  background: var(--teal-dark); color: #fff; font-size: 15px; }
.lang-banner a { color: #fff; font-weight: 700; background: rgba(255, 255, 255, 0.18); padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.lang-banner button { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.legal-note { margin-top: 12px; font-size: 13px; }
@media (max-width: 560px) { .nav-links { gap: 14px; } }
.nav-links .lang-menu summary { color: var(--muted); }
.hero .nav-links .lang-menu summary { color: #fff; }
/* Official Google Play badge: shown as supplied (no recolouring), same height as the App Store button. */
.store-badge { height: 55px; width: auto; display: block; }

/* Screenshot zoom */
.shots img { cursor: zoom-in; transition: transform .15s ease; }
.shots img:hover, .shots img:focus-visible { transform: translateY(-3px); }
.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom::backdrop { background: rgba(8, 12, 20, .88); }
.zoom img { max-height: calc(100vh - 48px); max-width: calc(100vw - 32px); width: auto; height: auto; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.zoom button { position: absolute; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; color: #fff; background: rgba(255,255,255,.14); cursor: pointer; }
.zoom button:hover, .zoom button:focus-visible { background: rgba(255,255,255,.28); }
.zoom-close { top: 16px; right: 16px; }
.zoom-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.zoom-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .zoom-prev, .zoom-next { top: auto; bottom: 16px; transform: none; }
  .zoom img { max-height: calc(100vh - 110px); }
}
