/* ============================================================
   FunnelHound — marketing site (LIGHT variant)
   Design tokens (light-committed, warm & friendly)
   ============================================================ */

:root {
  /* surfaces & ink */
  --page: #fff8ef;
  --surface: #ffffff;
  --surface-2: #fdf1e3;
  --ink: #2d2a26;
  --ink-2: #5c554c;
  --ink-muted: #8a8172;
  --hairline: rgba(45, 42, 38, 0.10);
  --grid: #f0e6d8;

  /* categorical (light-surface steps, validated) */
  --accent: #eb6834;
  --accent-deep: #c94f14;
  --aqua: #1baf7a;
  --aqua-deep: #0e8a5f;
  --yellow: #eda100;
  --violet: #4a3aa7;
  --red: #e34948;
  --orange: #eb6834;
  --blue: #2a78d6;

  /* status */
  --good: #0ca30c;
  --good-text: #006300;
  --critical: #d03b3b;

  /* sequential orange ramp (heatmap, light→dark = less→more) */
  --seq-0: #f9efe2;
  --seq-1: #ffdfba;
  --seq-2: #fdc38d;
  --seq-3: #f79b4e;
  --seq-4: #e8622a;
  --seq-5: #b64a10;

  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-ui: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1200px;

  --shadow-soft: 0 2px 10px rgba(160, 100, 40, 0.07);
  --shadow-lift: 0 12px 32px rgba(160, 100, 40, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow-soft);
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-deep); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(235, 104, 52, 0.30);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
  box-shadow: 0 10px 26px rgba(235, 104, 52, 0.35);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(45, 42, 38, 0.18);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: rgba(235, 104, 52, 0.06); box-shadow: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 28%, rgba(235, 104, 52, 0.10), transparent 70%),
    radial-gradient(520px 400px at 8% 82%, rgba(27, 175, 122, 0.07), transparent 70%),
    radial-gradient(400px 300px at 40% 10%, rgba(237, 161, 0, 0.06), transparent 70%);
}
.hero .wrap { width: 100%; position: relative; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 28px;
  background: rgba(235, 104, 52, 0.08);
  border: 1px solid rgba(235, 104, 52, 0.18);
  border-radius: 100px;
  padding: 6px 16px;
}
.hero-kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(12, 163, 12, 0); }
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 13ch;
}
h1 .accent {
  background: linear-gradient(100deg, #d94f0e 0%, var(--accent) 55%, #eda100 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 .line { display: block; overflow: hidden; }
h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
h1 .line:nth-child(2) span { animation-delay: 0.1s; }
h1 .line:nth-child(3) span { animation-delay: 0.2s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 32px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
}
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-funnel {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(48vw, 640px);
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 960px) {
  .hero-funnel { display: none; }
}
.stream { fill: none; stroke-linecap: round; }
.stream-flow {
  stroke-dasharray: 6 14;
  animation: flow 1.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -20; } }

/* ---------- mascot: hound peeking over the fold ---------- */
.hero-dog {
  position: absolute;
  bottom: -2px;
  right: 10%;
  width: 170px;
  height: auto;
  pointer-events: none;
  animation: peek 6s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes peek {
  0%, 100% { transform: translateY(16px); }
  10%, 62% { transform: translateY(0); }
  70% { transform: translateY(1px) rotate(-2deg); }
  78% { transform: translateY(0) rotate(2deg); }
  86% { transform: translateY(0) rotate(0deg); }
}
@media (max-width: 720px) {
  .hero-dog { width: 120px; right: 6%; }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(var(--ink-muted), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 18px 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- dictionary definition ---------- */
.definition { padding: 100px 0 40px; }
.dict-card {
  max-width: 760px;
  margin: 0 auto;
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 36px;
}
.dict-word {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.dict-phonetic {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  color: var(--ink-muted);
}
.dict-pos {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.36em;
  color: var(--accent-deep);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 2px 14px;
}
.dict-defs {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.dict-defs li {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  padding-left: 34px;
  position: relative;
  max-width: 62ch;
}
.dict-num {
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-muted);
}
.dict-defs em { color: var(--ink); font-family: Georgia, serif; }
.dict-ours {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- sections ---------- */
section { padding: 120px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
  display: block;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-head p {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 18px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- interactive funnel ---------- */
.funnel-stage-list { display: grid; gap: 10px; }
.funnel-stage {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.funnel-stage:hover {
  border-color: rgba(235, 104, 52, 0.5);
  transform: translateX(6px);
  box-shadow: var(--shadow-lift);
}
.funnel-stage .bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  /* fades to transparent so the bar has no hard right edge */
  background: linear-gradient(90deg, rgba(235,104,52,0.18), rgba(235,104,52,0.07) 65%, rgba(235,104,52,0) 100%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.funnel-stage.in .bar { width: var(--w); }
.funnel-stage > *:not(.bar) { position: relative; z-index: 1; }
.funnel-stage .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.funnel-stage .value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  text-align: right;
}
.funnel-stage .hint {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}
.funnel-stage:hover .hint,
.funnel-stage:focus-within .hint {
  max-height: 60px;
  opacity: 1;
  margin-top: 6px;
}
.funnel-stage .hint strong { color: var(--ink-2); font-weight: 700; }
.conv-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 26px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.conv-arrow::before { content: "↓"; color: var(--accent); }

.funnel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .funnel-grid { grid-template-columns: 1fr; }
}
.funnel-copy h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.funnel-copy p { color: var(--ink-2); margin-bottom: 16px; }
.funnel-copy .note {
  font-size: 14px;
  color: var(--ink-muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

/* ---------- features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(235, 104, 52, 0.35);
  box-shadow: var(--shadow-lift);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  font-size: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p { color: var(--ink-2); font-size: 15px; }
.card .glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  top: -80px; right: -80px;
}
.card:hover .glow { opacity: 0.16; }

/* ---------- viz showcase ---------- */
.viz-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
@media (max-width: 960px) { .viz-grid { grid-template-columns: 1fr; } }
.viz-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.viz-card .viz-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
}
.viz-card .viz-sub {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 22px;
}

/* heatmap */
.heatmap {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  width: 100%;
}
.heatmap .cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--seq-0);
  transition: transform 0.15s, outline 0.15s;
  outline: 2px solid transparent;
}
.heatmap .cell:hover {
  transform: scale(1.35);
  outline: 2px solid rgba(45, 42, 38, 0.45);
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}
.heatmap-legend .swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
}

/* rings */
.rings-wrap { display: flex; justify-content: center; padding: 8px 0 4px; }
.ring-labels {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
}
.ring-labels .row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.ring-labels .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ring-labels .val {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}
.ring-track { stroke: #f3e9da; }
.ring-arc {
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  stroke-linecap: round;
}

/* ecg */
.ecg-svg { width: 100%; height: auto; display: block; }
.ecg-path {
  fill: none;
  stroke: var(--aqua-deep);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ecg-svg.in .ecg-path {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.ecg-grid line { stroke: var(--grid); stroke-width: 1; }

/* stat tiles */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }
.stat-tile {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px;
}
.stat-tile .label { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.stat-tile .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat-tile .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}
.delta.up { color: var(--good-text); }
.delta.down { color: var(--critical); }

/* tooltip (shared) */
.tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(0.96);
  transition: opacity 0.12s, transform 0.12s;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(90, 55, 20, 0.18);
}
.tooltip.show { opacity: 1; transform: translate(-50%, calc(-100% - 12px)) scale(1); }
.tooltip .t-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.tooltip .t-date { color: var(--ink-muted); }

/* ---------- three stops ---------- */
.stops {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.stop {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  text-align: center;
}
.stop-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stop h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
}
.stop p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.stop-arrow {
  align-self: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .stop-arrow { transform: rotate(90deg); }
}

/* ---------- milestones preview ---------- */
.mviz {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 20px;
}
.mviz-svg { width: 100%; height: auto; display: block; }
.mviz-line {
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.mviz-pin line {
  stroke: var(--pin);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.75;
}
.mviz-pin circle { fill: var(--pin); }
.mviz-pin text {
  font-size: 14px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.mviz-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.mviz-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 7px;
}

/* ---------- share preview ---------- */
.share-demo {
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
}
.share-card {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(180deg, #ff9e4d 0%, #eb6834 100%);
  border: 1px solid rgba(201, 79, 20, 0.35);
  box-shadow: 0 14px 36px rgba(235, 104, 52, 0.30);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px;
  position: relative;
  flex-shrink: 0;
}
.sc-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.95);
  text-align: center;
}
.sc-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-bar {
  display: block;
  height: 34px;
  width: var(--w);
  border-radius: 10px;
  background: var(--c);
}
.sc-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.sc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}
.share-copy { flex: 1; min-width: 260px; }
.share-copy h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 14px;
}
.share-copy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.share-copy li::before {
  content: "→ ";
  color: var(--accent);
}

/* ---------- screenshots ---------- */
.phones {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.phone {
  width: 240px;
  border-radius: 44px;
  border: 1px solid rgba(45, 42, 38, 0.14);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  padding: 10px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Center hero pair (funnel + dashboard) — same size, slightly larger. */
.phone:nth-child(2),
.phone:nth-child(3) { width: 272px; z-index: 1; }
.phone:hover { transform: translateY(-14px) rotate(0.5deg); }
/* The screen carries the screenshot's exact aspect ratio — the phone frame
   (bezel padding) wraps around it, so object-fit never has to crop. */
.phone .screen {
  width: 100%;
  aspect-ratio: 1290 / 2796;
  border-radius: 36px;
  border: 2px dashed rgba(45, 42, 38, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(235,104,52,0.08), transparent 60%),
    var(--surface-2);
  overflow: hidden;
}
.phone .screen img { display: block; }
.phone .screen .ph-icon { font-size: 30px; opacity: 0.7; }
.phone .screen .ph-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.phone .screen .ph-dims { font-size: 11px; letter-spacing: 0.06em; }
.phone .notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  border-radius: 100px;
  background: #2d2a26;
  border: 1px solid rgba(45, 42, 38, 0.2);
}
.phone-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- setup steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14px; }
.setup-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- final cta ---------- */
.cta {
  text-align: center;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.cta h2 { max-width: 20ch; margin: 0 auto 20px; }
.cta p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 40px; }
.cta .orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 104, 52, 0.13), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 12px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store-badge:hover { transform: translateY(-3px); border-color: rgba(235, 104, 52, 0.5); box-shadow: var(--shadow-lift); }
.store-badge .apple { font-size: 26px; }
.store-badge .txt { text-align: left; line-height: 1.2; }
.store-badge .txt small { font-size: 11px; color: var(--ink-muted); display: block; }
.store-badge .txt strong { font-family: var(--font-display); font-size: 17px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  color: var(--ink-muted);
  font-size: 14px;
  background: var(--surface);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer .foot-links { display: flex; gap: 24px; }
footer a:hover { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ======================= WAITING LIST ======================= */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 38, 0.16);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--ink-muted); }
.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(235, 104, 52, 0.20);
}
.waitlist-note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: 14px;
}
.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(12, 163, 12, 0.35);
  border-radius: 14px;
  background: rgba(12, 163, 12, 0.08);
  color: var(--ink);
  font-weight: 600;
}
.waitlist-success .check { color: var(--good-text); font-size: 20px; }

