/* ============================================================
   Slipstream — public site
   Brand: monochrome. ink #090909 · paper #fff · surface #101012
   flowline #1c1c1f · text-hi #f4f4f4 · text-lo #9a9a9e
   Display: Questrial · Body/UI: Inter · Data: JetBrains Mono
   ============================================================ */

:root {
  --ink: #090909;
  --paper: #ffffff;
  --surface: #101012;
  --surface-2: #141417;
  --flowline: #1c1c1f;
  --hairline: #202024;
  --text-hi: #f4f4f4;
  --text-lo: #9a9a9e;
  --chart-saved: #e8e8e8;
  --chart-spent: #4a4a4e;

  --font-display: "Questrial", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

a {
  color: inherit;
}
p a {
  text-decoration-color: var(--text-lo);
  text-underline-offset: 3px;
}
p a:hover {
  text-decoration-color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================== WORDMARK ==============================
   The glitch: stacked copies of "slip", each clipped to a horizontal
   band (--c0 → --c1) and displaced sideways by --dx. "stream" is never
   disturbed. Vector at every size.                                     */

.wordmark {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.015em;
  color: var(--text-hi);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.wm-slip {
  position: relative;
  display: inline-block;
}
/* invisible sizing copy keeps layout honest */
.wm-slip::before {
  content: "slip";
  visibility: hidden;
}

.wm-band {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--c0) -0.5em calc(100% - var(--c1)) -0.5em);
  transform: translateX(var(--dx));
}
.wm-band::after {
  content: "slip";
}

.wm-stream {
  display: inline-block;
}

.wordmark--nav {
  font-size: 22px;
}
.wordmark--app {
  font-size: 17px;
}
.wordmark--hero {
  font-size: clamp(56px, 10.5vw, 124px);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

/* the single permitted motion: one glitch-in on first load (≈280ms) */
@keyframes glitch-in {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(calc(var(--dx) * -1.7));
  }
  70% {
    transform: translateX(calc(var(--dx) * 1.45));
  }
  100% {
    transform: translateX(var(--dx));
  }
}
.wordmark--hero .wm-band {
  animation: glitch-in 280ms steps(3, end) 420ms backwards;
}

/* ============================== NAV ============================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--flowline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.nav-brand {
  text-decoration: none;
  display: inline-flex;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-lo);
}
.nav-links a {
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.nav-links a:hover {
  color: var(--text-hi);
}

.nav-cta {
  display: flex;
  gap: 10px;
}

/* ============================== BUTTONS ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--paper);
  color: var(--ink);
}
.btn--solid:hover {
  background: var(--chart-saved);
}

.btn--ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: #34343a;
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  font-size: 13.5px;
  padding: 7px 14px;
}
.btn--lg {
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
}

.btn .ic {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ============================== HERO ============================== */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

.flowlines {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  pointer-events: none;
}
.flowlines svg {
  width: 100%;
  height: 100%;
  display: block;
}
.flow-g path {
  stroke: #232329;
  stroke-dasharray: 460 70;
}
@keyframes flow-drift {
  to {
    stroke-dashoffset: -510;
  }
}
.flow-g path {
  animation: flow-drift 90s linear infinite;
}
.flow-g path:nth-child(odd) {
  animation-duration: 120s;
}
.flow-g path:nth-child(3n) {
  animation-delay: -40s;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  margin-top: 34px;
}

.hero-sub {
  max-width: 600px;
  margin-top: 18px;
  color: var(--text-lo);
  font-size: 17px;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.dl-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-lo);
}
.dl-note a {
  text-decoration-color: var(--flowline);
  text-underline-offset: 3px;
}
.dl-note a:hover {
  text-decoration-color: var(--text-lo);
}

/* ============================== APP WINDOW (dashboard proof) ============================== */

.appwin {
  position: relative;
  margin-top: 72px;
  background: var(--surface);
  border: 1px solid var(--flowline);
  border-radius: 14px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  font-size: 12.5px;
}

.appwin-titlebar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--flowline);
}
.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #29292d;
}

.appwin-body {
  display: grid;
  grid-template-columns: 196px 1fr;
}

.app-side {
  border-right: 1px solid var(--flowline);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text-lo);
  font-weight: 500;
}
.app-nav-item svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-nav-item.is-active {
  background: var(--surface-2);
  color: var(--text-hi);
}

