/* ===================================================================
   VibesToGo — landing page styles
   Dark, Dracula-inspired palette (ported from the app's Theme).
   =================================================================== */

:root {
  /* backgrounds */
  --bg-deep: #0a0a0a;
  --bg: #0d0d0d;
  --surface: #14141a;
  --surface-2: #1e1e1e;

  /* borders */
  --divider: #2d2d2d;
  --border: #333333;

  /* text */
  --text: #e0e0e0;
  --text-2: #cccccc;
  --muted: #888888;
  --faint: #555555;

  /* accents (app) */
  --teal: #4ec9b0;
  --red: #e06c75;
  --green: #6bcb77;
  --yellow: #ffd93d;

  /* brand gradient (from the logo) */
  --purple: #6d3bf5;
  --pink: #ec4899;
  --orange: #f59e0b;
  --cyan: #3b82f6;
  --grad: linear-gradient(100deg, var(--purple), var(--pink) 45%, var(--orange));
  --grad-soft: linear-gradient(120deg, var(--purple), var(--cyan));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Cascadia Code", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
small { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* restrained accent used for numbers/prices/headings (teal, matches the app) */
.accent-text { color: var(--teal); }

/* =========================== background wash =========================== */
/* Subtle, near-static ambient glows — deliberately low-key so the page reads
   as a focused dark product page, not a flashy gradient demo. */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(1100px 700px at 78% -12%, rgba(78, 201, 176, 0.06), transparent 60%),
              radial-gradient(900px 700px at 0% 100%, rgba(109, 59, 245, 0.05), transparent 60%),
              var(--bg-deep);
}
.blob {
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  will-change: transform;
  animation: float 40s ease-in-out infinite;
}
.blob--purple { top: -10%; left: -8%;  background: var(--purple); }
.blob--pink   { top: 30%;  right: -14%; background: var(--teal);  opacity: 0.12; animation-duration: 46s; animation-delay: -8s; }
.blob--orange { display: none; }
.blob--cyan   { bottom: -16%; right: 16%; background: var(--cyan); opacity: 0.10; animation-duration: 44s; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, -3%, 0) scale(1.05); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 15%, transparent 70%);
}

/* =========================== nav =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--divider);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo { width: 34px; height: 34px; border-radius: 9px; }
.nav__word { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { color: var(--text-2); font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { margin-left: 0; }

/* =========================== buttons =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

.btn--grad {
  position: relative;
  color: #05140f;
  background: var(--teal);
  box-shadow: 0 8px 24px -12px rgba(78, 201, 176, 0.6);
}
.btn--grad:hover { background: #5fd6bd; box-shadow: 0 12px 30px -12px rgba(78, 201, 176, 0.7); }

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--teal); color: #fff; }

.btn--store {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.6rem 1.3rem;
  text-align: left;
  line-height: 1.15;
}
.btn--store span { font-size: 1.05rem; font-weight: 700; }
.btn--store:hover { border-color: var(--teal); background: rgba(255, 255, 255, 0.08); }
.btn--store svg { flex-shrink: 0; }

/* =========================== hero =========================== */
.hero {
  padding: clamp(7rem, 14vw, 10rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  font-weight: 800;
  margin: 1.1rem 0 1.3rem;
}
.typed-wrap { display: inline-flex; align-items: baseline; }
.caret { color: var(--teal); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(78, 201, 176, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78, 201, 176, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(78, 201, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 201, 176, 0); }
}

/* ------ phone mockup ------ */
.hero__device { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  position: relative;
  width: min(310px, 78vw);
  transform-style: preserve-3d;
  animation: phoneFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-8deg); }
  50%      { transform: translateY(-16px) rotateX(2deg) rotateY(-4deg); }
}
.phone__glow {
  position: absolute;
  inset: -12% -12% -18%;
  background: radial-gradient(circle at 50% 40%, rgba(78, 201, 176, 0.22), rgba(109, 59, 245, 0.12) 55%, transparent 72%);
  filter: blur(50px);
  opacity: 0.9;
  border-radius: 50%;
  z-index: -1;
}
.phone__frame {
  position: relative;
  background: linear-gradient(160deg, #26262e, #0c0c10);
  border: 1px solid #33333c;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 22px;
  background: #05050a;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__screen {
  background: #05050a;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}
/* app loading screen: the "proud chef" baking loader (ported from iOS) */
.bake {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 18px 34px;
  background: var(--bg);
}
.coder { width: 86%; max-width: 240px; height: auto; overflow: visible; }

/* head + arms nod to the beat */
.coder__bob {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: coder-bob 2.6s ease-in-out infinite;
}
@keyframes coder-bob {
  0%, 100% { transform: rotate(-2.2deg) translateY(0); }
  50%      { transform: rotate(2.2deg) translateY(-1.5px); }
}

.coder__glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: baker-glow 4.6s ease-in-out infinite;
}
@keyframes baker-glow {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.55; }
}

