/* Dark Slide: components. Built only from tokens.css. */

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

.ds {
  margin: 0;
  min-height: 100vh;
  background: var(--ds-void);
  color: var(--ds-text);
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-body);
  line-height: var(--ds-leading);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ds a { color: var(--ds-text); text-decoration-color: var(--ds-signal); text-underline-offset: 4px; }
.ds a:hover { color: var(--ds-signal); }
.ds svg { display: block; max-width: 100%; }
.ds ::selection { background: var(--ds-signal); color: var(--ds-signal-ink); }
.ds :focus-visible { outline: 2px solid var(--ds-signal); outline-offset: 3px; }

.ds-container { width: 100%; max-width: var(--ds-container); margin: 0 auto; padding: 0 var(--ds-space-5); }
.ds-section { padding: var(--ds-space-8) 0; position: relative; }
.ds-center { text-align: center; }
.ds-stage { background: var(--ds-spot); position: relative; isolation: isolate; overflow: clip; }

/* ---------- Type ---------- */
.ds-hero-title, .ds-h2, .ds-h3, .ds-wordmark {
  font-family: var(--ds-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-display);
  line-height: 1.04;
  margin: 0;
}
.ds-hero-title { font-size: var(--ds-text-hero); }
.ds-h2 { font-size: var(--ds-text-h2); }
.ds-h3 { font-size: var(--ds-text-h3); letter-spacing: 0.05em; }
.ds-mark { color: var(--ds-signal); }
.ds-lead { font-size: var(--ds-text-lead); color: var(--ds-text); max-width: var(--ds-measure); margin: var(--ds-space-4) 0 0; }
.ds-body { color: var(--ds-muted); max-width: var(--ds-measure); margin: var(--ds-space-3) 0 0; }
.ds-center .ds-lead, .ds-center .ds-body, .ds-hero .ds-lead, .ds-hero .ds-body, .ds-cta .ds-body { margin-left: auto; margin-right: auto; }
.ds-muted { color: var(--ds-muted); }
.ds-small { font-size: var(--ds-text-small); }
.ds-label {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-label);
  font-weight: 500;
  letter-spacing: var(--ds-tracking-label);
  text-transform: uppercase;
  color: var(--ds-muted);
}
.ds-eyebrow { display: inline-flex; align-items: center; gap: var(--ds-space-2); margin-bottom: var(--ds-space-4); }
.ds-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--ds-signal); }
.ds-readout { font-family: var(--ds-font-mono); font-size: var(--ds-text-readout); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.ds-readout small { font-size: 0.4em; color: var(--ds-muted); margin-left: 4px; letter-spacing: 0.05em; }

/* ---------- Logo and nav ---------- */
.ds-logo { display: inline-flex; align-items: center; gap: var(--ds-space-3); text-decoration: none; color: var(--ds-text); }
.ds-logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.ds-wordmark { font-size: 17px; letter-spacing: 0.1em; white-space: nowrap; }

.ds-nav { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 10, 0.78); backdrop-filter: blur(14px); border-bottom: var(--ds-border); }
.ds-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-5); height: 68px; }
.ds-nav__links { display: flex; align-items: center; gap: var(--ds-space-6); list-style: none; margin: 0; padding: 0; }
.ds-nav__links a { text-decoration: none; color: var(--ds-muted); font-size: var(--ds-text-small); font-weight: 500; }
.ds-nav__links a:hover, .ds-nav__links a[aria-current] { color: var(--ds-text); }
.ds-nav__actions { display: flex; align-items: center; gap: var(--ds-space-3); }

/* ---------- Buttons ---------- */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2);
  height: 46px; padding: 0 var(--ds-space-5);
  border-radius: var(--ds-radius-pill); border: var(--ds-border);
  background: var(--ds-raised); color: var(--ds-text);
  font-family: var(--ds-font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.ds .ds-btn { text-decoration: none; }
.ds-btn:hover { border-color: var(--ds-faint); color: var(--ds-text); }
.ds-btn:active { transform: translateY(1px); }
.ds-btn--signal { background: var(--ds-signal); border-color: var(--ds-signal); color: var(--ds-signal-ink); }
.ds .ds-btn--signal:hover { background: var(--ds-text); border-color: var(--ds-text); color: var(--ds-signal-ink); }
.ds-btn--ghost { background: transparent; }
.ds-btn--sm { height: 36px; padding: 0 var(--ds-space-4); font-size: var(--ds-text-small); }
.ds-btn--block { width: 100%; }
.ds-check-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--ds-radius-control); border: 0;
  background: var(--ds-signal); color: var(--ds-signal-ink); cursor: pointer;
}
.ds-check-btn svg { width: 22px; height: 22px; }