.app-side-foot {
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11px;
  color: var(--text-lo);
  border: 1px solid var(--flowline);
  border-radius: 9px;
  padding: 10px;
  line-height: 1.5;
}
.app-side-foot strong {
  color: var(--text-hi);
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chart-saved);
  margin-top: 4px;
  flex: none;
}

.app-main {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-head strong {
  font-size: 14px;
  display: block;
}
.app-head span {
  color: var(--text-lo);
  font-size: 11.5px;
}

.app-range {
  display: flex;
  border: 1px solid var(--flowline);
  border-radius: 7px;
  overflow: hidden;
  font-size: 10.5px;
}
.app-range span {
  padding: 5px 10px;
  color: var(--text-lo);
}
.app-range span + span {
  border-left: 1px solid var(--flowline);
}
.app-range .on {
  background: var(--surface-2);
  color: var(--text-hi);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--flowline);
  border-radius: 10px;
  padding: 13px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  min-width: 0;
}

.stat-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}

.spark {
  width: 100%;
  height: 24px;
  margin-top: 2px;
}
.spark-line {
  fill: none;
  stroke: var(--chart-spent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card:nth-child(2) .spark-line,
.stat-card:nth-child(3) .spark-line {
  stroke: var(--chart-saved);
}

.stat-delta {
  font-size: 10px;
  color: var(--text-lo);
}

.app-cols {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  min-width: 0;
}

.panel {
  border: 1px solid var(--flowline);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 12px;
}
.panel-head strong {
  font-weight: 600;
}

.legend {
  font-size: 10px;
  color: var(--text-lo);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.sw-saved {
  background: var(--chart-saved);
}
.sw-spent {
  background: var(--chart-spent);
  margin-left: 8px;
}

/* stacked bars */
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 150px;
  padding-top: 6px;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.bar {
  width: 100%;
  max-width: 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}
.bar i {
  display: block;
  border-radius: 2.5px;
  height: 0;
  transition: height 900ms var(--ease);
}
.bar .b-saved {
  background: var(--chart-saved);
  order: -1;
}
.bar .b-spent {
  background: var(--chart-spent);
}
.appwin.in .bar i {
  height: var(--h);
}
.bar-col:nth-child(1) i {
  transition-delay: 0ms;
}
.bar-col:nth-child(2) i {
  transition-delay: 70ms;
}
.bar-col:nth-child(3) i {
  transition-delay: 140ms;
}
.bar-col:nth-child(4) i {
  transition-delay: 210ms;
}
.bar-col:nth-child(5) i {
  transition-delay: 280ms;
}
.bar-col:nth-child(6) i {
  transition-delay: 350ms;
}
.bar-col:nth-child(7) i {
  transition-delay: 420ms;
}
.bar-col > span {
  font-size: 9px;
  color: var(--text-lo);
}

/* tables */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.mini-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-lo);
  padding: 0 8px 8px 0;
  border-bottom: 1px solid var(--flowline);
}
.mini-table td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--flowline) 55%, transparent);
  color: var(--text-hi);
  white-space: nowrap;
}
.mini-table tr:last-child td {
  border-bottom: 0;
}
.mini-table td.mono {
  color: var(--text-lo);
}
.mini-table td:first-child {
  color: var(--text-hi);
}

.redbar {
  display: inline-block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--flowline);
  margin-left: 7px;
  vertical-align: 2px;
  position: relative;
  overflow: hidden;
}
.redbar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--chart-saved);
  border-radius: 2px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--flowline);
  border-radius: 5px;
  padding: 2.5px 7px;
  color: var(--text-hi);
}

.sessions-panel {
  overflow-x: auto;
}

/* ============================== STAT STRIP ============================== */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--flowline);
  border-bottom: 1px solid var(--flowline);
  margin-top: 88px;
}
.stat-strip > div {
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-strip > div + div {
  border-left: 1px solid var(--flowline);
}
.strip-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.strip-label {
  font-size: 13px;
  color: var(--text-lo);
  line-height: 1.45;
}

/* ============================== SECTIONS ============================== */

.section {
  padding: 110px 0;
  scroll-margin-top: 64px;
}
.section + .section {
  border-top: 1px solid color-mix(in srgb, var(--flowline) 70%, transparent);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head--left {
  margin: 0;
  text-align: left;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.005em;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-lo);
  font-size: 16.5px;
}

/* ============================== DEMO ============================== */

.demo-section {
  padding-top: 96px;
}

.demo {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.demo-pane {
  background: var(--surface);
  border: 1px solid var(--flowline);
  border-radius: 14px;
  overflow: hidden;
}

.demo-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--flowline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-lo);
}

