/* Theme: follows the system setting unless site.js has set data-theme on
   <html> from the visitor's saved choice. */
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #131a22;
  --muted: #5b6673;
  --line: #dde2e8;
  --accent: #1667ad;
  --accent-soft: #e6f1fb;
  --on-accent: #ffffff;
  --screen: #0f1620;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --switch-label: "Dark theme";
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1117;
    --surface: #141b24;
    --text: #e8edf2;
    --muted: #97a3b0;
    --line: #253040;
    --accent: #5db2f0;
    --accent-soft: #12283b;
    --on-accent: #06121d;
    --screen: #070b10;
    --shadow: none;
    --switch-label: "Light theme";
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1117;
  --surface: #141b24;
  --text: #e8edf2;
  --muted: #97a3b0;
  --line: #253040;
  --accent: #5db2f0;
  --accent-soft: #12283b;
  --on-accent: #06121d;
  --screen: #070b10;
  --shadow: none;
  --switch-label: "Light theme";
}

* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
  max-width: 17em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 4.5rem 0 1.5rem;
}
h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
}
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
p, ul, ol { margin: 0 0 1.25rem; }
p { max-width: 42rem; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent); }
.wide { max-width: none; }
.nowrap { white-space: nowrap; }
.muted, .tagline { color: var(--muted); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-right: auto;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.site-nav .brand::before {
  content: "";
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 6px;
  background: #000 url(logo.png) center / cover no-repeat;
}
.site-nav span { color: var(--muted); }
.theme-switch {
  padding: .2rem .7rem;
  border: 1px solid var(--line);
  border-radius: 2em;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.theme-switch[hidden] { display: none; }
.theme-switch:hover { color: var(--accent); border-color: var(--accent); }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-switch::after { content: var(--switch-label); }

.sub { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; font-weight: 600; margin-bottom: 1rem; max-width: none; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.notice {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: .92rem;
}
.notice::before {
  content: "Demo";
  margin-right: .6rem;
  padding: .1rem .45rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}
.button:hover, .button:focus-visible { color: var(--on-accent); filter: brightness(1.12); }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--accent-soft); color: var(--accent); filter: none; }

.video {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 2.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--screen);
  box-shadow: var(--shadow);
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }

.points {
  list-style: none;
  padding: 0;
  counter-reset: point;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
.points li {
  counter-increment: point;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: .97rem;
}
.points li::before {
  content: counter(point);
  position: absolute;
  left: 1.3rem;
  top: 1.25rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.points strong { display: block; margin-bottom: .3rem; color: var(--text); font-size: 1.08rem; line-height: 1.35; }
.points li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.points details { margin-top: .8rem; }
.points summary, .status h3 { font-size: .85rem; font-weight: 650; }
.points summary { color: var(--accent); cursor: pointer; width: fit-content; }
.points details p { margin: .5rem 0 0; font-size: .93rem; }

.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.status div {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.status h3 { margin-bottom: .7rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.status ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.status li + li { margin-top: .5rem; }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.actions div {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.actions h3 { font-size: 1.2rem; }
.actions p { margin: 0 0 1.25rem; color: var(--muted); }
.actions p:last-child { margin: auto 0 0; }

.built-on {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.built-on li {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: .95rem;
}
.built-on a {
  display: block;
  margin-bottom: .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.built-on a:hover { text-decoration: underline; }
.built-on br { display: none; }

.about { border-left: 4px solid var(--accent); padding-left: 1.25rem; }
.about p:last-child { margin: 0; }

.policy h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.policy h2 { margin-top: 3rem; }
.policy h3 { margin-top: 1.75rem; }
.policy ul { max-width: 42rem; padding-left: 1.3rem; }
.policy li { margin-bottom: .5rem; }

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
footer p { margin: 0 0 .4rem; }

@media (max-width: 30rem) {
  .points li { padding: 4.2rem 1.2rem 1.2rem; }
  .points li::before { left: 1.2rem; top: 1.2rem; }
  .hero-actions .button { flex: 1 1 100%; text-align: center; }
}
