/* ============================================================
   Pawmark — Shared stylesheet
   Used by: index.html, privacy.html, terms.html, support.html
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (from brief — DO NOT change these defaults) */
  --primary:        #e63946;
  --primary-dark:   #c41e3a;
  --secondary:      #f77f00;
  --accent:         #fcbf49;
  --navy:           #0a1c33;
  --navy-deep:      #0a3a52;

  /* Surfaces — flipped by [data-theme="dark"] below */
  --bg:             #f5f5f5;
  --bg-elevated:    #ffffff;
  --bg-muted:       #efefee;
  --text:           #1a1a1a;
  --text-light:     #666666;
  --text-muted:     #9a9a9a;
  --border:         rgba(10, 28, 51, 0.08);
  --shadow-card:    0 1px 2px rgba(10, 28, 51, 0.05), 0 8px 24px rgba(10, 28, 51, 0.06);
  --shadow-lift:    0 30px 80px -20px rgba(10, 28, 51, 0.45), 0 8px 24px rgba(10, 28, 51, 0.18);

  /* On-navy surfaces always stay light */
  --on-navy-text:   rgba(255, 255, 255, 0.92);
  --on-navy-muted:  rgba(255, 255, 255, 0.65);
  --on-navy-faint:  rgba(255, 255, 255, 0.12);

  /* Density (set via [data-density]) */
  --section-py-d:   120px;
  --section-py-m:   64px;
  --gap-card:       24px;
  --radius-card:    20px;
  --radius-btn:     14px;
  --radius-chip:    999px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --font-serif: "Charter", "Iowan Old Style", "Georgia", "Cambria", serif;

  /* Hex animation */
  --hex-anim-duration: 18s;
  --hex-opacity:    0.10;

  --container:      1100px;
}

[data-theme="dark"] {
  --bg:           #060f1c;
  --bg-elevated:  #0f1f37;
  --bg-muted:     #0a1830;
  --text:         #f1f3f7;
  --text-light:   #aab4c2;
  --text-muted:   #7a8597;
  --border:       rgba(255, 255, 255, 0.08);
  --shadow-card:  0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.25);
  --shadow-lift:  0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0,0,0,0.35);
}

[data-density="compact"]  { --section-py-d: 88px;  --section-py-m: 48px; --gap-card: 16px; }
[data-density="spacious"] { --section-py-d: 160px; --section-py-m: 80px; --gap-card: 32px; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 900; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-py-m) 0; }
@media (min-width: 1024px) { section { padding: var(--section-py-d) 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--primary);
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 28, 51, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}
.site-header.is-light {
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 18px; letter-spacing: -0.01em;
  color: var(--on-navy-text);
}
.site-header.is-light .brand { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary);
  display: grid; place-items: center;
  color: white;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--on-navy-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--on-navy-text); }
.site-header.is-light .nav-links a { color: var(--text-light); }
.site-header.is-light .nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--on-navy-text);
  transition: background 0.2s, transform 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.site-header.is-light .theme-toggle { background: rgba(10,28,51,0.06); color: var(--text); }
.site-header.is-light .theme-toggle:hover { background: rgba(10,28,51,0.10); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Language switcher */
.lang-switcher {
  position: relative;
  font-family: var(--font-sans);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--on-navy-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.16); }
.lang-btn svg { width: 12px; height: 12px; opacity: 0.7; }
.site-header.is-light .lang-btn { background: rgba(10,28,51,0.06); color: var(--text); }
.site-header.is-light .lang-btn:hover { background: rgba(10,28,51,0.10); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(10,28,51,0.20);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.lang-menu a:hover { background: var(--bg-muted); }
.lang-menu a.active { color: var(--primary); font-weight: 700; }
.lang-menu a .check {
  margin-left: auto;
  width: 16px; height: 16px;
  color: var(--primary);
  opacity: 0;
}
.lang-menu a.active .check { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background-color 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(230, 57, 70, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--on-navy-text);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.45) inset;
}
.btn-outline:hover { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9) inset; }
.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border) inset;
}
.btn-ghost:hover { box-shadow: 0 0 0 1.5px var(--primary) inset; color: var(--primary); }
.btn svg { width: 18px; height: 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--on-navy-text);
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { min-height: 100vh; padding: 180px 0 100px; } }

.hex-field {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: var(--hex-opacity);
  transition: opacity 0.6s ease;
}
.hex-field svg { width: 100%; height: 100%; }

.hex-anim .hex-float {
  animation: hex-float var(--hex-anim-duration) ease-in-out infinite alternate;
  transform-origin: center;
}
.hex-anim .hex-float-2 { animation-duration: calc(var(--hex-anim-duration) * 0.72); animation-delay: -3s; }
.hex-anim .hex-float-3 { animation-duration: calc(var(--hex-anim-duration) * 1.35); animation-delay: -7s; }

