/* =========================================================
   section-grader — home page AI Grader hero.
   Review row + headline + live search + a phone mockup that
   renders the audit Report inline (warm-dark theme that mirrors
   /assets/audit/* on the funnel page). All rules scoped under
   `.section-grader` so nothing leaks into the rest of the page.
   ========================================================= */

.section-grader {
  /* Tokens */
  --grader-bg:           #faf8f5;
  --grader-ink:          #0d0d0d;
  --grader-muted:        rgba(42, 42, 42, 0.70);
  --grader-muted-2:      rgba(42, 42, 42, 0.55);
  --grader-line:         rgba(205, 160, 127, 0.32);
  --grader-brown:        #cda07f;
  --grader-brand:        #e8347a;
  --grader-brand-dark:   #c81e62;
  --grader-brand-soft:   rgba(232, 52, 122, 0.08);
  --grader-lux-grad:     linear-gradient(135deg, #e8347a 0%, #cda07f 100%);
  --grader-ease:         cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Purple-black report palette (mirrors /assets/audit/audit-theme.jsx) */
  --rep-bg:        #08060B;
  --rep-bg-2:      #110B14;
  --rep-glass:     #18111B;
  --rep-glass-bd:  rgba(255, 255, 255, 0.10);
  --rep-fg:        #ffffff;
  --rep-muted:     #C9C1CC;
  --rep-muted-2:   #8E8491;
  --rep-faint:     rgba(255, 255, 255, 0.40);
  --rep-fainter:   rgba(255, 255, 255, 0.18);
  --rep-warn:      #F5B942;
  --rep-good:      #20E39A;
  --rep-bad:       #FF5E7A;
  --rep-pink:      #FF2F92;
  --rep-serif:     "DM Serif Display", Georgia, serif;

  --enzo-text:     #0d0d0d;
  --enzo-em-from:  #e8347a;
  --enzo-em-to:    #f472b6;

  color: var(--grader-ink);
  -webkit-font-smoothing: antialiased;
  padding-top: 4em;
  overflow: clip;
}

.section-grader * { box-sizing: border-box; }

.section-grader .container-large {
  width: 100%;
  max-width: 83em;
  margin: 0 auto;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

/* ── Hero layout ─────────────────────────────────────── */
.section-grader .hp-hero {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 2em;
  text-align: center;
  width: 100%;
}

.section-grader .hp-hero_head {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 1.4em;
  max-width: 60em;
}

/* Review row */
.section-grader .review-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--grader-brand);
}

.section-grader .review-row_stars-box {
  position: relative;
  width: 5em;
  display: flex;
  align-items: center;
}

.section-grader .review-row_stars { width: 5em; }
.section-grader .review-row_stars.cc-full {
  position: absolute;
  inset: 0;
}

.section-grader .review-row_stars-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.section-grader .text-color-muted    { color: var(--grader-ink); }
.section-grader .text-color-supermuted { color: var(--grader-muted-2); }
.section-grader .h6 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1; }

/* Title (matches other home titles) */
.section-grader .enzo-title {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--enzo-text);
  margin: 0;
  text-wrap: balance;
}

.section-grader .enzo-title em {
  font-style: italic;
  font-weight: 400;
  font-family: "PlayfairDisplay", "Times New Roman", serif;
  background: linear-gradient(135deg, var(--enzo-em-from) 0%, var(--enzo-em-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Search pill ─────────────────────────────────────── */
.section-grader .hp-input {
  width: 100%;
  max-width: 32em;
  position: relative;
}

.section-grader .search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  background: rgba(42, 42, 42, 0.05);
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 8px 8px 8px 26px;
  transition: background .25s var(--grader-ease),
              border-color .25s var(--grader-ease),
              box-shadow .25s var(--grader-ease);
  font-family: inherit;
}

.section-grader .search-bar:hover {
  background: rgba(42, 42, 42, 0.07);
}

.section-grader .search-bar:focus-within {
  background: #ffffff;
  border-color: rgba(232, 52, 122, 0.30);
  box-shadow: 0 0 0 4px rgba(232, 52, 122, 0.08),
              0 18px 40px -22px rgba(232, 52, 122, 0.18);
}

.section-grader .search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--grader-ink);
  padding: 0;
  height: 48px;
}