/* ---------- Chips and badges ---------- */
.ds-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--ds-radius-pill); background: var(--ds-raised); border: var(--ds-border);
  font-family: var(--ds-font-mono); font-size: var(--ds-text-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ds-muted);
  white-space: nowrap;
}
.ds-chip--signal { background: var(--ds-signal-soft); border-color: transparent; color: var(--ds-signal); }
.ds-chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-red); }
.ds-badge {
  display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--ds-signal); color: var(--ds-signal-ink);
  font-family: var(--ds-font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.ds-hero { padding: var(--ds-space-7) 0 var(--ds-space-8); text-align: center; }
.ds-hero__brand { display: flex; flex-direction: column; align-items: center; gap: var(--ds-space-3); margin-bottom: var(--ds-space-6); }
.ds-hero__brand .ds-logo__mark { width: 72px; height: 72px; }
.ds-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ds-space-3); margin-top: var(--ds-space-6); }
.ds-hero__devices { position: relative; height: 560px; max-width: 900px; margin: var(--ds-space-7) auto 0; }

/* Ghost objects: soft, blurred shapes drifting behind the devices */
.ds-ghost { position: absolute; z-index: -1; border-radius: 40%; background: var(--ds-glass); filter: blur(10px); pointer-events: none; }
.ds-ghost--ring { border-radius: 50%; background: transparent; border: 26px solid var(--ds-glass); }

/* ---------- Device frames ---------- */
.ds-device {
  position: absolute; padding: 10px; border-radius: var(--ds-radius-device);
  background: var(--ds-edge); box-shadow: var(--ds-shadow-device);
}
.ds-device__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: var(--ds-radius-screen); background: #000;
  display: flex; flex-direction: column;
}
.ds-device--phone { width: 270px; height: 560px; }
.ds-device--tablet { width: 620px; height: 440px; border-radius: 36px; }
.ds-device--tablet .ds-device__screen { border-radius: 26px; }
.ds-tilt-left { transform: rotate(-8deg); }
.ds-tilt-right { transform: rotate(9deg); }

/* A drawn scene for the top of a screen */
.ds-scene { flex: 1; position: relative; overflow: hidden; }
.ds-scene__hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; }

/* ---------- Panels and controls ---------- */
.ds-panel { background: var(--ds-panel); border: var(--ds-border); border-radius: var(--ds-radius-panel); padding: var(--ds-space-5); box-shadow: var(--ds-shadow-panel); }
.ds-panel--tight { padding: var(--ds-space-4); border-radius: 14px; }
.ds-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); margin-bottom: var(--ds-space-4); }

/* Tick slider: ticks with one yellow index */
.ds-ticks { position: relative; height: 26px; background: var(--ds-ticks); background-size: 8px 14px; background-repeat: repeat-x; background-position: 0 50%; }
.ds-ticks__index { position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--ds-signal); box-shadow: var(--ds-glow-signal); }
.ds-ticks__scale { display: flex; justify-content: space-between; margin-top: 6px; }

/* Vertical faders */
.ds-faders { display: flex; justify-content: space-around; gap: var(--ds-space-3); height: 150px; }
.ds-fader { position: relative; width: 24px; background: var(--ds-ticks-v); background-size: 14px 7px; background-repeat: repeat-y; background-position: 50% 0; }
.ds-fader__knob { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--ds-signal); }

/* Dial */
.ds-dial { position: relative; width: 160px; aspect-ratio: 1; border-radius: 50%; background: var(--ds-dial); display: grid; place-items: center; }
.ds-dial::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--ds-panel); border: var(--ds-border); }
.ds-dial__needle { position: absolute; left: 50%; top: 6px; width: 3px; height: 50%; margin-left: -1.5px; transform-origin: 50% 100%; background: linear-gradient(var(--ds-signal) 0 30%, transparent 30%); }
.ds-dial__value { position: relative; text-align: center; }