@keyframes hex-float {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-2%, -3%, 0); }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 60px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-chip);
  background: rgba(252, 191, 73, 0.14);
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero h1 {
  font-size: clamp(44px, 7.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: white;
  margin-bottom: 24px;
}
.hero h1 .em {
  color: transparent;
  background: linear-gradient(95deg, var(--primary) 0%, var(--secondary) 60%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  display: inline-block;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--on-navy-text);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-size: 13px;
  color: var(--on-navy-muted);
}
.hero-meta .dot-sep { width: 3px; height: 3px; background: var(--on-navy-muted); border-radius: 50%; }
.hero-meta .stars { display: inline-flex; gap: 2px; color: var(--accent); }

/* iPhone mockup */
.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-stage::after {
  content: "";
  position: absolute;
  bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #111;
  padding: 10px;
  box-shadow:
    0 0 0 1.5px #2a2e36,
    0 30px 90px -20px rgba(0,0,0,0.6),
    0 18px 40px rgba(0,0,0,0.35);
  z-index: 1;
}
@media (min-width: 1024px) { .phone { width: 320px; } }
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--navy);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-island {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

/* Floating chip on phone */
.phone-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: 12px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 3;
  animation: chip-bob 4.5s ease-in-out infinite alternate;
}
.phone-chip.tl { top: 12%; left: -22px; }
.phone-chip.br { bottom: 18%; right: -28px; animation-delay: -2s; }
.phone-chip .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }
@keyframes chip-bob {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ---------- Section heading ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  margin-top: 14px;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-light);
  max-width: 620px;
}

/* ---------- Feature cards (Section 2) ---------- */
.section-light { background: var(--bg-elevated); }
.section-muted { background: var(--bg); }

.feature-grid {
  display: grid;
  gap: var(--gap-card);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(10, 28, 51, 0.05), 0 24px 50px rgba(10, 28, 51, 0.10);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}
[data-theme="dark"] .feature-card { background: var(--bg-muted); }
.feature-card .ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  font-size: 26px;
  margin-bottom: 22px;
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.feature-card p { color: var(--text-light); font-size: 15.5px; line-height: 1.55; }

/* ---------- How it works (Section 3) ---------- */
.steps {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
}
.step {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step.reverse .step-visual { order: 2; }
}
.step-number {
  font-size: clamp(72px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  color: var(--primary);
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  display: inline-block;
  margin-bottom: 18px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.step-body h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.step-body p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 460px;
}
.step-visual {
  position: relative;
  display: flex; justify-content: center;
}

/* Smaller phone for step screenshots */
.phone-sm {
  width: 230px;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  background: #111;
  padding: 7px;
  box-shadow: 0 0 0 1px #2a2e36, var(--shadow-lift);
  position: relative;
}
.phone-sm .phone-screen { border-radius: 27px; }
.phone-sm .phone-island { top: 12px; width: 70px; height: 20px; }

/* Animated SVG illustration */
.illus-walk {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: var(--bg-muted);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .illus-walk { background: var(--bg-elevated); }
.illus-walk svg { width: 100%; height: 100%; }

.path-trace {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: trace 6s ease-in-out infinite;
}
@keyframes trace {
  0%   { stroke-dashoffset: 800; }
  60%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.hex-fill {
  opacity: 0;
  animation: hex-pop 6s ease-in-out infinite;
}
@keyframes hex-pop {
  0%, 30%   { opacity: 0; transform: scale(0.6); }
  55%, 85%  { opacity: 1; transform: scale(1); }
  100%      { opacity: 0; transform: scale(1); }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--navy);
  color: var(--on-navy-text);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(3, 1fr); padding: 56px 48px; } }
.stats-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23' fill='none' stroke='%23e63946' stroke-width='1.5' opacity='0.18'/></svg>");
  background-size: 80px 92px;
  opacity: 0.55;
  pointer-events: none;
}
.stat { position: relative; }
.stat .num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  line-height: 1;
  background: linear-gradient(140deg, #fff 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stat .lbl { display: block; margin-top: 10px; color: var(--on-navy-muted); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Share gallery (Section 5) ---------- */
.share-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.share-grid-single {
  max-width: 360px;
  margin-inline: auto;
}

.share-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: transform 0.4s ease;
}
.share-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.share-card img { width: 100%; height: 100%; object-fit: cover; }

.share-caption {
  text-align: center;
  margin: 32px auto 0;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Privacy block (Section 6) ---------- */
.privacy-block {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) { .privacy-block { grid-template-columns: 1fr 1fr; gap: 80px; } }
.privacy-block h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.025em;
}
.privacy-block .lead { font-size: 18px; color: var(--text-light); margin-top: 22px; }
.privacy-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.privacy-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--text);
}
.privacy-list li::before {
  content: "✕";
  flex-shrink: 0;
  width: 24px; height: 24px;
  margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 11px; font-weight: 900;
}
.privacy-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1.5px solid color-mix(in oklab, var(--primary) 40%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.privacy-link:hover { color: var(--primary-dark); border-bottom-color: var(--primary-dark); }

.privacy-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
  padding: 36px;
  display: flex;
  align-items: flex-end;
  color: var(--on-navy-text);
  box-shadow: var(--shadow-lift);
}
.privacy-visual .lock-grid {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.10'/></svg>");
  background-size: 80px 92px;
}
.privacy-visual .lock-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 20px;
  width: 100%;
  backdrop-filter: blur(8px);
}
.privacy-visual .lock-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--on-navy-text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.privacy-visual .lock-row:last-child { border-bottom: 0; }
.privacy-visual .lock-row .ico {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(252, 191, 73, 0.12);
  color: var(--accent);
}
.privacy-visual .lock-row .ico svg { width: 16px; height: 16px; }
.privacy-visual .lock-row .b { flex: 1; }
.privacy-visual .lock-row .b strong { display: block; color: white; font-weight: 700; font-size: 14px; }
.privacy-visual .lock-row .b span { color: var(--on-navy-muted); font-size: 12px; }
.privacy-visual .lock-row .pill {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(72, 187, 120, 0.15);
  color: #5fd592;
}