.section-grader .search-input::placeholder {
  color: rgba(42, 42, 42, 0.45);
  font-weight: 400;
}
.section-grader .search-input.is-invalid { color: var(--grader-brand-dark); }

.section-grader .search-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--grader-brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: transform .2s var(--grader-ease),
              box-shadow .2s var(--grader-ease),
              background-color .2s var(--grader-ease);
  box-shadow: 0 10px 22px -10px rgba(232, 52, 122, 0.65);
}

.section-grader .search-cta:hover {
  background: var(--grader-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -10px rgba(232, 52, 122, 0.75);
}

.section-grader .search-cta:active { transform: translateY(0); }
.section-grader .search-cta svg { display: block; }
.section-grader .search-cta-arrow { transition: transform .2s var(--grader-ease); }
.section-grader .search-cta:hover .search-cta-arrow { transform: translateY(-2px); }
.section-grader .search-cta-label { white-space: nowrap; }

/* Search pill needs its own stacking context so the dropdown
   sits above the phone mockup below it. */
.section-grader .hp-input { z-index: 50; }

/* Suggest dropdown */
.section-grader .search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(205, 160, 127, 0.28);
  border-radius: 18px;
  padding: 10px;
  z-index: 60;
  text-align: left;
  box-shadow: 0 24px 60px -16px rgba(13, 13, 13, .18),
              0 4px 12px -4px rgba(13, 13, 13, .06);
  max-height: min(360px, 50vh);
  overflow-y: auto;
}

.section-grader .search-suggest:not([hidden]) {
  animation: section-grader-suggest-drop .22s var(--grader-ease);
}

@keyframes section-grader-suggest-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Portaled-to-body fallback styles for the suggest dropdown. These mirror
   the scoped .section-grader rules so the dropdown looks identical when JS
   moves it outside the section on mobile/tablet (see grader.js). */
body > .search-suggest.is-grader-portal {
  background: #fff;
  border: 1px solid rgba(205, 160, 127, 0.28);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  box-shadow: 0 24px 60px -16px rgba(13, 13, 13, .18),
              0 4px 12px -4px rgba(13, 13, 13, .06);
  overflow-y: auto;
  color: #0d0d0d;
  font-family: Inter, sans-serif;
}
body > .search-suggest.is-grader-portal .suggest-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 12px 14px; border-radius: 14px;
  background: transparent; border: 0; color: #0d0d0d;
  cursor: pointer; font-family: inherit;
  transition: background .15s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body > .search-suggest.is-grader-portal .suggest-item + .suggest-item { margin-top: 2px; }