.demo-code {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  overflow-x: auto;
}
.demo-code .ln {
  display: block;
  max-height: 1.9em;
  white-space: pre;
  overflow: hidden;
  transition:
    transform 300ms var(--ease),
    opacity 300ms var(--ease),
    max-height 360ms var(--ease) 220ms;
}
.demo-code .keep {
  color: var(--text-hi);
}
.demo-code .cut {
  color: var(--text-lo);
}
.demo-code .cut.slicing {
  transform: translateX(var(--slice, 16px));
  opacity: 0;
}
.demo-code .cut.gone {
  max-height: 0;
}

.demo-stats {
  border: 1px solid var(--flowline);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  align-content: center;
}
.demo-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-stat--wide {
  grid-column: 1 / -1;
  border-top: 1px solid var(--flowline);
  padding-top: 22px;
}
.demo-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-lo);
  letter-spacing: -0.01em;
}
.demo-num.is-hi {
  color: var(--text-hi);
}
#demo-pct {
  color: var(--text-hi);
  font-size: 44px;
}
.demo-arrow {
  color: var(--text-lo);
  width: 40px;
}
.demo-arrow svg {
  width: 100%;
  display: block;
}
.demo-foot {
  grid-column: 1 / -1;
  color: var(--text-lo);
  font-size: 13.5px;
  margin-top: 2px;
}

/* ============================== FEATURES ============================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  border: 1px solid var(--flowline);
  border-radius: 14px;
  padding: 26px 24px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 130%);
  transition: border-color 200ms var(--ease);
}
.feature:hover {
  border-color: #2c2c31;
}

.f-ic {
  width: 26px;
  height: 26px;
  stroke: var(--text-hi);
  margin-bottom: 18px;
}
.feature h3,
.feature-sm h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.feature p,
.feature-sm p {
  font-size: 13.5px;
  color: var(--text-lo);
  line-height: 1.65;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.feature-sm {
  border: 1px solid color-mix(in srgb, var(--flowline) 70%, transparent);
  border-radius: 14px;
  padding: 22px 24px;
}

/* ============================== HOW IT WORKS ============================== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--flowline);
  border-radius: 14px;
  padding: 28px 26px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 13px;
  color: var(--text-hi);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--text-lo);
}

.snippet {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 9px;
  padding: 8px 8px 8px 14px;
}
.snippet pre {
  font-size: 12.5px;
  color: var(--text-hi);
  overflow-x: auto;
}

/* ============================== CALCULATOR ============================== */

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--flowline);
  border-radius: 16px;
  overflow: hidden;
}

.calc-controls {
  padding: 40px;
  border-right: 1px solid var(--flowline);
}

.calc-spend {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 10px 0 22px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--chart-saved) var(--fill, 10%),
    var(--flowline) var(--fill, 10%)
  );
  border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  margin-top: -8px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--flowline);
  border-radius: 2px;
}
input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--chart-saved);
  border-radius: 2px;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: none;
}

.calc-presets {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.preset {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-lo);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 160ms var(--ease);
}
.preset:hover {
  color: var(--text-hi);
  border-color: #34343a;
}
.preset.is-on {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.calc-out {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
}
.calc-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-num {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.calc-foot {
  font-size: 13px;
  color: var(--text-lo);
}
.calc-foot .mono {
  font-size: 12px;
}

/* ============================== PRIVACY ============================== */

.privacy-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 4px;
  font-size: 15.5px;
  border-bottom: 1px solid color-mix(in srgb, var(--flowline) 70%, transparent);
}
.privacy-list li:first-child {
  border-top: 1px solid color-mix(in srgb, var(--flowline) 70%, transparent);
}
.privacy-list .mono {
  color: var(--chart-saved);
  font-size: 13px;
}

/* ============================== FAQ ============================== */

.faq {
  border-bottom: 1px solid var(--flowline);
}
.faq:first-of-type {
  border-top: 1px solid var(--flowline);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 4px;
  font-size: 16.5px;
  font-weight: 500;
  position: relative;
  transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--paper);
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-lo);
  transition: transform 200ms var(--ease);
}
.faq[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq p {
  padding: 0 40px 24px 4px;
  color: var(--text-lo);
  font-size: 14.5px;
  max-width: 62ch;
}
.faq .mono {
  font-size: 13px;
  color: var(--text-hi);
}

/* ============================== CLOSING CTA ============================== */

.cta-section {
  padding: 140px 0;
}
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 40px;
}