/* Segmented control */
.ds-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--ds-radius-pill); background: var(--ds-raised); border: var(--ds-border); max-width: 100%; }
.ds-seg button, .ds-seg a {
  border: 0; background: transparent; color: var(--ds-muted); cursor: pointer; text-decoration: none;
  height: 34px; padding: 0 16px; border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.ds-seg [aria-pressed="true"], .ds-seg [aria-current] { background: var(--ds-signal); color: var(--ds-signal-ink); }

/* Tiles: square swatches you pick from, one selected */
.ds-tiles { display: flex; gap: var(--ds-space-2); flex-wrap: wrap; }
.ds-tile { width: 52px; height: 52px; border-radius: var(--ds-radius-control); border: 2px solid transparent; flex-shrink: 0; }
.ds-tile--on { border-color: var(--ds-signal); }

/* Stat row */
.ds-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--ds-border); border-bottom: var(--ds-border); }
.ds-stat { padding: var(--ds-space-5); border-left: var(--ds-border); }
.ds-stat:first-child { border-left: 0; }

/* ---------- Cards and grids ---------- */
.ds-grid { display: grid; gap: var(--ds-space-4); }
.ds-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ds-card { background: var(--ds-panel); border: var(--ds-border); border-radius: var(--ds-radius-panel); padding: var(--ds-space-6) var(--ds-space-5); }
.ds-card__icon { width: 44px; height: 44px; border-radius: var(--ds-radius-control); background: var(--ds-raised); border: var(--ds-border); display: grid; place-items: center; color: var(--ds-signal); margin-bottom: var(--ds-space-5); }
.ds-card__icon svg { width: 22px; height: 22px; }
.ds-card p { color: var(--ds-muted); margin: var(--ds-space-2) 0 0; }

/* ---------- Pricing ---------- */
.ds-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-4); align-items: stretch; }
.ds-plan { display: flex; flex-direction: column; gap: var(--ds-space-4); background: var(--ds-panel); border: var(--ds-border); border-radius: var(--ds-radius-panel); padding: var(--ds-space-6) var(--ds-space-5); }
.ds-plan--featured { border-color: var(--ds-signal); box-shadow: var(--ds-glow-signal), var(--ds-shadow-panel); }
.ds-plan__price { display: flex; align-items: baseline; gap: var(--ds-space-2); }
.ds-plan__list { list-style: none; margin: 0; padding: var(--ds-space-4) 0 0; border-top: var(--ds-border); display: grid; gap: var(--ds-space-3); flex: 1; }
.ds-plan__list li { display: flex; gap: var(--ds-space-3); font-size: 15px; }
.ds-plan__list li::before { content: ""; flex-shrink: 0; width: 14px; height: 2px; margin-top: 11px; background: var(--ds-signal); }
.ds-plan__list li.is-off { color: var(--ds-faint); }
.ds-plan__list li.is-off::before { background: var(--ds-faint); }

.ds-table-wrap { overflow-x: auto; border: var(--ds-border); border-radius: var(--ds-radius-panel); }
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--ds-text-small); min-width: 520px; }
.ds-table th, .ds-table td { padding: 14px var(--ds-space-4); text-align: left; border-bottom: var(--ds-border); }
.ds-table thead th { font-family: var(--ds-font-mono); font-size: var(--ds-text-label); font-weight: 500; letter-spacing: var(--ds-tracking-label); text-transform: uppercase; color: var(--ds-muted); background: var(--ds-panel); }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table .is-yes { color: var(--ds-signal); font-family: var(--ds-font-mono); }
.ds-table .is-no { color: var(--ds-faint); font-family: var(--ds-font-mono); }

/* FAQ */
.ds-faq { border-top: var(--ds-border); }
.ds-faq details { border-bottom: var(--ds-border); padding: var(--ds-space-5) 0; }
.ds-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--ds-space-4); font-weight: 600; font-size: 17px; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+"; font-family: var(--ds-font-mono); color: var(--ds-signal); }
.ds-faq details[open] summary::after { content: "-"; }
.ds-faq p { color: var(--ds-muted); margin: var(--ds-space-3) 0 0; max-width: var(--ds-measure); }

