/* ------------------------------------------------------------------
   SubDebt Manager — design tokens
   Dark-first financial instrument. Light theme is system-aware and
   can be overridden with the header toggle.
------------------------------------------------------------------- */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090d16;
  --bg-2: #070a11;
  --bg-3: #0b111c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.035);
  --text: #f7f9fb;
  --text-2: rgba(247, 249, 251, 0.72);
  --text-3: rgba(247, 249, 251, 0.5);
  --accent: #5eead4;
  --mint: #2dd4bf;
  --teal: #0d9488;
  --rose: #fb7185;
  --emerald: #34d399;
  --purple: #c084fc;
  --blue: #38bdf8;
  --amber: #fbbf24;
  --btn-bg: #2dd4bf;
  --btn-fg: #05201c;
  --btn-bg-hover: #5eead4;
  --header-bg: rgba(9, 13, 22, 0.84);
  --focus: #5eead4;
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  --shadow: 0 32px 80px -40px rgba(0, 0, 0, 0.9);

  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(76px, 9vw, 128px);
  --radius-sm: 9px;
  --radius: 15px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="light"] {
  --bg: #f5f7f4;
  --bg-2: #edf1ec;
  --bg-3: #ffffff;
  --surface: rgba(15, 23, 34, 0.035);
  --surface-2: rgba(15, 23, 34, 0.06);
  --line: rgba(15, 23, 34, 0.11);
  --line-strong: rgba(15, 23, 34, 0.2);
  --grid-line: rgba(15, 23, 34, 0.055);
  --text: #101722;
  --text-2: rgba(16, 23, 34, 0.74);
  --text-3: rgba(16, 23, 34, 0.64);
  --accent: #0f766e;
  --mint: #0d9488;
  --teal: #0f766e;
  --rose: #be123c;
  --emerald: #047857;
  --purple: #7e22ce;
  --blue: #0369a1;
  --amber: #a16207;
  --btn-bg: #0f766e;
  --btn-fg: #f0fdfa;
  --btn-bg-hover: #115e59;
  --header-bg: rgba(245, 247, 244, 0.86);
  --focus: #0f766e;
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow: 0 32px 70px -42px rgba(15, 23, 34, 0.35);
}

/* No-JS fallback: follow the OS. The inline head script normally sets data-theme. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f5f7f4;
    --bg-2: #edf1ec;
    --bg-3: #ffffff;
    --surface: rgba(15, 23, 34, 0.035);
    --surface-2: rgba(15, 23, 34, 0.06);
    --line: rgba(15, 23, 34, 0.11);
    --line-strong: rgba(15, 23, 34, 0.2);
    --grid-line: rgba(15, 23, 34, 0.055);
    --text: #101722;
    --text-2: rgba(16, 23, 34, 0.74);
    --text-3: rgba(16, 23, 34, 0.64);
    --accent: #0f766e;
    --mint: #0d9488;
    --teal: #0f766e;
    --rose: #be123c;
    --emerald: #047857;
    --purple: #7e22ce;
    --blue: #0369a1;
    --amber: #a16207;
    --btn-bg: #0f766e;
    --btn-fg: #f0fdfa;
    --btn-bg-hover: #115e59;
    --header-bg: rgba(245, 247, 244, 0.86);
    --focus: #0f766e;
    --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --shadow: 0 32px 70px -42px rgba(15, 23, 34, 0.35);
  }
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--mint);
  color: #04201c;
}

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

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--mint);
  color: #04201c;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}

.kicker-dot {
  width: 5px;
  height: 5px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.section-head h2 {
  max-width: 680px;
}

.section-sub {
  max-width: 355px;
  margin: 0 0 3px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration: underline;
}

.money-pos {
  color: var(--emerald) !important;
}

.money-neg {
  color: var(--rose) !important;
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-3);
  background: var(--surface);
  transform: translateY(-1px);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
}

.play-glyph {
  width: 15px;
  height: 15px;
}

.play-badge {
  display: inline-flex;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.play-badge img {
  width: auto;
  height: 56px;
}

.play-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: #062a26;
  box-shadow: var(--highlight);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-suffix {
  margin-left: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 25px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 4px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(58px, 7.5vw, 96px) 0 clamp(58px, 7vw, 88px);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 68% 24%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 80% at 68% 24%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

.hero-copy {
  max-width: 610px;
  padding-bottom: 4px;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.05rem, 5.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.hero-line {
  display: block;
}

.hero-line--accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 470px;
  margin: 25px 0 0;
  color: var(--text-2);
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.hero-trust span[aria-hidden="true"] {
  opacity: 0.5;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 660px;
}

.stage-ring {
  position: absolute;
  top: 50%;
  right: -34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

.stage-ring--inner {
  width: 440px;
  height: 440px;
}

.stage-ring--outer {
  width: 580px;
  height: 580px;
  opacity: 0.55;
}

.stage-label {
  position: absolute;
  z-index: 3;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.stage-label--top {
  top: 36px;
  right: 4px;
}

.stage-label--bottom {
  bottom: 36px;
  left: 0;
  transform: rotate(180deg);
}

/* ------------------------------------------------------------------
   Phone mockup — fixed dark palette so the product reads on both themes
------------------------------------------------------------------- */

