:root {
  --green: #9FC93F;
  --green-deep: #5E7A1E;
  --green-soft: #C6E37E;
  --ink: #060709;
  --paper: #F5F1EA;
  --paper-warm: #EFE8DD;
  --cream: #FDFBF7;
  color-scheme: light;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a { color: var(--green-deep); }
a:hover { color: var(--ink); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: var(--green);
  color: var(--ink);
  padding: 14px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
header.site img { width: 40px; height: 40px; border-radius: 10px; }
header.site .brand {
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92em;
  font-weight: 600;
  opacity: 0.9;
}
header.site nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero {
  background: var(--green);
  color: var(--ink);
  padding: 48px 0 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2em, 5vw, 3.4em);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  font-weight: 800;
}
.hero .subtitle {
  font-size: 1.25em;
  font-weight: 700;
  margin: 0 0 18px;
  opacity: 0.92;
}
.hero .pitch { font-size: 1.08em; max-width: 34em; opacity: 0.95; }
.hero-image { margin: 0; }
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(6, 7, 9, 0.2);
}
.badges { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge-store {
  display: inline-block;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.badge-store:hover, .badge-store:focus-visible { background: var(--ink); color: var(--green); }
.badge-price { font-weight: 700; opacity: 0.9; }

/* Sections */
section.band { padding: 56px 0; }
section.band.warm { background: var(--paper-warm); }
section.band.dark { background: var(--ink); color: var(--paper); }
section.band.dark a { color: var(--green-soft); }
section.band h2 {
  font-size: 1.9em;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 800;
}
section.band .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 4px;
}
section.band.dark .kicker { color: var(--green-soft); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 28px; }
.card {
  background: var(--cream);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(6, 7, 9, 0.08);
}
.band.dark .card { background: #17181C; box-shadow: none; border: 1px solid #2A2C33; }
.card h3 { margin: 0 0 8px; font-size: 1.12em; }
.card ul { margin: 0; padding-left: 1.2em; }
.card li { margin: 7px 0; }

/* Placeholder sketches */
figure.placeholder { margin: 0; }
figure.placeholder svg { width: 100%; height: auto; display: block; }
figure.placeholder figcaption {
  margin-top: 10px;
  font-size: 0.85em;
  text-align: center;
  opacity: 0.75;
  font-style: italic;
}

/* App screenshots strip */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.screens figure { margin: 0; }
.screens img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(6, 7, 9, 0.16);
  border: 1px solid rgba(6, 7, 9, 0.08);
}
.screens figcaption {
  margin-top: 8px;
  font-size: 0.82em;
  text-align: center;
  opacity: 0.75;
}
.screens a.shot {
  display: block;
  cursor: zoom-in;
  border-radius: 12px;
}
.screens a.shot:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
}

/* Screenshot lightbox */
dialog.lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: none;
  max-height: none;
}
dialog.lightbox::backdrop {
  background: rgba(6, 7, 9, 0.82);
}
dialog.lightbox img {
  display: block;
  max-width: min(92vw, 920px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(6, 7, 9, 0.55);
  cursor: zoom-out;
}

/* Demo video */
figure.demo-video { margin: 0; }
figure.demo-video .video-js {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(6, 7, 9, 0.2);
}
figure.demo-video figcaption {
  margin-top: 10px;
  font-size: 0.85em;
  text-align: center;
  opacity: 0.75;
  font-style: italic;
}

/* Compatibility */
.compat table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(6, 7, 9, 0.08);
}
.compat th, .compat td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--paper-warm); vertical-align: top; }
.compat th { background: var(--green); color: var(--ink); font-weight: 700; }
.compat tr:last-child td { border-bottom: none; }
.devicons { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 9px; }
.devicons svg { display: block; flex-shrink: 0; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}
.pill.ok { background: #DCEFDF; color: #1E6B33; }
.pill.test { background: #F3E4C8; color: #7A5410; }
.pill.setup { background: #DCE8F6; color: #285679; }
.pill.no { background: #F0DADA; color: #8C2B2B; }
.pill.na { background: #E4E2DC; color: #55534E; }

.notice {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  background: var(--cream);
  border-radius: 0 12px 12px 0;
}

/* Footer */
footer.site {
  background: var(--ink);
  color: #B9BAC0;
  padding: 40px 0 48px;
  font-size: 0.9em;
}
footer.site a { color: var(--green-soft); }
footer.site .legal { max-width: 46em; }

/* Privacy page */
article.doc { padding: 48px 0 72px; max-width: 720px; margin: 0 auto; }
article.doc h1 { letter-spacing: -0.02em; font-size: 2.2em; margin-bottom: 4px; }
article.doc .meta { font-style: italic; opacity: 0.75; margin-bottom: 32px; }
article.doc h2 { margin-top: 36px; letter-spacing: -0.01em; }
article.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-warm); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  header.site nav { gap: 12px; }

  /* Stack the compatibility table into cards */
  .compat table, .compat tbody, .compat tr, .compat td { display: block; }
  .compat tr:first-child { display: none; }
  .compat tr { padding: 16px 0; border-bottom: 1px solid var(--paper-warm); }
  .compat tr:last-child { border-bottom: none; }
  .compat td { padding: 2px 16px; border-bottom: none; }
  .compat td:first-child { font-weight: 700; }
  .compat td:last-child { padding-top: 6px; }
}
