﻿/* ==========================================================================
   RealSuggest — marketing site stylesheet
   Design tokens mirror frontend/src/app/globals.css so the site and the
   product read as one brand.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-deep: #1e40af;
  --blue-light: #eff4ff;
  --blue-muted: #dbeafe;
  --sky: #0ea5e9;
  --violet: #7c3aed;
  --teal: #14b8a6;

  /* navy */
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #334155;
  --navy-ink: #0b1220;

  /* status / score */
  --green: #10b981;
  --green-light: #d1fae5;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;

  /* semantic surfaces — flipped by .inv on dark sections */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;

  /* geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07);
  --shadow-md: 0 4px 12px 0 rgb(0 0 0 / 0.08), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 30px 0 rgb(0 0 0 / 0.1), 0 4px 8px -2px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 24px 64px -12px rgb(15 23 42 / 0.22), 0 8px 20px -8px rgb(15 23 42 / 0.14);
  --shadow-blue: 0 12px 32px -10px rgb(37 99 235 / 0.55);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 150ms;

  --nav-h: 68px;
  --maxw: 1240px;
  --pad: 28px;
}

/* dark-surface inversion */
.inv {
  --bg: #0f172a;
  --bg-subtle: #0b1220;
  --bg-card: rgba(248, 250, 252, 0.04);
  --border: rgba(248, 250, 252, 0.11);
  --border-strong: rgba(248, 250, 252, 0.22);
  --ink: #f8fafc;
  --ink-2: rgba(248, 250, 252, 0.7);
  --ink-3: rgba(248, 250, 252, 0.46);
  --blue-light: rgba(37, 99, 235, 0.14);
  --blue-muted: rgba(37, 99, 235, 0.24);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
::selection {
  background: var(--blue);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-md);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
  background-clip: content-box;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.t-display {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.t-h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.07;
}
.t-h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.026em;
  line-height: 1.14;
}
.t-h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.28;
}
.t-h4 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.4;
}
.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.66;
  color: var(--ink-2);
  text-wrap: pretty;
}
.body {
  color: var(--ink-2);
  line-height: 1.68;
  text-wrap: pretty;
}
.body-sm {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.caption {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.grad-text {
  background: linear-gradient(96deg, var(--blue) 0%, var(--sky) 52%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blue {
  color: var(--blue);
}
.inv .blue {
  color: #7ea6ff;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.shell-tight {
  max-width: 900px;
}
.sec {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}
.sec-sm {
  padding: clamp(56px, 6vw, 84px) 0;
}
.sec--subtle {
  background: var(--bg-subtle);
}
.sec--navy {
  background: var(--navy);
  overflow: hidden;
}
.sec--edge {
  border-block: 1px solid var(--border);
}
.sec-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.hero .sec-head {
  max-width: 820px;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head .lede {
  margin-top: 18px;
}
.grid {
  display: grid;
  gap: 20px;
}
.g-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split--wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.split--wide-right {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.stack {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mt-s {
  margin-top: 14px;
}
.mt-m {
  margin-top: 26px;
}
.mt-l {
  margin-top: 44px;
}

/* --------------------------------------------------------------------------
   5. Decorative backgrounds
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  min-width: 520px;
  min-height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora::before {
  top: -34%;
  right: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.34), transparent 66%);
  animation: drift1 24s var(--ease) infinite alternate;
}
.aurora::after {
  bottom: -42%;
  left: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.24), transparent 66%);
  animation: drift2 30s var(--ease) infinite alternate;
}
.aurora--violet::after {
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.24), transparent 66%);
}
@keyframes drift1 {
  to {
    transform: translate3d(-7%, 9%, 0) scale(1.14);
  }
}
@keyframes drift2 {
  to {
    transform: translate3d(9%, -7%, 0) scale(1.1);
  }
}
.mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 12%, transparent 78%);
  opacity: 0.75;
}
.sec > .shell,
.sec > .shell-tight {
  position: relative;
  z-index: 1;
}
.glow-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--blue) 50%, var(--border-strong) 82%, transparent);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--violet));
}
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -6px rgb(15 23 42 / 0.12);
}
.nav-in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  flex-shrink: 0;
}
.brand img,
.brand svg {
  display: block;
  width: auto;
  height: 32px;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover img,
.brand:hover svg {
  transform: translateY(-2px);
}
.brand span i {
  font-style: normal;
  color: var(--blue);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-md);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--navy);
  background: var(--bg-card);
}
.nav-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
}
.burger i {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}
.burger[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  padding: 22px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.24s var(--ease), transform 0.3s var(--ease-out), visibility 0.24s;
  overflow-y: auto;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drawer a {
  padding: 15px 4px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
}
.drawer a[aria-current="page"] {
  color: var(--blue);
}
.drawer .btn {
  margin-top: 22px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Buttons, pills, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.24s var(--ease), transform 0.14s var(--ease);
}
.btn:active {
  transform: scale(0.975);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-out);
}
.btn:hover svg.arr {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.1), 0 6px 18px -8px rgb(37 99 235 / 0.7);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: var(--shadow-blue);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover {
  background: var(--navy-2);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue-light);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg-card);
}
.inv .btn-ghost {
  background: rgba(248, 250, 252, 0.05);
}
.inv .btn-ghost:hover {
  background: rgba(248, 250, 252, 0.11);
}
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover {
  background: var(--blue-light);
}
.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 12px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.8438rem;
}
.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.inv .pill {
  background: rgba(248, 250, 252, 0.06);
  box-shadow: none;
  color: var(--ink-2);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.18);
}
.pill .dot.live {
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgb(16 185 129 / 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgb(16 185 129 / 0);
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-blue {
  background: var(--blue-light);
  color: var(--blue-deep);
}
.badge-green {
  background: var(--green-light);
  color: #065f46;
}
.badge-amber {
  background: var(--amber-light);
  color: #92400e;
}
.badge-gray {
  background: var(--bg-card);
  color: var(--ink-2);
}
.inv .badge-gray {
  background: rgba(248, 250, 252, 0.08);
  color: var(--ink-2);
}
.inv .badge-blue {
  background: rgba(37, 99, 235, 0.2);
  color: #a9c4ff;
}
.tag {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--ink-2);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.inv .eyebrow {
  color: #7ea6ff;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.65;
}
.sec-head--center .eyebrow {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}
.inv .card {
  background: var(--bg-card);
  box-shadow: none;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-xl {
  border-radius: var(--r-xl);
  padding: 32px;
}

/* mouse-tracked spotlight */
.spot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.spot::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(37, 99, 235, 0.11),
    transparent 62%
  );
}
.spot:hover::before {
  opacity: 1;
}
.inv .spot::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(96, 145, 255, 0.16), transparent 62%);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease-out);
}
.icon-box svg {
  width: 21px;
  height: 21px;
}
.card-lift:hover .icon-box {
  transform: scale(1.08) rotate(-4deg);
}
.icon-box.green {
  background: var(--green-light);
  color: #047857;
}
.icon-box.amber {
  background: var(--amber-light);
  color: #b45309;
}
.icon-box.violet {
  background: #f5f3ff;
  color: var(--violet);
}
.icon-box.sky {
  background: #e0f2fe;
  color: #0369a1;
}
.inv .icon-box {
  background: rgba(37, 99, 235, 0.18);
  color: #9dbaff;
}

.feat h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}
.feat p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.62;
}

