/* ============================================================
   DoseCurve — site styles
   Tokens mirror src/theme.ts (app design system)
   ============================================================ */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #151517;
  --card: #1c1c1e;
  --border: #2c2c2e;
  --border-strong: #3a3a3c;
  --text: #ffffff;
  --text-2: #a0a0a5;
  --text-3: #6b6b70;

  --accent: #0a84ff;
  --accent-deep: #0060df;
  --accent-bg: #0a2440;
  --accent-soft: #041020;
  --accent-text: #66b2ff;

  --teal: #64d2ff;
  --teal-bright: #8de0ff;
  --green: #30d158;
  --green-bright: #61ff82;
  --rose: #ff375f;
  --amber: #ff9f0a;
  --red: #ff453a;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

/* Ambient background: dot grid + corner glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(100, 210, 255, 0.07), transparent 60%),
    radial-gradient(1100px 640px at 12% -14%, rgba(10, 132, 255, 0.16), transparent 62%),
    radial-gradient(1000px 800px at 50% 118%, rgba(10, 132, 255, 0.08), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 40%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 40%, transparent 75%);
  pointer-events: none;
}

::selection { background: rgba(10, 132, 255, 0.35); }

img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* ============ Typography ============ */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}
.eyebrow.teal { color: var(--teal); }
.eyebrow.green { color: var(--green-bright); }

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p {
  color: var(--text-2);
  font-size: 17px;
  margin: 16px 0 0;
}

