/* ============================================================================
   RATE landing page
   Design tokens mirror the app (constants/theme.ts): #0c0c0c background,
   coral #E27966 drives every primary moment, Inter across the board.
   Mobile-first. Every layout rule scales up at the breakpoints near the end.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #222222;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-dim: rgba(255, 255, 255, 0.42);
  --text-faint: rgba(255, 255, 255, 0.25);

  --coral: #e27966;
  --coral-dark: #d66069;
  --gold: #f0b840;
  --gold-dark: #e8982a;
  --success: #56c880;

  --coral-grad: linear-gradient(135deg, #e27966 0%, #d66069 100%);
  --gold-grad: linear-gradient(135deg, #f0b840 0%, #e8982a 100%);

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-coral: 0 18px 50px -12px rgba(226, 121, 102, 0.5);
}

/* Registered so the score ring can animate its conic sweep. */
@property --deg {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(226, 121, 102, 0.32);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--coral);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 13vw, 148px);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.4rem);
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--coral-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  padding: 7px 14px;
  border: 1px solid var(--coral-border, rgba(226, 121, 102, 0.3));
  border-radius: 999px;
  background: rgba(226, 121, 102, 0.08);
  margin-bottom: 22px;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.96rem + 0.4vw, 1.18rem);
  line-height: 1.66;
}

.lead + .lead {
  margin-top: 18px;
}

h2 + .lead {
  margin-top: 18px;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 68px);
}

.section-head .lead {
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    opacity 0.2s ease;
}

.btn-primary {
  background: var(--coral-grad);
  color: #fff;
  box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px -12px rgba(226, 121, 102, 0.62);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.92rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 9px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 6px 18px -6px rgba(226, 121, 102, 0.7);
}

.brand-word {
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav-links {
  display: none;
  gap: 30px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 132px;
  padding-bottom: clamp(60px, 10vw, 110px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 760px;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 18% 16%, rgba(226, 121, 102, 0.34), transparent 70%),
    radial-gradient(40% 40% at 88% 8%, rgba(240, 184, 64, 0.18), transparent 72%),
    radial-gradient(50% 50% at 70% 64%, rgba(214, 96, 105, 0.2), transparent 72%);
  filter: blur(8px);
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px 320px at var(--mx, 50%) var(--my, 18%),
    rgba(226, 121, 102, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.7rem, 1.6rem + 5.4vw, 5.1rem);
  margin: 6px 0 20px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.96rem + 0.5vw, 1.22rem);
  line-height: 1.62;
  max-width: 540px;
}

/* ---------- Store buttons ---------- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: transform 0.2s var(--ease), border-color 0.2s ease,
    background 0.2s ease, box-shadow 0.25s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 121, 102, 0.45);
  background: var(--surface-3);
}

.store-ico {
  width: 26px;
  height: 26px;
  color: #fff;
  flex: none;
}

.store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.store-txt small {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.store-txt strong {
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Platform-detected primary button */
.store-btn.is-primary {
  background: var(--coral-grad);
  border-color: transparent;
  box-shadow: var(--shadow-coral);
}

.store-btn.is-primary .store-txt small {
  color: rgba(255, 255, 255, 0.8);
}

.store-btn.is-primary:hover {
  background: var(--coral-grad);
  transform: translateY(-3px);
  box-shadow: 0 22px 56px -12px rgba(226, 121, 102, 0.62);
}

.store-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.store-note.is-soon {
  color: var(--gold);
}

.store-buttons-lg {
  justify-content: center;
}

.store-buttons-lg .store-btn {
  padding: 14px 26px 14px 22px;
}

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

.phone {
  position: relative;
  width: clamp(248px, 74vw, 312px);
  aspect-ratio: 312 / 640;
  background: linear-gradient(160deg, #2a2a2a, #131313);
  border-radius: 42px;
  padding: 11px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card), 0 0 0 7px rgba(0, 0, 0, 0.55);
}

.phone-glow {
  position: absolute;
  inset: -16% -22%;
  z-index: -1;
  background: radial-gradient(
    50% 50% at 50% 42%,
    rgba(226, 121, 102, 0.36),
    transparent 70%
  );
  filter: blur(12px);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  flex: none;
}

.app-bar-brand {
  font-weight: 900;
  font-size: 1.04rem;
  letter-spacing: -0.04em;
  color: var(--coral);
}