/* bordered grid (hairline seams) */
.hair {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hair > * {
  background: var(--bg);
  padding: 28px 26px;
}
.hair--list {
  gap: 0;
  background: var(--bg);
}
.hair--list > * + * {
  border-top: 1px solid var(--border);
}
.inv .hair > * {
  background: var(--navy);
}
.feature-matrix {
  gap: 0;
  background: var(--bg);
}
.feature-matrix > * {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-matrix > :nth-child(3n) {
  border-right: 0;
}
.feature-matrix > :nth-last-child(-n + 3) {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 88px) 0 clamp(60px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 60px);
  align-items: center;
}
.hero-grid--report {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}
.hero-grid--report .top-report {
  transform: translateX(12px) scale(1.1);
  transform-origin: left top;
}
.hero h1 {
  margin-block: 20px 22px;
}
.hero .lede {
  max-width: 520px;
}
.hero .sec-head--center .lede,
.hero > .shell > .sec-head--center .lede {
  margin-inline: auto;
}
.about-beliefs {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  padding: 22px 22px 8px;
  box-shadow: var(--shadow-sm);
}
.about-beliefs > .label {
  margin-bottom: 6px;
}
.about-belief {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.about-belief:first-of-type {
  border-top: 0;
}
.about-belief .icon-box {
  margin: 0;
  flex-shrink: 0;
}
.about-belief .t-h4 {
  margin: 0;
}
.about-belief .body-sm {
  margin-top: 4px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-meta div strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-meta div span {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9b. Dubai 3D communities map (how-it-works hero)
   -------------------------------------------------------------------------- */
.dxb-map {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  left: 20px;
  user-select: none;
}
.dxb-map-stage {
  perspective: 900px;
  perspective-origin: 50% 35%;
}
.dxb-map-board {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-8deg);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 40% 55% at 8% 55%, rgba(14, 165, 233, 0.42), transparent 70%),
    radial-gradient(ellipse 22% 30% at 62% 42%, rgba(56, 189, 248, 0.22), transparent 70%),
    linear-gradient(145deg, #bae6fd 0%, #7dd3fc 28%, #e2e8f0 28%, #f1f5f9 55%, #cbd5e1 100%);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.16),
    0 8px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: visible;
}
.dxb-map-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.dxb-block {
  position: absolute;
  top: var(--t);
  left: var(--l);
  width: var(--w);
  height: var(--h);
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--d) * 1px));
  transition: transform 220ms var(--ease), z-index 0s;
  z-index: 1;
}
.dxb-block span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 84%, transparent);
  color: #fff;
  font-size: clamp(0.55rem, 1.05vw, 0.72rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  padding: 0.2rem;
  box-shadow: 0 calc(6px + var(--d) * 0.2px) calc(12px + var(--d) * 0.35px) rgba(15, 23, 42, 0.22);
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.dxb-block:hover,
.dxb-block:focus-visible,
.dxb-block.is-hot {
  transform: translateZ(calc(var(--d) * 1px + 28px)) scale(1.06);
  z-index: 5;
  outline: none;
}
.dxb-block:hover span,
.dxb-block:focus-visible span,
.dxb-block.is-hot span {
  background: var(--c);
  box-shadow:
    0 calc(16px + var(--d) * 0.35px) calc(26px + var(--d) * 0.5px) rgba(15, 23, 42, 0.34),
    0 0 0 2px rgba(255, 255, 255, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .dxb-block,
  .dxb-block span {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   10. Match simulator (interactive demo)
   -------------------------------------------------------------------------- */
.sim {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.sim-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.sim-bar .dots {
  display: flex;
  gap: 5px;
}
.sim-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.sim-bar .dots i:first-child {
  background: #fca5a5;
}
.sim-bar .dots i:nth-child(2) {
  background: #fcd34d;
}
.sim-bar .dots i:nth-child(3) {
  background: #86efac;
}
.sim-bar .path {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 550;
}
.sim-body {
  padding: 22px;
}
.sim-map {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #f8fafc, #eef2f8);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sim-map svg {
  width: 100%;
  height: auto;
}
.sim-map .grid-lines {
  stroke: rgba(15, 23, 42, 0.05);
  stroke-width: 1;
}
.zone {
  fill: rgba(148, 163, 184, 0.14);
  stroke: rgba(100, 116, 139, 0.28);
  stroke-width: 1;
  transition: fill 0.5s var(--ease), stroke 0.5s var(--ease), opacity 0.5s var(--ease);
}
.zone.out {
  opacity: 0.32;
}
.zone.hit {
  fill: rgba(37, 99, 235, 0.14);
  stroke: rgba(37, 99, 235, 0.42);
}
.zone.rank1 {
  fill: rgba(245, 158, 11, 0.24);
  stroke: var(--amber);
  stroke-width: 1.8;
}
.zone.rank2 {
  fill: rgba(37, 99, 235, 0.24);
  stroke: var(--blue);
  stroke-width: 1.8;
}
.zone.rank3 {
  fill: rgba(16, 185, 129, 0.22);
  stroke: var(--green);
  stroke-width: 1.8;
}
.ray {
  fill: none;
  stroke: rgba(37, 99, 235, 0.5);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  animation: dash 1.4s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -16;
  }
}
.pin-core {
  fill: var(--blue);
}
.pin-halo {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  opacity: 0.5;
  animation: halo 2.6s var(--ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes halo {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}
.zlabel {
  font-size: 9.5px;
  font-weight: 650;
  fill: var(--navy);
  letter-spacing: 0.02em;
}
.zscore {
  font-size: 10px;
  font-weight: 800;
  fill: #fff;
}

.sim-controls {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.ctrl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}
.ctrl-head span:first-child {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ctrl-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--bg-card);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue);
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.35);
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.14);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue);
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.35);
}
.seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.seg button {
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.seg button:hover {
  color: var(--navy);
}
.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.inv .seg {
  background: rgba(248, 250, 252, 0.06);
}
.inv .seg button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.res {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.res.is-top {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.5), transparent 70%);
}
.res .rk {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--bg-card);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.res.is-top .rk {
  background: var(--amber);
  color: #fff;
}
.res .nm {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res .sub {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.res .pct {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.res .pct em {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--ink-3);
  margin-left: 1px;
}
.res-empty {
  padding: 22px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.res-empty strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

/* score bars */
.bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.bar {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}
.bar-k {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bar-t {
  height: 7px;
  border-radius: 99px;
  background: var(--bg-card);
  overflow: hidden;
}
.inv .bar-t {
  background: rgba(248, 250, 252, 0.1);
}
.bar-f {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transition: width 1s var(--ease-out);
}
.bar-f.amber {
  background: linear-gradient(90deg, #d97706, var(--amber));
}
.bar-f.green {
  background: linear-gradient(90deg, #059669, #34d399);
}
.bar-f.violet {
  background: linear-gradient(90deg, #6d28d9, #a78bfa);
}
.bar-v {
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   11. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 4px 0;
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.marquee .tag {
  white-space: nowrap;
  background: var(--bg);
}

/* --------------------------------------------------------------------------
   12. Pipeline / steps
   -------------------------------------------------------------------------- */
.pipe {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.pipe-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.pipe-nav button {
  position: relative;
  text-align: left;
  padding: 15px 16px 15px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all 0.24s var(--ease);
}
.pipe-nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background 0.24s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}
.pipe-nav button:hover {
  background: var(--bg-card);
}
.pipe-nav button[aria-selected="true"] {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.pipe-nav button[aria-selected="true"]::before {
  background: var(--blue);
  top: 10px;
  bottom: 10px;
}
.pipe-nav .st {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.pipe-nav button[aria-selected="true"] .st {
  color: var(--blue);
}
.pipe-nav .sh {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.pipe-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-sm);
  min-height: 0;
}
.pipe-panel[hidden] {
  display: none;
}
.pipe-panel .t-h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}
.pipe-panel .body {
  font-size: 0.9375rem;
}
.pipe-panel .kv {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 24px;
}
.pipe-panel .kv > div {
  background: var(--bg-subtle);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.pipe-panel .kv dt {
  color: var(--ink-2);
}
.pipe-panel .kv dd {
  font-weight: 650;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}
.funnel-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.funnel-bar {
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  padding-inline: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transition: width 1.1s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
}
.funnel-row:nth-child(2) .funnel-bar {
  background: linear-gradient(90deg, var(--blue), #3b82f6);
}
.funnel-row:nth-child(3) .funnel-bar {
  background: linear-gradient(90deg, #0284c7, var(--sky));
}
.funnel-row:nth-child(4) .funnel-bar {
  background: linear-gradient(90deg, #0d9488, var(--teal));
}
.funnel-row:last-child .funnel-bar {
  background: linear-gradient(90deg, #059669, var(--green));
}
.funnel-cap {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* AI picks rotator */
.ai-pick-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.ai-pick-tab {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker score"
    "name score";
  gap: 2px 16px;
  align-items: center;
  text-align: left;
  padding: 14px 16px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(248, 250, 252, 0.12);
  background: rgba(248, 250, 252, 0.04);
  color: rgba(248, 250, 252, 0.72);
  overflow: hidden;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ai-pick-tab:hover {
  background: rgba(248, 250, 252, 0.07);
  color: #fff;
}
.ai-pick-tab.is-active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(147, 197, 253, 0.45);
  color: #fff;
}
.ai-pick-kicker {
  grid-area: kicker;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
}
.ai-pick-tab.is-active .ai-pick-kicker {
  color: #93c5fd;
}
.ai-pick-name {
  grid-area: name;
  font-size: 0.9375rem;
  font-weight: 650;
  color: inherit;
}
.ai-pick-score {
  grid-area: score;
  font-size: 1.375rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: rgba(248, 250, 252, 0.45);
  line-height: 1;
}
.ai-pick-tab.is-active .ai-pick-score {
  color: #fff;
}
.ai-pick-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transform-origin: left center;
  transform: scaleX(0);
}
.ai-pick-tab.is-active .ai-pick-progress {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  animation: aiPickProgress 5.2s linear forwards;
}
[data-ai-picks].is-paused .ai-pick-tab.is-active .ai-pick-progress {
  animation-play-state: paused;
}
@keyframes aiPickProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.ai-pick-stage {
  position: relative;
  min-height: 340px;
}
.ai-pick-panel {
  animation: none;
}
.ai-pick-panel.is-active {
  animation: aiPickIn 0.45s var(--ease-out);
}
@keyframes aiPickIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-analysis {
  border-radius: var(--r-md);
  border: 1px solid rgba(147, 197, 253, 0.28);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.35)),
    rgba(15, 23, 42, 0.55);
  padding: 16px 18px;
}
.ai-analysis-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.ai-analysis-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.18);
  font-size: 0.6875rem;
}
.ai-analysis p {
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.ai-analysis p + p {
  margin-top: 8px;
  color: rgba(248, 250, 252, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .ai-pick-tab.is-active .ai-pick-progress {
    animation: none;
    transform: scaleX(1);
  }
  .ai-pick-panel.is-active {
    animation: none;
  }
}

/* formula block */
.formula {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--navy-ink);
  color: #e2e8f0;
  padding: 16px 18px;
  font-size: 0.875rem;
  overflow-x: auto;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.formula b {
  color: #7ea6ff;
  font-weight: 650;
}
.formula i {
  color: var(--ink-3);
  font-style: normal;
}
.formula .op {
  color: #fbbf24;
}

/* --------------------------------------------------------------------------
   13. Timeline / flow
   -------------------------------------------------------------------------- */
.flow {
  position: relative;
  padding-left: 34px;
}
.flow::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--sky), transparent);
}
.flow-node {
  position: relative;
  padding-bottom: 22px;
}
.flow-node:last-child {
  padding-bottom: 0;
}
.flow-node::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.flow-node.dim::before {
  border-color: var(--border-strong);
  box-shadow: none;
}
.flow-node .fl {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.inv .flow-node .fl {
  color: #7ea6ff;
}
.flow-node.dim .fl {
  color: var(--ink-3);
}
.flow-node h4 {
  font-size: 0.9688rem;
  margin-bottom: 4px;
}
.flow-node p {
  font-size: 0.875rem;
  color: var(--ink-2);
  max-width: 440px;
}
.inv .flow-node::before {
  background: var(--navy);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* numbered steps */
.steps {
  counter-reset: s;
}
.step {
  counter-increment: s;
  position: relative;
}
.step::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 14px;
}
.inv .step::before {
  color: #7ea6ff;
}

/* --------------------------------------------------------------------------
   14. Persona cards
   -------------------------------------------------------------------------- */
.persona {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease), border-color 0.3s var(--ease);
  text-align: left;
  width: 100%;
}
.persona:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.persona.is-on {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12), var(--shadow-md);
}
.persona-cover {
  position: relative;
  height: 108px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.persona-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.55), transparent 60%);
}
.persona-cover span {
  position: relative;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0.9;
}
.persona-body {
  padding: 18px 20px 22px;
}
.persona-body h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.persona-body p {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.55;
  min-height: 44px;
}
.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.persona-tags .badge {
  font-size: 0.625rem;
}
.star {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

/* Compact persona selector used by the second profile-building flow. */
.persona-picker {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-xl);
}
.persona-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.persona-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.persona-options button:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.persona-options button.is-on {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}
.persona-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 800;
}
.persona-initial.sky { background: #e0f2fe; color: #075985; }
.persona-initial.blue { background: #dbeafe; color: #1e40af; }
.persona-initial.teal { background: #ccfbf1; color: #0f766e; }
.persona-initial.amber { background: #fef3c7; color: #92400e; }
.persona-initial.green { background: #d1fae5; color: #065f46; }
.persona-initial.slate { background: #e2e8f0; color: #334155; }
.persona-initial.violet { background: #ede9fe; color: #5b21b6; }
.persona-result {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.persona-result-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 9px;
}
.persona-score {
  display: grid;
  grid-template-columns: auto auto;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}
.persona-score > span:nth-child(2) {
  align-self: end;
  padding-bottom: 2px;
  font-size: 0.875rem;
}
.persona-score small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 0.6875rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. Report preview mock
   -------------------------------------------------------------------------- */
.mock {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.mock-top .t {
  font-size: 0.8125rem;
  font-weight: 650;
}
.mock-body {
  padding: 22px;
  display: grid;
  gap: 18px;
}
.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.tilt-wrap {
  perspective: 1200px;
}

/* Condensed replica of the product's Top Matches cards (report/[id]).
   Each card sets --rep and --rep-tint to its rank colour. */
/* Features hero: copy stays on the content rail; mock bleeds wide to the right. */
.shell.split.report-hero {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  padding-right: 0;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 52px);
  align-items: center;
}
.report-hero > [data-stagger] {
  max-width: 28rem;
}
.report-hero .tilt-wrap {
  width: min(88%, 820px);
  min-width: 0;
  justify-self: center;
  padding-right: 0;
}
.report-hero .mock {
  width: 100%;
}
.report-hero .mock-top {
  padding: 14px 18px;
}
.report-hero .mock-top .t {
  font-size: 0.9375rem;
}
.report-hero .mock-body {
  padding: 16px 18px 18px;
  gap: 12px;
}
.report-hero .rep-grid {
  gap: 12px;
}
.report-hero .rep-card {
  border-width: 2px;
  border-radius: 14px;
}
.report-hero .rep-card-top {
  gap: 12px;
  padding: 14px 12px;
}
.report-hero .rep-rank {
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  font-size: 0.6875rem;
}
.report-hero .rep-ring {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}
.report-hero .rep-ring svg {
  width: 56px;
  height: 56px;
}
.report-hero .rep-ring b {
  font-size: 0.9375rem;
}
.report-hero .rep-best {
  font-size: 0.625rem;
  padding: 3px 8px;
  margin-bottom: 4px;
}
.report-hero .rep-name {
  font-size: 0.9375rem;
}
.report-hero .rep-sub {
  font-size: 0.6875rem;
}
.report-hero .rep-metrics {
  padding: 10px 12px 11px;
}
.report-hero .rep-metrics > div {
  padding: 5px 0;
  gap: 8px;
}
.report-hero .rep-metrics dt {
  font-size: 0.75rem;
}
.report-hero .rep-metrics dd {
  font-size: 0.8125rem;
}
.report-hero .rep-cta {
  margin: 0 12px 12px;
  padding: 9px;
  border-radius: 9px;
  font-size: 0.75rem;
}
.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rep-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--rep);
  border-radius: 14px;
  background: var(--bg);
}
.rep-card-top {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: var(--rep-tint);
  text-align: left;
}
.rep-rank {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rep);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}
.rep-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.rep-ring svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
.rep-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rep-txt {
  min-width: 0;
}
.rep-best {
  margin-bottom: 4px;
  padding: 2px 7px;
  font-size: 0.5625rem;
  background: var(--rep);
  color: #fff;
}
.rep-name {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
}
.rep-sub {
  font-size: 0.625rem;
  color: var(--ink-3);
}
.rep-metrics {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 10px 12px 11px;
}
.rep-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
}
.rep-metrics dt {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ink-3);
}
.rep-metrics dd {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.rep-cta {
  margin: 0 12px 12px;
  padding: 7px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Homepage Top Matches preview — cards + density/rent charts. */
.top-report-body {
  padding: 14px;
  /* Grow with content so the full match cards sit on the page (no nested scroll). */
  max-height: none;
  overflow: visible;
}
.top-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.top-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.top-col .rep-card {
  flex: 0 0 auto;
}
.rep-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 9px;
  border: 2px solid var(--rep);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.rep-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rep-chart-head span:first-child {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink);
}
.rep-chart-head span:last-child {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.rep-chart svg {
  display: block;
}
.rep-chart-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 0.625rem;
  color: var(--ink-2);
}
.rep-chart-foot .up {
  font-weight: 700;
  color: #22c55e;
}
.rep-chart-foot .peak {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-2);
}
.rep-chart-foot b {
  color: var(--ink);
  font-weight: 700;
}

/* radar — matches report RadarChart */
.radar-card {
  display: grid;
  place-items: center;
  gap: 14px;
}
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.radar-stage {
  position: relative;
}
.radar-tip {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.radar-tip--point {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.radar-tip--series {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 8px);
}
.radar-tip-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--border);
  text-align: center;
  animation: radarTooltipIn 0.2s var(--ease);
}
.radar-tip--series .radar-tip-card {
  padding: 8px 10px;
  text-align: left;
}
.radar-tip-kicker {
  font-size: 0.625rem;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.radar-tip-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.radar-tip-sub {
  font-size: 0.5625rem;
  color: var(--ink-3);
  margin-top: 2px;
  text-align: center;
}
.radar-tip-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink);
}
.radar-tip-name i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.radar-tip-stats {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.radar-tip-stat {
  text-align: center;
  min-width: 44px;
}
.radar-tip-stat span {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.radar-tip-stat b {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
@keyframes radarTooltipIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(3px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.radar-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.radar-legend--series {
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 6px;
}
.radar-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 0.75rem;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}
.radar-leg-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.radar-leg-item.is-dim {
  opacity: 0.45;
}
.radar-leg-item.is-on {
  color: var(--ink);
  font-weight: 600;
}
.radar-leg-name {
  flex: 1;
  min-width: 0;
}
.radar-leg-scores {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.radar-leg-scores b {
  font-weight: 600;
}
.radar-leg-dot {
  margin: 0 3px;
  opacity: 0.4;
}
.radar-leg-per {
  margin-left: 4px;
  font-weight: 500;
  opacity: 0.7;
}
.radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-weight: 550;
}
.radar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   16. Chat demo
   -------------------------------------------------------------------------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  min-height: 340px;
}
.msg {
  max-width: 82%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 0.9063rem;
  line-height: 1.55;
  animation: pop 0.45s var(--ease-out) both;
}
.msg.bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.msg.me {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg.typing {
  display: inline-flex;
  gap: 5px;
  padding: 15px;
}
.msg.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: bob 1.3s var(--ease) infinite;
}
.msg.typing i:nth-child(2) {
  animation-delay: 0.16s;
}
.msg.typing i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes bob {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}
.chat-who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 750;
  background: linear-gradient(140deg, var(--blue), var(--violet));
  color: #fff;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   17. Stats
   -------------------------------------------------------------------------- */
.stat {
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--navy), #334155);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.inv .stat b {
  background: linear-gradient(180deg, #fff, #9dbaff);
  -webkit-background-clip: text;
  background-clip: text;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   18. Table
   -------------------------------------------------------------------------- */
.tbl-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden auto;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.tbl-scroll {
  overflow-x: auto;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.tbl th,
table.tbl td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
table.tbl thead th {
  background: var(--bg-subtle);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
table.tbl tbody tr:last-child td {
  border-bottom: 0;
}
table.tbl tbody tr {
  transition: background 0.18s var(--ease);
}
table.tbl tbody tr:hover {
  background: var(--bg-subtle);
}
table.tbl td:first-child {
  font-weight: 650;
  color: var(--navy);
}
table.tbl .n {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
table.tbl th.n {
  text-align: right;
}
.win {
  color: #047857;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   19. Accordion
   -------------------------------------------------------------------------- */
.acc {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.acc details {
  border-bottom: 1px solid var(--border);
}
.acc details:last-child {
  border-bottom: 0;
}
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.9688rem;
  letter-spacing: -0.012em;
  list-style: none;
  transition: background 0.18s var(--ease);
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary:hover {
  background: var(--bg-subtle);
}
.acc summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s var(--ease-out), border-color 0.2s var(--ease);
}
.acc details[open] summary {
  color: var(--blue);
}
.acc details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--blue);
}
.acc .acc-in {
  padding: 0 22px 22px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.68;
  max-width: 760px;
}
.acc .acc-in p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   20. Forms
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field > label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  background: var(--bg-card);
  font-size: 0.9375rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}
.field .err {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 550;
  display: none;
}
.field.is-bad input,
.field.is-bad textarea,
.field.is-bad select {
  border-color: var(--red);
  background: var(--red-light);
}
.field.is-bad .err {
  display: block;
}
.note {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--green-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.foot {
  background: var(--navy);
  color: rgba(248, 250, 252, 0.7);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) auto 1fr;
  align-items: start;
  gap: 40px 56px;
}
.foot-links {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 56px;
  padding-top: 6px;
}
.foot-nav,
.foot-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 0;
}
.foot-nav a,
.foot-contact a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.7);
  transition: color 0.18s var(--ease);
}
.foot-nav a:hover,
.foot-contact a:hover {
  color: #fff;
}
.foot-contact .foot-phone {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.55);
}
.foot-contact .foot-phone:hover {
  color: #fff;
}
.foot-contact > a:first-child {
  margin-bottom: 4px;
}
.foot-emails {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 0;
}
.foot-emails a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.55);
  transition: color 0.18s var(--ease);
  word-break: break-all;
}
.foot-emails a:hover {
  color: #fff;
}
.foot .brand {
  color: #fff;
}
.foot h5 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.44);
  margin-bottom: 16px;
}
.foot ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.foot ul a {
  font-size: 0.9063rem;
  transition: color 0.18s var(--ease);
}
.foot ul a:hover {
  color: #fff;
}
.foot .about {
  font-size: 0.9063rem;
  line-height: 1.66;
  max-width: 330px;
  margin-top: 16px;
}
.foot-bot {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(248, 250, 252, 0.44);
}