.grad {
  background: linear-gradient(100deg, var(--accent-text) 0%, var(--teal) 55%, var(--green-bright) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #0b0b0d;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 20px 10px 14px;
  color: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-store:hover {
  border-color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.btn-store .store-copy { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store .store-top {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
}
.btn-store .store-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

/* ============ Nav ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: rgba(44, 44, 46, 0.8);
}
.nav-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(160deg, #0e5bb8, #041020 80%);
  border: 1px solid rgba(102, 178, 255, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(10, 132, 255, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ============ Hero ============ */

.hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(48, 209, 88, 0.35);
  background: rgba(15, 61, 31, 0.25);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.hero h1 {
  font-size: clamp(32px, 6vw, 66px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 22px;
}
.hero h1 .keep-line { white-space: nowrap; }
.hero-sub {
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  max-width: 34em;
  margin: 0 0 32px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 30px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-chips span {
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.015);
}

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(308px, 74vw);
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(180deg, #26262a, #0d0d0f);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.75),
    0 0 120px rgba(10, 132, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 36px;
  background: #000;
}
.phone::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
  border: 2px solid #1e1e21;
  z-index: 3;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(21, 21, 23, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  animation: bob 6s ease-in-out infinite;
}
.float-chip .fc-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.3;
}
.float-chip .fc-value { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.float-chip .fc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.fc-1 { top: 7%; right: max(-8px, 2%); animation-delay: 0.4s; }
.fc-1 .fc-dot { background: var(--amber); box-shadow: 0 0 12px rgba(255, 159, 10, 0.7); }
.fc-2 { bottom: 7%; left: -64px; animation-delay: 1.6s; }
.fc-2 .fc-dot { background: var(--green); box-shadow: 0 0 12px rgba(48, 209, 88, 0.7); }
.fc-3 { bottom: 6%; right: max(-6px, 4%); animation-delay: 2.6s; }
.fc-3 .fc-dot { background: var(--teal); box-shadow: 0 0 12px rgba(100, 210, 255, 0.7); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Stat strip */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(21, 21, 23, 0.4);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-block: 26px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  padding-inline: 12px;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============ Privacy banner (hero follow-up) ============ */

.privacy-banner {
  border: 1px solid rgba(10, 132, 255, 0.3);
  background:
    radial-gradient(400px 140px at 8% 50%, rgba(10, 132, 255, 0.14), transparent 70%),
    var(--accent-soft);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}
.privacy-banner .shield { flex: none; color: var(--accent-text); }
.privacy-banner h3 { font-size: 19px; margin-bottom: 6px; }
.privacy-banner p { margin: 0; color: var(--text-2); font-size: 15px; }
.privacy-banner a { color: var(--accent-text); font-weight: 500; }
.privacy-banner a:hover { text-decoration: underline; }

/* ============ Features ============ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.9), rgba(18, 18, 20, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 178, 255, 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5), 0 0 44px rgba(10, 132, 255, 0.1);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  border: 1px solid rgba(102, 178, 255, 0.28);
  color: var(--accent-text);
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-icon.teal { background: var(--teal-bg); border-color: rgba(100, 210, 255, 0.3); color: var(--teal); }
.feature-icon.green { background: var(--green-bg); border-color: rgba(48, 209, 88, 0.3); color: var(--green-bright); }
.feature-icon.amber { background: #2d2005; border-color: rgba(255, 159, 10, 0.3); color: var(--amber); }
.feature-icon.rose { background: #33101a; border-color: rgba(255, 55, 95, 0.32); color: #ff6482; }
.feature h3 { font-size: 18.5px; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.feature .feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.feature .feature-tag.pro { color: var(--amber); border-color: rgba(255, 159, 10, 0.4); }

/* ============ Tour ============ */

.tour-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 9vw, 110px);
}
.tour-row:last-child { margin-bottom: 0; }
.tour-row.flip .tour-visual { order: -1; }

.tour-visual { display: flex; justify-content: center; position: relative; }
.tour-visual .phone { transform: rotate(-1.6deg); transition: transform 0.3s ease; }
.tour-row.flip .tour-visual .phone { transform: rotate(1.6deg); }
.tour-visual .phone:hover { transform: rotate(0deg) scale(1.015); }

.tour-visual.glow-blue .phone { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 110px rgba(10, 132, 255, 0.2); }
.tour-visual.glow-teal .phone { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 110px rgba(100, 210, 255, 0.16); }
.tour-visual.glow-green .phone { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 110px rgba(48, 209, 88, 0.15); }
.tour-visual.glow-amber .phone { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 110px rgba(255, 159, 10, 0.14); }
.tour-visual.glow-rose .phone { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 110px rgba(255, 55, 95, 0.15); }

.tour-copy h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.tour-copy > p { color: var(--text-2); font-size: 16.5px; line-height: 1.7; margin: 0 0 20px; }

.tour-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tour-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.tour-points .tp-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
  background: rgba(10, 132, 255, 0.14);
  border: 1px solid rgba(10, 132, 255, 0.4);
  color: var(--accent-text);
}
.tour-points li b { color: var(--text); font-weight: 500; }

/* ============ Widgets band ============ */

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(100, 210, 255, 0.09), transparent 70%),
    rgba(21, 21, 23, 0.5);
  padding-block: clamp(64px, 8vw, 96px);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.widget-card {
  background: linear-gradient(180deg, #1e1e21, #131315);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.widget-card:hover { transform: translateY(-4px); border-color: rgba(100, 210, 255, 0.45); }
.widget-card .wc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal-bg);
  border: 1px solid rgba(100, 210, 255, 0.3);
  color: var(--teal);
  margin-bottom: 12px;
}
.widget-card h4 { font-size: 15px; margin-bottom: 4px; }
.widget-card p { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }

/* ============ Pro / pricing ============ */

.plans {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}
.plan {
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 36px);
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.9), rgba(17, 17, 19, 0.9));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.plan.pro {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(23, 23, 26, 0.96), rgba(13, 13, 16, 0.96)) padding-box,
    linear-gradient(160deg, rgba(10, 132, 255, 0.65), rgba(100, 210, 255, 0.25) 50%, rgba(48, 209, 88, 0.35)) border-box;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 70px rgba(10, 132, 255, 0.12);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00131f;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
  border-radius: var(--r-pill);
  padding: 5px 14px;
}
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .plan-sub { color: var(--text-2); font-size: 14.5px; margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 13px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.plan li b { color: var(--text); font-weight: 500; }
.plan li .pi {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: var(--green-bright);
}
.plan li .pi.off { background: rgba(255, 255, 255, 0.03); border-color: var(--border); color: var(--text-3); }
.plan .plan-foot { margin-top: auto; padding-top: 26px; }
.plan-note {
  margin-top: 16px;
  min-height: 34px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
}
.plan-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ============ FAQ ============ */

.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(28, 28, 30, 0.55);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq[open] { border-color: rgba(102, 178, 255, 0.4); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.faq[open] summary .faq-plus { transform: rotate(45deg); border-color: var(--accent-text); color: var(--accent-text); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.faq .faq-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ CTA ============ */

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(10, 132, 255, 0.35);
  background:
    radial-gradient(560px 260px at 50% -60px, rgba(10, 132, 255, 0.28), transparent 70%),
    radial-gradient(400px 200px at 85% 120%, rgba(100, 210, 255, 0.12), transparent 70%),
    #0a0a0c;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
}
.cta-card h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 14px; }
.cta-card p { color: var(--text-2); font-size: 17px; max-width: 34em; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ============ Launch-state toggle (see assets/js/config.js) ============ */
/* <html> gets .app-live or .app-coming-soon from config.js. */
.when-soon { display: none; }
html.app-coming-soon .when-soon { display: inline; }
html.app-coming-soon .when-live { display: none; }
html.app-coming-soon [data-app-cta] {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}
html.app-coming-soon [data-app-cta-hide] { display: none; }

/* ============ Footer ============ */

footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.7);
  padding: 56px 0 32px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-brand p { color: var(--text-3); font-size: 13.5px; line-height: 1.7; margin: 14px 0 0; max-width: 36em; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--text-2); font-size: 14.5px; transition: color 0.15s ease; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.foot-bottom a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a:hover { color: var(--text-2); }

/* ============ Privacy page ============ */

.page-head { padding: calc(var(--nav-h) + clamp(44px, 7vw, 80px)) 0 clamp(28px, 4vw, 44px); }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; margin-bottom: 14px; }
.page-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(72px, 9vw, 110px);
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(28, 28, 30, 0.5);
  padding: 20px 18px;
}
.toc h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  padding-top: 2px;
}
.toc a:hover { color: var(--text); }