body > .search-suggest.is-grader-portal .suggest-item:hover,
body > .search-suggest.is-grader-portal .suggest-item.is-active { background: #faf8f5; }
body > .search-suggest.is-grader-portal .suggest-text { flex: 1; min-width: 0; }
body > .search-suggest.is-grader-portal .suggest-name {
  font-weight: 600; font-size: 14.5px; color: #0d0d0d;
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body > .search-suggest.is-grader-portal .suggest-addr {
  font-size: 12.5px; color: rgba(42, 42, 42, 0.55);
  margin-top: 2px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body > .search-suggest.is-grader-portal .suggest-go {
  flex-shrink: 0; color: rgba(42, 42, 42, 0.55);
  transition: color .15s, transform .15s;
}
body > .search-suggest.is-grader-portal .suggest-item:hover .suggest-go,
body > .search-suggest.is-grader-portal .suggest-item.is-active .suggest-go {
  color: #e8347a;
  transform: translate(2px, -2px);
}
body > .search-suggest.is-grader-portal .suggest-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; font-size: 14px; color: rgba(42, 42, 42, 0.70);
}
body > .search-suggest.is-grader-portal .suggest-spinner {
  flex-shrink: 0; width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(232, 52, 122, 0.18);
  border-top-color: #e8347a;
  animation: section-grader-spin 0.8s linear infinite;
}
body > .search-suggest.is-grader-portal .suggest-empty {
  display: flex; flex-flow: column; gap: 4px;
  padding: 14px 16px; font-size: 13px; color: rgba(42, 42, 42, 0.70);
}
body > .search-suggest.is-grader-portal .suggest-empty strong {
  font-size: 14px; font-weight: 600; color: #0d0d0d;
}

.section-grader .suggest-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 12px 14px; border-radius: 14px;
  background: transparent; border: 0; color: var(--grader-ink);
  cursor: pointer; font-family: inherit;
  transition: background .15s var(--grader-ease);
}
.section-grader .suggest-item + .suggest-item { margin-top: 2px; }
.section-grader .suggest-item:hover,
.section-grader .suggest-item.is-active { background: var(--grader-bg); }
.section-grader .suggest-text { flex: 1; min-width: 0; }
.section-grader .suggest-name {
  font-weight: 600; font-size: 14.5px; color: var(--grader-ink);
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-grader .suggest-addr {
  font-size: 12.5px; color: var(--grader-muted-2);
  margin-top: 2px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-grader .suggest-go {
  flex-shrink: 0; color: var(--grader-muted-2);
  transition: color .15s var(--grader-ease), transform .15s var(--grader-ease);
}
.section-grader .suggest-item:hover .suggest-go,
.section-grader .suggest-item.is-active .suggest-go {
  color: var(--grader-brand);
  transform: translate(2px, -2px);
}

.section-grader .search-error {
  margin-top: 10px; font-size: 13px; color: var(--grader-brand-dark); text-align: center;
}

/* Loading + empty states inside the suggest dropdown */
.section-grader .suggest-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--grader-muted);
}

.section-grader .suggest-spinner {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(232, 52, 122, 0.18);
  border-top-color: var(--grader-brand);
  animation: section-grader-spin 0.8s linear infinite;
}

@keyframes section-grader-spin {
  to { transform: rotate(360deg); }
}

.section-grader .suggest-empty {
  display: flex;
  flex-flow: column;
  gap: 4px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--grader-muted);
}

.section-grader .suggest-empty strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--grader-ink);
}

/* ── Phone mockup ────────────────────────────────────── */
.section-grader .hp-hero_phone {
  display: flex;
  flex-flow: column;
  align-items: center;
  width: 100%;
  height: 44.5em;
  padding-top: 4.25em;
  position: relative;
}

.section-grader .hp-hero_phone-inner {
  position: absolute;
  inset: 7em 5em 0;
  z-index: 1;
  border-radius: 4em;
  background-color: var(--grader-brown);
  pointer-events: none;
  overflow: hidden;
}

.section-grader .hp-hero_lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-grader .hp-hero_lines path {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  fill: none;
}

.section-grader .hp-hero_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.section-grader .hp-hero_phone-box {
  position: relative;
  z-index: 3;
  aspect-ratio: 390 / 799;
  width: 100%;
  max-width: 30em;
  font-size: 1rem;
      position: relative;
    top: -3rem;
}

.section-grader .hp-hero_phone-mock {
  position: relative;
  z-index: 5;
  display: block;
  width: 101%;
  max-width: 101%;
  margin-left: -0.5%;
  pointer-events: none;
}

/* Inner screen (where the live report renders) */
.section-grader .hp-hero_phone-screen {
  position: absolute;
  z-index: 2;
  inset: 1.2em 1em 1em;
  border-radius: 3.2em;
  background: var(--rep-bg);
  overflow: hidden;
  display: flex;
  flex-flow: column;
}

/* ── Status bar (clock + icons) ──────────────────────── */
.section-grader .hp-phone_phone-status {
 position: absolute;
    z-index: 6;
    top: 2.3em;
    left: 1.5em;
    right: 1.5em;
    height: 1.6em;
    padding: 0 1.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    color: #fff;
}

.section-grader .hp-phone_clock {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.section-grader .hp-phone_status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
}

.section-grader .hp-phone_status-icons svg { display: block; }

/* Battery: rounded outline + level fill + small cap */
.section-grader .hp-phone_battery {
  position: relative;
  display: inline-block;
  width: 1.55em;
  height: 0.7em;
  border: 1px solid currentColor;
  border-radius: 0.22em;
  opacity: 0.95;
}