.phone {
  --p-bg: #080d17;
  --p-surface: rgba(255, 255, 255, 0.045);
  --p-surface-2: rgba(255, 255, 255, 0.07);
  --p-line: rgba(255, 255, 255, 0.085);
  --p-text: #f5f8fa;
  --p-text-2: rgba(245, 248, 250, 0.62);
  --p-text-3: rgba(245, 248, 250, 0.42);
  --p-mint: #2dd4bf;
  --p-purple: #c084fc;
  --p-rose: #fb7185;
  --p-emerald: #34d399;
  --p-amber: #fbbf24;

  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  aspect-ratio: 9 / 18.4;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 48px;
  background: linear-gradient(155deg, #3a475b 0%, #111827 15%, #090e18 72%, #263244 100%);
  box-shadow:
    0 55px 100px -42px rgba(0, 0, 0, 0.95),
    0 10px 30px -18px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.phone::before {
  content: "";
  position: absolute;
  top: 130px;
  right: -2px;
  width: 2px;
  height: 62px;
  border-radius: 0 2px 2px 0;
  background: #263244;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 15px 10px;
  border-radius: 41px;
  overflow: hidden;
  background: var(--p-bg);
  color: var(--p-text);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 5;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  background: #02040a;
  transform: translateX(-50%);
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.p-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 2px 0;
  color: var(--p-text-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.p-status-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.p-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.p-signal i {
  width: 2px;
  border-radius: 1px;
  background: currentColor;
}

.p-signal i:nth-child(1) {
  height: 3px;
}

.p-signal i:nth-child(2) {
  height: 5px;
}

.p-signal i:nth-child(3) {
  height: 7px;
}

.p-wifi {
  width: 11px;
  height: 8px;
}

.p-battery {
  position: relative;
  width: 14px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 1.5px;
  opacity: 0.75;
}

.p-battery i {
  position: absolute;
  inset: 1px;
  right: 4px;
  border-radius: 0.5px;
  background: currentColor;
}

.p-battery::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -3px;
  width: 1.5px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.p-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.p-eyebrow {
  display: block;
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.p-title {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.p-actions {
  display: flex;
  gap: 5px;
}

.p-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--p-line);
  border-radius: 50%;
  background: var(--p-surface);
  color: var(--p-text-2);
}

.p-icon svg {
  width: 12px;
  height: 12px;
}

.p-balance {
  position: relative;
  margin-top: 12px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 13px;
  background:
    linear-gradient(155deg, rgba(13, 148, 136, 0.18), rgba(255, 255, 255, 0.03) 62%),
    var(--p-surface);
  overflow: hidden;
}

.p-balance::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -38px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(45, 212, 191, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.p-balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p-label {
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.p-live {
  padding: 2px 5px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 999px;
  color: var(--p-mint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.p-amount {
  position: relative;
  z-index: 1;
  display: block;
  margin: 4px 0 3px;
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.p-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.p-up {
  color: var(--p-emerald);
}

.p-spark {
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 92px;
  height: 34px;
  color: var(--p-mint);
  opacity: 0.75;
}

.p-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 7px;
}

.p-quick-item {
  padding: 8px 9px;
  border: 1px solid var(--p-line);
  border-radius: 9px;
  background: var(--p-surface);
}

.p-quick-item strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.p-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 11px 1px 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.p-section-meta {
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.p-list {
  list-style: none;
}

.p-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.p-row + .p-row {
  margin-top: 2px;
}

.p-row:hover {
  border-color: var(--p-line);
  background: var(--p-surface);
}

.p-svc {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.p-svc--purple {
  border-color: rgba(192, 132, 252, 0.24);
  background: rgba(192, 132, 252, 0.11);
  color: var(--p-purple);
}

.p-svc--amber {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.1);
  color: var(--p-amber);
}

.p-svc--emerald {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.1);
  color: var(--p-emerald);
}

.p-row-main {
  min-width: 0;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
}

.p-row-main small {
  display: block;
  margin-top: 2px;
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.p-row-amt {
  color: var(--p-text-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.p-budget {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-surface);
}

.p-budget-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.p-budget-num {
  color: var(--p-text-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: -0.02em;
}

.p-bar {
  height: 3px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.p-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
  transform-origin: left center;
}

.p-budget-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.01em;
}

.p-pulse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 7px;
}

.p-pulse-item {
  padding: 7px 8px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
}

.p-pulse-item span {
  display: block;
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.p-pulse-item strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.p-pulse-item--credit {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.05);
}

.p-pulse-item--credit strong {
  color: var(--p-emerald);
}

.p-pulse-item--debt {
  border-color: rgba(251, 113, 133, 0.2);
  background: rgba(251, 113, 133, 0.05);
}

.p-pulse-item--debt strong {
  color: var(--p-rose);
}

.p-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--p-line);
}

.p-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--p-text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.01em;
}

.p-tab svg {
  width: 14px;
  height: 14px;
}

.p-tab--active {
  color: var(--p-mint);
}

/* ------------------------------------------------------------------
   Proof strip
------------------------------------------------------------------- */

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 27px 22px;
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  padding-left: 0;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.proof-label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Entrance / reveal motion
------------------------------------------------------------------- */

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes barFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * {
    animation: heroIn 0.62s var(--ease) both;
  }

  .js .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .js .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .js .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .js .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }

  .js .phone {
    animation: phoneIn 0.8s 0.12s var(--ease) both;
  }

  .js .p-anim {
    animation: heroIn 0.48s var(--ease) both;
    animation-delay: calc(0.42s + var(--i) * 0.065s);
  }

  .js .p-bar-fill {
    animation: barFill 1s 0.95s var(--ease) both;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Bento ledgers
------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 350px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--highlight);
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.tile:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.tile--subs {
  grid-column: span 7;
}

.tile--debt {
  grid-column: span 5;
}

.tile--spend {
  grid-column: span 5;
}

.tile--banks {
  grid-column: span 7;
}

.tile--snapshot {
  grid-column: span 7;
}

.tile--vault {
  grid-column: span 5;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tile-num {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.tag {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tag--purple {
  border-color: rgba(192, 132, 252, 0.24);
  background: rgba(192, 132, 252, 0.08);
  color: var(--purple);
}

.tag--rose {
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.08);
  color: var(--rose);
}

.tag--emerald {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.08);
  color: var(--emerald);
}

.tag--blue {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.08);
  color: var(--blue);
}

.tile-copy h3 {
  max-width: 430px;
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 1.75vw, 1.5rem);
}

.tile-copy p {
  max-width: 470px;
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tile--split .tile-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(240px, 1.08fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
}

.tile .ui {
  margin-top: auto;
}

.tile--split .ui {
  margin-top: 0;
}

.ui {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-3);
  box-shadow: var(--highlight);
}

.ui-label {
  display: block;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ui-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.045em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ui-foot b {
  color: var(--accent);
  font-weight: 500;
}

.bar {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}

.bar--split i {
  background: linear-gradient(90deg, var(--emerald), var(--mint));
}

/* Subscriptions fragment */

.subs-ui {
  padding: 12px;
}

.ui-burn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 3px 10px;
  border-bottom: 1px solid var(--line);
}

.ui-burn strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.count-chip {
  padding: 3px 6px;
  border: 1px solid rgba(192, 132, 252, 0.24);
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.08);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
}

.renewal-list {
  list-style: none;
  padding: 5px 0 0;
}

.renewal-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 3px;
  border-radius: 6px;
}

.renewal-list li:hover {
  background: var(--surface);
}

.svc {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
}

.svc--purple {
  border-color: rgba(192, 132, 252, 0.22);
  background: rgba(192, 132, 252, 0.1);
  color: var(--purple);
}

.svc--amber {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.09);
  color: var(--amber);
}

.svc--emerald {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.09);
  color: var(--emerald);
}

