:root {
  --bg: #f6fbf6;
  --text: #171d19;
  --muted: #404943;
  --accent: #15603f;
  --line: #c0c9c1;
}

/* Dark follows the system unless the switch on the start page picked one
   (data-theme on <html>, remembered for every page). */
:root[data-theme="dark"] {
  --bg: #0f1511;
  --text: #dee4de;
  --muted: #c0c9c1;
  --accent: #8fd5ad;
  --line: #404943;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1511;
    --text: #dee4de;
    --muted: #c0c9c1;
    --accent: #8fd5ad;
    --line: #404943;
    color-scheme: dark;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 {
  color: var(--accent);
  margin: 0 0 4px;
}

nav {
  color: var(--muted);
  margin-bottom: 24px;
}

section {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 32px;
}

h3 {
  margin-bottom: 4px;
}

a {
  color: var(--accent);
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 24px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------------------------
   Start page (body.landing). The legal pages keep the plain layout above.
   ------------------------------------------------------------------------ */

.landing {
  --card: #ffffff;
  --soft: #e3f0e7;
}

[data-theme="dark"] .landing {
  --card: #172019;
  --soft: #1d2b22;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing {
    --card: #172019;
    --soft: #1d2b22;
  }
}

.landing > header,
.landing > section,
.landing > footer {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.brand.small {
  font-size: 17px;
}

.brand.small img {
  border-radius: 6px;
}

.links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

/* The plain nav's bottom margin is for the legal pages; here it would lift
   the links off the line of the logo and the switches. */
.top nav,
.bottom nav {
  margin-top: 0;
  margin-bottom: 0;
}

.theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* The icon shows where a tap goes: the moon in light, the sun in dark. */
.theme .sun,
[data-theme="dark"] .theme .moon {
  display: none;
}

[data-theme="dark"] .theme .sun {
  display: block;
}

.links a {
  color: var(--muted);
  text-decoration: none;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.lang button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 48px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.soon {
  color: var(--muted);
  font-size: 15px;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone,
.shots img {
  width: 100%;
  max-width: 290px;
  height: auto;
  border-radius: 28px;
  border: 8px solid #101511;
  box-shadow: 0 24px 60px rgba(21, 96, 63, 0.25);
}

.features {
  padding-top: 32px;
  padding-bottom: 32px;
}

.landing h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.grid svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 12px;
  background: var(--soft);
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.grid h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.shots {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  overflow-x: auto;
}

.shots img {
  flex: 0 0 auto;
  width: 240px;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.testers {
  padding-top: 32px;
  padding-bottom: 32px;
}

.testers .intro {
  max-width: 720px;
  margin: -8px 0 24px;
  color: var(--muted);
}

.platforms {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

.platforms article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px 24px;
}

.platforms h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.platforms ol {
  margin: 0;
  padding-left: 22px;
}

.platforms li {
  margin-bottom: 16px;
}

.platforms li .button {
  display: table;
  margin-top: 8px;
}

.platforms p {
  margin: 0 0 16px;
}

.platforms .note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 15.5px;
}

.trust {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 56px;
}

.trust p {
  max-width: 620px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 32px;
}

.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.bottom .muted {
  margin: 0 0 0 auto;
  font-size: 14px;
}

@media (max-width: 760px) {
  .links {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 8px;
  }

  .hero-phone {
    order: -1;
  }

  .phone {
    max-width: 220px;
  }

  .platforms {
    grid-template-columns: 1fr;
  }

  .shots {
    justify-content: flex-start;
  }

  .shots img {
    width: 200px;
  }

  .bottom .muted {
    margin-left: 0;
  }
}

h1 .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
}

h1 .home img {
  border-radius: 8px;
}
