/* Sayrova website. System fonts only (no third-party requests). */
:root {
  --bg: #fbfbfd;
  --bg-soft: #f3f2f8;
  --surface: #ffffff;
  --text: #14131a;
  --muted: #5d5a6b;
  --faint: #8f8c9c;
  --border: #e6e4ee;
  --accent: #5b4bdb;
  --accent-strong: #4a3bc4;
  --accent-soft: #eeebff;
  --grad-a: #5b4bff;
  --grad-b: #b44cff;
  --ok: #1f9d63;
  --shadow: 0 1px 2px rgba(20, 19, 26, 0.04), 0 8px 24px rgba(20, 19, 26, 0.06);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e14;
    --bg-soft: #16151d;
    --surface: #1b1a23;
    --text: #f1eff7;
    --muted: #aaa6ba;
    --faint: #7c788d;
    --border: #2b2936;
    --accent: #8e80ff;
    --accent-strong: #a397ff;
    --accent-soft: #24203d;
    --ok: #3ccf8e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
img, svg { display: block; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---- Buttons and form ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 0;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--font);
  cursor: pointer; transition: background 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-strong); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.pick-platform {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 2px; font-size: 14px; color: var(--muted);
}
.pick-label { margin-right: 4px; }
.pick-platform label { position: relative; cursor: pointer; }
.pick-platform input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-platform label span {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 14px; transition: border-color .15s, background .15s;
}
.pick-platform label:hover span { border-color: var(--accent); }
.pick-platform input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pick-platform input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: 15px var(--font);
}
.waitlist input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
/* Hidden from people; bots fill it in. */
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 4px 0 0; font-size: 14px; color: var(--faint); }
.form-status { margin: 8px 0 0; font-size: 14px; }
.form-status:empty { margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #d23f4f; }

/* ---- Hero ---- */
.hero { padding: 88px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 4px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 600;
}
h1 {
  margin: 0 0 18px; font: 700 clamp(36px, 5.2vw, 56px)/1.08 var(--font-display);
  letter-spacing: -0.03em;
}
.lede { margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 520px; }

/* Before/after demo card */
.demo {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 22px;
}
.demo-label { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.demo-said { margin: 0; font-size: 16px; color: var(--muted); font-style: italic; }
.demo-said .filler { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 70%, transparent); color: var(--faint); }
.demo-arrow { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--faint); font-size: 13px; }
.demo-arrow::before, .demo-arrow::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-typed { margin: 0; font-size: 17px; font-weight: 500; }
.demo-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.pill {
  display: flex; align-items: center; gap: 12px; width: fit-content; margin: 0 auto 16px;
  padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 4px color-mix(in srgb, #e5484d 20%, transparent); }
.pill .bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.pill .bars i { width: 3px; border-radius: 2px; background: var(--accent); display: block; animation: wave 1.1s ease-in-out infinite; }
.pill .bars i:nth-child(1) { height: 6px; animation-delay: -0.9s; }
.pill .bars i:nth-child(2) { height: 12px; animation-delay: -0.7s; }
.pill .bars i:nth-child(3) { height: 18px; animation-delay: -0.5s; }
.pill .bars i:nth-child(4) { height: 10px; animation-delay: -0.3s; }
.pill .bars i:nth-child(5) { height: 14px; animation-delay: -0.1s; }
.pill .bars i:nth-child(6) { height: 7px; animation-delay: -0.6s; }
.pill .time { font: 13px var(--mono); color: var(--faint); }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .pill .bars i { animation: none; } }

/* ---- Sections ---- */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { margin: 0 0 12px; font: 700 clamp(28px, 3.4vw, 38px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.section-lede { margin: 0 0 40px; color: var(--muted); font-size: 18px; max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 14px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 20px; height: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
kbd {
  font: 600 12.5px var(--mono); padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--border); border-bottom-width: 2px; background: var(--bg-soft); color: var(--text);
}

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.platform h3 { margin: 0 0 4px; font-size: 20px; }
.platform .status { font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.platform ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.platform li { margin: 4px 0; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta { text-align: center; }
.cta .waitlist { margin: 0 auto; }
.cta .pick-platform { justify-content: center; }
.cta .form-note, .cta .form-status { text-align: center; }

/* ---- Footer ---- */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* ---- Legal pages ---- */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(32px, 4vw, 42px); }
.legal .updated { color: var(--faint); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.legal th { color: var(--text); font-weight: 600; }
.summary-box { padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); margin: 0 0 8px; }
.summary-box p { color: var(--text); margin: 0; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .waitlist { flex-direction: column; }
  .waitlist input[type="email"] { flex: none; width: 100%; }
  .waitlist .btn { width: 100%; }
  section { padding: 56px 0; }
  .site-footer nav { margin-left: 0; }
}
