/* ============================================================
   Couple — marketing site
   Design language mirrors the app's "Ivory" theme:
   warm off-white paper, white rounded cards, soft pink accents.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — straight from the app's Ivory theme */
  --paper: #fcfaf8;
  --paper-warm: #f7f2ee;
  --card: #ffffff;
  --line: #f0ebe1;

  /* Ink. Slightly deeper than the app's #4A4A4A so body copy holds up
     at web reading sizes on a warm background. */
  --ink: #35303a;
  --ink-mid: #6b6470;
  --ink-soft: #918a97;

  /* Rose ramp. The app's #FF8FA3 is gorgeous but only ~2.2:1 on paper,
     so it stays decorative — anything carrying text uses 600/700. */
  --rose-100: #ffe3ea;
  --rose-200: #ffd0dc;
  --rose-300: #ffb3c1;
  --rose-400: #ff8fa3;
  --rose-500: #f0798f;
  --rose-600: #d14a6a;
  --rose-700: #b83e5e;

  /* Pastel accents lifted from the app's Quick Access tiles */
  --teal: #4ecdc4;
  --teal-ink: #0b7a70;
  --violet: #9d4edd;
  --violet-ink: #6d2ba8;
  --amber: #ffb020;
  --amber-ink: #8a5a00;
  --green: #4caf50;
  --green-ink: #2b6e2e;
  --navy: #3d5a80;
  --peach: #ffe5d9;

  /* Type */
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Great Vibes", cursive;
  --font-hand: "Caveat", cursive;

  /* Rhythm */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shell: min(1180px, 100% - 3rem);
  --section-y: clamp(5rem, 11vw, 9rem);

  --shadow-sm: 0 2px 8px rgba(53, 48, 58, 0.05);
  --shadow: 0 12px 30px rgba(53, 48, 58, 0.07);
  --shadow-lg: 0 30px 70px rgba(53, 48, 58, 0.12);
  --shadow-rose: 0 18px 40px rgba(209, 74, 106, 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--rose-600);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--rose-200);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
}

.section-head .lead {
  margin-top: 1rem;
  color: var(--ink-mid);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rose-600);
  letter-spacing: 0;
  /* Great Vibes sits small on its em box — nudge it back up to optical size */
  font-size: 1.22em;
  line-height: 0.9;
  padding-inline: 0.06em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  box-shadow: var(--shadow-rose);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(209, 74, 106, 0.34); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Store badges ---------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem 0.7rem 1.15rem;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(53, 48, 58, 0.22);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(53, 48, 58, 0.28); }
.store-badge svg { flex: none; }
.store-badge span { display: block; line-height: 1.2; }
.store-badge .store-kicker {
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.72;
}
.store-badge .store-name { font-size: 1.05rem; font-weight: 600; }

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease,
    padding 0.4s ease;
}
.site-header.is-stuck {
  padding-block: 0.6rem;
  background: rgba(252, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(240, 235, 225, 0.9), 0 8px 30px rgba(53, 48, 58, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(209, 74, 106, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-mid);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--rose-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 0.7rem 1.4rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 15vw, 11rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink-mid);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Soft focal glow + drifting blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.blob-1 { width: 480px; height: 480px; background: var(--rose-200); top: -8%; right: -6%; }
.blob-2 { width: 380px; height: 380px; background: var(--peach); bottom: -12%; left: -8%; opacity: 0.7; }
.blob-3 { width: 300px; height: 300px; background: #d9f4f1; top: 42%; left: 44%; opacity: 0.5; }

/* Floating hearts */
.heart {
  position: absolute;
  color: var(--rose-300);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 268px;
  background: #1c1a20;
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex: none;
}
.phone::after {
  /* speaker notch */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 2;
}
/* The frame is sized by the screen, and the screen matches the source
   screenshots (all 9:16) — so nothing is ever cropped. */
.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-phones .phone-a { transform: rotate(-5deg) translateX(-6%); z-index: 1; }
.hero-phones .phone-b {
  position: absolute;
  right: -2%;
  bottom: -8%;
  transform: rotate(7deg);
  max-width: 196px;
  z-index: 2;
}

/* Floating glass chip on the hero art */
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip-1 { top: 8%; left: -6%; }
.chip-2 { bottom: 10%; left: -8%; }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper-warm);
  padding-block: 1.1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-mid);
  white-space: nowrap;
}
.ticker-item svg { color: var(--rose-500); flex: none; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s ease;
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--rose-200);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--ink-mid); font-size: 0.94rem; }

/* ---------- Showcase (pinned horizontal) ---------- */
.showcase { background: var(--paper-warm); border-block: 1px solid var(--line); }

.showcase-viewport { overflow: hidden; }

.showcase-track {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-inline: max(1.5rem, calc((100vw - var(--shell)) / 2));
  align-items: center;
}

.showcase-panel {
  flex: none;
  width: min(78vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.showcase-panel .phone { max-width: 250px; }
.showcase-panel h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.showcase-panel p { color: var(--ink-mid); font-size: 0.92rem; max-width: 22rem; }

.showcase-progress {
  width: min(240px, 60%);
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 3rem auto 0;
  overflow: hidden;
}
.showcase-progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-600));
  transform-origin: left;
  transform: scaleX(0);
}

