/* Shared styles for the landing page, /privacy/ and /terms/. */
:root {
  color-scheme: light dark;
  --bg: #f6f8f7; --card: #fff; --text: #1b2420; --muted: #5a6a63;
  --line: #dde5e1; --accent: #0E5A43; --link: #0b6b4e; --brand: #0E5A43; --brand-soft: #c9eadb;
  --shadow: 0 10px 30px rgb(14 40 30 / .14);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1513; --card: #161e1b; --text: #e4ece8; --muted: #9db0a8; --line: #26332e; --accent: #3fd896; --link: #5fe0a6; --shadow: 0 10px 30px rgb(0 0 0 / .45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header bar (all pages) */
.top { background: var(--brand); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.top svg { flex: none; width: 36px; height: 36px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; margin-right: auto; }
.top nav { display: flex; gap: 18px; font-size: .95rem; }
.top nav a { color: var(--brand-soft); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; text-decoration: underline; }

/* Landing hero */
.hero { background: var(--brand); color: #fff; padding: 28px 0 0; overflow: hidden; }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; max-width: 16ch; }
.hero .lead { margin: 14px 0 0; font-size: 1.15rem; color: var(--brand-soft); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.cta {
  display: inline-block; background: #fff; color: #0E5A43; font-weight: 700; font-size: 1.05rem;
  padding: 13px 24px; border-radius: 10px; text-decoration: none; box-shadow: 0 4px 14px rgb(0 0 0 / .2);
}
.cta:hover { background: #eafaf2; }
.cta-note { color: var(--brand-soft); font-size: .92rem; }
.hero-video {
  position: relative; display: block; margin: 34px 0 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px 12px 0 0; box-shadow: 0 -4px 40px rgb(0 0 0 / .3); background: #000;
}
.hero-video img, .hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .14); transition: background .2s; }
.hero-video:hover::after { background: rgb(0 0 0 / .05); }
.hero-video:has(iframe)::after { display: none; }
.hero-video:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px;
  border-radius: 50%; background: rgb(14 90 67 / .94); display: grid; place-items: center;
  box-shadow: 0 8px 28px rgb(0 0 0 / .35); transition: transform .2s;
}
.play svg { margin-left: 4px; }
.hero-video:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.video-note {
  position: absolute; z-index: 1; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); white-space: nowrap;
  background: rgb(0 0 0 / .62); color: #fff; font-weight: 600; font-size: .95rem; padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 480px) {
  .play { width: 60px; height: 60px; }
  .play svg { width: 28px; height: 28px; }
  .video-note { top: calc(50% + 42px); font-size: .85rem; }
}

/* Sections */
main { padding: 8px 0 24px; }
.block { padding: 40px 0 8px; }
.block > h2 { font-size: clamp(1.4rem, 3.4vw, 1.85rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.block > .sub { color: var(--muted); margin: 0 0 22px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.features strong { display: block; margin-bottom: 4px; color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps h3 { margin: 4px 0 4px; font-size: 1.12rem; }
.steps p { margin: 4px 0; }
.shot { margin: 14px 0 4px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.tree { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.tree code { font: 600 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tree ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.tree li { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 14px; padding: 4px 0 4px 10px; }
.tree li > ul { grid-column: 1 / -1; }
.tree li span { color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .tree li { grid-template-columns: 1fr; } }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq details[open] summary { padding-bottom: 4px; }
.faq details p { margin: 6px 0 14px; }

.final { text-align: center; padding: 44px 0 16px; }
.final .cta { background: var(--brand); color: #fff; }
.final .cta:hover { background: #13704f; }

/* Policy pages */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px 20px; margin: 24px 0; }
.doc h1 { font-size: 1.7rem; margin: 18px 0 2px; color: var(--accent); }
.doc h2 { font-size: 1.05rem; margin: 22px 0 4px; }
.doc p, .doc ul { margin: 8px 0; }
.doc ul { padding-left: 22px; }
.date { color: var(--muted); font-size: .9rem; margin-top: 0; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; margin-top: 24px; }
footer .wrap { padding-top: 20px; padding-bottom: 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer p { margin: 4px 0; }

@media (max-width: 480px) {
  .top nav { gap: 12px; font-size: .9rem; }
  .brand { font-size: .95rem; }
  .doc { padding: 4px 16px 16px; }
  .steps > li { padding-left: 46px; }
}