.section-grader .hp-phone_battery::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.2em;
  transform: translateY(-50%);
  width: 0.12em;
  height: 0.36em;
  background: currentColor;
  border-radius: 0 0.08em 0.08em 0;
  opacity: 0.55;
}

.section-grader .hp-phone_battery-level {
  position: absolute;
  inset: 1.5px;
  width: calc(82% - 3px);
  background: currentColor;
  border-radius: 0.12em;
}

/* ── Live audit report (mirrors /assets/audit/audit-mobile.jsx) ─────── */
.section-grader .hp-report {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-flow: column;
  gap: 1.4em;
  padding: 4.2em 2.4em 1.6em;
  color: var(--rep-fg);
  font-family: inherit;
  font-size: 0.82em;
  text-align: left;
  background: var(--rep-bg);
  overflow-y: auto;
  scrollbar-width: none;
  pointer-events: none;
  touch-action: none;
  scroll-behavior: auto;
}

.section-grader .hp-report::-webkit-scrollbar { display: none; }

/* Keep the report's flex children at their natural height so total content
   overflows the constrained .hp-report box — that overflow is what GSAP
   scrubs as scrollTop. */
.section-grader .hp-report > * { flex-shrink: 0; }

/* Hero */
.section-grader .hp-report-hero {
  font-family: inherit;
  font-weight: 300;
  font-size: 1.95em;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--rep-fg);
  margin: 0;
}

.section-grader .hp-report-hero em {
  font-family: var(--rep-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rep-fg);
  font-size: 1.1em;
}

.section-grader .hp-report-hero-tail {
  color: var(--rep-muted-2);
  font-weight: 200;
}

.section-grader .hp-report-diag {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.55;
  color: var(--rep-muted);
  font-weight: 300;
}

/* Score card (Glass) */
.section-grader .hp-report-card {
  display: flex;
  flex-flow: column;
  gap: 0.9em;
  padding: 1.1em;
  border-radius: 1em;
  background: var(--rep-glass);
  border: 1px solid var(--rep-glass-bd);
}

.section-grader .hp-report-score-row {
  display: flex;
  align-items: center;
  gap: 1em;
}

.section-grader .hp-report-ring {
  position: relative;
  width: 4.7em;
  height: 4.7em;
  flex-shrink: 0;
}

.section-grader .hp-report-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.section-grader .hp-report-ring-track {
  fill: none;
  stroke: var(--rep-glass-bd);
  stroke-width: 7;
}

.section-grader .hp-report-ring-fill {
  fill: none;
  stroke: var(--rep-warn);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 292.17;
  stroke-dashoffset: calc(292.17 * (1 - var(--hp-report-score, 50) / 100));
}

.section-grader .hp-report-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  font-size: 1.55em;
  font-weight: 300;
  color: var(--rep-fg);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.section-grader .hp-report-ring-num span {
  display: block;
  font-size: 0.32em;
  color: var(--rep-faint);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.4em;
}

.section-grader .hp-report-score-meta { flex: 1; min-width: 0; }

.section-grader .hp-report-eye-mini {
  font-size: 0.65em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rep-faint);
  margin: 0;
}

.section-grader .hp-report-grade {
  font-family: var(--rep-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25em;
  color: var(--rep-warn);
  margin-top: 0.25em;
}

.section-grader .hp-report-issues {
  font-size: 0.78em;
  color: var(--rep-muted-2);
  margin-top: 0.25em;
  line-height: 1.4;
}

.section-grader .hp-report-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.section-grader .hp-report-stat {
  padding: 0.75em 0.9em;
  border-radius: 0.65em;
  background: var(--rep-glass);
  border: 1px solid var(--rep-glass-bd);
}

.section-grader .hp-report-stat-lbl {
  font-size: 0.62em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rep-muted-2);
}

