/* =========================================================
   Ratiō — marketing site styles
   Clean, warm, Scandinavian-minimal. Cream + forest green.
   ========================================================= */

:root {
  --cream: #f4f1e8;
  --cream-2: #eee9db;
  --card: #fdfbf5;
  --ink: #262521;
  --ink-soft: #55524a;
  --muted: #6b665a;
  --line: #e2ddcd;

  --green: #2f4b3c;
  --green-dark: #223a2d;
  --green-soft: #7fae87;
  --green-pale: #d8e6da;

  --peach: #e0a183;
  --peach-pale: #f3ddce;
  --blue: #8faec4;
  --blue-pale: #dbe6ec;
  --flame: #e8734a;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(38, 37, 33, 0.04), 0 12px 32px -16px rgba(38, 37, 33, 0.12);
  --shadow-soft: 0 20px 60px -30px rgba(38, 37, 33, 0.35);

  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--green-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, "Times New Roman", serif; margin: 0; letter-spacing: -0.01em; }

/* Fraunces doesn't render the ō macron glyph reliably, so we draw it manually
   wherever "Rati[o]" appears in a Fraunces context (see .o-mac usage in markup). */
.o-mac { position: relative; display: inline-block; line-height: 1; }
.o-mac::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.66em;
  transform: translateX(-50%);
  width: 0.6em;
  height: 0.08em;
  background: currentColor;
  border-radius: 1px;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
}

