@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import 'tokens.css';

/* ============================================================
   RESET + GLOBAL DEFAULTS
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-secondary);
  margin: 0;
}

h1 { font-size: var(--text-heading-3); line-height: var(--text-heading-3--lh); }
h2 { font-size: var(--text-heading-4); line-height: var(--text-heading-4--lh); }
h3 { font-size: var(--text-heading-5); line-height: var(--text-heading-5--lh); }
h4 { font-size: var(--text-heading-4); line-height: var(--text-heading-4--lh); }
h5 { font-size: var(--text-heading-5); line-height: var(--text-heading-5--lh); }
h6 { font-size: var(--text-heading-6); line-height: var(--text-heading-6--lh); font-weight: 700; letter-spacing: -.01em; }

p {
  font-family: var(--font-body);
  font-size: var(--text-tagline-1);
  line-height: var(--text-tagline-1--lh);
  color: var(--color-secondary);
  margin: 0;
}

a { color: var(--color-primary-600); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-tagline-3);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.main-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

section { padding-block: var(--section-padding-y); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.grid-sidebar { display: grid; grid-template-columns: 260px 1fr; }

@media (max-width: 860px) {
  section { padding-block: var(--section-padding-y-mobile); }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .grid-2, .grid-3, .grid-4, .grid-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-tagline-2);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s, color .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 10px 24px; font-size: var(--text-tagline-1); }
.btn-xl { padding: 14px 32px; font-size: var(--text-tagline-1); }
.btn-sm { padding: 8px 16px; font-size: var(--text-tagline-2); }

.btn-primary,
.btn-gold {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: 0 1px 2px rgba(64,56,199,.4), 0 10px 24px rgba(79,70,229,.28);
}
.btn-primary:hover,
.btn-gold:hover { background: var(--accent-deep); }

.btn-secondary {
  background: var(--color-secondary);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover { background: var(--ink-2); }

.btn-white {
  background: #fff;
  border-color: var(--color-stroke-3);
  color: var(--color-secondary);
}
.btn-white:hover { border-color: var(--ink-3); }

.btn-outline {
  background: transparent;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.btn-outline:hover { border-color: var(--ink-3); background: var(--surface-sunken); }

.btn-outline-inverse {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-outline-inverse:hover { border-color: #fff; }

.btn-ghost {
  padding: 9px 18px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  font-size: .9rem;
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }

.btn-arrow::after { content: '\2192'; transition: transform 200ms ease; }
.btn:hover .btn-arrow::after,
.btn.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-tagline-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  white-space: nowrap;
}
.badge-sm { font-size: var(--text-tagline-3); padding: 4px 12px; }
.badge-cyan { background: var(--teal-soft); color: var(--teal-deep); }
.badge-gold { background: var(--amber-soft); color: var(--amber); }
.badge-gray { background: var(--color-background-3); color: var(--ink-2); }
.badge-dark { background: var(--color-secondary); color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  padding: 28px;
}
.card-flat { background: var(--card); }
.card-dark { border-color: var(--border-default-dark); background: var(--color-background-5); }
.card-sm { border-radius: var(--radius-card-sm); }

/* ============================================================
   CHIPS (data-source style pills used across product screens)
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: var(--text-tagline-3);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card);
}
.chip-on { border-color: var(--color-primary-300); color: var(--color-primary-700); background: var(--color-primary-50); }

/* ============================================================
   SITE NAV (5-page marketing header + mobile drawer)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,246,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.site-header .main-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.site-header .logo { height: 26px; display: block; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--card);
  cursor: pointer;
  gap: 3px;
  flex-direction: column;
}
.nav-menu-btn span { display: block; width: 16px; height: 2px; background: var(--color-secondary); border-radius: 2px; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,14,12,.5);
}
.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 100%);
  background: var(--card);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-pop);
}
.nav-drawer-panel a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-default);
}
.nav-drawer-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: none;
  cursor: pointer;
  font-size: 18px;
  margin-bottom: 12px;
}

/* ============================================================
   MINIMAL SCAN-FLOW NAV (logo + single CTA bar; scan-demo.html only)
   ============================================================ */
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 22px 24px; }
.nav img { width: 108px; height: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   FOOTER (5-page marketing footer, Product/Platforms/Company columns)
   ============================================================ */
.site-footer {
  background: var(--color-background-8);
  color: var(--text-muted-inverse);
  padding: 64px 0 32px;
}
.site-footer .main-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h6 { color: #fff; font-family: var(--font-body); font-size: var(--text-tagline-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: var(--text-muted-inverse); display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { height: 24px; filter: invert(1) brightness(2); margin-bottom: 14px; }
.footer-bottom {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border-default-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--text-tagline-3);
  color: var(--text-muted-inverse);
}
@media (max-width: 860px) {
  .site-footer .main-container { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.section-intro { max-width: 640px; margin-inline: auto; text-align: center; }
.section-intro.left { margin-inline: 0; text-align: left; }

/* ============================================================
   SCAN-FLOW EXPERIENCE (scan-demo.html)
   ============================================================ */
.backdrop {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
      radial-gradient(720px 420px at 50% -80px, rgba(79,70,229,.075), transparent 70%),
      radial-gradient(560px 380px at 88% 100%, rgba(23,167,143,.06), transparent 70%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(25,25,23,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 38%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 38%, black 20%, transparent 75%);
}

.stage { display: none; position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }
.stage.active { display: block; animation: stage-in .6s var(--ease-out) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: stage-in .7s var(--ease-out) both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .15s; } .rise-3 { animation-delay: .25s; } .rise-4 { animation-delay: .38s; } .rise-5 { animation-delay: .5s; }

.door { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(28px, 7vh, 84px); }
.mascot { width: 96px; height: 96px; }
.mascot-float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.door .eyebrow { margin-top: 22px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.door h1 { margin-top: 14px; font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; max-width: 15ch; }
.door .sub { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.door-form { margin-top: 38px; width: 100%; max-width: 620px; display: flex; gap: 10px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-card); transition: box-shadow .2s var(--ease-out), border-color .2s; }
.door-form:focus-within { border-color: rgba(79,70,229,.45); box-shadow: 0 0 0 4px rgba(79,70,229,.1), var(--shadow-pop); }
.door-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: 12px 12px 12px 18px; color: var(--ink); }
.door-form input::placeholder { color: var(--ink-3); }
.door-form .btn-primary { padding: 14px 26px; font-size: 1rem; white-space: nowrap; }
.door-form.shake { animation: shake .4s; }
.door-error { margin-top: 14px; font-size: .92rem; font-weight: 600; color: #B4232C; display: none; }
.door-error.show { display: block; }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } 90% { transform: translateX(2px); } }
.door-trust { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--ink-3); font-size: .86rem; }
.door-trust span { display: inline-flex; align-items: center; gap: 7px; }
.door-platforms { margin-top: 64px; color: var(--ink-3); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.door-platform-names { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.door-signin { margin-top: 46px; font-size: .9rem; color: var(--ink-3); }
.door-signin a { color: var(--accent); font-weight: 600; text-decoration: none; }
.door-signin a:hover { text-decoration: underline; }
.door-see-more { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: none; border: none; cursor: pointer; font-family: inherit; }
.door-see-more:hover { color: var(--accent); }

.scan { display: flex; flex-direction: column; align-items: center; padding-top: clamp(24px, 6vh, 64px); text-align: center; }
.mascot-sniff { animation: sniff 1.4s ease-in-out infinite; }
@keyframes sniff { 0%, 100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(-5px) rotate(-4deg); } 60% { transform: translateX(5px) rotate(4deg); } }
.scan h2 { margin-top: 20px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; }
.scan h2 em { font-style: normal; color: var(--accent); }
.scan .scan-sub { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.scan-card { margin-top: 34px; width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.scan-progress { height: 4px; background: var(--line-soft); }
.scan-progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--accent)); transition: width .9s var(--ease-out); }
.scan-list { list-style: none; padding: 10px 8px; }
.scan-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius-md); color: var(--ink-3); font-size: .98rem; font-weight: 500; transition: color .3s, background .3s; }
.scan-item .scan-icon { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .3s, background .3s; }
.scan-item .scan-icon svg { width: 13px; height: 13px; display: none; }
.scan-item.running { color: var(--ink); background: var(--line-soft); }
.scan-item.running .scan-icon { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-item.done { color: var(--ink); }
.scan-item.done .scan-icon { border-color: var(--teal); background: var(--teal); animation: none; }
.scan-item.done .scan-icon svg { display: block; }
.scan-item.locked { opacity: .55; }
.scan-item.locked .scan-icon { border-style: dashed; font-size: .7rem; }
.scan-item .scan-note { margin-left: auto; font-size: .78rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.scan-summary { margin-left: auto; font-size: .8rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; animation: found-pop .4s var(--ease-out) both; }
.scan-item .scan-found { margin-left: 8px; }
.scan-found { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--teal-deep); background: var(--teal-soft); border-radius: 999px; padding: 4px 10px; opacity: 0; transform: translateY(6px) scale(.9); }
.scan-found.pop { animation: found-pop .45s var(--ease-out) both; }
@keyframes found-pop { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
.scan-tally { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow-card); }
.scan-tally b { color: var(--accent); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.reveal { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(40px, 10vh, 110px); position: relative; }
.reveal-count { font-size: clamp(4.6rem, 13vw, 8.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.reveal h2 { margin-top: 14px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; max-width: 24ch; }
.reveal .sub { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; max-width: 44ch; }
.reveal .btn-primary { margin-top: 34px; padding: 15px 32px; font-size: 1.02rem; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti i { position: absolute; top: 26%; left: 50%; width: 9px; height: 9px; border-radius: 2px; opacity: 0; animation: burst 1.15s var(--ease-out) both; animation-delay: var(--d); }
@keyframes burst { 0% { opacity: 0; transform: translate(0,0) rotate(0) scale(.5); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }

.opportunities { display: flex; flex-direction: column; align-items: center; padding-top: clamp(24px, 5vh, 56px); }
.opportunities-header { text-align: center; max-width: 620px; }
.link-says { display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px; box-shadow: var(--shadow-card); font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.link-says .mascot { width: 36px; height: 36px; }
.link-says em { font-style: normal; color: var(--ink); }
.opportunity-card { margin-top: 26px; width: 100%; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 30px 32px; animation: opportunity-in .55s var(--ease-out) both; }
@keyframes opportunity-in { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.opportunity-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opportunity-label { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.opportunity-confidence { font-size: .78rem; font-weight: 700; color: var(--teal-deep); background: var(--teal-soft); border-radius: 999px; padding: 5px 12px; }
.opportunity-card h3 { margin-top: 14px; font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.opportunity-stats { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.opportunity-stat { font-size: .86rem; color: var(--ink-3); font-weight: 600; }
.opportunity-stat b { display: block; margin-top: 3px; font-size: .98rem; color: var(--ink); font-weight: 700; }
.opportunity-stat .stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }
.opportunity-stat .stars .off { color: var(--line); }
.opportunity-evidence { margin-top: 20px; background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.opportunity-evidence b { color: var(--ink); }
.opportunity-reward { margin-top: 16px; display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.opportunity-reward b { color: var(--green); font-weight: 700; }
.opportunity-paths { margin-top: 24px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.opportunity-paths p { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.opportunity-path-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.opportunity-path-buttons .btn { padding: 12px 18px; font-size: .92rem; }
.opportunity-next { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.opportunity-dots { display: flex; gap: 6px; }
.opportunity-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; cursor: pointer; }
.opportunity-dots i.on { background: var(--accent); transform: scale(1.2); }
.opportunity-locked { margin-top: 34px; width: 100%; max-width: 640px; position: relative; }
.opportunity-locked .ghost-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); height: 74px; box-shadow: var(--shadow-card); }
.opportunity-locked .ghost-card + .ghost-card { margin-top: -58px; transform: scale(.965); opacity: .6; }
.opportunity-locked .ghost-card + .ghost-card + .ghost-card { transform: scale(.93); opacity: .35; }
.opportunity-locked-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; color: var(--ink); }
.opportunity-locked-overlay span { font-size: .85rem; font-weight: 500; color: var(--ink-3); }

.score { display: flex; flex-direction: column; align-items: center; padding-top: clamp(24px, 5vh, 56px); text-align: center; }
.score h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.score .sub { margin-top: 10px; color: var(--ink-2); max-width: 46ch; line-height: 1.6; }
.score-panel { margin-top: 36px; width: 100%; max-width: 820px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); display: grid; grid-template-columns: 260px 1fr; overflow: hidden; text-align: left; }
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 36px 24px; border-right: 1px solid var(--line-soft); }
.score-ring { position: relative; width: 180px; height: 180px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { stroke: var(--line-soft); }
.score-ring .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease-out); }
.score-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring-num b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring-num span { font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.score-ring-label { font-size: .92rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.score-ring-sub { font-size: .8rem; color: var(--ink-3); }
.score-breakdown { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.score-row { display: grid; grid-template-columns: 132px 1fr 38px; align-items: center; gap: 12px; }
.score-row .name { font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.score-bar { height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.score-bar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: var(--accent); transition: width 1.1s var(--ease-out); }
.score-row .val { font-size: .88rem; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.score-projection { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px; box-shadow: var(--shadow-card); font-size: .95rem; color: var(--ink-2); }
.score-projection .mascot { width: 36px; height: 36px; }
.score-projection b { color: var(--ink); }
.score-projection .up { color: var(--green); font-weight: 700; }
.score-cta { margin-top: 38px; width: 100%; max-width: 640px; background: linear-gradient(135deg, #23212E, #191925 55%, #10261F); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 40px 36px; color: #fff; text-align: center; }
.score-cta h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.score-cta p { margin-top: 10px; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.6; }
.score-cta .btn-primary { margin-top: 24px; padding: 15px 34px; font-size: 1.02rem; }
.score-cta .signin { margin-top: 16px; font-size: .88rem; color: rgba(255,255,255,.55); }
.score-cta .signin a { color: #A5B4FC; font-weight: 600; text-decoration: none; }
.score-cta .signin a:hover { text-decoration: underline; }
.restart { margin-top: 26px; font-size: .88rem; color: var(--ink-3); background: none; border: none; cursor: pointer; font-family: inherit; }
.restart:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 720px) {
  .door-form { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; }
  .door-form input { padding: 12px 10px; text-align: center; }
  .door-form .btn-primary { width: 100%; padding: 14px; }
  .score-panel { grid-template-columns: 1fr; }
  .score-ring-wrap { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .score-row { grid-template-columns: 92px 1fr 30px; }
  .opportunity-card { padding: 24px 20px; }
  .opportunity-path-buttons .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
