/* ============================================================
   retentix — marketing site styles
   Dark ink → wash → paper, wavy transitions, glow accents.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* dark side */
  --ink-0: #0d1420;
  --ink-1: #101b2e;
  --ink-2: #16233a;
  --ink-3: #1c2c47;
  --line-dark: rgba(125, 165, 205, 0.16);
  --text-d1: #e9f1fa;
  --text-d2: #a9b9ce;
  --text-d3: #7d90a9;

  /* light side */
  --paper: #ffffff;
  --wash: #d2d7ef;
  --wash-1: #f4f6fd;
  --wash-2: #e9edf9;
  --wash-3: #f3f5fc;
  --line-light: rgba(15, 23, 42, 0.1);
  --text-l1: #0f172a;
  --text-l2: #46536b;
  --text-l3: #6b7690;

  /* accent */
  --accent: #4dd4ff;
  --accent-deep: #17b5e8;
  --accent-ink: #052a3d;

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;

  --radius: 18px;
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-d1);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.container-narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pricing :focus-visible, .why :focus-visible, .product :focus-visible, .faq :focus-visible { outline-color: var(--accent-deep); }

::selection { background: rgba(77, 212, 255, 0.35); }

/* ---------- Buttons ---------- */
.btn-glow {
  --halo: 77, 212, 255;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #86e6ff 0%, #4dd4ff 52%, #2fc0f4 100%);
  border: 1px solid rgba(219, 247, 255, 0.95);           /* bright edge */
  box-shadow:
    0 0 26px rgba(var(--halo), 0.42),                    /* soft outer halo */
    0 6px 22px rgba(var(--halo), 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),             /* inner highlight */
    inset 0 -8px 14px rgba(8, 62, 92, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.btn-glow:hover, .btn-glow:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px rgba(var(--halo), 0.6),
    0 10px 28px rgba(var(--halo), 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 14px rgba(8, 62, 92, 0.16);
}
.btn-glow.btn-lg { padding: 0.95rem 2.3rem; font-size: 1.08rem; }
.btn-glow.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.95rem; }
.btn-glow.btn-xs { padding: 0.42rem 1rem; font-size: 0.85rem; box-shadow: 0 0 16px rgba(var(--halo), 0.4), inset 0 1px 0 rgba(255,255,255,0.6); }

.btn-ghost {
  padding: 0.55rem 1rem; border-radius: 999px;
  color: var(--text-d2); font-weight: 500; font-size: 0.95rem;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text-d1); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; color: var(--text-l1);
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  background: transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.18s;
}
.btn-outline:hover { border-color: var(--accent-deep); background: rgba(77, 212, 255, 0.08); transform: translateY(-2px); }