/* rising, fading music notes */
.note {
  transform-box: fill-box;
  animation: coder-note 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}
@keyframes coder-note {
  0%   { opacity: 0;   transform: translateY(6px) rotate(-6deg); }
  25%  { opacity: 0.9; }
  70%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translateY(-34px) rotate(8deg); }
}

/* code lines typing in, staggered, then looping */
.code-ln {
  transform-box: fill-box;
  transform-origin: left center;
  animation: coder-type 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes coder-type {
  0%   { transform: scaleX(0.08); opacity: 0.35; }
  16%  { transform: scaleX(1);    opacity: 1; }
  86%  { transform: scaleX(1);    opacity: 1; }
  100% { transform: scaleX(0.08); opacity: 0.35; }
}
.coder-cursor { animation: blink 1s steps(1) infinite; }

.bake__caption { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.bake__text {
  font-size: 0.72rem;
  color: var(--muted);
  animation: baker-caption 3.2s ease-in-out infinite;
}
@keyframes baker-caption { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }

.bake__bar {
  position: relative;
  display: block;
  width: 110px; height: 3px;
  border-radius: 999px;
  background: var(--divider);
  overflow: hidden;
}
.bake__bar i {
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  border-radius: 999px;
  background: var(--teal);
  animation: baker-shimmer 1.5s linear infinite;
}
@keyframes baker-shimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* =========================== stats =========================== */
.stats {
  max-width: var(--maxw);
  margin: 1rem auto 0;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--mono); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.stat__label { font-size: 0.9rem; color: var(--muted); }

/* =========================== sections =========================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 3.5rem; }
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; margin: 0.7rem 0 0.9rem; }
.section__head p { color: var(--text-2); font-size: 1.08rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 700;
}

/* ------ feature cards ------ */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
}
.glow-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.glow-card:hover { transform: translateX(4px); border-color: rgba(78, 201, 176, 0.45); }
.glow-card__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--teal);
  background: rgba(78, 201, 176, 0.1);
  border: 1px solid rgba(78, 201, 176, 0.25);
}
.glow-card__body { flex: 1; min-width: 0; }
.glow-card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.glow-card p { color: var(--muted); font-size: 0.98rem; }

/* ------ steps ------ */
.steps {
  position: relative;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.steps__line {
  position: absolute;
  top: 22px; left: 5%; right: 5%;
  height: 2px;
  background: var(--divider);
  overflow: hidden;
}
.steps__progress {
  display: block; height: 100%; width: 0%;
  background: var(--teal);
  transition: width 1.2s ease;
}
.step { position: relative; padding-top: 3.6rem; }
.step__num {
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  color: #fff;
  background: var(--surface-2);
  border: 1px solid var(--border);
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step.in .step__num {
  border-color: var(--teal);
  color: var(--teal);
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ------ pricing ------ */
.seg {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto 2.5rem;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.seg__btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}
.seg__btn.is-active { color: #05140f; }
.seg__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--teal);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.seg.is-vms .seg__thumb { transform: translateX(100%); }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.tiers.is-hidden { display: none; }
.tiers--two { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
/* spec grid — the real differentiator between tiers */
.tier__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 1.3rem;
  padding: 0.85rem 0.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.spec { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.spec + .spec { border-left: 1px solid var(--divider); }
.spec__v { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--teal); line-height: 1; }
.spec__k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* capability chips instead of a repetitive checklist */
.tier__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
  padding: 0;
}
.tier__tags li {
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.tier--featured .tier__tags li { border-color: rgba(78, 201, 176, 0.35); }
.tier {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tier:hover { transform: translateY(-6px); border-color: var(--divider); }
.tier--featured {
  border: 1.5px solid var(--teal);
  box-shadow: 0 24px 50px -34px rgba(78, 201, 176, 0.5);
}
.tier__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem; border-radius: 999px;
  color: #05140f; background: var(--teal);
  white-space: nowrap;
}
.tier__name { font-size: 1.2rem; }
.tier__price { font-family: var(--mono); font-size: 2.6rem; font-weight: 800; margin: 0.6rem 0 0.1rem; display: flex; align-items: baseline; gap: 0.3rem; }
.tier__price small { font-size: 0.9rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.tier__meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.3rem; }
.tier__list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.7rem; }
.tier__list li { position: relative; padding-left: 1.6rem; color: var(--text-2); font-size: 0.95rem; }
.tier__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.tier__cta { width: 100%; justify-content: center; }

/* =========================== final CTA =========================== */
.cta {
  max-width: var(--maxw);
  margin: 0 auto clamp(3rem, 8vw, 6rem);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.cta__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(600px 320px at 50% -20%, rgba(78, 201, 176, 0.1), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta__logo { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 1.2rem; box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.8); }
.cta__inner h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; margin-bottom: 0.7rem; }
.cta__inner p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 2rem; }
.cta__inner .hero__cta { justify-content: center; }

/* =========================== footer =========================== */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.6rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0 auto; }
.footer__links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--faint); font-size: 0.85rem; }

