/* OLEDSnap — true black on purpose: on an OLED panel, black pixels are off. */
:root {
  --bg: #000;
  --surface: #0b0b0f;
  --surface-2: #121218;
  --line: #24242c;
  --text: #ededf2;
  --muted: #9a9aa8;
  --accent: #3b85f5;
  --accent-soft: rgba(59, 133, 245, 0.14);
  --ok: #34c77b;
  --warn: #f5a524;
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 600px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 88px 0 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 56px 0 32px; gap: 36px; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; }
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); margin: 0 0 28px; max-width: 34em; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Waitlist form */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 30em; }
.signup input[type=email] {
  flex: 1 1 220px; min-width: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font: inherit;
}
.signup input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  padding: 13px 20px; border-radius: 10px;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 10px 0 0; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }

/* Orbit demo: a "screen" with a window that loops, exaggerated so it's visible */
.demo {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.demo .menubar { height: 22px; border-bottom: 1px solid var(--line); background: #08080b; }
.demo .win {
  position: absolute; top: 18%; left: 8%; width: 46%; height: 64%;
  background: var(--surface-2); border: 1px solid #2e2e38; border-radius: 9px;
  animation: orbit 8s steps(16) infinite;
}
.demo .win::before { /* title bar */
  content: ""; display: block; height: 18px; border-bottom: 1px solid #2e2e38;
  background: radial-gradient(circle at 11px 9px, #ff5f57 3.5px, transparent 4px),
              radial-gradient(circle at 23px 9px, #febc2e 3.5px, transparent 4px),
              radial-gradient(circle at 35px 9px, #28c840 3.5px, transparent 4px);
}
.demo .win.right { left: auto; right: 4%; width: 40%; animation-delay: -4s; }
.demo .caption { position: absolute; bottom: 10px; right: 14px; font-size: 12px; color: var(--muted); }
@keyframes orbit {
  0%   { transform: translate(-6px, -6px); }
  25%  { transform: translate(6px, -6px); }
  50%  { transform: translate(6px, 6px); }
  75%  { transform: translate(-6px, 6px); }
  100% { transform: translate(-6px, -6px); }
}
@media (prefers-reduced-motion: reduce) { .demo .win { animation: none; } }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; margin-bottom: 10px; }

kbd {
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 6px; color: var(--text); white-space: nowrap;
}
.shortcuts { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 32px; }
.shortcuts td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.shortcuts td:last-child { text-align: right; }

/* Pricing */
.price-card { max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Prose pages (privacy, terms, refunds) */
.prose { max-width: 720px; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose p, .prose li { color: #cfcfd8; }
.prose .updated { color: var(--muted); font-size: 15px; margin-top: -8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Launch switch (<html data-launch> in index.html): the waitlist before launch,
   Download and Buy after. */
[data-launch="waitlist"] .when-live,
[data-launch="live"] .when-waitlist { display: none !important; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