.btn-plain {
  padding: 0.42rem 0.9rem; font-size: 0.85rem; color: var(--text-d3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  background: rgba(13, 20, 32, 0.88);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 115px; height: auto; }

.site-nav { margin-inline: auto; }
.nav-menu { display: flex; gap: 1.9rem; }
.nav-menu a {
  font-size: 0.97rem; font-weight: 500; color: var(--text-d2);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(3.5rem, 8vh, 6.5rem); }
.hero-atmosphere {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-atmosphere::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(46% 38% at 74% 30%, rgba(77, 212, 255, 0.13), transparent 65%),
    radial-gradient(38% 34% at 12% 76%, rgba(77, 212, 255, 0.07), transparent 60%),
    radial-gradient(60% 50% at 50% -10%, rgba(28, 44, 71, 0.85), transparent 70%);
}
.hero-atmosphere::after {
  /* grain */
  content: ""; position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem;
  align-items: center;
  padding-bottom: clamp(4rem, 9vh, 7rem);
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  font-weight: 750;
  letter-spacing: -0.022em;
  color: var(--text-d1);
}
.glow-text {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(77, 212, 255, 0.45);
}
.hero-sub {
  margin-top: 1.4rem; max-width: 34rem;
  font-size: 1.14rem; color: var(--text-d2);
}
.hero-cta { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cta-note { font-size: 0.88rem; color: var(--text-d3); }

/* Hero demo card */
.hero-demo { position: relative; justify-self: end; width: min(420px, 100%); }
.demo-chip {
  position: absolute; top: -1.4rem; right: -0.6rem; z-index: 2;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  background: rgba(22, 35, 58, 0.85); border: 1px solid rgba(77, 212, 255, 0.3);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(5, 10, 18, 0.5);
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.flow-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(28, 44, 71, 0.75), rgba(16, 27, 46, 0.9));
  border: 1px solid rgba(125, 165, 205, 0.22);
  box-shadow: 0 30px 70px rgba(4, 9, 17, 0.6), 0 0 50px rgba(77, 212, 255, 0.07);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1.5rem 1.3rem;
}
.flow-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1.05rem; }
.flow-brand-dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #ffb36b, #ff7e5f); }
.flow-brand-name { font-weight: 600; font-size: 0.92rem; color: var(--text-d1); }
.flow-tag {
  margin-left: auto; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-d3); border: 1px solid var(--line-dark); border-radius: 999px; padding: 0.18rem 0.6rem;
}
.flow-question { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--text-d1); margin-bottom: 0.9rem; }
.flow-reasons { display: grid; gap: 0.5rem; }
.reason {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.62rem 0.85rem; border-radius: 12px;
  font-size: 0.94rem; color: var(--text-d2);
  border: 1px solid var(--line-dark);
  background: rgba(13, 20, 32, 0.35);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.radio {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--text-d3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.3s;
}
.reason.active {
  border-color: rgba(77, 212, 255, 0.55);
  background: rgba(77, 212, 255, 0.08);
  color: var(--text-d1);
}
.reason.active .radio { border-color: var(--accent); }
.reason.active .radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(77, 212, 255, 0.8);
}
.flow-offer {
  margin-top: 0.95rem; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(77, 212, 255, 0.35);
  background: linear-gradient(180deg, rgba(77, 212, 255, 0.1), rgba(77, 212, 255, 0.03));
  padding: 0.95rem 1rem 0.85rem;
}
.offer-body { display: none; flex-direction: column; gap: 0.15rem; }
.offer-body.on { display: flex; animation: offerIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes offerIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.offer-kicker { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.offer-body strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--text-d1); }
.offer-sub { font-size: 0.85rem; color: var(--text-d2); }
.offer-actions { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.flow-saved {
  margin-top: 0.9rem; text-align: center;
  font-size: 0.86rem; font-weight: 600; color: #86efc3;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s;
}
.flow-saved.on { opacity: 1; transform: none; }

/* ---------- Waves ---------- */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: clamp(56px, 8vw, 110px); }
.wave-tall svg { height: clamp(90px, 11vw, 150px); }

/* ---------- How it works (dark, one tone lighter) ---------- */
.how { background: var(--ink-1); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700; letter-spacing: -0.018em;
  max-width: 40rem;
}
.how .section-title { color: var(--text-d1); }
.section-sub { margin-top: 0.9rem; color: var(--text-d2); max-width: 36rem; }

.steps {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin-top: 3rem; padding-bottom: 1rem;
}
.step {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: linear-gradient(170deg, var(--ink-2), rgba(22, 35, 58, 0.4));
  padding: 1.7rem 1.5rem 1.6rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--accent);
  background: rgba(77, 212, 255, 0.09);
  border: 1px solid rgba(77, 212, 255, 0.3);
  box-shadow: 0 0 18px rgba(77, 212, 255, 0.14);
  margin-bottom: 1.05rem;
}
.step h3 { font-size: 1.22rem; font-weight: 650; color: var(--text-d1); margin-bottom: 0.55rem; }
.step p { font-size: 0.97rem; color: var(--text-d2); }
.step-code {
  display: block; margin-top: 1rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem; color: var(--text-d2);
  background: rgba(13, 20, 32, 0.7);
  border: 1px solid var(--line-dark);
  border-radius: 10px; padding: 0.6rem 0.75rem;
  overflow-x: auto; white-space: nowrap;
}
.step-code span { color: var(--accent); }