.app-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shot {
  position: relative;
  flex: 1;
  margin: 0 12px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(60% 44% at 50% 26%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(165deg, #e27966 0%, #d66069 52%, #8f4150 100%);
}

.shot-figure {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 47%;
  transform: translate(-50%, -50%);
  fill: rgba(255, 255, 255, 0.2);
}

.shot-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 600;
}

.score-panel {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.score-ring {
  --deg: 0deg;
  flex: none;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    from -90deg,
    var(--coral) var(--deg),
    rgba(255, 255, 255, 0.08) 0
  );
  transition: --deg 1.5s var(--ease);
}

.score-ring-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  text-align: center;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-outof {
  font-size: 0.56rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-meta {
  min-width: 0;
}

.score-rated {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.score-rated strong {
  color: var(--text);
  font-weight: 800;
}

.dist {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  margin: 8px 0 6px;
}

.dist span {
  flex: 1;
  height: 6%;
  border-radius: 2px;
  background: linear-gradient(var(--coral), var(--coral-dark));
  transition: height 0.9s var(--ease);
  transition-delay: calc(var(--n, 0) * 60ms);
}

.dist span:nth-child(1) { --n: 0; }
.dist span:nth-child(2) { --n: 1; }
.dist span:nth-child(3) { --n: 2; }
.dist span:nth-child(4) { --n: 3; }
.dist span:nth-child(5) { --n: 4; }
.dist span:nth-child(6) { --n: 5; }
.dist span:nth-child(7) { --n: 6; }
.dist span:nth-child(8) { --n: 7; }
.dist span:nth-child(9) { --n: 8; }
.dist span:nth-child(10) { --n: 9; }

.hero-visual.in .dist span {
  height: var(--h);
}

.score-trim {
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* ---------- Floating chips ---------- */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(28, 28, 28, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.chip b {
  color: var(--text);
  font-weight: 800;
}

.chip-1 {
  top: 9%;
  left: -8%;
  animation-delay: 0s;
}

.chip-2 {
  top: 46%;
  right: -12%;
  animation-delay: 1.4s;
}

.chip-3 {
  bottom: 8%;
  left: -6%;
  animation-delay: 2.6s;
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.chip-up {
  color: var(--success);
  font-size: 0.66rem;
}

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

/* ---------- Ratings ticker ---------- */
.ticker {
  position: relative;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ticker-chip b {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--coral);
}

.ticker-chip.is-gold b {
  color: var(--gold);
}

@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ---------- The question ---------- */
.question .lead {
  margin-top: 18px;
}

.scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 38px auto 14px;
  max-width: 480px;
}

.scale span {
  display: grid;
  place-items: center;
  width: clamp(38px, 11vw, 56px);
  aspect-ratio: 1;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.3rem);
  color: var(--text-dim);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s ease,
    background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.scale.in span {
  transform: scale(1);
  opacity: 1;
}

.scale span:nth-child(1) { transition-delay: 0.02s; }
.scale span:nth-child(2) { transition-delay: 0.06s; }
.scale span:nth-child(3) { transition-delay: 0.1s; }
.scale span:nth-child(4) { transition-delay: 0.14s; }
.scale span:nth-child(5) { transition-delay: 0.18s; }
.scale span:nth-child(6) { transition-delay: 0.22s; }
.scale span:nth-child(7) { transition-delay: 0.26s; }
.scale span:nth-child(8) { transition-delay: 0.3s; }
.scale span:nth-child(9) { transition-delay: 0.34s; }
.scale span:nth-child(10) { transition-delay: 0.38s; }

.scale.in span:nth-child(n + 8) {
  background: var(--coral-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(226, 121, 102, 0.7);
}

.scale-caption {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 20px;
}

.step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--coral-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.step:hover::before {
  transform: scaleX(1);
}

.step-num {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.step-ico {
  width: 54px;
  height: 54px;
  margin: 16px 0 18px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(226, 121, 102, 0.12);
  border: 1px solid rgba(226, 121, 102, 0.26);
}

.step-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  margin-bottom: 9px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Insights bento ---------- */
.bento {
  display: grid;
  gap: 18px;
}

.bento-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 121, 102, 0.32);
}

.bento-card h3 {
  margin-bottom: 9px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* True score card */
.mini-ring {
  --deg: 0deg;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background: conic-gradient(
    from -90deg,
    var(--coral) var(--deg),
    rgba(255, 255, 255, 0.08) 0
  );
  transition: --deg 1.5s var(--ease);
}

.mini-ring-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Geography card */
.b-geo {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.geo-chart {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.geo-row {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  align-items: center;
  gap: 12px;
}

.geo-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.geo-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.geo-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--coral-grad);
  transition: width 1.1s var(--ease);
}

.b-geo.in .geo-fill {
  width: var(--w);
}

.geo-val {
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
  letter-spacing: -0.02em;
}

/* Age card */
.age-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-list li {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.age-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.age-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 1.1s var(--ease) 0.15s;
}

.age-list .age-top {
  color: var(--text);
}

.age-list .age-top .age-bar i {
  background: var(--coral-grad);
}

.age-list b {
  text-align: right;
  font-weight: 800;
  color: var(--text);
}

.b-age.in .age-bar i {
  width: var(--w);
}

/* A/B test card */
.ab {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-shot {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
}

.ab-lose {
  background: linear-gradient(150deg, #4a4a4f, #2a2a2d);
  opacity: 0.7;
}

.ab-win {
  background: linear-gradient(150deg, #e27966, #8f4150);
  box-shadow: 0 14px 34px -14px rgba(226, 121, 102, 0.7);
}

.ab-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ab-flag {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  color: #8f4150;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ab-arrow {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dim);
}

/* Trend card */
.trend {
  margin-top: 20px;
  width: 100%;
  height: 90px;
}

.trend-line {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.trend-area {
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.b-trend.in .trend-line {
  stroke-dashoffset: 0;
}

.b-trend.in .trend-area {
  opacity: 1;
}

/* Honest card */
.b-honest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.honest-ico {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(86, 200, 128, 0.12);
  border: 1px solid rgba(86, 200, 128, 0.28);
}

.honest-ico svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--success);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stats band ---------- */
.stats-section {
  padding-block: clamp(48px, 8vw, 88px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(226, 121, 102, 0.1), transparent 70%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 14px 8px;
}

.stat-num {
  display: block;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--coral-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ---------- Matching ---------- */
.matching {
  position: relative;
  overflow: hidden;
}

.matching-grid {
  display: grid;
  gap: clamp(44px, 7vw, 72px);
  align-items: center;
}

.check-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(226, 121, 102, 0.14);
  border: 1px solid rgba(226, 121, 102, 0.4);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--coral);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.matching-visual {
  display: flex;
  justify-content: center;
}

.match-card {
  position: relative;
  width: min(360px, 100%);
  text-align: center;
  padding: 40px 30px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(226, 121, 102, 0.22), transparent 72%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.match-faces {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.face {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--surface-2);
}

.face-a {
  background: linear-gradient(150deg, #e27966, #8f4150);
}

.face-b {
  background: linear-gradient(150deg, #f0b840, #b06a3a);
  margin-left: -20px;
}

.match-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(226, 121, 102, 0.14);
  border: 1px solid rgba(226, 121, 102, 0.34);
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-card h3 {
  margin: 14px 0 18px;
  font-size: 1.5rem;
}

.match-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.match-score {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--coral-grad);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

.match-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px;
  border-radius: 13px;
  background: var(--coral-grad);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-coral);
}

.match-unlock svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(226, 121, 102, 0.3);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--coral);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.faq-plus::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-plus::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-item p {
  padding: 0 22px 21px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Download CTA ---------- */
.download {
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 460px;
  pointer-events: none;
  background: radial-gradient(
    50% 60% at 50% 100%,
    rgba(226, 121, 102, 0.3),
    transparent 72%
  );
}

.cta-title {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  margin: 6px 0 18px;
}

.download .lead {
  max-width: 580px;
  margin-inline: auto;
}

.download .store-buttons {
  margin-top: 34px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-top: clamp(48px, 7vw, 76px);
}

.footer-inner {
  display: grid;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  max-width: min(440px, calc(100vw - 36px));
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(28, 28, 28, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ============================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) {
  .container {
    padding: 0 32px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .b-honest {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 920px) {
  .nav-links {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero-title {
    margin-top: 10px;
  }
  .matching-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1.2fr 2fr;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .b-geo {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
  }
  .b-geo .bento-text {
    flex: 1;
  }
  .b-geo .geo-chart {
    flex: 1.1;
  }
  .b-honest {
    grid-column: span 3;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .ticker-track {
    animation: none;
  }
  .chip {
    animation: none;
  }
}
