/* ═══════════════════════════════════════════════════════
   Hero Buddy — herobuddy.app
   Static site, no external requests (fonts, CDNs, trackers).
   Brand tokens mirror libs/shared/ui/styles/_app-tokens.scss.
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #0b0a0d;
  --bg-2: #121016;
  --surface: #17141c;
  --surface-2: #1f1b25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2f5;
  --text-muted: rgba(244, 242, 245, 0.66);
  --text-faint: rgba(244, 242, 245, 0.42);

  --accent: #e2001a;
  --accent-hover: #ff1f3a;
  --accent-rgb: 226, 0, 26;
  --accent-deep: #8a0010;
  --gold: #ffc629;
  --gold-rgb: 255, 198, 41;
  --ok: #3ddc84;
  --verified: #1d9bf0;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas,
    monospace;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(var(--accent-rgb), 0.55);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ═══ Header ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(11, 10, 13, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand b {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}
.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 20px;
    background: rgba(11, 10, 13, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 12px;
    font-size: 1.0625rem;
  }
  .nav-links .btn {
    margin-top: 8px;
    justify-content: center;
  }
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9875rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s,
    border-color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), 0.7);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 40px -8px rgba(var(--accent-rgb), 0.85);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
}
.nav-links .btn {
  padding: 10px 18px;
  color: #fff;
}
.nav-links .btn:hover {
  background: var(--accent-hover);
}

/* Store badges ("coming soon") */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #000;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.store strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.store .soon {
  position: absolute;
  top: -9px;
  right: -8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1300;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 110px);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -2;
  background: radial-gradient(
      60% 55% at 78% 30%,
      rgba(var(--accent-rgb), 0.38),
      transparent 70%
    ),
    radial-gradient(
      35% 35% at 12% 12%,
      rgba(var(--gold-rgb), 0.12),
      transparent 70%
    );
}
.hero::after {
  /* subtle grid */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    70% 60% at 50% 30%,
    #000 20%,
    transparent 75%
  );
  opacity: 0.5;
}
.ekg {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  z-index: -1;
  width: 100%;
  height: 160px;
  opacity: 0.55;
  pointer-events: none;
}
.ekg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.9));
  animation: ekg 5.5s cubic-bezier(0.6, 0.1, 0.3, 1) infinite;
}
@keyframes ekg {
  0% {
    stroke-dashoffset: 2400;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.eyebrow .dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
}
.eyebrow .dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 850;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
}
.hl {
  background: linear-gradient(100deg, #ff3b52 0%, var(--accent) 45%, #ff7a2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl-gold {
  color: var(--gold);
}
.lead {
  max-width: 36em;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-note {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* ═══ Phone mockup ═══ */
.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.phone-wrap::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.55),
    transparent 65%
  );
  filter: blur(30px);
  z-index: -1;
}
.phone {
  width: min(340px, 86vw);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(145deg, #2c2830, #0d0c10);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.8);
  transform: rotate(-2.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone:hover {
  transform: rotate(0deg) translateY(-6px);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 41px;
  overflow: hidden;
  background: linear-gradient(180deg, #16121a 0%, #0f0d12 100%);
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  z-index: 2;
}
.scr-top {
  padding: 50px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.scr-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff5b6e;
}
.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.scr-title {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.scr-sub {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.orb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.orb {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b7c, var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6);
  animation: breathe 2.4s ease-in-out infinite;
}
.orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.45);
  animation: ring 2.4s ease-out infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.07);
  }
}
@keyframes ring {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  flex: 1;
}
.wave i {
  flex: 1;
  height: 30%;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff6b7c, var(--accent));
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(3n) {
  animation-delay: -0.3s;
}
.wave i:nth-child(3n + 1) {
  animation-delay: -0.55s;
}
.wave i:nth-child(4n) {
  animation-delay: -0.8s;
}
.wave i:nth-child(5n) {
  animation-duration: 0.8s;
}
@keyframes wave {
  50% {
    height: 100%;
  }
}
.transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px 14px 10px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}
.bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 16px;
  line-height: 1.35;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.bubble b {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2px;
}
.bubble.patient {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 5px;
}
.bubble.me {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble.typing {
  display: flex;
  gap: 4px;
  padding: 12px;
}
.bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1s infinite;
}
.bubble.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.bubble.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  50% {
    transform: translateY(-4px);
    opacity: 0.4;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}