/* ---------- Why (light: wash-tinted paper) ---------- */
.why { background: var(--wash-1); color: var(--text-l1); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.why .eyebrow { color: var(--accent-deep); }
.why .section-title { color: var(--text-l1); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin-top: 3rem; padding-bottom: 1.5rem;
}
.why-card {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(210, 215, 239, 0.9);
  box-shadow: 0 14px 34px rgba(38, 51, 96, 0.08);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(38, 51, 96, 0.12), 0 0 0 1px rgba(77, 212, 255, 0.25);
}
.why-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-deep);
  background: linear-gradient(160deg, rgba(77, 212, 255, 0.14), rgba(210, 215, 239, 0.4));
  border: 1px solid rgba(77, 212, 255, 0.28);
  margin-bottom: 1.1rem;
}
.why-icon svg { width: 25px; height: 25px; }
.why-card h3 { font-size: 1.22rem; font-weight: 650; margin-bottom: 0.55rem; }
.why-card p { font-size: 0.97rem; color: var(--text-l2); }

/* ---------- Product / dashboard (wash) ---------- */
.product { background: var(--wash-2); color: var(--text-l1); padding-top: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.product .eyebrow { color: var(--accent-deep); }
.product .section-title { margin-inline: auto; }
.product .section-sub { margin-inline: auto; color: var(--text-l2); }

.panel-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.panel {
  width: min(960px, 100%);
  border-radius: 20px;
  background: var(--ink-0);
  border: 1px solid rgba(77, 212, 255, 0.18);
  box-shadow:
    0 40px 90px rgba(21, 32, 63, 0.35),
    0 0 70px rgba(77, 212, 255, 0.14);
  overflow: hidden;
  text-align: left;
}
.panel-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 0.7rem 1.1rem;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line-dark);
}
.panel-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.panel-url {
  margin-inline: auto;
  font-size: 0.72rem; color: var(--text-d3);
  background: rgba(13, 20, 32, 0.8); border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 0.22rem 1rem;
}
.panel-body { padding: 1.2rem 1.4rem 1.4rem; }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.panel-top img { width: 88px; height: auto; }
.panel-nav { display: flex; gap: 1.1rem; font-size: 0.8rem; color: var(--text-d3); }
.panel-nav .on { color: var(--accent); font-weight: 600; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.stat {
  border-radius: 13px; padding: 0.85rem 1rem;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 0.1rem;
}
.stat-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-d3); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text-d1); }
.stat-delta { font-size: 0.75rem; color: var(--text-d2); }
.stat:first-child .stat-delta { color: #86efc3; }

.panel-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.9rem;
  margin-top: 0.9rem;
}
.card {
  border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line-dark);
  padding: 0.95rem 1rem;
  min-width: 0; /* let grid children shrink instead of overflowing the panel */
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.7rem; }
.card-title { font-size: 0.8rem; font-weight: 600; color: var(--text-d2); }
.card-meta { font-size: 0.8rem; color: var(--text-d1); font-weight: 600; }
.spark { width: 100%; height: 108px; }