/* --------------------------------------------------------------------------
   22. Reveal animations
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal="left"] {
  transform: translateX(-24px);
}
[data-reveal="right"] {
  transform: translateX(24px);
}
[data-reveal="zoom"] {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .foot-grid {
    gap: 34px;
  }
  .g-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid--report {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid--report .top-report {
    transform: none;
  }
  .top-report-body {
    max-height: none;
  }
}
@media (max-width: 940px) {
  :root {
    --pad: 22px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta .btn:not(.burger) {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .shell.split.report-hero {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--maxw);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--pad);
  }
  .report-hero > [data-stagger] {
    max-width: none;
  }
  .report-hero .tilt-wrap {
    width: 100%;
    padding-right: 0;
  }
  .ai-pick-stage {
    min-height: 0;
  }
  .hero .lede {
    max-width: none;
  }
  .g-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-matrix > *,
  .feature-matrix > :nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .feature-matrix > *,
  .feature-matrix > :nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
  .feature-matrix > :nth-child(2n) {
    border-right: 0;
  }
  .feature-matrix > :nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .top-cols {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .pipe {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipe-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
  }
  .pipe-nav button {
    min-width: 190px;
    flex-shrink: 0;
  }
  .pipe-panel {
    min-height: 0;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }
  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-matrix > *,
  .feature-matrix > :nth-child(2n),
  .feature-matrix > :nth-child(3n) {
    border-right: 0;
  }
  .feature-matrix > *,
  .feature-matrix > :nth-last-child(-n + 2),
  .feature-matrix > :nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
  .feature-matrix > :last-child {
    border-bottom: 0;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-links {
    padding-top: 0;
    gap: 40px;
  }
  .foot-nav,
  .foot-contact,
  .foot-emails {
    gap: 12px;
  }
  .hero-meta {
    gap: 18px 26px;
  }
  .card,
  .card-xl {
    padding: 22px;
  }
  .bar {
    grid-template-columns: 70px minmax(0, 1fr) 34px;
    gap: 9px;
  }
  .res {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 12px;
  }
  .sim-body {
    padding: 16px;
  }
  .rep-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rep-card-top {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
  }
  .rep-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 12px 14px 14px;
  }
  .rep-cta {
    margin: 0 14px 14px;
  }
  /* Stacked full-detail cards run too tall on a phone, so only the best match
     keeps its metrics; the runners-up collapse to their headers. */
  .rep-card:not(:first-child) .rep-metrics,
  .rep-card:not(:first-child) .rep-cta {
    display: none;
  }
  .top-cols {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  .top-col:not(:first-child) .rep-chart {
    display: none;
  }
  .top-col:not(:first-child) .rep-metrics,
  .top-col:not(:first-child) .rep-cta {
    display: none;
  }
  .persona-picker {
    padding: 18px;
  }
  .persona-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .persona-result {
    padding: 18px;
  }
  .msg {
    max-width: 92%;
  }
  .marquee-track {
    animation-duration: 30s;
  }
}