.policy { max-width: 720px; }
.policy .tldr {
  border: 1px solid rgba(10, 132, 255, 0.35);
  background:
    radial-gradient(400px 120px at 10% 0%, rgba(10, 132, 255, 0.12), transparent 70%),
    var(--accent-soft);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 44px;
}
.policy .tldr h2 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.policy .tldr p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.policy .tldr p:last-child { margin-bottom: 0; }

.policy section { margin-bottom: 40px; }
.policy h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.policy h2 .sec-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  letter-spacing: 0.08em;
}
.policy h3 { font-size: 16.5px; margin: 22px 0 8px; }
.policy p { color: var(--text-2); font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; }
.policy p strong, .policy li strong { color: var(--text); font-weight: 500; }
.policy ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.policy ul li { margin-bottom: 8px; }
.policy ul li::marker { color: var(--accent-text); }

.policy table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 6px 0 18px;
  font-size: 14.5px;
}
.policy th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(28, 28, 30, 0.8);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.policy td {
  padding: 12px 16px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(44, 44, 46, 0.6);
  vertical-align: top;
  line-height: 1.55;
}
.policy tr:last-child td { border-bottom: none; }
.policy td.yes { color: var(--green-bright); font-family: var(--mono); font-size: 13px; }
.policy td.no { color: var(--text-3); font-family: var(--mono); font-size: 13px; }

.policy .callout {
  border-left: 3px solid var(--accent);
  background: rgba(10, 36, 64, 0.35);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.policy .callout strong { color: var(--text); }

.policy a { text-decoration: underline; text-underline-offset: 3px; }

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(28, 28, 30, 0.6);
  padding: 24px 26px;
}
.contact-card b { font-size: 16px; }

/* ============ Reveal animations ============ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (max-height: 820px) and (min-width: 881px) {
  .hero .phone { width: 264px; }
  .fc-2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
  .pulse-dot { animation: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-grid { grid-template-columns: repeat(3, 1fr); }
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 10px 18px; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 12px; }
  .hero { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .tour-row { grid-template-columns: 1fr; gap: 36px; }
  .tour-row.flip .tour-visual { order: 0; }
  .tour-visual { margin-bottom: 4px; }
  .tour-copy { text-align: center; }
  .tour-points { text-align: left; }
  .plans { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .stat:nth-child(3) { border-left: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(0, 0, 0, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(44, 44, 46, 0.5); font-size: 16px; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-banner { flex-direction: column; align-items: flex-start; }
  .fc-1, .fc-3 { display: none; }
  .fc-2 { left: -4px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .policy table { display: block; overflow-x: auto; }
  .toc ol { display: grid; grid-template-columns: 1fr; gap: 8px; }
}