/* ---------- Article ---------- */
.ds-article { max-width: 720px; margin: 0 auto; }
.ds-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-3); margin-top: var(--ds-space-5); }
.ds-article__body { font-size: 18px; line-height: 1.75; color: #D8D7D1; }
.ds-article__body h2 { font-family: var(--ds-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 24px; line-height: 1.2; color: var(--ds-text); margin: var(--ds-space-7) 0 var(--ds-space-3); }
.ds-article__body p { margin: 0 0 var(--ds-space-5); }
.ds-article__body ul { padding-left: 1.2em; margin: 0 0 var(--ds-space-5); }
.ds-article__body li::marker { color: var(--ds-signal); }
.ds-article__body code { font-family: var(--ds-font-mono); font-size: 0.85em; background: var(--ds-raised); border: var(--ds-border); border-radius: 6px; padding: 1px 6px; }
.ds-quote { margin: var(--ds-space-7) 0; padding: 0 0 0 var(--ds-space-5); border-left: 3px solid var(--ds-signal); font-family: var(--ds-font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--ds-text); }
.ds-quote cite { display: block; margin-top: var(--ds-space-3); font-family: var(--ds-font-mono); font-style: normal; font-size: var(--ds-text-label); letter-spacing: var(--ds-tracking-label); text-transform: uppercase; color: var(--ds-muted); }
.ds-figure { margin: var(--ds-space-7) 0; }
.ds-figure figcaption { margin-top: var(--ds-space-3); }
.ds-author { display: flex; align-items: center; gap: var(--ds-space-3); }
.ds-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ds-raised); border: 2px solid var(--ds-signal); display: grid; place-items: center; font-family: var(--ds-font-display); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* ---------- Forms ---------- */
.ds-form { display: grid; gap: var(--ds-space-4); }
.ds-field { display: grid; gap: var(--ds-space-2); }
.ds-input, .ds-select {
  width: 100%; height: 50px; padding: 0 var(--ds-space-4);
  border-radius: var(--ds-radius-control); border: var(--ds-border); background: var(--ds-raised);
  color: var(--ds-text); font-family: var(--ds-font-body); font-size: 16px;
}
.ds-input::placeholder { color: var(--ds-faint); }
.ds-input:focus, .ds-select:focus { outline: none; border-color: var(--ds-signal); box-shadow: var(--ds-glow-signal); }
.ds-hint { font-size: 13px; color: var(--ds-muted); }
.ds-checkline { display: flex; align-items: flex-start; gap: var(--ds-space-3); font-size: var(--ds-text-small); color: var(--ds-muted); cursor: pointer; }
.ds-checkline input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: var(--ds-border); background: var(--ds-raised); display: grid; place-items: center; cursor: pointer; }
.ds-checkline input:checked { background: var(--ds-signal); border-color: var(--ds-signal); }
.ds-checkline input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ds-signal-ink); border-bottom: 2px solid var(--ds-signal-ink); transform: rotate(-45deg) translate(1px, -1px); }
.ds-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-2); }
.ds-choice label { cursor: pointer; }
.ds-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ds-choice span { display: grid; gap: 2px; padding: var(--ds-space-3); border-radius: var(--ds-radius-control); border: var(--ds-border); background: var(--ds-raised); font-size: var(--ds-text-small); font-weight: 600; text-align: center; }
.ds-choice input:checked + span { border-color: var(--ds-signal); background: var(--ds-signal-soft); color: var(--ds-signal); }
.ds-divider { display: flex; align-items: center; gap: var(--ds-space-3); }
.ds-divider::before, .ds-divider::after { content: ""; flex: 1; height: 1px; background: var(--ds-line); }

/* ---------- CTA band and footer ---------- */
.ds-cta { text-align: center; padding: var(--ds-space-8) var(--ds-space-5); border-radius: 28px; border: var(--ds-border); background: var(--ds-spot); position: relative; overflow: hidden; }
.ds-footer { border-top: var(--ds-border); padding: var(--ds-space-7) 0 var(--ds-space-6); margin-top: var(--ds-space-8); }
.ds-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--ds-space-6); }
.ds-footer h4 { margin: 0 0 var(--ds-space-3); }
.ds-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-2); }
.ds-footer ul a { color: var(--ds-muted); text-decoration: none; font-size: var(--ds-text-small); }
.ds-footer ul a:hover { color: var(--ds-text); }
.ds-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--ds-space-3); margin-top: var(--ds-space-7); padding-top: var(--ds-space-5); border-top: var(--ds-border); }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .ds-grid--3, .ds-pricing { grid-template-columns: 1fr; }
  .ds-stats { grid-template-columns: repeat(2, 1fr); }
  .ds-stat:nth-child(3) { border-left: 0; }
  .ds-stat:nth-child(n+3) { border-top: var(--ds-border); }
  .ds-footer__grid { grid-template-columns: 1fr 1fr; }
  .ds-hide-md { display: none; }
}
@media (max-width: 640px) {
  .ds-section { padding: var(--ds-space-7) 0; }
  .ds-grid--2 { grid-template-columns: 1fr; }
  .ds-nav__links { display: none; }
  .ds-nav__actions .ds-btn--ghost { display: none; }
  .ds-hero__devices { height: 440px; }
  .ds-choice { grid-template-columns: 1fr; }
  .ds-cta { padding: var(--ds-space-7) var(--ds-space-4); }
  .ds-hide-sm { display: none; }
}