.renewal-name {
  min-width: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.renewal-name small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
}

.renewal-amt {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

/* Debt fragment */

.debt-ui {
  margin-top: 22px;
}

.debt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.debt-box {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.debt-box span {
  display: block;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.debt-box strong {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.debt-box small {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7px;
}

.debt-box--credit {
  border-color: rgba(52, 211, 153, 0.23);
  background: rgba(52, 211, 153, 0.055);
}

.debt-box--credit strong {
  color: var(--emerald);
}

.debt-box--debt {
  border-color: rgba(251, 113, 133, 0.23);
  background: rgba(251, 113, 133, 0.055);
}

.debt-box--debt strong {
  color: var(--rose);
}

.settle {
  margin-top: 10px;
  padding: 2px 2px 0;
}

.settle-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
}

.settle-head span:first-child {
  color: var(--text-2);
}

.settle-head span:last-child {
  font-variant-numeric: tabular-nums;
}

.receipt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.receipt-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.07);
  color: var(--accent);
}

.receipt-icon svg {
  width: 12px;
  height: 12px;
}

.receipt-row > span:nth-child(2) {
  min-width: 0;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
}

.receipt-row small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
}

.receipt-arrow {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
}

/* Spending fragment */

.spend-ui {
  margin-top: 22px;
}