/* ---------- Final CTA ---------- */
.cta-final {
  background: var(--navy);
  color: var(--on-navy-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23' fill='none' stroke='%23e63946' stroke-width='1.5' opacity='0.30'/></svg>");
  background-size: 80px 92px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.cta-final p {
  font-size: 18px;
  color: var(--on-navy-muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #060f1c;
  color: var(--on-navy-text);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: white; margin-bottom: 14px; }
.footer-brand p { color: var(--on-navy-muted); font-size: 14px; line-height: 1.6; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-navy-muted); font-weight: 700; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  color: var(--on-navy-text);
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 14.5px; color: var(--on-navy-text); }
.footer-col p span { display: block; color: var(--on-navy-muted); font-size: 13px; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 14px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.footer-bottom {
  padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--on-navy-muted); font-size: 13px;
}
.footer-bottom .signature { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hex-anim .hex-float { animation: none; }
  .phone-chip { animation: none; }
  .path-trace, .hex-fill { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

/* ============================================================
   LEGAL / DOC pages (privacy, terms, support)
   ============================================================ */

.doc-hero {
  padding: 160px 0 60px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--on-navy-text);
  position: relative;
  overflow: hidden;
}
.doc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23' fill='none' stroke='%23e63946' stroke-width='1.5' opacity='0.18'/></svg>");
  background-size: 80px 92px;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  pointer-events: none;
}
.doc-hero .container { position: relative; max-width: 760px; }
.doc-hero .crumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: 18px;
}
.doc-hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  color: white;
  letter-spacing: -0.025em;
}
.doc-hero .updated { margin-top: 14px; font-size: 14px; color: var(--on-navy-muted); }

.doc {
  padding: 64px 0 96px;
}
.doc .container { max-width: 720px; }
.doc h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.doc h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.doc h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}
.doc p, .doc li {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text);
}
.doc p + p { margin-top: 18px; }
.doc ul, .doc ol { margin: 18px 0; padding-left: 24px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--text); font-weight: 700; }
.doc a {
  color: var(--primary);
  border-bottom: 1.5px solid color-mix(in oklab, var(--primary) 40%, transparent);
  transition: border-color 0.2s;
}
.doc a:hover { border-bottom-color: var(--primary); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  background: var(--bg-elevated);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.doc th, .doc td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc th {
  background: var(--bg-muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.doc tr:last-child td { border-bottom: 0; }

/* Support — FAQ accordion */
.faq-search {
  position: relative;
  margin-bottom: 32px;
}
.faq-search input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 16px 20px 16px 48px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 14%, transparent);
}
.faq-search svg {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--text-muted);
}

.faq-group { margin-bottom: 40px; }
.faq-group h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s;
}
.faq-item[open] .chev { transform: rotate(45deg); background: var(--primary); color: white; }
.faq-item .chev::before { content: "+"; font-size: 18px; line-height: 0.8; font-weight: 500; }
.faq-item .body {
  padding: 0 22px 20px;
}
.faq-item .body p, .faq-item .body li {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-light);
}
.faq-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 15px;
}
.faq-empty.show { display: block; }

.contact-card {
  margin-top: 56px;
  padding: 36px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
}
.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.015em;
}
.contact-card p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--text-light);
}
.contact-card .email {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-sans);
}

/* ============================================================
   Tweaks panel — strip these before deploying to production
   ============================================================ */
.tweaks-launcher {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 200;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.45);
  transition: transform 0.2s;
}
.tweaks-launcher:hover { transform: scale(1.05); }
.tweaks-launcher svg { width: 22px; height: 22px; }

.tweaks-panel {
  position: fixed;
  bottom: 80px; right: 20px;
  z-index: 201;
  width: 280px;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(10,28,51,0.25);
  padding: 18px;
  display: none;
  font-family: var(--font-sans);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-light); margin: 0 0 12px; font-weight: 700;
}
.tweaks-panel .tweak-row { margin-bottom: 14px; }
.tweaks-panel .tweak-row:last-child { margin-bottom: 0; }
.tweaks-panel .label {
  font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block;
}
.swatches { display: flex; gap: 8px; }
.swatches button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.swatches button:hover { transform: scale(1.1); }
.swatches button.active { border-color: var(--text); }
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-muted);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 7px;
  color: var(--text-light);
  transition: background 0.15s, color 0.15s;
}
.seg button.active { background: var(--bg-elevated); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