/* =========================== scroll reveal =========================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: none; }

/* =========================== responsive =========================== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__device { order: -1; margin-bottom: 1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__line { display: none; }
  .tiers { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .tier--featured { order: -1; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 0.6rem; }
  .steps { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
  .footer__links { margin: 0; justify-content: center; }
}

/* =========================== reduced motion =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .phone { animation: none; transform: rotateX(3deg) rotateY(-6deg); }
  .caret, .blink { opacity: 1; }
}

/* =========================== legal pages (privacy / terms) =========================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(7rem, 12vw, 9rem) clamp(1rem, 5vw, 2rem) 4rem;
}
.legal__head {
  margin-bottom: 2.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--divider);
}
.legal__head h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.legal__updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.7rem; }
.legal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.6rem 0 0.9rem;
  scroll-margin-top: 90px;
}
.legal h3 { font-size: 1.1rem; font-weight: 700; margin: 1.7rem 0 0.6rem; color: var(--text); }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--teal); text-decoration: none; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 700; }
.legal em { color: var(--text-2); }
.legal hr { border: none; border-top: 1px solid var(--divider); margin: 2.4rem 0; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.4rem 1.6rem; }
.legal .toc h2 { margin-top: 0; }
.legal .toc ol { margin: 0; padding-left: 1.3rem; }
.legal .toc li { color: var(--text-2); }
.legal .toc a { display: inline-block; padding: 0.15rem 0; }
.legal__lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
}
.legal__lead p:last-child { margin-bottom: 0; }

/* =========================== helpers page =========================== */
.helpers-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(6.5rem, 11vw, 8.5rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.helper {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.helper__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}
.helper__name {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
}
.helper__tag { color: var(--text-2); font-size: 1.05rem; margin-bottom: 1.6rem; }
.helper__docs h4,
.helper__dl-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.7rem;
}
.helper__docs p { color: var(--text-2); font-size: 0.98rem; margin-bottom: 0.9rem; }
.helper__note { color: var(--muted); font-size: 0.9rem; }

/* code blocks + inline code */
.code {
  font-family: var(--mono);
  font-size: 0.86rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
pre.code {
  display: block;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
}
.code--inline {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--teal);
  white-space: nowrap;
}
.code__cmd { color: var(--teal); }
.code__muted { color: var(--muted); }

/* downloads grid */
.helper__dl-title { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--divider); }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.dl-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dl-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}
.dl-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.dl-actions .btn { width: 100%; justify-content: space-between; }
.dl-actions .btn small { color: var(--muted); }
.dl-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.9rem; }

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

/* legal page: verbatim policy rendered on a readable "paper" sheet */
.nav--solid {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--divider);
}
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(6.5rem, 11vw, 8.5rem) clamp(1rem, 4vw, 2rem) 4rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.legal-back:hover { color: var(--teal); }
.legal-paper {
  background: #fff;
  color: #000;
  border-radius: 16px;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  overflow-wrap: break-word;
}
/* keep the embedded policy tidy inside the sheet */
.legal-paper img,
.legal-paper svg { max-width: 100%; height: auto; }
.legal-paper ul { padding-left: 1.4rem; }