.funnel { display: grid; gap: 0.65rem; }
.funnel li { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 0.6rem; }
.f-label { font-size: 0.72rem; color: var(--text-d3); line-height: 1.25; }
.f-bar {
  position: relative; height: 12px; border-radius: 0 4px 4px 0; overflow: hidden;
  background: rgba(13, 20, 32, 0.6);
}
.f-bar::after {
  content: ""; position: absolute; inset: 0; width: var(--w);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, rgba(77, 212, 255, 0.5), rgba(77, 212, 255, 0.85));
}
.f-final .f-bar::after {
  background: linear-gradient(90deg, #4dd4ff, #86e6ff);
  box-shadow: 0 0 12px rgba(77, 212, 255, 0.6);
}
.f-final .f-label { color: var(--text-d1); font-weight: 600; }
.f-val { font-size: 0.75rem; color: var(--text-d1); text-align: right; font-variant-numeric: tabular-nums; }

.feed-card { grid-column: 1 / -1; }
.feed { display: grid; gap: 0.55rem; }
.feed li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.7rem; border-radius: 10px;
  background: rgba(13, 20, 32, 0.5); border: 1px solid rgba(125, 165, 205, 0.09);
}
.feed-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 8px rgba(77, 212, 255, 0.7);
}
.feed p { font-size: 0.83rem; color: var(--text-d2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed strong { color: var(--text-d1); font-weight: 600; }
.feed em { color: var(--accent); font-style: normal; }
.feed-amt { font-size: 0.8rem; font-weight: 600; color: #86efc3; flex-shrink: 0; }
.feed-time { font-size: 0.72rem; color: var(--text-d3); flex-shrink: 0; }

.product-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  max-width: 880px; margin: 2.6rem auto 1rem; text-align: left;
}
.product-points li { display: flex; flex-direction: column; gap: 0.25rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.product-points strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--text-l1); }
.product-points span { font-size: 0.9rem; color: var(--text-l2); }

/* ---------- Pricing (paper) ---------- */
.pricing { background: var(--paper); color: var(--text-l1); padding-top: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.pricing .eyebrow { color: var(--accent-deep); }
.pricing .section-title, .pricing .section-sub { margin-inline: auto; }
.pricing .section-sub { color: var(--text-l2); }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-radius: 20px; padding: 2rem 1.7rem 1.8rem;
  background: var(--wash-1);
  border: 1px solid rgba(210, 215, 239, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(38, 51, 96, 0.1); }
.plan-featured {
  background: linear-gradient(175deg, #ffffff, var(--wash-1));
  border: 1.5px solid rgba(77, 212, 255, 0.55);
  box-shadow: 0 24px 54px rgba(38, 51, 96, 0.14), 0 0 44px rgba(77, 212, 255, 0.18);
}
.plan-featured:hover { box-shadow: 0 30px 60px rgba(38, 51, 96, 0.16), 0 0 54px rgba(77, 212, 255, 0.26); }
.plan-badge {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  padding: 0.32rem 1rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #86e6ff, #4dd4ff);
  border: 1px solid rgba(219, 247, 255, 0.9);
  box-shadow: 0 0 18px rgba(77, 212, 255, 0.5);
}
.plan-name { font-size: 1.15rem; font-weight: 650; }
.plan-price { margin-top: 0.7rem; display: flex; align-items: baseline; gap: 0.2rem; }
.plan-price .amount { font-family: var(--font-display); font-weight: 750; font-size: 2.6rem; letter-spacing: -0.02em; }
.plan-price .per { color: var(--text-l3); font-size: 0.95rem; }
.plan-for { font-size: 0.88rem; color: var(--text-l3); margin-top: 0.15rem; }
.plan-unlimited {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 1.15rem; padding: 0.55rem 0.85rem;
  border-radius: 11px;
  font-size: 0.83rem; font-weight: 600; line-height: 1.35; color: var(--text-l1);
  background: rgba(77, 212, 255, 0.1);
  border: 1px solid rgba(23, 181, 232, 0.32);
}
.plan-unlimited span {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--accent-deep); line-height: 1; flex-shrink: 0;
}
.plan-features { margin: 1.15rem 0 1.8rem; display: grid; gap: 0.55rem; flex: 1; align-content: start; }
.plan-features li {
  position: relative; padding-left: 1.55rem; font-size: 0.95rem; color: var(--text-l2);
}
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(77, 212, 255, 0.16);
  border: 1px solid rgba(23, 181, 232, 0.5);
}
.plan-features li::after {
  content: ""; position: absolute; left: 4.5px; top: calc(0.32em + 3.5px);
  width: 7px; height: 4.5px;
  border-left: 1.6px solid var(--accent-deep); border-bottom: 1.6px solid var(--accent-deep);
  transform: rotate(-45deg);
}
.plan-features strong { color: var(--text-l1); }
.plan .btn-glow, .plan .btn-outline { width: 100%; }
.pricing-note { margin-top: 2.2rem; padding-bottom: 1rem; font-size: 0.88rem; color: var(--text-l3); }

/* ---------- FAQ (wash tint) ---------- */
.faq { background: var(--wash-3); color: var(--text-l1); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.faq .eyebrow { color: var(--accent-deep); }
.faq-list { margin-top: 2.4rem; display: grid; gap: 0.85rem; }
.faq-list details {
  border-radius: 15px; background: var(--paper);
  border: 1px solid rgba(210, 215, 239, 0.95);
  box-shadow: 0 8px 22px rgba(38, 51, 96, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-list details[open] { box-shadow: 0 14px 30px rgba(38, 51, 96, 0.09), 0 0 0 1px rgba(77, 212, 255, 0.22); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(77, 212, 255, 0.14);
  border: 1px solid rgba(23, 181, 232, 0.45);
  transition: transform 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent-deep); border-radius: 2px;
}
.faq-icon::before { width: 9px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 9px; transition: transform 0.3s; }
details[open] .faq-icon { transform: rotate(180deg); }
details[open] .faq-icon::after { transform: scaleY(0); }
.faq-body { padding: 0 1.3rem 1.15rem; }
.faq-body p { font-size: 0.98rem; color: var(--text-l2); max-width: 60ch; }

.faq-cta { margin-top: 3.2rem; padding-bottom: 1.5rem; text-align: center; }
.faq-cta p { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; margin-bottom: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-0); padding: 3.4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem;
  align-items: start;
}
.footer-brand .brand img { width: 108px; }
.footer-tag { margin-top: 0.9rem; font-size: 0.93rem; color: var(--text-d2); max-width: 24ch; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-d3); margin: 0.3rem 0 1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; color: var(--text-d2); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
}
.footer-copy { font-size: 0.83rem; color: var(--text-d3); }

/* ---------- Legal pages ---------- */
.legal { background: var(--ink-0); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.018em;
  color: var(--text-d1);
}
.legal-updated { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-d3); }
.legal h2 {
  font-size: 1.28rem; font-weight: 650; color: var(--text-d1);
  margin: 2.6rem 0 0.7rem;
}
.legal p { color: var(--text-d2); max-width: 65ch; }
.legal p + p { margin-top: 0.7rem; }
.legal a { color: var(--accent); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* Spark line draw-in */
html.js .spark-line { stroke-dasharray: 480; stroke-dashoffset: 480; }
html.js .panel.in .spark-line { animation: drawLine 1.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
html.js .spark-dot { opacity: 0; }
html.js .panel.in .spark-dot { animation: dotIn 0.3s 1.75s forwards; }
@keyframes dotIn { to { opacity: 1; } }

/* Funnel bars grow in */
html.js .f-bar::after { transform: scaleX(0); transform-origin: left; }
html.js .panel.in .f-bar::after { animation: growBar 0.9s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes growBar { to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .hero-copy { text-align: center; }
  .hero-sub, .hero h1 { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-demo { justify-self: center; }
  .steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child, .why-grid .why-card:last-child { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .product-points { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 820px) {
  .site-nav { margin-inline: 0; position: static; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line-dark); cursor: pointer;
    order: 3;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 17px; height: 2px; border-radius: 2px;
    background: var(--text-d1); transition: transform 0.25s, opacity 0.2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -5.5px; }
  .nav-toggle-bar::after { top: 5.5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5.5px) rotate(-45deg); }

  .header-inner { gap: 0.9rem; }
  .site-nav { margin-left: auto; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(13, 20, 32, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.6rem 1.5rem 1.1rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 0.8rem 0.2rem; font-size: 1.05rem; }
  .btn-ghost { display: none; }

  .steps, .why-grid { grid-template-columns: 1fr; }
  .steps .step:last-child, .why-grid .why-card:last-child { grid-column: auto; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row .stat:first-child { grid-column: 1 / -1; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-nav { display: none; }
  .funnel li { grid-template-columns: 84px 1fr 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .feed li { flex-wrap: wrap; }
  .feed p { white-space: normal; flex-basis: 100%; order: 2; }
  .feed-dot { order: 1; }
  .feed-amt { order: 3; }
  .feed-time { order: 4; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 2.2rem); }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.7rem); }
  .demo-chip { right: 0; }
  .flow-card { padding: 1.2rem 1.1rem 1rem; }
  .header-actions .btn-glow { padding: 0.5rem 1rem; font-size: 0.88rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .demo-chip { animation: none; }
  .spark-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .spark-dot { opacity: 1; }
  .f-bar::after { transform: none; }
}
