:root {
  --bg: #faf9ff;
  --surface: #ffffff;
  --surface-2: #f3f1fb;
  --border: #e7e4f2;
  --text: #24203a;
  --muted: #625e7c;
  --faint: #8f8ba8;
  --accent: #6d5ef5;
  --accent-strong: #5a4ae6;
  --accent-soft: #efecff;
  --accent-text: #4a3ed2;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(36, 32, 58, 0.05), 0 12px 32px rgba(36, 32, 58, 0.08);
  --radius: 18px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13111d;
    --surface: #1c1a29;
    --surface-2: #252237;
    --border: #2f2b45;
    --text: #f1efff;
    --muted: #aba7c7;
    --faint: #7d7999;
    --accent: #9a8cff;
    --accent-strong: #ada2ff;
    --accent-soft: #2a2550;
    --accent-text: #cbc3ff;
    --on-accent: #16132b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(139, 124, 248, 0.2), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(79, 184, 240, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--accent-text);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Header */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 750;
  font-size: 18px;
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 56px 0 8px;
  text-align: center;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 800;
  line-height: 1.04;
}
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
}
.fineprint {
  color: var(--faint);
  font-size: 14px;
}

/* Install buttons */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.store.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}
.store[aria-disabled='true'] {
  opacity: 0.6;
  pointer-events: none;
  box-shadow: none;
}
.store-icon {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-text {
  display: grid;
  text-align: left;
  line-height: 1.2;
}
.store-name {
  font-weight: 700;
  font-size: 16px;
}
.store-note {
  font-size: 12.5px;
  opacity: 0.8;
}

/* Interactive demo */
.section-head.centered {
  margin-inline: auto;
  text-align: center;
}
.demo-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
.demo-controls {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.demo-group {
  display: grid;
  gap: 8px;
}
.demo-label {
  font-size: 13px;
  font-weight: 700;
}
.demo-before-after,
.demo-presets,
.demo-dial {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
}
.demo-before-after button,
.demo-presets button,
.demo-dial button {
  flex: 1;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 650 13.5px/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.demo-before-after button[aria-checked='true'],
.demo-presets button[aria-checked='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.demo-fine summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.demo-fine[open] summary {
  margin-bottom: 6px;
}
.demo-categories {
  gap: 4px;
}
.demo-category {
  display: grid;
  gap: 5px;
  padding: 6px 0;
}
.demo-category + .demo-category {
  border-top: 1px solid var(--border);
}
.demo-category-label {
  font-size: 14px;
  font-weight: 650;
}
.demo-dial button {
  padding: 4px 8px;
  font-size: 12.5px;
}
.demo-dial button[data-level='less'][aria-checked='true'] {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.demo-dial button[data-level='hide'][aria-checked='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.demo-dial button[data-level='show'][aria-checked='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(36, 32, 58, 0.12);
}
.demo-count {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.demo-shell.is-off .demo-categories,
.demo-shell.is-off .demo-presets {
  opacity: 0.45;
}

.demo-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.demo-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
}
.demo-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.demo-meta {
  display: grid;
  gap: 2px;
}
.demo-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.demo-channel {
  color: var(--muted);
  font-size: 13px;
}
.demo-veil {
  position: absolute;
  inset: -4px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(109, 94, 245, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, #f6f3ff, #edf5ff);
  color: #2f2a4a;
  text-align: center;
  animation: demo-in 0.25s ease-out;
}
.demo-card.is-hidden > :not(.demo-veil) {
  visibility: hidden;
}
.demo-card.is-hidden .demo-veil {
  display: flex;
}
.demo-face {
  width: 28px;
  height: 28px;
  color: #6d5ef5;
  fill: currentColor;
}
.demo-turned {
  font-weight: 650;
  font-size: 14px;
}
.demo-why {
  color: #6b6788;
  font-size: 12.5px;
}
.demo-show {
  margin-top: 4px;
  padding: 5px 14px;
  border: 1px solid rgba(109, 94, 245, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #4b3fd6;
  font: 650 12.5px/1.2 var(--font);
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .demo-face {
    color: #a99dff;
  }
  .demo-veil {
    border-color: rgba(170, 160, 255, 0.16);
    background: linear-gradient(135deg, #24203a, #1a2434);
    color: #ece9ff;
  }
  .demo-why {
    color: #aaa6c8;
  }
  .demo-show {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ddd8ff;
  }
}
@keyframes demo-in {
  from {
    opacity: 0;
  }
}

/* Sections */
section {
  padding: 72px 0 0;
}
.section-head {
  display: grid;
  gap: 10px;
  max-width: 700px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 780;
  line-height: 1.12;
}
.section-head p {
  color: var(--muted);
}
.eyebrow {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 {
  font-size: 19px;
}
.card p {
  color: var(--muted);
  font-size: 16px;
}
.step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 750;
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.categories {
  display: grid;
  gap: 2px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.category + .category {
  border-top: 1px solid var(--border);
}
.category b {
  display: block;
}
.category span {
  color: var(--muted);
  font-size: 14.5px;
}
.dial {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 650;
}
.dial i {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-style: normal;
}
.dial i.on {
  background: var(--accent);
  color: var(--on-accent);
}
.dial i.less {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(139, 124, 248, 0.18), rgba(79, 184, 240, 0.16));
}
.privacy-band svg {
  width: 56px;
  height: 56px;
  color: var(--accent-text);
}
.privacy-band h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin-bottom: 6px;
}
.privacy-band p {
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq details {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.faq details p {
  margin-top: 8px;
  color: var(--muted);
}

.cta-final {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 80px 0 24px;
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(28px, 4vw, 40px);
}

footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}

/* Text pages (privacy, support) */
.doc {
  max-width: 760px;
  padding: 40px 0 0;
}
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 16px;
}
.doc h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
.doc p,
.doc li {
  color: var(--muted);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.doc th {
  color: var(--text);
}
.doc td {
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
}
.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

@media (max-width: 860px) {
  .grid-3,
  .split,
  .demo-shell {
    grid-template-columns: 1fr;
  }
  .demo-controls {
    position: static;
  }
  .demo-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  .nav-links {
    display: none;
  }
  .privacy-band {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