.budget-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.budget-amount {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.budget-amount small {
  color: var(--text-3);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.budget-pct {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
}

.spend-ui .bar {
  margin-top: 8px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
  margin-top: 11px;
}

.heatmap i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(45, 212, 191, var(--v, 0.1));
}

.heatmap i.is-hot {
  background: rgba(251, 113, 133, 0.78);
}

.heat-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  line-height: 1.5;
}

.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
}

.cat-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.cat-dot--blue {
  background: var(--blue);
}

.cat-dot--amber {
  background: var(--amber);
}

.cat-dot--purple {
  background: var(--purple);
}

/* Bank fragment */

.banks-ui {
  margin-top: 22px;
}

.bank-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.bank-chips span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.bank-ledger {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.bank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: var(--surface);
}

.bank-row + .bank-row {
  border-top: 1px solid var(--line);
}

.bank-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 20px;
  border-radius: 4px;
  color: #041411;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
}

.bank-mark--hdfc {
  background: #2dd4bf;
}

.bank-mark--sbi {
  background: #38bdf8;
}

.bank-name {
  min-width: 0;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.bank-name small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
}

.bank-row strong {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cashflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.cashflow > div {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.cashflow span {
  display: block;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cashflow strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Snapshot fragment */

.snap-ui {
  padding: 9px;
}

.snap-teaser {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 9px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(45, 212, 191, 0.14), rgba(255, 255, 255, 0.02) 55%),
    #0b1620;
  color: #f4fffc;
}

.snap-teaser::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -30px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 50%;
}

.snap-topline {
  display: flex;
  justify-content: space-between;
  color: rgba(244, 255, 252, 0.45);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.snap-teaser-label {
  display: block;
  margin-top: 17px;
  color: rgba(244, 255, 252, 0.5);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.snap-teaser strong {
  display: block;
  margin: 2px 0 11px;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.snap-teaser-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 255, 252, 0.55);
  font-family: var(--font-mono);
  font-size: 6.5px;
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.theme-swatches i {
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: var(--swatch);
}

.snap-ui-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Vault fragment */

.vault-ui {
  margin-top: 22px;
  padding: 11px;
}

.vault-lock {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.vault-lock-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 7px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--accent);
}

.vault-lock-icon svg {
  width: 14px;
  height: 14px;
}

.vault-lock > span:nth-child(2) {
  min-width: 0;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
}

.vault-lock small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
}

.pill-on {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vault-rows {
  margin-top: 8px;
}

.vault-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 3px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.5;
}

.vault-rows > div:last-child {
  border-bottom: 0;
}

.vault-rows span:last-child {
  color: var(--text-2);
  text-align: right;
}

/* ------------------------------------------------------------------
   Screens rail
------------------------------------------------------------------- */

.screens {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.screen-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.8vw, 30px);
  align-items: start;
}

.screen-card {
  min-width: 0;
}

