:root {
  --bg: #050c17;
  --card: #0d1520;
  --text: #e8edf5;
  --muted: #8b97a8;
  --accent: #00f5c8;
  --border: rgba(255, 255, 255, 0.08);
  --cobalt: #3d7bff;
  --iris: #7c5cff;
  --surface: #10101a;
  --max: 720px;
  --max-wide: 1120px;
  --max-shell: 1120px;
  --max-prose: 68ch;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--accent);
}

header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 12, 23, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 16px;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: #fff;
}

p,
li {
  color: #c5ced9;
}

ul {
  padding-left: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.card h2 {
  margin-top: 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  margin: 0 8px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, #3d7bff, #7c5cff);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: #fff;
}

/* ── Waitlist landing ── */
body.waitlist-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg);
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.aurora::before {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: rgba(61, 123, 255, 0.3);
}

.aurora::after {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -80px;
  background: rgba(124, 92, 255, 0.14);
}

.aurora-teal {
  position: absolute;
  width: 280px;
  height: 280px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 245, 200, 0.12);
  filter: blur(70px);
}

.waitlist-shell {
  position: relative;
  z-index: 1;
}

.waitlist-shell main {
  max-width: var(--max-shell);
}

.waitlist-shell .header-inner {
  max-width: var(--max-shell);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-row img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.waitlist-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 12px;
}

@media (min-width: 900px) {
  .waitlist-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 48px;
  }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 12px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #fff;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
  max-width: 36ch;
}

.hero-sub-centered {
  margin: 0 auto var(--space-3);
  text-align: center;
  max-width: 42ch;
}

.trust-line {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.perk-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .perk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.perk-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

.perk-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
}

.perk-card span {
  font-size: 14px;
  color: #c5ced9;
  line-height: 1.5;
}

.glass-panel {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(61, 123, 255, 0.04) 45%,
    rgba(124, 92, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.mode-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mode-tab.active {
  background: linear-gradient(135deg, rgba(61, 123, 255, 0.35), rgba(124, 92, 255, 0.25));
  color: #fff;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 12, 23, 0.65);
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: rgba(61, 123, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.15);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cobalt), var(--iris), var(--accent));
  box-shadow: 0 12px 32px rgba(61, 123, 255, 0.28);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.banner {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.banner-error {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  color: #ffb3c1;
}

.banner-success {
  background: rgba(0, 245, 200, 0.08);
  border: 1px solid rgba(0, 245, 200, 0.28);
  color: #b8fff0;
}

.banner-info {
  background: rgba(61, 123, 255, 0.1);
  border: 1px solid rgba(61, 123, 255, 0.28);
  color: #c8d9ff;
}

.success-panel {
  text-align: center;
  padding: 12px 4px 4px;
}

.success-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.success-panel p {
  margin: 0 0 8px;
}

.hidden {
  display: none !important;
}

.demo-toolbar {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 16px 20px 0;
  position: relative;
  z-index: 2;
}

.demo-toolbar select {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #fff;
  font: inherit;
}

.demo-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── Legal pages (privacy, terms, delete-account) ── */
body.legal-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.legal-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-shell .header-inner {
  max-width: var(--max-shell);
}

.legal-main {
  flex: 1;
  max-width: var(--max-shell);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-5);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .legal-main {
    padding: var(--space-4) var(--space-3) var(--space-7);
  }
}

.legal-hero {
  margin-bottom: 20px;
}

.legal-hero.glass-panel {
  padding: 28px 32px;
}

.legal-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
}

.legal-hero .hero-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
}

.legal-hero .updated {
  margin: 0;
}

