/* =====================================================================
   AdmitScore homepage premium skin — Stage 1 (light body + dark hero)
   Scoped to body.admit-home, loaded ONLY on the homepage. Enhances the
   existing light theme (never inverts it) and adds ONE controlled dark
   zone: the hero. No structural/HTML changes. Eliminates dark-retrofit
   contrast bugs by keeping body sections on their readable light theme.
   ===================================================================== */

.admit-home {
  --p-ink: #081320;
  --p-ink-2: #0c1d31;
  --p-panel: #102a45;
  --p-panel-2: #15324f;
  --p-paper: #f7f4ec;
  --p-paper-line: #e7e0d0;
  --p-accent: #4c84ff;
  --p-accent-ink: #2459b4;
  --p-accent-2: #34e0c9;
  --p-pos: #1f9e6b;
  --p-text: #eaf1fb;
  --p-muted-d: #9fb2c9;
  --p-line-d: rgba(255, 255, 255, 0.1);
  --p-line-l: rgba(8, 19, 32, 0.09);
  /* Sharp Card System (CLAUDE.md v2.3.6): outer cards <=6px, no 12px+ radii. */
  --p-r: 6px;
  --p-rlg: 8px;
  --p-shadow-l: 0 18px 40px -22px rgba(8, 19, 32, 0.28), 0 2px 6px -2px rgba(8, 19, 32, 0.08);
  --p-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --p-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

  font-family: var(--p-body);
}

.admit-home h1,
.admit-home h2,
.admit-home h3,
.admit-home .cta-band h2,
.admit-home .footer-brand h3 {
  font-family: var(--p-display);
  letter-spacing: -0.02em;
}

/* ---------- nav: clean white glass (keeps the real colored logo) ---------- */
.admit-home .navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--p-line-l);
  box-shadow: 0 6px 24px -18px rgba(8, 19, 32, 0.4);
}
/* Mobile: the nav collapses to a position:fixed full-screen drawer
   (.nav-menu in enterprise-clean.css). A non-`none` backdrop-filter makes
   .navbar the containing block for that fixed drawer, so its top:60px +
   bottom:0 resolve inside the ~60px bar -> a collapsed, mostly-hidden menu.
   Drop the glass blur at the drawer breakpoint so the drawer anchors to the
   viewport again; a solid bar reads clean without the blur. */
@media (max-width: 768px) {
  .admit-home .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
}
.admit-home .pilot-link {
  background: linear-gradient(180deg, #5a8dff, var(--p-accent));
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px var(--p-accent);
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}
.admit-home .pilot-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px var(--p-accent);
}

/* ---------- hero: the one dark zone (fully controlled) ---------- */
.admit-home .admit-hero {
  position: relative;
  overflow: hidden;
  background: var(--p-ink);
}
.admit-home .admit-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 50% at 16% 12%, rgba(76, 132, 255, 0.34), transparent 60%),
    radial-gradient(55% 55% at 90% 26%, rgba(52, 224, 201, 0.16), transparent 60%),
    radial-gradient(50% 60% at 60% 100%, rgba(76, 132, 255, 0.1), transparent 60%);
  filter: blur(10px);
}
.admit-home .admit-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--p-line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--p-line-d) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(72% 60% at 50% 28%, #000 28%, transparent 76%);
  mask-image: radial-gradient(72% 60% at 50% 28%, #000 28%, transparent 76%);
  opacity: 0.4;
}
.admit-home .admit-hero-grid {
  position: relative;
  z-index: 2;
}
.admit-home .admit-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--p-line-d);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  color: var(--p-muted-d);
  font-weight: 500;
}
.admit-home #hero-title {
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 28%, #c8d6ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admit-home .admit-hero .subtitle {
  color: var(--p-muted-d);
}
.admit-home .admit-hero .subtitle strong {
  color: var(--p-text);
}
.admit-home .hero-trust-line {
  color: var(--p-muted-d);
}
.admit-home .hero-trust-line a {
  color: var(--p-accent-2);
}
.admit-home .hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(58, 208, 139, 0.4);
  background: rgba(58, 208, 139, 0.1);
  color: #5fe0a8;
  font-size: 0.85rem;
  font-weight: 600;
}
.admit-home .hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fe0a8;
  box-shadow: 0 0 0 4px rgba(58, 208, 139, 0.18);
}
.admit-home .buyer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--p-line-d);
  background: rgba(255, 255, 255, 0.04);
  color: var(--p-text);
  transition:
    transform 0.15s,
    border-color 0.2s,
    background 0.2s;
}
.admit-home .buyer-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 132, 255, 0.5);
  background: rgba(76, 132, 255, 0.1);
}

/* hero product frame */
.admit-home .hero-report-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--p-line-d);
  border-radius: var(--p-rlg);
  background: linear-gradient(180deg, var(--p-panel-2), var(--p-panel));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: phm-float 7s ease-in-out infinite;
}
.admit-home .hero-report-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--p-rlg) + 2px);
  background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
  opacity: 0.4;
  filter: blur(26px);
}
.admit-home .hero-report-card img {
  border-radius: 14px;
  display: block;
  width: 100%;
  height: auto;
}
.admit-home .hero-report-card .report-caption {
  color: var(--p-muted-d);
}

/* ---------- buttons ---------- */
.admit-home .btn-primary {
  background: linear-gradient(180deg, #5a8dff, var(--p-accent));
  color: #fff;
  border: 1px solid transparent;
  box-shadow:
    0 12px 30px -12px var(--p-accent),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}
.admit-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px -14px var(--p-accent),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.admit-home .admit-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--p-line-d);
  color: var(--p-text);
}
.admit-home .admit-hero .btn-link,
.admit-home .admit-hero .btn-link-arrow {
  color: var(--p-accent-2);
}