/* ============ GUIDES SECTION (homepage) ============ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.guide-card {
  display: block;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover { border-color: rgba(235, 104, 52, 0.5); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.guide-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.guide-card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.guide-card .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; }
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.faq-item .faq-a a { color: var(--accent-deep); font-weight: 700; }

/* ============ GUIDE ARTICLE PAGES ============ */
.nav.solid { background: rgba(255, 250, 242, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.guide-page { padding: 140px 0 80px; }
.guide-page .wrap { max-width: 780px; }
.crumbs { font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-deep); }
.guide-byline { margin: -6px 0 26px; }
.guide-page h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.guide-answer {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}
.guide-page h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  margin: 44px 0 14px;
}
.guide-page h3 { font-family: var(--font-display); font-size: 18px; margin: 28px 0 10px; }
.guide-page p, .guide-page li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; }
.guide-page ul, .guide-page ol { padding-left: 22px; margin-bottom: 16px; }
.guide-page strong { color: var(--ink); }
.guide-page a { color: var(--accent-deep); }
.guide-page a.btn { color: #fff; }
.guide-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 15px;
}
.guide-page th, .guide-page td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-2);
}
.guide-page th { color: var(--ink); font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.guide-cta {
  margin: 48px 0 8px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(235, 104, 52, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.guide-cta h2 { margin: 0 0 10px; font-size: 21px; }
.guide-cta p { margin-bottom: 18px; }
.guide-note { font-size: 13px; color: var(--ink-muted); margin-top: 40px; }

/* ---------- mascot art: the hound, here and there ---------- */
.dog-art { pointer-events: none; user-select: none; }

/* sitting beside the waitlist form, watching you type */
#waitlist { position: relative; overflow: hidden; }
.dog-waitlist {
  position: absolute;
  bottom: -4px;
  right: 6%;
  width: 150px;
  height: auto;
}
@media (max-width: 960px) { .dog-waitlist { display: none; } }

/* under the founder's signature */
.dog-founder {
  display: block;
  margin: 20px auto 0;
  width: 130px;
  height: auto;
}

/* digging for the leak, under the funnel copy */
.dog-dig {
  display: block;
  margin-top: 24px;
  width: 190px;
  height: auto;
}

/* FAQ closer: rest easy */
.dog-rest { text-align: center; margin-top: 48px; }
.dog-rest .dog-pillow { width: 150px; height: auto; }
.dog-rest p { margin-top: 6px; color: var(--ink-muted); font-size: 14px; }

/* ---------- Apple Intelligence callout ---------- */
.ai-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 26px 30px;
  background: #101010;
  color: #fff;
  border-radius: 20px;
}
.ai-callout-badge {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  white-space: nowrap;
}
.ai-callout h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.ai-callout p { color: rgba(255, 255, 255, 0.75); font-size: 15px; margin: 0; }
@media (max-width: 720px) {
  .ai-callout { flex-direction: column; align-items: flex-start; gap: 12px; }
}