.legal-callouts {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .legal-callouts {
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-callouts.two-up {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-callout {
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.legal-callout strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.legal-callout span,
.legal-callout p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #c5ced9;
}

.legal-callout-accent {
  border-color: rgba(0, 245, 200, 0.28);
  background: rgba(0, 245, 200, 0.06);
}

.legal-callout-accent strong {
  color: #b8fff0;
}

.legal-callout-warn {
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
}

.legal-callout-warn strong {
  color: #ffe8a8;
}

.legal-callout-cta {
  margin-top: 12px;
  margin-bottom: 0;
}

.legal-hub-panel {
  margin-top: var(--space-3);
}

.legal-hub-heading {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-layout {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}

.legal-toc.glass-panel {
  padding: 20px 18px;
}

@media (min-width: 960px) {
  .legal-toc {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

.legal-toc-mobile {
  display: block;
  margin-bottom: 4px;
}

.legal-toc-desktop {
  display: none;
}

@media (min-width: 960px) {
  .legal-toc-mobile {
    display: none;
  }

  .legal-toc-desktop {
    display: block;
  }

  .legal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .legal-toc {
    grid-column: 1;
  }

  .legal-prose {
    grid-column: 2;
    min-width: 0;
  }
}

.legal-toc .toc-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #b8c4d4;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc a:hover,
.legal-toc a.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.legal-toc a.is-active {
  color: var(--accent);
}

.legal-prose.glass-panel {
  padding: var(--space-4) var(--space-3) var(--space-4);
}

@media (min-width: 640px) {
  .legal-prose.glass-panel {
    padding: var(--space-5) var(--space-5) var(--space-5);
  }
}

.legal-prose {
  font-size: 17px;
  line-height: 1.7;
}

.legal-prose > p,
.legal-prose > ul,
.legal-prose > ol,
.legal-prose > .legal-step-card {
  max-width: var(--max-prose);
}

.legal-prose > p:first-child {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.legal-prose h2 {
  scroll-margin-top: 92px;
  font-size: 24px;
  margin: var(--space-6) 0 var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  max-width: var(--max-prose);
}

.legal-prose h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-prose h3 {
  font-size: 16px;
  margin: 22px 0 10px;
  color: rgba(255, 255, 255, 0.92);
}

.legal-prose code {
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
  color: #dce4ef;
}

.legal-prose ol {
  padding-left: 1.35rem;
  color: #c5ced9;
}

.legal-prose ol li {
  margin-bottom: 8px;
}

.legal-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0;
}

.legal-step-card h2,
.legal-step-card h3 {
  margin-top: 0;
  border: none;
  padding: 0;
}

.legal-step-card h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.legal-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  background: rgba(5, 12, 23, 0.75);
  backdrop-filter: blur(12px);
}

.legal-footer-inner {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 28px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .legal-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.legal-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.legal-footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}

.legal-footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.legal-footer-links a:hover,
.legal-footer-links a.active {
  color: #fff;
}

.legal-footer-copy {
  margin: 0;
  padding: 0 20px 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: var(--max-shell);
  margin-left: auto;
  margin-right: auto;
}

.legal-prose .btn-primary {
  margin-top: 8px;
}

/* ── Marketing landing (veltza.app/) ── */
body.landing-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.landing-shell {
  position: relative;
  z-index: 1;
}

.landing-header-inner {
  max-width: var(--max-shell);
}

.landing-shell main {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-5);
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 56px;
}

@media (min-width: 900px) {
  .landing-hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 48px 0 72px;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.store-badges-center {
  justify-content: center;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  flex-shrink: 0;
  line-height: 0;
  overflow: visible;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  display: block;
  width: 120px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.store-badge[data-store="android"] img {
  transform: scale(1.161);
  transform-origin: center center;
}

.phone-mockup {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.phone-frame {
  width: min(280px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #10101a 0%, #050c17 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 80px rgba(61, 123, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #050c17;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(61, 123, 255, 0.18), transparent 55%),
    radial-gradient(circle at 50% 70%, rgba(0, 245, 200, 0.1), transparent 50%);
}

.phone-app-icon {
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.phone-label {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.landing-section-title {
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: #fff;
}

.landing-features {
  padding: 24px 0 56px;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #c5ced9;
}

.landing-cta {
  text-align: center;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.landing-footer a {
  margin: 0 8px;
  color: var(--muted);
  text-decoration: none;
}

.landing-footer a:hover {
  color: #fff;
}