/* ============================== FOOTER ============================== */

.footer {
  border-top: 1px solid var(--flowline);
  padding: 56px 0 64px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-lo);
  max-width: 44ch;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-lo);
}
.footer-links a {
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.footer-links a:hover {
  color: var(--text-hi);
}

/* ============================== SCROLL REVEAL ============================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================== RESPONSIVE ============================== */

@media (max-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .app-cols {
    grid-template-columns: 1fr;
  }
  .demo {
    grid-template-columns: 1fr;
  }
  .calc {
    grid-template-columns: 1fr;
  }
  .calc-controls {
    border-right: 0;
    border-bottom: 1px solid var(--flowline);
  }
  .privacy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip > div:nth-child(3) {
    border-left: 0;
  }
  .stat-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--flowline);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 80px 0;
  }
  .appwin-body {
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
  .sessions-panel {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .stat-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--flowline);
  }
  .demo-num {
    font-size: 26px;
  }
  #demo-pct {
    font-size: 36px;
  }
  .calc-controls,
  .calc-out {
    padding: 28px 22px;
  }
  .calc-spend,
  .calc-num {
    font-size: 36px;
  }
}

/* ================================ PRICING ================================ */

.pricing-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.pricing-sub {
  color: var(--text-2);
  max-width: 44ch;
  margin: 0.75rem auto 3.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: color-mix(in srgb, var(--flowline) 60%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--flowline) 60%, transparent);
  border-radius: 16px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}
.pricing-card--featured {
  background: var(--ink);
  color: var(--paper);
}
.pricing-badge {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.5;
  margin: 0;
}
.pricing-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.pricing-card--featured .pricing-label {
  color: rgba(255, 255, 255, 0.5);
}
.pricing-price {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.25rem 0;
}
.pricing-per {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.5;
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.pricing-card--featured .pricing-desc {
  color: rgba(255, 255, 255, 0.6);
}
.pricing-card .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}
.pricing-note {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-top: 2rem;
  text-align: center;
}
@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .appwin .bar i {
    height: var(--h) !important;
  }
}

/* ============================== REDUCED MOTION ============================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .flow-g path {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   MANUAL PAGE
   Reuses the brand vocabulary (nav, buttons, .snippet, .faq).
   Adds a sticky table-of-contents and long-form reading layout.
   ============================================================ */

.manual {
  padding: 56px 0 120px;
  position: relative;
}

.manual-head {
  max-width: 760px;
  margin: 0 0 8px;
}
.manual-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0 4px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}
.manual-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lo);
}
.manual-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.manual-lede {
  margin-top: 18px;
  max-width: 640px;
  color: var(--text-lo);
  font-size: 17px;
}

.manual-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}

/* ---- table of contents (desktop sidebar) ---- */
.manual-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: 13.5px;
  /* hairline scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.manual-toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
  padding: 0 0 14px 14px;
}
.manual-toc ol {
  list-style: none;
}
.manual-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid var(--flowline);
  color: var(--text-lo);
  text-decoration: none;
  line-height: 1.4;
  transition:
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}
.manual-toc a:hover {
  color: var(--text-hi);
}
.manual-toc a.is-active {
  color: var(--text-hi);
  border-left-color: var(--paper);
}

/* ---- mobile "On this page" (hidden on desktop) ---- */
.toc-mobile {
  display: none;
}
.toc-mobile {
  border: 1px solid var(--flowline);
  border-radius: 12px;
  background: var(--surface);
  margin-top: 32px;
}
.toc-mobile > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lo);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-mobile > summary::-webkit-details-marker {
  display: none;
}
.toc-mobile > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
}
.toc-mobile[open] > summary::after {
  transform: rotate(-135deg);
}
.toc-mobile ol {
  list-style: none;
  padding: 0 8px 10px;
}
.toc-mobile a {
  display: block;
  padding: 8px 12px;
  color: var(--text-lo);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
}
.toc-mobile a:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- long-form body ---- */
.manual-body {
  max-width: 720px;
  min-width: 0;
}