.screen-frame {
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.screen-frame img {
  width: 100%;
  border-radius: 19px;
  background: #f7f9f7;
}

.screen-card:hover .screen-frame {
  border-color: var(--text-3);
  transform: translateY(-4px);
}

.screen-caption {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  margin-top: 14px;
  padding: 0 4px;
}

.screen-caption > span {
  grid-row: span 2;
  padding-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.screen-caption b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.screen-caption p {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Privacy table
------------------------------------------------------------------- */

.privacy-band {
  position: relative;
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.privacy-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 74%);
  mask-image: linear-gradient(to left, #000, transparent 74%);
  pointer-events: none;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: start;
}

.privacy-intro {
  position: sticky;
  top: 104px;
}

.privacy-intro h2 {
  max-width: 390px;
  margin-bottom: 20px;
}

.privacy-intro .section-sub {
  max-width: 380px;
}

.privacy-note {
  max-width: 380px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
}

.privacy-note .text-link {
  display: block;
  margin-top: 10px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.privacy-table thead th {
  padding: 0 18px 11px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-table thead th:last-child {
  padding-right: 0;
  text-align: right;
}

.privacy-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.privacy-table tbody th {
  width: 105px;
  padding: 17px 18px 17px 0;
  vertical-align: top;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.privacy-table tbody th span {
  margin-right: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.privacy-table td {
  padding: 17px 18px 17px 0;
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.55;
}

.privacy-table td:last-child {
  width: 132px;
  padding-right: 0;
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  white-space: nowrap;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status--teal {
  color: var(--accent);
}

.status--muted {
  color: var(--text-3);
}

.status--emerald {
  color: var(--emerald);
}

.status--blue {
  color: var(--blue);
}

.status--purple {
  color: var(--purple);
}

/* ------------------------------------------------------------------
   Tools
------------------------------------------------------------------- */

.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.tools-intro {
  position: sticky;
  top: 104px;
}

.tools-intro h2 {
  margin-bottom: 20px;
}

.tools-intro .section-sub {
  max-width: 330px;
  margin-bottom: 22px;
}

.tool-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.tool-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease);
}

.tool-item::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -1px;
  width: 1px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s var(--ease);
}

.tool-item:hover {
  padding-left: 12px;
}

.tool-item:hover::before {
  transform: scaleY(1);
}

.tool-num {
  padding-top: 3px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.tool-item h3 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 600;
}

.tool-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------
   Snapshot themes
------------------------------------------------------------------- */

.snapshots {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.snap-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(34px, 4vw, 46px);
}

.snap-head h2 {
  max-width: 620px;
}

.snap-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 330px;
  padding-bottom: 3px;
}

.snap-controls p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: right;
}

.mask-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.mask-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.switch {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-3);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.mask-toggle[aria-pressed="true"] .switch {
  background: rgba(45, 212, 191, 0.24);
}

.mask-toggle[aria-pressed="true"] .switch::after {
  background: var(--accent);
  transform: translateX(14px);
}

.snap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.snap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.62;
  padding: 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  overflow: hidden;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.snap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.045;
  pointer-events: none;
}

.snap-card::after {
  content: "";
  position: absolute;
  top: -56px;
  right: -46px;
  width: 150px;
  height: 150px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.snap-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.5);
}

.snap-card > * {
  position: relative;
  z-index: 1;
}

.snap-card--01 {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0e1726;
  color: #f8fafc;
}

.snap-card--02 {
  border-color: rgba(28, 25, 23, 0.14);
  background: #f1ede3;
  color: #1c1917;
}

.snap-card--03 {
  border-color: rgba(45, 212, 191, 0.22);
  background: #062a28;
  color: #d7fff8;
}

.snap-card--04 {
  border-color: rgba(192, 132, 252, 0.24);
  background: #24102e;
  color: #f7e8ff;
}

.snap-card--05 {
  border-color: rgba(251, 191, 36, 0.24);
  background: #2a1c12;
  color: #fff1e2;
}

.snap-card--06 {
  border-color: rgba(17, 24, 39, 0.14);
  background: #e8edf3;
  color: #111827;
}

.snap-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  line-height: 1.5;
  opacity: 0.55;
  text-transform: uppercase;
}

.snap-middle > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  opacity: 0.55;
  text-transform: uppercase;
}

