:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #f97316;
  --accent-strong: #c2410c;
  --accent-soft: #fff7ed;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
}

/* Dark: chosen explicitly, or "auto" with a dark system setting */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --surface: #121826;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --border: #263042;
  --accent: #fb923c;
  --accent-strong: #fdba74;
  --accent-soft: #2a1a0e;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f17;
    --surface: #121826;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --border: #263042;
    --accent: #fb923c;
    --accent-strong: #fdba74;
    --accent-soft: #2a1a0e;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }
code { overflow-wrap: anywhere; font-size: .9em; background: var(--accent-soft); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.main { display: flex; gap: 1.25rem; margin-left: auto; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--fg); }

.theme { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface); }
.theme button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: inherit; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px;
}
.theme button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }

/* Sections */
.hero { padding: 4.5rem 0 3rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: #f97316; color: #fff; }
.btn.primary:hover { background: #ea580c; }
.btn.ghost { border-color: var(--border); color: var(--fg); background: var(--surface); }
.btn.soon { background: var(--surface); color: var(--muted); border: 1px dashed var(--border); cursor: default; }

.shot { margin: 3rem auto 0; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }

section { padding: 3.5rem 0; }
section h2 { font-size: 1.75rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
section p.sub { color: var(--muted); margin: 0 0 2rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.35rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; margin-bottom: .5rem;
}

@media (max-width: 760px) {
  nav.main { gap: .9rem; }
  header.site .wrap { gap: .75rem; }
}
.auto-icon { display: none; }
@media (max-width: 560px) {
  nav.main a.optional { display: none; }
  .auto-label { display: none; }
  .hero h1 br { display: none; }
  .auto-icon { display: inline; }
  .theme button { padding: .2rem .45rem; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}

.privacy { background: var(--accent-soft); border-radius: 16px; padding: 2rem; }
.privacy h2 { margin-top: 0; }

/* Text pages */
article { padding: 3rem 0 4rem; }
article h1 { font-size: 2rem; margin: 0 0 .25rem; }
article h2 { font-size: 1.25rem; margin: 2.25rem 0 .5rem; }
article h3 { font-size: 1.05rem; margin: 1.5rem 0 .35rem; }
article .meta { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
article ul, article ol { padding-left: 1.3rem; }
article figure { margin: 1.5rem 0; }
article figure img { border-radius: 10px; border: 1px solid var(--border); }
article figcaption { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer.site nav { display: flex; gap: 1.25rem; }
footer.site a { color: var(--muted); }