.checklist {
  margin: 0 12px 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.checklist-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.checklist-head output {
  color: var(--ok);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: color 0.3s;
}
.check::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  transition: background 0.3s, border-color 0.3s;
}
.check.done {
  color: var(--text);
}
.check.done::before {
  border-color: var(--ok);
  background: var(--ok)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b0a0d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* floating chips around phone */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(23, 20, 28, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip small {
  display: block;
  color: var(--text-faint);
  font-weight: 500;
  font-size: 0.6875rem;
}
.chip .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 1.1rem;
}
.chip-badge {
  top: 0;
  left: -4%;
}
.chip-badge .ico {
  background: rgba(var(--gold-rgb), 0.18);
}
.chip-score {
  bottom: 14%;
  right: -4%;
  animation-delay: -3s;
}
.chip-score .ico {
  background: rgba(61, 220, 132, 0.16);
}
@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}
@media (max-width: 560px) {
  .chip {
    display: none;
  }
}

/* ═══ Marquee ═══ */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee-track span::after {
  content: '✚';
  color: var(--accent);
  font-size: 0.8em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ═══ Sections ═══ */
section {
  position: relative;
}
.section {
  padding: clamp(72px, 10vw, 130px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}
.section-head p {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  text-wrap: pretty;
}

/* ═══ Bento features ═══ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.card::before {
  /* spotlight following the pointer (set via JS) */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, -30%),
    rgba(var(--accent-rgb), 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.card.wide {
  grid-column: span 4;
}
.card.half {
  grid-column: span 3;
}
.card h3 {
  margin: 18px 0 10px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}
.card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.14);
  color: #ff5b6e;
}
.card .icon.gold {
  background: rgba(var(--gold-rgb), 0.14);
  color: var(--gold);
}
.card .icon.blue {
  background: rgba(29, 155, 240, 0.14);
  color: var(--verified);
}
.card .icon.green {
  background: rgba(61, 220, 132, 0.14);
  color: var(--ok);
}
.card .icon svg {
  width: 24px;
  height: 24px;
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.16);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
@media (max-width: 960px) {
  .card,
  .card.half {
    grid-column: span 3;
  }
  .card.wide {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .card,
  .card.half,
  .card.wide {
    grid-column: auto;
  }
}

/* mini visuals inside cards */
.viz {
  margin-top: 24px;
}
.timeline {
  position: relative;
  height: 74px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  overflow: hidden;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 2px;
  background: var(--border-strong);
}
.timeline .needle {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 16px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: needle 8s linear infinite;
}
@keyframes needle {
  to {
    left: calc(100% - 18px);
  }
}
.timeline .ev {
  position: absolute;
  top: 50%;
  translate: -50% -50%;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.ev.good {
  background: rgba(61, 220, 132, 0.15);
  color: var(--ok);
}
.ev.mid {
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--gold);
}
.ev.bad {
  background: rgba(var(--accent-rgb), 0.18);
  color: #ff6b7c;
}
.ev:nth-of-type(odd) {
  top: 28%;
}
.ev:nth-of-type(even) {
  top: 72%;
}

.badges-row {
  display: flex;
  gap: 10px;
}
.medal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  background: radial-gradient(circle at 35% 30%, rgba(var(--gold-rgb), 0.5), rgba(var(--gold-rgb), 0.08));
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  transition: transform 0.3s;
}
.card:hover .medal {
  transform: rotate(-8deg) scale(1.06);
}
.card:hover .medal:nth-child(2) {
  transform: rotate(6deg) scale(1.06);
  transition-delay: 0.05s;
}
.card:hover .medal:nth-child(3) {
  transition-delay: 0.1s;
}
.medal.locked {
  filter: grayscale(1);
  opacity: 0.35;
}

.prompt {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-strong);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.prompt::after {
  content: '▍';
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
.gen {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.gen span {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}
.gen span:nth-child(1) {
  width: 70%;
}
.gen span:nth-child(2) {
  width: 90%;
}
.gen span:nth-child(3) {
  width: 55%;
}

.path {
  display: flex;
  align-items: center;
  gap: 0;
}
.path .node {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
}
.path .node.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.path .node.now {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0.12);
}
.path .link {
  flex: 1;
  height: 3px;
  background: var(--border-strong);
}
.path .link.done {
  background: var(--accent);
}

.avatars {
  display: flex;
}
.avatars span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  font-weight: 800;
  font-size: 0.8125rem;
}
.avatars span:first-child {
  margin-left: 0;
}