.snap-value {
  display: block;
  margin: 3px 0 2px;
  font-family: var(--font-mono);
  font-size: clamp(17px, 2.25vw, 25px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.snap-middle small {
  display: block;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  opacity: 0.42;
  text-transform: uppercase;
}

.snap-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  opacity: 0.55;
  text-transform: uppercase;
}

.snap-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.snap-note {
  margin-top: 15px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   Install
------------------------------------------------------------------- */

.install {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

.install-copy h2 {
  margin-bottom: 20px;
}

.install-copy .section-sub {
  max-width: 400px;
}

.steps {
  display: grid;
  max-width: 420px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.step > span {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.step p {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.install-options {
  display: grid;
  gap: 10px;
}

.install-option {
  display: block;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition:
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.install-option:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.install-option--primary {
  border-color: rgba(45, 212, 191, 0.28);
  background: var(--bg-3);
  box-shadow: var(--highlight);
}

.install-option--primary:hover {
  border-color: rgba(45, 212, 191, 0.45);
  background: var(--bg-3);
}

.option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.option-head h3 {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
}

.option-head img {
  width: auto;
  height: 43px;
  border-radius: 6px;
}

.option-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-3);
  font-size: 11px;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.install-option:hover .option-arrow {
  border-color: var(--line-strong);
  color: var(--accent);
}

.install-option p {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.install-meta {
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------
   FAQ
------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 104px;
}

.faq-intro .section-sub {
  max-width: 300px;
  margin-bottom: 20px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--text-3);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] summary {
  color: var(--text);
}

.faq-answer {
  max-width: 620px;
  padding: 0 40px 20px 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */

.site-footer {
  padding: 54px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand > p {
  max-width: 300px;
  margin-top: 15px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-location svg {
  width: 11px;
  height: 11px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-col a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text-2);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------
   Legal pages
------------------------------------------------------------------- */

.legal-hero {
  position: relative;
  padding: clamp(46px, 6vw, 74px) 0 38px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 80%);
  mask-image: linear-gradient(to right, #000, transparent 80%);
  pointer-events: none;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-hero .hero-copy {
  max-width: 660px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
}

.legal-meta .doc-badge {
  padding: 4px 8px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 4px;
  background: rgba(45, 212, 191, 0.07);
  color: var(--accent);
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(36px, 6vw, 72px);
  justify-content: start;
  padding: 48px 0 88px;
}

.legal-toc {
  position: sticky;
  top: 104px;
  align-self: start;
}

.legal-toc > p {
  margin: 0 0 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
}

.legal-toc a {
  padding: 5px 0 5px 11px;
  border-left: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.legal-toc a:hover {
  border-left-color: var(--accent);
  color: var(--text);
}

.legal-body {
  min-width: 0;
  max-width: 760px;
}

.legal-body section {
  margin-bottom: 42px;
  scroll-margin-top: 100px;
}

.legal-body section:last-child {
  margin-bottom: 0;
}

.legal-body h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.legal-body h3 {
  margin: 24px 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-body p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.legal-body li {
  margin-bottom: 6px;
  padding-left: 3px;
}

.legal-body li::marker {
  color: var(--text-3);
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body .doc-card {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.legal-body .doc-card.highlight {
  border-left: 2px solid var(--accent);
  background: rgba(45, 212, 191, 0.045);
}

.legal-body .doc-card p {
  margin-bottom: 5px;
  font-size: 13px;
}

.legal-body .doc-card p:last-child {
  margin-bottom: 0;
}

.legal-body .subdued {
  color: var(--text-3);
  font-size: 12.5px;
}

.table-responsive {
  width: 100%;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--surface);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.doc-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  line-height: 1.6;
  vertical-align: top;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-table td strong {
  color: var(--text);
}

.legal-body .faq-stack {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.legal-body .faq-card {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.legal-body .faq-question {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-body .faq-answer {
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.legal-body .faq-answer strong {
  color: var(--text);
}

.doc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .tile--split .tile-body {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
  }

  .tile--split .ui {
    margin-top: 0;
  }

  .tile--subs,
  .tile--snapshot {
    min-height: 0;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-lead {
    max-width: 520px;
  }

  .hero-stage {
    justify-content: center;
    min-height: 0;
    padding: 20px 0 10px;
  }

  .stage-ring {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .stage-ring--inner {
    width: 430px;
    height: 430px;
  }

  .stage-ring--outer {
    width: 570px;
    height: 570px;
  }

  .stage-label {
    display: none;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 82px;
  }

  .header-inner {
    height: 68px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 68px);
    padding: 10px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    overflow-y: auto;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    min-height: 46px;
    margin: 16px 0 0;
    border-bottom: 0;
    font-size: 13px;
  }

  .nav-cta::after {
    display: none;
  }

  .privacy-grid,
  .tools-grid,
  .faq-grid,
  .install-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .privacy-intro,
  .tools-intro,
  .faq-intro {
    position: static;
  }

  .privacy-intro h2,
  .privacy-intro .section-sub,
  .privacy-note {
    max-width: 640px;
  }

  .tools-intro .section-sub {
    max-width: 520px;
  }

  .faq-intro .section-sub {
    max-width: 420px;
  }

  .snap-head {
    align-items: flex-start;
  }

  .snap-controls {
    align-items: flex-start;
    max-width: 280px;
  }

  .snap-controls p {
    text-align: left;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 36px;
  }

  .legal-toc {
    position: static;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .legal-toc a {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
  }

  .legal-toc a:hover {
    border-color: var(--accent);
  }
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile {
    grid-column: auto;
    min-height: 0;
  }

  .tile--debt .debt-ui,
  .tile--spend .spend-ui,
  .tile--banks .banks-ui,
  .tile--vault .vault-ui {
    margin-top: 24px;
  }

  .snap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snap-card {
    aspect-ratio: 1.55;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 76px 0;
  }

  .section-head,
  .snap-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-sub {
    max-width: 520px;
  }

  .snap-controls {
    max-width: 420px;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-item {
    padding: 20px 18px;
  }

  .proof-item:first-child,
  .proof-item:nth-child(3) {
    padding-left: 0;
  }

  .proof-item:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .proof-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .screen-rail {
    display: flex;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screen-rail::-webkit-scrollbar,
  .snap-grid::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    flex: 0 0 min(78%, 340px);
    scroll-snap-align: start;
  }

  .screen-caption {
    margin-top: 11px;
  }

  .privacy-table thead {
    display: none;
  }

  .privacy-table,
  .privacy-table tbody,
  .privacy-table tr,
  .privacy-table th,
  .privacy-table td {
    display: block;
    width: auto;
  }

  .privacy-table tbody tr {
    padding: 16px 0;
  }

  .privacy-table tbody th {
    padding: 0 0 5px;
    white-space: normal;
  }

  .privacy-table td,
  .privacy-table td:last-child {
    width: auto;
    padding: 0;
    text-align: left;
  }

  .privacy-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .privacy-table td:last-child {
    margin-top: 7px;
  }

  .snap-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .snap-card {
    flex: 0 0 min(78%, 310px);
    aspect-ratio: 1.55;
    scroll-snap-align: start;
  }

  .snap-note {
    margin-top: 10px;
  }

  .install-meta {
    text-align: left;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .legal-hero {
    padding-top: 42px;
  }

  .legal-layout {
    padding-bottom: 64px;
  }

  .legal-body p,
  .legal-body ul,
  .legal-body ol {
    font-size: 13.5px;
  }
}

@media (max-width: 560px) {
  .brand-suffix {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12.2vw, 3.4rem);
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 27px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
  }

  .play-badge,
  .play-badge img {
    height: 52px;
  }

  .hero-trust {
    margin-top: 16px;
    font-size: 9px;
  }

  .hero-stage {
    padding-top: 14px;
  }

  .phone {
    width: min(100%, 322px);
    border-radius: 44px;
  }

  .phone-screen {
    border-radius: 37px;
    padding: 11px 13px 9px;
  }

  .stage-ring--inner {
    width: 340px;
    height: 340px;
  }

  .stage-ring--outer {
    width: 440px;
    height: 440px;
  }

  .proof-value {
    font-size: 22px;
  }

  .proof-label {
    font-size: 7.5px;
  }

  .tile {
    padding: 20px;
  }

  .tile-top {
    margin-bottom: 18px;
  }

  .tile-copy p {
    font-size: 12.5px;
  }

  .snap-card {
    flex-basis: 82%;
  }

  .install-option {
    padding: 16px 17px;
  }

  .option-head img {
    height: 37px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .footer-bottom {
    font-size: 7px;
  }

  .legal-hero h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .legal-meta {
    font-size: 7px;
  }

  .legal-body .doc-card {
    padding: 15px 16px;
  }
}

@media (max-width: 400px) {
  .play-badge {
    height: 50px;
  }

  .play-badge img {
    height: 50px;
  }

  .hero-trust {
    gap: 5px;
  }

  .snap-card {
    flex-basis: 88%;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .legal-hero,
  .legal-layout {
    padding: 0;
  }

  .legal-body a {
    color: #111;
  }
}
