/* ════════════════════════════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════════════════════════════ */
:root {
  --ink:        #0F0E0C;
  --ink-2:      #17140E;
  --ink-3:      #221E16;
  --text:       #F5F0E8;
  --text-2:     rgba(245,240,232,0.72);
  --text-3:     rgba(245,240,232,0.50);
  --text-4:     rgba(245,240,232,0.30);
  --hairline:   rgba(245,240,232,0.10);
  --hairline-2: rgba(245,240,232,0.18);

  --indigo:     #4B6BFF;
  --indigo-d:   #2E46B8;
  --indigo-l:   #7A8FFF;
  --coral:      #E8553C;
  --amber:      #E8B93A;
  --sage:       #5FB97A;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --serif:   'Fraunces', 'Times New Roman', serif;

  --max:     1200px;
  --gutter:  24px;
}

/* ════════════════════════════════════════════════════════════════════
   RESET + BASE
   ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: 0; font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--indigo); color: var(--text); }

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

/* Warm-paper grain — extremely subtle texture, the difference between
   "warm ink" and "flat dark mode". */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.025;
  mix-blend-mode: overlay;
}

main, header, footer { position: relative; z-index: 2; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* (page-routing styles removed — terms / privacy / support are now
   separate HTML files, each is the only content on its URL.) */

/* ════════════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ════════════════════════════════════════════════════════════════════ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  font-feature-settings: "tnum";
}
.eyebrow-sm { font-size: 10px; }

/* The italic Fraunces accent that lives inside H1/H2.  WONK 1 + SOFT 80
   cranks the Garalde character to its loudest setting; this is the
   brand's lyrical moment. */
.headline em, h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--indigo-l);
  font-variation-settings: "WONK" 1, "opsz" 144, "SOFT" 80;
  letter-spacing: -0.01em;
}

/* ════════════════════════════════════════════════════════════════════
   HEADER (shared)
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(15,14,12,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand .icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink-2);
}
.brand .icon img { width: 100%; height: 100%; object-fit: cover; }
.brand .word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.4px;
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.1px;
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 200ms ease;
  white-space: nowrap;
}
.btn-ghost { color: var(--text-2); background: transparent; }
.btn-ghost:hover { background: var(--hairline); color: var(--text); }
.btn-primary {
  color: white;
  background: var(--indigo);
  padding: 10px 18px;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--indigo-l);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(75,107,255,0.5);
}
.btn-primary svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .btn-ghost { display: none; }
  .btn-primary { padding: 8px 14px; font-size: 13px; }
  .btn-primary span { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER (shared)
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  margin-top: 80px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.footer-links a { transition: color 200ms ease; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════════
   HOME — HERO
   ════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
}

.hero-eyebrow { margin-bottom: 24px; }

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 em {
  font-size: 1.05em;
  display: inline-block;
}

.hero-lede {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.55;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 10px 18px 10px 16px;
  color: white;
  transition: all 200ms ease;
  flex-shrink: 0;
}
.btn-app-store:hover {
  background: #0a0a0a;
  border-color: var(--hairline-2);
  transform: translateY(-1px);
}
.btn-app-store .apple { width: 24px; height: 24px; flex-shrink: 0; }
.btn-app-store .stack { display: flex; flex-direction: column; line-height: 1.1; }
.btn-app-store .small { font-size: 10px; opacity: 0.65; white-space: nowrap; letter-spacing: 0.02em; }
.btn-app-store .big {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.cta-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 1px;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero-meta-item b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.hero-meta-item span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Phones art */
.phones-stage {
  position: relative;
  height: 640px;
}
@media (max-width: 920px) {
  .phones-stage { height: 560px; }
}
.phone {
  position: absolute;
  width: 290px;
  height: 600px;
  border-radius: 46px;
  background: #000;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 12px 24px -8px rgba(0,0,0,0.5);
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink-2);
}
.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 102px;
  height: 28px;
  border-radius: 18px;
  background: #000;
  z-index: 2;
}
.phone-front {
  top: 10px;
  left: 50%;
  transform: translateX(-62%) rotate(-4deg);
  z-index: 2;
}
.phone-back {
  top: 60px;
  left: 50%;
  transform: translateX(24%) rotate(6deg);
  z-index: 1;
  opacity: 0.85;
}
@media (max-width: 920px) {
  .phone { width: 260px; height: 540px; }
}