/* ═══ Steps ═══ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}
.step h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
.step p {
  margin: 0;
  color: var(--text-muted);
}

/* ═══ Split (team image) ═══ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.team-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(90% 90% at 50% 100%, rgba(var(--accent-rgb), 0.5), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  padding: 40px 20px 0;
  overflow: hidden;
}
.team-art img {
  width: 100%;
  height: auto;
}
.ticks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ticks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  color: var(--text-muted);
}
.ticks li strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}
.ticks li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.16);
  color: #ff5b6e;
  font-weight: 900;
  font-size: 0.875rem;
}

/* ═══ Organizations ═══ */
.org {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(70% 90% at 100% 0%, rgba(29, 155, 240, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
}
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .org-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .org-grid {
    grid-template-columns: 1fr;
  }
}
.org-item {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.org-item h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 14px 0 8px;
}
.org-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.12);
  color: var(--verified);
  font-weight: 700;
  font-size: 0.8125rem;
}
.verified svg {
  width: 18px;
  height: 18px;
}
.cert-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ═══ Trust ═══ */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .trust {
    grid-template-columns: 1fr;
  }
}
.trust-item {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.trust-item h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin: 14px 0 8px;
}
.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ═══ FAQ ═══ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] {
  border-color: var(--border-strong);
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.25s, background 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
}
.faq details > div {
  padding: 0 24px 22px;
  color: var(--text-muted);
}
.faq details > div p {
  margin: 0 0 10px;
}

/* ═══ CTA ═══ */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, #b30015 0%, var(--accent) 45%, #ff4a2e 100%);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #fff;
}
.cta p {
  max-width: 34em;
  margin: 18px auto 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.125rem;
}
.cta .stores {
  justify-content: center;
}
.cta .store {
  border-color: rgba(0, 0, 0, 0.3);
}
.cta .btn-light {
  background: #fff;
  color: #9a0012;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* ═══ Footer ═══ */
.site-footer {
  margin-top: clamp(72px, 10vw, 120px);
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-grid a {
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8125rem;
}

/* ═══ Legal / content pages ═══ */
.page-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
  position: relative;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 80% at 85% 0%, rgba(var(--accent-rgb), 0.25), transparent 70%);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  margin: 10px 0 14px;
}
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 44em;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 0.875rem;
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .toc {
    position: static;
  }
}
.prose {
  max-width: 76ch;
  overflow-wrap: break-word;
  color: rgba(244, 242, 245, 0.84);
}
.prose h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}
.prose li {
  margin-bottom: 6px;
}
.prose a {
  color: #ff6b7c;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: #ff97a4;
}
.prose address {
  font-style: normal;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 0.9375rem;
}
.table-scroll {
  overflow-x: auto;
  margin: 8px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.table-scroll table {
  margin: 0;
  min-width: 560px;
}
.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.prose th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.box {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.box.accent {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.07);
}
.box p:last-child,
.box ul:last-child,
.box ol:last-child {
  margin-bottom: 0;
}
.meta {
  color: var(--text-faint);
  font-size: 0.875rem;
}
/* Placeholder to be filled in before going live — deliberately loud. */
.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(var(--gold-rgb), 0.18);
  color: var(--gold);
  font-weight: 600;
  outline: 1px dashed rgba(var(--gold-rgb), 0.6);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}
.support-grid .card {
  grid-column: auto;
}
.support-grid .card a {
  color: #ff6b7c;
}

/* ═══ Reveal on scroll (JS adds .js to <html>) ═══ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ekg path {
    stroke-dashoffset: 0;
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══ 404 ═══ */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.notfound .code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
}
.notfound p {
  color: var(--text-muted);
  margin: 16px 0 28px;
}

/* ═══ Utilities (no inline styles → strict CSP) ═══ */
.d1 { --d: 0.06s; }
.d2 { --d: 0.1s; }
.d3 { --d: 0.15s; }
.d4 { --d: 0.2s; }
.pt-0 { padding-top: 0; }
.mt-24 { margin-top: 24px; }
.emoji { font-size: 1.5rem; line-height: 1; }

.timeline .ev:nth-of-type(1) { left: 14%; }
.timeline .ev:nth-of-type(2) { left: 32%; }
.timeline .ev:nth-of-type(3) { left: 52%; }
.timeline .ev:nth-of-type(4) { left: 70%; }
.timeline .ev:nth-of-type(5) { left: 88%; }

.avatars span:nth-child(1) { background: var(--accent); }
.avatars span:nth-child(2) { background: var(--gold); color: #1a1300; }
.avatars span:nth-child(3) { background: var(--verified); }
.avatars span:nth-child(4) { background: var(--ok); color: #06220f; }
.avatars span:nth-child(5) { background: #2a2530; }

.oicon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.14);
  color: #ff5b6e;
}
.oicon.blue { background: rgba(29, 155, 240, 0.14); color: var(--verified); }
.oicon.gold { background: rgba(var(--gold-rgb), 0.14); color: var(--gold); }
.oicon.green { background: rgba(61, 220, 132, 0.14); color: var(--ok); }
#org-title { margin-top: 18px; font-size: clamp(1.9rem, 4vw, 3rem); }
.org-lead { color: var(--text-muted); max-width: 44em; margin: 16px 0 0; font-size: 1.125rem; }
.org-cta { margin: 32px 0 0; }