/* Native scroll-snap fallback (mobile / reduced motion) */
.showcase-viewport.is-swipe {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.showcase-viewport.is-swipe::-webkit-scrollbar { display: none; }
.showcase-viewport.is-swipe .showcase-panel { scroll-snap-align: center; }

/* ---------- Split feature (pets) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.1rem; }
.split p { color: var(--ink-mid); margin-bottom: 1.5rem; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.97rem;
  color: var(--ink-mid);
}
.tick-list svg { flex: none; margin-top: 0.28rem; color: var(--rose-600); }

.split-art {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  position: relative;
}
/* Two phones + the gap must never exceed the column, or the whole page
   gains a horizontal scrollbar on narrow screens. */
.split-art .phone { max-width: min(220px, calc(50% - 0.625rem)); }
.split-art .phone:first-child { transform: rotate(-4deg) translateY(1.5rem); }
.split-art .phone:last-child { transform: rotate(4deg); }

/* ---------- Privacy promise ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.promise-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.promise-card .feature-icon { margin-inline: auto; width: 48px; height: 48px; }
.promise-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.promise-card p { font-size: 0.89rem; color: var(--ink-mid); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.faq-q .faq-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-700);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}
.faq-item.is-open .faq-mark { transform: rotate(45deg); background: var(--rose-200); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p {
  padding: 0 1.5rem 1.35rem;
  color: var(--ink-mid);
  font-size: 0.95rem;
}

/* ---------- Closing CTA ---------- */
.cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: var(--shadow-rose);
  color: #fff;
}
.cta-card h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.cta-card .script { color: #fff; }
.cta-card p {
  color: rgba(255, 255, 255, 0.92);
  margin: 1rem auto 2rem;
  max-width: 34rem;
}
.cta-card .store-row { justify-content: center; }
.cta-card .store-badge {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(120, 30, 55, 0.24);
}
.cta-card .cta-fine {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}
.cta-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(40px);
  top: -30%;
  right: -8%;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.5rem;
  margin-top: var(--section-y);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-about { max-width: 22rem; }
.footer-about p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.footer-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-mid);
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--rose-700); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-bottom .made {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--rose-600);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-top: clamp(8rem, 14vw, 10rem);
  padding-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-hero .updated {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: var(--section-y);
}

.legal-toc {
  position: sticky;
  top: 6.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.legal-toc h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; counter-reset: toc; }
.legal-toc a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.87rem;
  color: var(--ink-mid);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.legal-toc a:hover { background: var(--rose-100); color: var(--rose-700); }
.legal-toc a.is-active { background: var(--rose-100); color: var(--rose-700); font-weight: 600; }

.legal-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.legal-body section + section { margin-top: 2.75rem; }
.legal-body h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 7rem;
}
.legal-body h3 {
  font-size: 1.02rem;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.legal-body p { color: var(--ink-mid); margin-bottom: 1rem; }
.legal-body ul { color: var(--ink-mid); padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.legal-body li::marker { color: var(--rose-400); }
.legal-body a { color: var(--rose-700); text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-intro {
  background: var(--rose-100);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.25rem;
}
.legal-intro p { color: var(--rose-700); margin: 0; font-size: 0.93rem; }

.legal-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 34rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th { font-weight: 600; color: var(--ink); background: var(--paper-warm); }
.legal-table td { color: var(--ink-mid); }
.legal-table tr:last-child td { border-bottom: 0; }

/* ---------- Reveal (JS adds .is-in) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --shell: min(1180px, 100% - 2.5rem); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .store-row, .hero-note { justify-content: center; }
  .hero-phones { min-height: 26rem; margin-top: 1rem; }
  .chip-1 { top: 6%; left: 2%; }
  .chip-2 { bottom: 8%; left: 0; }

  .split { grid-template-columns: 1fr; }
  .split-art { order: -1; }

  /* minmax(0, 1fr) rather than 1fr: a plain 1fr track has min-width:auto,
     so the wide data table's min-width would push the whole page sideways
     instead of scrolling inside its own .legal-table-wrap. */
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }

  .nav-links {
    position: absolute;
    inset: calc(100% + 0.6rem) 0 auto 0;
    width: var(--shell);
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 0.7rem 0.8rem; border-radius: 11px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--rose-100); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 560px) {
  :root { --shell: min(1180px, 100% - 2rem); }
  .hero-phones .phone-b { display: none; }
  .hero-phones .phone-a { transform: none; }
  .split-art .phone:first-child { transform: rotate(-4deg); }
  .store-badge { flex: 1 1 auto; justify-content: center; }
  .footer-cols { gap: 2rem; width: 100%; }
}

/* ---------- Motion preferences ---------- */
@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;
  }
  /* Anything the JS would have animated in must be visible without it. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .heart, .blob-3 { display: none; }
}

/* Print — legal pages get printed / archived a lot */
@media print {
  .site-header, .site-footer, .legal-toc, .blob, .skip-link { display: none !important; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-body { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}