/* --------------------------------------------------------------------------
   24. Who it's for — audience page
   -------------------------------------------------------------------------- */
.who-list {
  gap: 10px;
}
.who-list li {
  position: relative;
  padding-left: 16px;
}
.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.inv .who-list li::before {
  background: #7ea6ff;
}
.who-out {
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--bg-subtle);
}

/* Audience switcher (hero) */
.aud {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 18px;
}
.aud-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.aud-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 18px 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease-out), background 0.24s var(--ease);
  cursor: pointer;
  width: 100%;
}
.aud-chip:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.aud-chip[aria-selected="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12), var(--shadow-md);
  background: #fff;
}
.aud-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue);
}
.aud-chip[aria-selected="true"] .aud-ico {
  background: var(--blue);
  color: #fff;
}
.aud-ico svg {
  width: 20px;
  height: 20px;
}
.aud-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.aud-txt b {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  color: var(--ink);
  line-height: 1.25;
}
.aud-txt i {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.35;
}
.aud-stage {
  position: relative;
  min-height: 280px;
}
.aud-panel {
  animation: audIn 0.38s var(--ease-out);
}
.aud-panel .t-h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.024em;
  line-height: 1.2;
  max-width: 34ch;
}
.aud-panel .body {
  font-size: clamp(1.05rem, 1.35vw, 1.15rem);
  line-height: 1.65;
  max-width: 62ch;
}
.aud-panel .glow-line {
  margin-top: 16px;
}
.aud-panel .glow-line + .row {
  margin-top: 12px;
}
@keyframes audIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Life-moment chips + before/after */
.mom {
  display: grid;
  gap: 20px;
}
.mom-nav,
.scn-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mom-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 14px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.inv .mom-chip {
  background: rgba(248, 250, 252, 0.04);
  border-color: rgba(248, 250, 252, 0.14);
  color: rgba(248, 250, 252, 0.72);
}
.mom-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.inv .mom-chip:hover {
  border-color: rgba(248, 250, 252, 0.28);
  color: #fff;
}
.mom-chip[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.inv .mom-chip[aria-selected="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  box-shadow: none;
}
.mom-stage,
.scn-stage {
  min-height: 320px;
}
.mom-panel,
.scn-panel {
  animation: audIn 0.38s var(--ease-out);
}
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ba-col {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  background: rgba(248, 250, 252, 0.03);
}
.ba-col--on {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(126, 166, 255, 0.35);
}
.ba-h {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.ba-col--on .ba-h {
  color: #9db7ff;
}

/* Ecosystem map */
.eco {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.eco-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 22px 20px;
  background: rgba(248, 250, 252, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.eco-k {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7ea6ff;
  margin-bottom: 10px;
}
.eco-b {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: rgba(248, 250, 252, 0.78);
  border-top: 1px solid rgba(248, 250, 252, 0.1);
}

@media (max-width: 1100px) {
  .aud-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eco {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .aud-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .aud-chip {
    align-items: center;
  }
  .ba {
    grid-template-columns: 1fr;
  }
  .eco {
    grid-template-columns: minmax(0, 1fr);
  }
  .aud-stage,
  .mom-stage,
  .scn-stage {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   25. Motion & print preferences
   -------------------------------------------------------------------------- */
@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .nav,
  .drawer,
  .progress,
  .aurora,
  .mesh,
  .foot {
    display: none !important;
  }
}
