:root {
  --bg: #ffffff;
  --bg-soft: #eef8f3;
  --bg-dark: #0e2a26;
  --ink: #16302c;
  --muted: #55665f;
  --line: #d6e7df;
  --brand: #1f9e74;
  --brand-strong: #16805d;
  --brand-light: #5fe0b0;
  --accent: #e8590c;
  --on-dark: #c9ddd7;
  --card: #ffffff;
  --radius: 16px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1715;
    --bg-soft: #122623;
    --bg-dark: #081311;
    --ink: #e8f2ee;
    --muted: #a3b8b0;
    --line: #23413b;
    --brand: #2dc48d;
    --brand-strong: #5fe0b0;
    --card: #10211e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { letter-spacing: -0.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--brand-strong); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav a:not(.button) { display: none; }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.button:hover { background: var(--brand-strong); color: #fff; }
.nav .button { padding: 8px 16px; font-size: 0.9rem; color: #fff; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.secondary:hover { background: var(--bg-soft); color: var(--ink); }
.button.light { background: var(--brand-light); color: var(--bg-dark); }
.button.light:hover { background: #fff; color: var(--bg-dark); }
.button[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* Hero */
.hero { background: var(--bg-dark); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .tagline { color: var(--brand-light); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6em; }
.hero p.lede { color: var(--on-dark); font-size: 1.1rem; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hero .note { color: var(--on-dark); font-size: 0.9rem; opacity: 0.85; }
.hero .shots { position: relative; height: 560px; }
.hero .shots img { position: absolute; bottom: -40px; width: 250px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }
.hero .shots img:nth-child(1) { left: 0; bottom: -90px; transform: rotate(-4deg); }
.hero .shots img:nth-child(2) { right: 20px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .shots { height: 420px; }
  .hero .shots img { width: 200px; }
  .hero .shots img:nth-child(1) { left: calc(50% - 210px); }
  .hero .shots img:nth-child(2) { right: calc(50% - 210px); }
}

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }
.section-intro { max-width: 40em; margin-bottom: 40px; }
.section-intro p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid.three, .grid.two { grid-template-columns: 1fr; }
}

.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature.reverse .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; gap: 16px; align-items: flex-end; }
.feature-media img { width: 250px; max-width: 45%; height: auto; filter: drop-shadow(0 14px 28px rgba(14,42,38,0.22)); }
.feature-media img.watch { width: 150px; }
.feature ul { padding-left: 1.2em; color: var(--muted); }
.feature li { margin-bottom: 0.4em; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-media { order: 0; }
}

.pill { display: inline-block; background: var(--bg-soft); color: var(--brand-strong); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

.cta { background: var(--bg-dark); color: #fff; border-radius: 24px; padding: 48px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 0.3em; }
.cta p { color: var(--on-dark); margin: 0; max-width: 36em; }

/* Documents (privacy, terms, support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { margin-bottom: 0.2em; }
.doc .updated { color: var(--muted); margin-bottom: 2em; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { margin-top: 1.5em; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.summary { background: var(--bg-soft); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 2em; }
.summary ul { margin: 0; }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
table.simple { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  table.simple, table.simple tbody, table.simple tr, table.simple td, table.simple th { display: block; width: 100%; }
  table.simple thead { display: none; }
  table.simple tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.simple td { border: 0; padding: 4px 0; }
  table.simple td:first-child { font-weight: 600; }
}

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer small { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.5; max-width: 46ch; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