/* ════════════════════════════════════════════════════════════════════
   HOME — SECTION HEADERS (shared by features / how / cta)
   ════════════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.section-head h2 em { font-size: 1.05em; }
.section-lede {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: all 200ms ease;
}
.feature-card:hover {
  background: var(--ink-3);
  border-color: var(--hairline-2);
  transform: translateY(-2px);
}
.feature-card .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 2px;
  font-weight: 500;
}
.feature-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-top: 16px;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}
.feature-card .ill {
  align-self: flex-end;
  margin-top: 24px;
  width: 160px;
  height: 120px;
}

/* ════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.how-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 80px;
  right: 80px;
  height: 1px;
  background: var(--hairline);
  z-index: 0;
}
@media (max-width: 920px) {
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-grid::before { display: none; }
}
.step {
  position: relative;
  z-index: 1;
}
.step-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--indigo);
  background: var(--ink);
  padding-right: 16px;
  display: inline-block;
  margin-bottom: 24px;
}
.step-num::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
  vertical-align: middle;
  margin-bottom: 16px;
  margin-right: 12px;
}
.step .eyebrow { margin-bottom: 8px; }
.step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 280px;
}

/* ════════════════════════════════════════════════════════════════════
   CTA BLOCK
   ════════════════════════════════════════════════════════════════════ */
.cta-block {
  text-align: center;
  padding: 100px 0 40px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}
.cta-block h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.cta-block h2 em { font-size: 1.05em; }
.cta-block p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.cta-block .cta-row { justify-content: center; }

/* ════════════════════════════════════════════════════════════════════
   SUPPORT PAGE
   ════════════════════════════════════════════════════════════════════ */
.support-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 80px var(--gutter);
  text-align: center;
}
.support-glyph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--indigo);
}
.support-glyph svg { width: 30px; height: 30px; }
.support-wrap h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  color: var(--text);
  margin-bottom: 16px;
}
.support-wrap > p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 40px;
}
.email-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--ink-2);
  text-align: left;
  transition: all 200ms ease;
}
.email-card:hover {
  background: var(--ink-3);
  border-color: var(--hairline-2);
  transform: translateY(-2px);
}
.email-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink-3);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-2);
}
.email-icon svg { width: 18px; height: 18px; }
.email-text {
  flex: 1;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.2px;
  word-break: break-all;
}
.email-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--indigo);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.email-card:hover .email-send {
  transform: translateX(2px);
}
.email-send svg { width: 16px; height: 16px; }

.support-foot {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════
   LEGAL PAGES (terms / privacy)
   ════════════════════════════════════════════════════════════════════ */
.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 64px var(--gutter) 96px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 920px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc-col { display: none; }
}

.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.legal-toc .eyebrow { display: block; margin-bottom: 16px; font-size: 10px; color: var(--text-4); }
.legal-toc ol { display: flex; flex-direction: column; gap: 4px; }
.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  line-height: 1.4;
  transition: all 200ms ease;
}
.legal-toc a:hover { color: var(--text-2); }
.legal-toc a.toc-active {
  color: var(--text);
  border-left-color: var(--indigo);
  padding-left: 12px;
}
.legal-toc a .toc-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.08em;
  margin-right: 8px;
}
.legal-toc a.toc-active .toc-num { color: var(--indigo); }

.legal-content { max-width: 720px; }
.legal-content > .eyebrow { margin-bottom: 16px; }
.legal-content h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: -1.6px;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 8px;
}
.legal-content .last-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.legal-section { margin-bottom: 48px; }
.legal-section .num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--indigo-l);
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 8px;
}
.legal-section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  scroll-margin-top: 96px;
}
.legal-section p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--indigo-l);
  border-bottom: 1px solid rgba(122,143,255,0.3);
  transition: border-color 200ms ease;
}
.legal-section a:hover { border-color: var(--indigo-l); }

.legal-section h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-section ul, .legal-section ol {
  margin: 0 0 14px 0;
  padding-left: 0;
}
.legal-section ul li, .legal-section ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}
.legal-section ul li::before {
  content: "—";
  position: absolute;
  left: 4px;
  font-family: var(--mono);
  color: var(--text-3);
}
.legal-section ol { counter-reset: legal-list; }
.legal-section ol li {
  counter-increment: legal-list;
}
.legal-section ol li::before {
  content: counter(legal-list, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--indigo-l);
  letter-spacing: 0.05em;
}
.legal-section code {
  font-family: var(--mono);
  background: var(--ink-3);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--indigo-l);
}
.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
}
.legal-section table th,
.legal-section table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.legal-section table thead th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 8px;
}
.legal-section table tbody td { color: var(--text-2); line-height: 1.55; }
.legal-section table tbody td strong { color: var(--text); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE TIGHTENING
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .feature-card { min-height: 280px; padding: 24px; }
  .step-num { font-size: 48px; }
  .hero-meta { gap: 24px; }
}