.section-grader .hp-report-stat-val {
  font-size: 1.25em;
  font-weight: 300;
  color: var(--rep-fg);
  margin-top: 0.3em;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.section-grader .hp-report-stat-val span {
  color: var(--rep-faint);
  font-size: 0.62em;
}

/* Section head */
.section-grader .hp-report-head {
  margin-top: 0.2em;
}

.section-grader .hp-report-h4 {
  font-family: inherit;
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.1;
  margin: 0.6em 0 0;
  color: var(--rep-fg);
  letter-spacing: -0.025em;
}

.section-grader .hp-report-h4 em {
  font-family: var(--rep-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rep-fg);
}

.section-grader .hp-report-subhead {
  margin: 0.55em 0 0;
  font-size: 0.82em;
  color: var(--rep-muted-2);
  font-weight: 300;
  line-height: 1.55;
}

.section-grader .hp-report-subhead strong {
  color: var(--rep-fg);
  font-weight: 500;
}

/* Top-priorities leak cards */
.section-grader .hp-report-leaks {
  display: flex;
  flex-flow: column;
  gap: 0.7em;
}

.section-grader .hp-report-leak {
  padding: 1.1em;
  border-radius: 1em;
  background: var(--rep-glass);
  border: 1px solid var(--rep-glass-bd);
}

.section-grader .hp-report-leak header {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 0.65em;
}

.section-grader .hp-report-leak-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: var(--rep-glass);
  border: 1px solid var(--rep-glass-bd);
  font-size: 0.78em;
  font-weight: 500;
  color: var(--rep-fg);
}

.section-grader .hp-report-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22em 0.65em;
  border-radius: 999px;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-grader .hp-report-pill.is-critical {
  color: var(--rep-bad);
  background: rgba(255, 94, 122, 0.12);
  border: 1px solid rgba(255, 94, 122, 0.30);
}

.section-grader .hp-report-pill.is-high {
  color: var(--rep-warn);
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.30);
}

.section-grader .hp-report-pill.is-med {
  color: var(--rep-muted);
  background: var(--rep-glass);
  border: 1px solid var(--rep-glass-bd);
}

.section-grader .hp-report-leak h5 {
  margin: 0 0 0.4em;
  font-size: 1.05em;
  font-weight: 400;
  color: var(--rep-fg);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.section-grader .hp-report-leak-h5-tail {
  color: var(--rep-muted-2);
  font-weight: 400;
}

.section-grader .hp-report-leak p {
  margin: 0;
  font-size: 0.78em;
  color: var(--rep-muted);
  line-height: 1.5;
  font-weight: 300;
}

.section-grader .hp-report-leak-prio {
  margin-top: 0.85em;
  padding: 0.7em 0.85em;
  border-radius: 0.65em;
  background: var(--rep-glass);
  border: 1px solid var(--rep-glass-bd);
}

.section-grader .hp-report-leak-prio-val {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--rep-fg);
  margin: 0.25em 0 0.55em;
}

.section-grader .hp-report-leak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.section-grader .hp-report-leak-leak {
  font-size: 1.05em;
  font-weight: 300;
  color: var(--rep-fg);
  margin-top: 0.25em;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.section-grader .hp-report-leak-fix {
  font-size: 1.05em;
  font-weight: 300;
  color: var(--rep-good);
  margin-top: 0.25em;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Carousel dots */
.section-grader .hp-report-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

.section-grader .hp-report-dot {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--rep-fainter);
  transition: width 0.2s;
}

.section-grader .hp-report-dot.is-active {
  width: 1.55em;
  border-radius: 999px;
  background: var(--rep-pink);
}

/* Bottom CTA — white pill with pink outline (mirrors BtnPrimary) */
.section-grader .hp-report-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  padding: 0.85em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--rep-pink);
  background: #fff;
  color: var(--rep-bg);
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(255, 47, 146, 0.35);
}