.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--flame); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(47, 75, 60, 0.55); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(47, 75, 60, 0.6); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 232, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle {
  display: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 8px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin: 20px 0 20px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 .underline svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 12px;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-bottom: 14px;
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:focus { border-color: var(--green-soft); box-shadow: 0 0 0 4px var(--green-pale); }
.waitlist-form button { flex-shrink: 0; }

.form-note { font-size: 13px; color: var(--muted); }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  max-width: 460px;
  margin-bottom: 14px;
}
.form-success.visible { display: flex; }
.waitlist-form.hidden { display: none; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(1) { background: #7fae87; }
.avatar-stack span:nth-child(2) { background: #e0a183; }
.avatar-stack span:nth-child(3) { background: #8faec4; }
.avatar-stack span:nth-child(4) { background: #2f4b3c; }
.hero-proof-text { font-size: 14px; color: var(--ink-soft); }
.hero-proof-text strong { color: var(--ink); }

/* ---------- Hero visual: phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: 0;
}
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, var(--green-pale), transparent 70%); top: -40px; right: -60px; }
.blob-2 { width: 300px; height: 300px; background: radial-gradient(circle at 60% 40%, var(--peach-pale), transparent 70%); bottom: -20px; left: -40px; }

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}
.phone-screen {
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 5;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px 4px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.phone-body { padding: 10px 16px 18px; }
.phone-app-title { font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; margin: 4px 0 14px; }

.day-strip { display: flex; justify-content: space-between; margin-bottom: 16px; }
.day-strip .day {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: var(--muted); font-weight: 600;
}
.day-strip .day .num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink);
}
.day-strip .day.active .num { background: var(--green); color: #fff; }
.day-strip .day.active { color: var(--green); }

.today-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.today-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.today-card-head .label { font-weight: 700; font-size: 15px; }
.today-card-head .value { font-size: 13px; font-weight: 600; color: var(--muted); }
.progress-track { height: 6px; background: var(--cream-2); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; width: 62%; background: var(--green); border-radius: var(--radius-pill); }

.rings { display: flex; justify-content: space-between; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ring svg { transform: rotate(-90deg); }
.ring-label { font-size: 10px; color: var(--ink-soft); font-weight: 600; }
.ring-value { font-size: 9px; color: var(--muted); }
.ring-num { font-size: 13px; font-weight: 700; fill: var(--ink); }

.streak-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
}

.snap-badge {
  position: absolute;
  z-index: 2;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 30px -10px rgba(47, 75, 60, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}
.snap-badge.top { top: 40px; left: -30px; }
.snap-badge.bottom { bottom: 60px; right: -36px; background: var(--card); color: var(--ink); }
.snap-badge.bottom svg circle,
.snap-badge.bottom svg path { }

/* ---------- Section basics ---------- */
section { position: relative; padding: 100px 0; scroll-margin-top: 84px; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.15; margin-top: 16px; }
.section-head p { font-size: 17px; color: var(--ink-soft); margin-top: 16px; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 90px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 26px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}
.step-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
  background: var(--cream-2);
  position: relative;
}
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-media .step-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

.scan-frame {
  position: absolute; inset: 14%;
  border: 2.5px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 2000px rgba(38,37,33,0.18);
}
.scan-frame::before, .scan-frame::after,
.scan-frame .c3, .scan-frame .c4 {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 3px solid var(--green);
}
.scan-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scan-frame::after { top: -3px; right: -3px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scan-frame .c3 { bottom: -3px; left: -3px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scan-frame .c4 { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.result-chip {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(253, 251, 245, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.result-chip .cal { font-weight: 700; font-size: 14px; }
.result-chip .macros { display: flex; gap: 8px; font-size: 11px; font-weight: 600; }
.result-chip .macros span.p { color: #3d6b47; }
.result-chip .macros span.c { color: #a05a37; }
.result-chip .macros span.f { color: #3d6685; }

/* ---------- Why people quit ---------- */
.why {
  background: var(--green);
  color: var(--cream);
  border-radius: 40px;
  margin: 0 24px;
  padding: 90px 0;
  overflow: hidden;
  position: relative;
}
.why .wrap { position: relative; z-index: 1; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why .eyebrow { background: rgba(244,241,232,0.14); color: var(--cream); }
.why .eyebrow .dot { background: #f2a26a; }
.why-copy h2 { color: var(--cream); font-size: clamp(28px, 3.6vw, 40px); margin: 16px 0 20px; }
.why-copy > p { color: rgba(244,241,232,0.75); font-size: 17px; margin-bottom: 32px; }

.pain-list { display: flex; flex-direction: column; gap: 18px; }
.pain-item { display: flex; gap: 16px; align-items: flex-start; }
.pain-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(244,241,232,0.1);
  display: flex; align-items: center; justify-content: center;
}
.pain-item h4 { color: var(--cream); font-size: 16px; font-weight: 600; font-family: inherit; margin-bottom: 4px; }
.pain-item p { color: rgba(244,241,232,0.68); font-size: 14.5px; }

.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.why-visual img { width: 100%; height: 100%; object-fit: cover; }
.why-visual .stat-float {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  background: rgba(253,251,245,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 20px;
}
.stat-float .stat { flex: 1; }
.stat-float .stat-num { font-family: "Fraunces", serif; font-size: 26px; font-weight: 600; color: var(--green); }
.stat-float .stat-label { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Comparison ---------- */
.compare-table-wrap {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 18px 20px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.compare-table td:first-child, .compare-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  width: 40%;
}
.compare-table thead th {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 600;
  padding-top: 26px;
  padding-bottom: 20px;
}
.compare-table thead th.highlight { color: var(--green); }
.compare-table thead th:first-child { font-family: inherit; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.compare-table tbody td { color: var(--ink-soft); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.highlight-col, .compare-table th.highlight {
  background: var(--green-pale);
}
.compare-table td.highlight-col { position: relative; }
.compare-table thead th.highlight { border-radius: 16px 16px 0 0; }
.icon-yes { color: var(--green); }
.icon-no { color: var(--muted); }
.compare-plate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--green);
}

/* ---------- Quote strip (FAQ grid) ---------- */
.quote-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.quote-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.quote-card p.body { font-size: 15.5px; color: var(--ink); margin-bottom: 0; line-height: 1.6; }

/* ---------- Accuracy demo ---------- */
.demo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.demo-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.demo-media { aspect-ratio: 4/3; overflow: hidden; }
.demo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.demo-card:hover .demo-media img { transform: scale(1.05); }
.demo-result { padding: 20px 22px 22px; }
.demo-result-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.demo-cal { font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; color: var(--ink); }
.demo-tag { font-size: 13px; color: var(--muted); }
.demo-macros { display: flex; gap: 14px; flex-wrap: wrap; }
.demo-macros span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); }
.demo-macros .p { background: var(--green-pale); color: #375a3f; }
.demo-macros .c { background: var(--peach-pale); color: #8f4f30; }
.demo-macros .f { background: var(--blue-pale); color: #375873; }
.demo-footnote { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--cream-2);
  border-radius: 40px;
  margin: 0 24px;
  padding: 90px 24px;
}
.final-cta h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 16px 0 20px; }
.final-cta p { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin: 0 auto 36px; }
.final-cta .waitlist-form { margin: 0 auto 14px; }
.final-cta .form-success { margin: 0 auto 14px; }
.final-cta .form-note { display: block; }

/* ---------- Footer ---------- */
footer { padding: 64px 0 32px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--ink-soft); font-size: 14.5px; margin: 14px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--green-pale); border-color: var(--green-soft); }
.footer-cols { display: flex; gap: 64px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* ---------- Privacy page ---------- */
.legal-hero { padding: 56px 0 20px; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 600; margin: 16px 0 10px; }
.legal-hero .updated { color: var(--muted); font-size: 14px; }
.legal-body { padding: 20px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc {
  position: sticky; top: 100px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.legal-toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--green); }
.legal-content { background: var(--card); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-card); }
.legal-content h2 { font-size: 22px; font-weight: 600; margin: 40px 0 14px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16.5px; font-weight: 600; margin: 22px 0 8px; }
.legal-content p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--ink); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal-content th { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--green); font-weight: 600; }
.legal-content ol { padding-left: 22px; }
.legal-note {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--green-dark);
  margin: 18px 0;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; margin-bottom: 8px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; transform: scale(0.9); }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .demo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 32px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* Nav switches to the hamburger menu earlier than the general mobile
   breakpoint below — with 7 links plus the logo and CTA button, the
   full desktop nav starts wrapping to two lines around ~860px. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
  }
}

@media (max-width: 720px) {
  .snap-badge.top { left: 4px; top: 24px; font-size: 12px; padding: 8px 12px; }
  .snap-badge.bottom { right: 4px; bottom: 48px; font-size: 12px; padding: 8px 12px; }
  section { padding: 64px 0; }
  .why { border-radius: 28px; margin: 0 12px; padding: 56px 0; }
  .final-cta { border-radius: 28px; margin: 0 12px; padding: 56px 20px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .legal-content { padding: 28px 20px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .quote-strip { grid-template-columns: 1fr; }
  .demo-strip { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .phone { width: 250px; }
  .hero-copy h1 { font-size: 34px; }
}
