:root {
  --bg: #f8f6f0;
  --surface: #ffffff;
  --tint: #e4eee1;
  --ink: #1b1b1b;
  --muted: #55554d;
  --line: #d9d6cb;
  --green: #2e7d32;
  --on-green: #ffffff;
  --green-text: #1b5e20;
  --accent: #ffb300;
  --on-accent: #1b1b1b;
  --band: #1b5e20;
  --on-band: #ffffff;
  --phone: #1b1b1b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --tint: #1f2e20;
  --ink: #f2f1ec;
  --muted: #b4b3ab;
  --line: #3a3a36;
  --green: #81c784;
  --on-green: #0b1f0d;
  --green-text: #81c784;
  --accent: #ffd54f;
  --band: #14411a;
  --phone: #3a3a36;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--green-text); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .band a:focus-visible { outline-color: #ffffff; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 4px; z-index: 20; }
.skip:focus { left: 8px; }

/* header: solid, one border; sticky for wayfinding */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { background: var(--tint); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn { display: none; }
.header .tools { display: flex; gap: 8px; margin-left: 8px; }

/* buttons */
.btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.25; }
.btn small { font-weight: 500; font-size: 0.78rem; opacity: 0.85; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { border-color: currentColor; color: var(--ink); justify-content: center; }
.btn-secondary:hover { background: var(--tint); }
.link-quiet { font-weight: 600; padding: 14px 4px; }

/* hero: asymmetric, headline carries the page */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.25rem, 6.4vw, 4.4rem); font-weight: 800; max-width: 14ch; }
.hero .lead { margin-top: 22px; max-width: 46ch; color: var(--muted); font-size: 1.15rem; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fine { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.hero-visual { justify-self: center; width: min(340px, 100%); }
.arch { background: var(--tint); border-radius: 999px 999px 0 0; overflow: hidden; position: relative; }
.hero-visual .arch { aspect-ratio: 340 / 460; display: flex; align-items: flex-end; justify-content: center; }
.phone { width: 62%; aspect-ratio: 9 / 19; border: 8px solid var(--phone); border-bottom: 0; border-radius: 30px 30px 0 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; padding: 12px; }

.phone.has-img { padding: 0; display: block; overflow: hidden; aspect-ratio: auto; }
.phone img { display: block; width: 100%; height: auto; }
.hero-visual .phone.has-img { width: 68%; }
.panel .arch.has-shot, .panel .arch.soon { aspect-ratio: 220 / 310; padding: 0; }
.panel .arch.has-shot { display: flex; align-items: flex-end; justify-content: center; }
.panel .arch.has-shot .phone { width: 64%; }
.panel .arch.soon { border: 1px solid var(--line); border-bottom: 0; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.panel .arch.soon strong { color: var(--ink); font-size: 1.05rem; }

.ph { color: var(--muted); font-size: 0.85rem; font-weight: 600; border: 1.5px dashed var(--muted); border-radius: 4px; padding: 6px 8px; display: inline-block; }

/* feature explorer */
.section { padding: 104px 0 0; }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 750; }
.section-head p { margin-top: 14px; color: var(--muted); }
.explorer { display: grid; gap: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer; text-align: left; }
.tab:hover { background: var(--tint); }
.tab small { display: block; font-weight: 500; font-size: 0.78rem; margin-top: 2px; opacity: 1; color: var(--muted); }
.tab[aria-selected="true"] small { color: var(--on-green); }
.tab[aria-selected="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.panel { display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.js .panel[hidden] { display: none; }
.panel.show { animation: swap 0.28s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: 1.7rem; font-weight: 750; }
.panel h3 .status { font-size: 0.78rem; font-weight: 600; letter-spacing: 0; }
.panel .desc { margin-top: 12px; color: var(--muted); }
.panel ul { margin: 20px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.panel .list-title { margin-top: 20px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.panel .list-title + ul { margin-top: 8px; }
.panel .note { margin-top: 20px; font-size: 0.92rem; font-weight: 600; color: var(--green-text); }
.panel .arch { width: min(220px, 100%); aspect-ratio: 220 / 280; display: grid; place-items: center; justify-self: center; padding: 16px; text-align: center; }
.tiny { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }

/* audience: typographic rows, no cards */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.35rem; font-weight: 700; }
.row p { color: var(--muted); max-width: 52ch; }
.status { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }

/* faq */
.faq-grid { display: grid; gap: 32px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* download band: the one dark, full-bleed moment */
.band { margin-top: 112px; background: var(--band); color: var(--on-band); padding: 72px 0 0; overflow: hidden; }
.band .wrap { display: grid; gap: 40px; align-items: end; }
.band h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; max-width: 16ch; }
.band p { margin-top: 16px; max-width: 44ch; opacity: 0.92; }
.band .cta-row { margin-bottom: 72px; }
.band .btn-secondary { color: #ffffff; }
.band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.band .arch { width: min(280px, 100%); aspect-ratio: 280 / 330; justify-self: center; background: rgba(255,255,255,0.1); }
.band .arch img { width: 100%; height: 100%; object-fit: cover; }

.footer { padding: 40px 0 48px; font-size: 0.93rem; color: var(--muted); }
.footer .wrap { display: grid; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer a { color: var(--ink); display: inline-block; padding: 10px 0; }
.footer .ph { font-size: 0.8rem; }

/* scroll reveal: only when JS is on, once, short */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .hero { padding-top: 88px; }
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .hero .text { padding-bottom: 96px; }
  .explorer { grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
  .tabs { flex-direction: column; flex-wrap: nowrap; }
  .panel { grid-template-columns: 1fr 220px; padding: 40px; align-items: center; }
  .panel .arch { justify-self: end; }
  .row { grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: baseline; }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .faq-grid .section-head { position: sticky; top: 100px; align-self: start; }
  .band .wrap { grid-template-columns: 1.3fr 0.7fr; gap: 64px; }
}

@media (max-width: 899px) {
  .menu-btn { display: inline-grid; }
  .header .tools { margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; }
  .tab { flex: 1 1 auto; }
  .section { padding-top: 80px; }
  .band { margin-top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel.show { animation: none; }
}

.lang-btn { min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.lang-btn:hover { background: var(--tint); }