/* ── Tablet ──────────────────────────────────────────── */
@media screen and (max-width: 991px) {
  .section-grader { padding-top: 2.5em; overflow: clip; }
  .section-grader .container-large { padding-left: 1.5em; padding-right: 1.5em; }
  .section-grader .hp-hero { gap: 1.5em; }

  /* Sticky search pill at the viewport bottom — white background with shadow
     so it reads as a floating element over the phone, matching the reference. */
  .section-grader .hp-input {
    z-index: 10;
    order: 9999;
    width: calc(100% - 2em);
    max-width: 40em;
    margin: -7rem auto 1.25em;
    padding: 0;
    font-size: 16px;
    bottom: 0.75em;
  }
  .section-grader .search-bar {
    background: #fff;
    box-shadow: 0 22px 50px -18px rgba(13, 13, 13, .35),
                0 8px 16px -6px rgba(13, 13, 13, .14);
    bottom: 1rem;
  }

  /* Dropdown is portaled to <body> by grader.js positionSuggest() so it
     escapes the section's overflow:clip. position:absolute (not fixed)
     with document-relative coords is used because iOS Safari positions
     fixed elements unreliably while the virtual keyboard is open. */
  .section-grader .search-suggest,
  body > .search-suggest.is-grader-portal {
    position: absolute;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 9999;
    max-height: min(360px, 45vh);
  }
  .section-grader .search-suggest:not([hidden]),
  body > .search-suggest.is-grader-portal:not([hidden]) {
    animation: section-grader-suggest-drop .22s var(--grader-ease);
  }

  /* Full-bleed phone area: the colored background extends to the viewport
     edges instead of being constrained inside .container-large padding.
     Achieved by breaking the phone wrapper out with 100vw + negative margin. */
  .section-grader .hp-hero_phone {
        position: relative;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        max-width: none;
        padding: 0em 2em 3.5em;
  }
  /* Inner extends from near the top of the wrapper to the bottom — and
     because hp-hero_phone has padding-top: 5em, there's a visible band of
     brown above the phone, like the reference. Bottom corners stay square
     so the color flows into the next section. */
  .section-grader .hp-hero_phone-inner {
        inset: 7.5em 0rem 0em;
        border-radius: 2em;
        margin-inline: 2rem;
        height: auto;
  }
  .section-grader .hp-hero_phone-box {
    top: 0;
    margin: 0 auto;
    max-width: 37em;
    font-size: 0.95rem;
  }
}

/* ── Mobile ──────────────────────────────────────────── */
@media screen and (max-width: 767px) {
  .section-grader .enzo-title {
    letter-spacing: -0.04em;
    font-size: 2.5em;
  }

  /* Compact pill: icon-only CTA, snug padding, single visible height. */
  .section-grader .search-cta-label { display: none; }
  .section-grader .search-cta {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .section-grader .search-bar {
    padding: 6px 6px 6px 18px;
    border-radius: 28px;
    gap: 0.5em;
    bottom: -1rem;
  }
  .section-grader .search-input {
    height: 44px;
    font-size: 16px;
  }

  .section-grader .review-row { flex-flow: wrap; justify-content: center; }

  /* Same pattern as tablet — pulled up with a large negative top margin so the
     bar overlaps the bottom of the phone card. */
  .section-grader .hp-input {
    max-width: 32em;
  }

  .section-grader .hp-hero_phone {
    padding: 0em 1.25em 2.5em;
    height: 30em;
  }
  /* Rounded card with side gutters (margin-inline) and all four corners
     rounded — mirrors tablet, scaled down. */
  .section-grader .hp-hero_phone-inner {
     inset: 6.5em 0 0;
    border-radius: 2.2em;
    margin-inline: 1.25rem;
    height: auto;
  }
  .section-grader .hp-hero_phone-box {
    margin: 0 auto;
    max-width: 30em;
    font-size: 0.85rem;
  }
  .section-grader .hp-hero_phone-screen{
        inset: 1em 1em 1em;
  }
  .section-grader{
    padding-bottom: 13px;
  }
}

@media screen and (max-width: 479px) {
  .section-grader .enzo-title { letter-spacing: -0.03em; }
  .section-grader .hp-hero { gap: 1.25em; }

  .section-grader .hp-input {
    width: calc(100% - 1.5em);
    max-width: 100%;
  }
  .section-grader .hp-hero_phone {
    padding: 0em 0.75em 2em;
  }
  .section-grader .hp-hero_phone-inner {
    margin-inline: 0.75rem;
    height: auto;
  }
  .section-grader .hp-hero_phone-box {
    box-shadow: none;
    max-width: 28em;
    font-size: 0.75rem;
  }
}