/* ---------- body sections: keep the readable LIGHT theme, just refine ---------- */
.admit-home .admit-section.surface {
  background: var(--p-paper);
}
.admit-home .section-kicker {
  color: var(--p-accent-ink);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* premium card polish — shadow/border/radius/hover only; text + bg stay
   on the existing light theme so contrast is never touched */
.admit-home main .problem-card,
.admit-home main .review-card,
.admit-home main .step-box,
.admit-home main .analytics-card,
.admit-home main .questions-card,
.admit-home main .trust-note,
.admit-home main .founder-card {
  border: 1px solid var(--p-line-l);
  border-radius: var(--p-r);
  background: #ffffff;
  box-shadow: var(--p-shadow-l);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.admit-home main .problem-card:hover,
.admit-home main .review-card:hover,
.admit-home main .step-box:hover,
.admit-home main .analytics-card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 132, 255, 0.35);
  box-shadow: 0 26px 50px -26px rgba(8, 19, 32, 0.34);
}
.admit-home .surface .problem-card,
.admit-home .surface .review-card,
.admit-home .surface .step-box,
.admit-home .surface .analytics-card,
.admit-home .surface .questions-card,
.admit-home .surface .trust-note,
.admit-home .surface .founder-card {
  background: #ffffff;
}
.admit-home .surfaces-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(47, 107, 214, 0.1);
  color: var(--p-accent-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.admit-home .surfaces-card--accent {
  border-color: rgba(76, 132, 255, 0.35);
  background: linear-gradient(180deg, rgba(76, 132, 255, 0.06), #ffffff);
}

/* ---------- footer: dark bookend (bounded, fully covered) ---------- */
.admit-home .footer {
  background: var(--p-ink-2);
  border-top: 1px solid var(--p-line-d);
  color: var(--p-muted-d);
}
.admit-home .footer-brand h3,
.admit-home .footer-section h4 {
  color: var(--p-text);
}
.admit-home .footer-brand p,
.admit-home .footer-bottom,
.admit-home .footer-bottom p,
.admit-home .footer-links a,
.admit-home .footer-legal a {
  color: var(--p-muted-d);
}
.admit-home .footer-links a:hover,
.admit-home .footer-legal a:hover {
  color: var(--p-text);
}

/* ---------- sticky mobile CTA ---------- */
.admit-home .sticky-cta-mobile {
  background: linear-gradient(180deg, #5a8dff, var(--p-accent));
  color: #fff;
  box-shadow: 0 14px 30px -12px var(--p-accent);
}

/* ---------- hero product decision card (animated showcase) ---------- */
.admit-home .admit-proof-card {
  color: var(--p-text);
  padding: 24px;
}
.admit-home .apc-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-muted-d);
  background: var(--p-ink-2);
  border: 1px solid var(--p-line-d);
  padding: 4px 10px;
  border-radius: 999px;
}
.admit-home .apc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--p-muted-d);
}
.admit-home .apc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(58, 208, 139, 0.4);
  background: rgba(58, 208, 139, 0.1);
  color: #5fe0a8;
}
.admit-home .apc-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fe0a8;
}
.admit-home .apc-score {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 22px 0 18px;
}
.admit-home .apc-ring {
  --val: 82;
  width: 108px;
  height: 108px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--p-accent-2) calc(var(--val) * 1%), rgba(255, 255, 255, 0.09) 0);
  animation: apc-fill 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.admit-home .apc-ring::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--p-panel);
}
.admit-home .apc-num {
  position: relative;
  z-index: 1;
  font-family: var(--p-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
}
.admit-home .apc-lbl {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-muted-d);
}
.admit-home .apc-big {
  font-family: var(--p-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: #5fe0a8;
}
.admit-home .apc-per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--p-muted-d);
}
.admit-home .apc-cap {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--p-muted-d);
}
.admit-home .apc-flags {
  display: grid;
  gap: 9px;
}
.admit-home .apc-flag {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--p-line-d);
  font-size: 0.88rem;
  color: var(--p-text);
}
.admit-home .apc-flag-label {
  flex: 1;
}
.admit-home .apc-ic {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(76, 132, 255, 0.18);
  color: #8fb4ff;
  font-size: 13px;
  font-weight: 700;
}
.admit-home .apc-tag {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f2b35b;
}
.admit-home .apc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--p-line-d);
  font-size: 0.75rem;
  color: var(--p-muted-d);
}
@property --val {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}
@keyframes apc-fill {
  from {
    --val: 0;
  }
}

/* ---------- responsive safety: prevent the card from forcing mobile overflow ---------- */
.admit-home .admit-hero-grid > * {
  min-width: 0;
}
.admit-home #hero-title {
  overflow-wrap: break-word;
}
.admit-home .admit-proof-card {
  max-width: 100%;
}
.admit-home .apc-head {
  min-width: 0;
}
.admit-home .apc-ref {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admit-home .apc-flag {
  flex-wrap: wrap;
  row-gap: 4px;
}
/* Bulletproof the hero grid against blowout (1fr = minmax(auto,1fr) can be
   forced wider than the viewport by card content; minmax(0,1fr) cannot). */
@media (max-width: 980px) {
  .admit-home .admit-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admit-home .admit-hero::before {
    inset: 0;
  }
}

/* ---------- motion ---------- */
@keyframes phm-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .admit-home .hero-report-card,
  .admit-home .apc-ring {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