.m-section {
  scroll-margin-top: 84px;
  padding-top: 8px;
}
.m-section + .m-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid color-mix(in srgb, var(--flowline) 70%, transparent);
}

.m-section > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  scroll-margin-top: 84px;
}
.m-section > h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 36px;
  letter-spacing: -0.005em;
  scroll-margin-top: 84px;
}
.m-section h2 + p,
.m-section h3 + p {
  margin-top: 14px;
}
.m-section p {
  margin-top: 16px;
  color: var(--text-lo);
  font-size: 15.5px;
  line-height: 1.7;
}
.m-section p strong {
  color: var(--text-hi);
  font-weight: 600;
}
.m-section p code,
.m-inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-hi);
  background: var(--surface-2);
  border: 1px solid var(--flowline);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* bullet + checklist lists */
.m-list {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-lo);
  font-size: 15.5px;
  line-height: 1.6;
}
.m-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-lo);
}
.m-list li strong {
  color: var(--text-hi);
  font-weight: 600;
}
.m-list--check li::before {
  content: "✓";
  font-family: var(--font-mono);
  background: none;
  width: auto;
  height: auto;
  left: 2px;
  top: 0;
  font-size: 13px;
  color: var(--text-hi);
}

/* numbered steps (vertical) */
.m-steps {
  margin-top: 22px;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 46px;
}
.m-steps > li:not(:last-child) {
  border-left: 1px solid var(--flowline);
  margin-left: 13px;
  padding-left: 33px;
}
.m-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 27px;
  height: 27px;
  margin-left: -14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-hi);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 50%;
}
.m-steps > li:last-child {
  padding-left: 46px;
}
.m-steps h4 {
  font-size: 15.5px;
  font-weight: 600;
}
.m-steps p {
  margin-top: 8px;
}

/* callout / note box */
.m-note {
  margin-top: 22px;
  border: 1px solid var(--flowline);
  border-left: 2px solid var(--text-lo);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  padding: 16px 20px;
}
.m-note p {
  margin-top: 0;
  color: var(--text-lo);
  font-size: 14.5px;
}
.m-note p + p {
  margin-top: 10px;
}
.m-note-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hi);
  display: block;
  margin-bottom: 8px;
}

/* keycaps */
.kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--text-hi);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* reference table */
.m-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--flowline);
  border-radius: 12px;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.m-table th,
.m-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--flowline) 60%, transparent);
  vertical-align: top;
}
.m-table thead th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-lo);
  font-weight: 500;
}
.m-table tbody td {
  color: var(--text-lo);
}
.m-table tbody td:first-child {
  color: var(--text-hi);
  white-space: nowrap;
}
.m-table tr:last-child td {
  border-bottom: none;
}
.m-table .mono {
  color: var(--text-hi);
}

/* reuse .snippet inside the manual at full width */
.m-section .snippet {
  margin-top: 18px;
  max-width: 100%;
}
.m-section .snippet pre {
  font-size: 13px;
}

/* faq reuse inside manual: tighten top spacing */
.m-section .faq:first-of-type {
  margin-top: 10px;
}

/* per-OS download grid in the Install section */
.m-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 920px) {
  .manual-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 8px;
  }
  .manual-toc {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
  .manual-body {
    max-width: 100%;
    margin-top: 8px;
  }
}

/* ============================== NEWS ============================== */
.news-list {
  max-width: 720px;
  margin-top: 8px;
}
.news-item {
  padding: 30px 0;
  border-top: 1px solid color-mix(in srgb, var(--flowline) 70%, transparent);
}
.news-item:first-child {
  border-top: 0;
  padding-top: 8px;
}
.news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-lo);
  letter-spacing: 0.02em;
}
.news-item h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-top: 10px;
}
.news-item h2 a {
  color: var(--text-hi);
}
.news-item h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--flowline);
}
.news-item p {
  margin-top: 12px;
  color: var(--text-lo);
  font-size: 15.5px;
  line-height: 1.7;
}
.news-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-hi);
}
.news-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
