/**
 * Shared audit widget styles — single source of truth for the audit section
 * across audit.html, index.html, seo-agency.html, and every partner page.
 * Relies on CSS variables each page already defines: --bg, --paper, --ink,
 * --ink-3, --muted, --muted-2, --rule, --rule-2, --accent, --accent-tint,
 * --score-good, --score-mid, --score-bad, --display, --mono,
 * --ease, --ease-out, --ease-spring.
 *
 * Scope: the entire audit section — hero intro, form, meta checkmarks,
 * status banner, stage tracker, SEO wall, strategist card, hero rewrite,
 * sample-ad, punchline, audit-after. Pages should NOT redefine any of
 * these in their own <style> blocks; this file loads after inline styles
 * so any drift is overridden, but stale duplicates should be removed.
 */

/* ─── Hero intro · "Drop your URL" headline + subhead ────────────── */
.audit-hero-intro { margin-bottom: clamp(28px, 3.2vw, 44px); }
.audit-hero-intro .eyebrow { margin-bottom: clamp(20px, 2.2vw, 32px); }
.audit-hero-intro .hero-h { margin-bottom: clamp(24px, 2.8vw, 40px); }

/* Partner pages already have their own H1 above the audit, so the
   audit headline gets a smaller scale to read as a secondary heading. */
.partner-hero .audit-hero-intro .hero-h {
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.audit-hero-sub {
  font-family: var(--display);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.audit-hero-sub strong { color: var(--ink); font-weight: 500; }

/* ─── Form · pill with https:// prefix + 3 inputs + run button ───── */
.audit-form {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr) auto minmax(0, 0.85fr) auto;
  align-items: center;
  background: #fff;
  border: 0.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px;
  gap: 4px;
  transition: box-shadow 240ms var(--ease);
}
.audit-form, .audit-form > *, .audit-form input { min-width: 0; }
.audit-form:focus-within { box-shadow: 0 0 0 4px var(--accent-tint); }

.url-prefix {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 0 0 22px;
  position: relative;
  min-width: 0;
}
.url-prefix::before {
  content: "https://";
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  padding-right: 10px;
  border-right: 1px solid var(--rule-2);
  margin-right: 8px;
  white-space: nowrap;
}
.url-prefix input { padding-left: 0; }

.audit-form input {
  height: 56px;
  font-family: var(--display);
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -0.01em;
  width: 100%;
  box-sizing: border-box;
}
.audit-form input::placeholder { color: var(--muted-2); }
.audit-form input[type="email"] { padding-left: 12px; }

.audit-divider {
  width: 1px;
  height: 24px;
  background: var(--rule-2);
  margin: 0 12px;
}

.audit-form button {
  height: 56px;
  padding: 0 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 240ms var(--ease), transform 320ms var(--ease-spring);
  white-space: nowrap;
}
.audit-form button:hover:not(:disabled) { background: var(--accent); }
.audit-form button:disabled { opacity: 0.5; cursor: wait; }

@media (max-width: 720px) {
  .audit-form {
    grid-template-columns: 1fr;
    border-radius: 16px;
    padding: 8px;
    gap: 6px;
  }
  .audit-form input {
    height: 48px;
    padding: 0 12px;
    background: var(--paper);
    border-radius: 8px;
  }
  .audit-form input[type="email"] { padding-left: 12px; }
  .audit-form input[type="tel"]   { padding-left: 12px; }
  .audit-divider { display: none; }
  .audit-form button { width: 100%; justify-content: center; height: 48px; }
}

.audit-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
}
.audit-meta .check { color: var(--accent); margin-right: 6px; }

/* ─── Status banner ──────────────────────────────────────────────── */
.audit-status {
  display: none;
  margin-top: 24px;
  padding: 16px 22px;
  border-radius: 999px;
  border: 0.5px solid var(--rule);
  background: var(--bg);
}
.audit-status.is-loading { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); }
.audit-status.is-error   { display: inline-block; border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

.spinner {
  width: 14px; height: 14px;
  border: 1.5px solid var(--rule-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: zd-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes zd-spin { to { transform: rotate(360deg); } }

/* ─── Live stage tracker ─────────────────────────────────────────── */
.audit-stages {
  display: none;
  margin-top: 28px;
  padding: 24px clamp(20px, 2.4vw, 28px);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 16px;
  max-width: 560px;
}
.audit-stages.is-shown { display: block; }
.audit-stages .hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.audit-stages .hdr .elapsed { color: var(--ink); }
.audit-stages .hdr .elapsed::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(-1px);
  animation: zd-stage-pulse 1.2s ease-in-out infinite;
}
@keyframes zd-stage-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.stage-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}
.stage-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: -0.005em;
  transition: color 260ms var(--ease);
}
.stage-item .ring {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-2);
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  transition: border-color 260ms var(--ease), background 260ms var(--ease);
}
.stage-item .ring::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.stage-item .tick { width: 18px; height: 18px; display: none; color: var(--score-good); }
.stage-item .label { color: inherit; }
.stage-item .detail {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  min-width: 64px;
  text-align: right;
}
.stage-item.is-active { color: var(--ink); }
.stage-item.is-active .ring { border-color: var(--accent); }
.stage-item.is-active .ring::before {
  opacity: 1; background: var(--accent); transform: scale(1);
  animation: zd-stage-inner 0.9s ease-in-out infinite;
}
@keyframes zd-stage-inner { 0%,100% { transform: scale(0.6); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } }
.stage-item.is-done { color: var(--ink); }
.stage-item.is-done .ring { display: none; }
.stage-item.is-done .tick { display: inline-block; }
.stage-item.is-done .detail { color: var(--score-good); }

@media (max-width: 520px) {
  .stage-item { grid-template-columns: 18px 1fr; }
  .stage-item .detail { grid-column: 1 / -1; padding-left: 28px; margin-top: -4px; }
}

/* ─── Result shell ───────────────────────────────────────────────── */
.audit-result { display: none; margin-top: 56px; }
.audit-result.is-shown { display: block; }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 0.5px solid var(--rule);
}
.result-head .url { font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.result-head .url small { color: var(--muted); margin-right: 10px; }
.result-head .strategy { color: var(--muted); }

/* ─── SEO wall · deterministic audit data ────────────────────────── */
.seo-wall {
  display: none;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 40px 120px -60px rgba(0,0,0,0.15);
}
.seo-wall.is-shown { display: block; }
.wall-hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 820px) { .wall-hero { grid-template-columns: 1fr; } }
.wall-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.wall-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.wall-title em { color: var(--accent); font-style: italic; font-weight: 400; }
.wall-sub {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 52ch;
}
.wall-sub .domain { color: var(--ink); font-weight: 500; }

.wall-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 560px) { .wall-stats { grid-template-columns: repeat(2, 1fr); } }
.wall-stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #FAFAF8;
  transition: border-color 240ms var(--ease);
}
.wall-stat .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 8px;
}
.wall-stat .v {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wall-stat.is-score { background: #F0F8F2; border-color: #CBEAD2; }
.wall-stat.is-score .v { color: var(--score-good); }
.wall-stat.is-score.mid { background: #FFF8EC; border-color: #FFE3A8; }
.wall-stat.is-score.mid .v { color: var(--score-mid); }
.wall-stat.is-score.bad { background: #FEF2F2; border-color: #FCC; }
.wall-stat.is-score.bad .v { color: var(--score-bad); }
.wall-stat.is-passed { background: #F0F8F2; border-color: #CBEAD2; }
.wall-stat.is-passed .v { color: var(--score-good); }
.wall-stat.is-issues { background: #FFF8EC; border-color: #FFE3A8; }
.wall-stat.is-issues .v { color: var(--score-mid); }

.wall-radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
}
.wall-radar svg { width: 100%; height: 100%; overflow: visible; }
.radar-grid path { fill: none; stroke: var(--rule); stroke-width: 0.5; }
.radar-poly {
  fill: rgba(255,98,0,0.12);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  fill-opacity: 0;
  animation: zd-radar-draw 1100ms var(--ease-out) forwards;
}
@keyframes zd-radar-draw {
  0% { stroke-dashoffset: 1200; fill-opacity: 0; }
  60% { fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
.radar-dot {
  fill: var(--accent);
  opacity: 0;
  animation: zd-radar-dot-in 260ms var(--ease-out) forwards;
  animation-delay: 900ms;
}
@keyframes zd-radar-dot-in { to { opacity: 1; } }
.radar-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--muted);
  font-weight: 600;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
}
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  padding: 22px;
  background: #FAFAF8;
  border: 1px solid var(--rule);
  border-radius: 14px;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
  opacity: 0;
  transform: translateY(8px);
}
.cat-card.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), border-color 240ms var(--ease);
}
.cat-card:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.check-item { opacity: 0; transform: translateX(-4px); }
.cat-card.is-in .check-item {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.cat-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cat-title svg { width: 18px; height: 18px; color: var(--accent); opacity: 0.8; }
.cat-score {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--score-good);
}
.cat-score.mid { color: var(--score-mid); }
.cat-score.bad { color: var(--score-bad); }
.cat-bar {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin: 10px 0 16px;
}
.cat-bar-fill {
  height: 100%;
  background: var(--score-good);
  border-radius: 2px;
  width: 0%;
  transition: width 600ms var(--ease-out);
}
.cat-bar-fill.mid { background: var(--score-mid); }
.cat-bar-fill.bad { background: var(--score-bad); }

.check-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.check-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.check-item .icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
}
.check-item .icon.pass { background: #E7F5EC; color: var(--score-good); }
.check-item .icon.warn { background: #FFF3D9; color: var(--score-mid); }
.check-item .icon.fail { background: #FEE7E7; color: var(--score-bad); }
.check-item .icon svg { width: 12px; height: 12px; }
.check-item .body .t { color: var(--ink); font-weight: 500; margin-bottom: 2px; display: block; }
.check-item .body .v { color: var(--muted); font-size: 12px; font-family: var(--mono); letter-spacing: 0.01em; display: block; }

.wall-footnote {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.wall-footnote .methodology {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wall-footnote .pulse {
  width: 6px; height: 6px;
  background: var(--score-good);
  border-radius: 50%;
  display: inline-block;
}

/* ─── Strategist read · streamed Claude output as a card ─────────── */
.strategist {
  margin-top: clamp(24px, 2.8vw, 36px);
  margin-bottom: clamp(40px, 4vw, 56px);
  padding: clamp(28px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 40px 120px -60px rgba(0,0,0,0.12);
}
.strategist:empty { display: none; }
.strategist h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 36px 0 16px;
  font-weight: 500;
}
.strategist h3:first-child { margin-top: 0; }
.strategist p {
  font-family: var(--display);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 64ch;
}
.strategist strong { font-weight: 500; color: var(--ink); }
.strategist em { font-style: italic; color: var(--accent); }
.strategist ul { list-style: none; margin: 0 0 24px 0; padding: 0; }
.strategist ul li {
  font-family: var(--display);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  color: var(--ink-3);
  max-width: 60ch;
}
.strategist ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.strategist ol {
  list-style: none;
  counter-reset: opp;
  padding: 0;
  margin: 0 0 24px 0;
}
.strategist ol li {
  counter-increment: opp;
  font-family: var(--display);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  padding: 14px 0 14px 48px;
  position: relative;
  border-top: 0.5px solid var(--rule);
  color: var(--ink-3);
  max-width: 64ch;
}
.strategist ol li:first-child { border-top: 0; padding-top: 0; }
.strategist ol li::before {
  content: counter(opp, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.strategist ol li:first-child::before { top: 0; }
.strategist .typing {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: zd-typing 1s steps(2) infinite;
}
@keyframes zd-typing { 50% { opacity: 0; } }

/* ─── Hero rewrite · side-by-side "now vs Zib" copy demo ─────────── */
.hero-rewrite {
  display: none;
  margin: clamp(32px, 4vw, 56px) 0;
  padding: clamp(28px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 40px 120px -60px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.hero-rewrite.is-shown { display: block; opacity: 1; transform: translateY(0); }

.rewrite-head { margin-bottom: clamp(24px, 2.6vw, 36px); }
.rewrite-head .lbl { color: var(--accent); margin-bottom: 14px; display: inline-block; }
.rewrite-head h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 22ch;
  text-wrap: balance;
}
.rewrite-head h3 em { font-style: italic; color: var(--accent); }
.rewrite-head p {
  font-family: var(--display);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

.rewrite-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}

.rewrite-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 14px;
  border: 0.5px solid var(--rule);
  background: var(--paper);
  position: relative;
}
.rewrite-col.is-rewrite {
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 0 24px 60px -36px rgba(255,98,0,0.45), 0 0 0 1px rgba(255,98,0,0.08) inset;
}

.col-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.is-rewrite .col-head { color: var(--accent); }
.col-head .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted-2, #9a9a9a);
}
.is-rewrite .col-head .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,98,0,0.14);
}

.rewrite-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-3);
  text-wrap: balance;
  min-height: 1.2em;
}
.is-current .rewrite-headline { color: var(--muted); }
.is-rewrite .rewrite-headline { color: var(--ink); }

.rewrite-subhead {
  font-family: var(--display);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
  flex: 1;
  min-height: 1.5em;
}
.is-rewrite .rewrite-subhead { color: var(--ink-3); }

.rewrite-cta {
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0.5px solid var(--rule);
  color: var(--muted);
  background: #fff;
}
.is-rewrite .rewrite-cta {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.rewrite-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  width: 36px;
}
.rewrite-arrow svg { width: 28px; height: 28px; }

.rewrite-rationale {
  margin-top: clamp(20px, 2vw, 28px);
  padding-top: clamp(16px, 1.6vw, 22px);
  border-top: 0.5px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 64ch;
}
.rewrite-rationale::before {
  content: "Why";
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}

@media (max-width: 720px) {
  .rewrite-grid { grid-template-columns: 1fr; }
  .rewrite-arrow { transform: rotate(90deg); margin: 4px auto; }
}

/* ─── Sample ad image · OpenAI output ────────────────────────────── */
.sample-ad {
  display: none;
  margin: 48px 0;
  padding: 40px 0;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.sample-ad.is-shown { display: grid; }
.sample-ad-img {
  aspect-ratio: 9 / 16;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.18);
}
.sample-ad-img.is-loading {
  display: grid;
  place-items: center;
}
.sample-ad-img.is-loading::before {
  content: "Generating sample creative…";
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0 24px;
  line-height: 1.6;
}
.sample-ad-img.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,98,0,0.08) 50%, transparent 70%);
  animation: zd-shimmer 1.6s linear infinite;
  z-index: 1;
}
@keyframes zd-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sample-ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sample-ad-meta .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.sample-ad-meta h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 24ch;
  text-wrap: balance;
}
.sample-ad-meta p {
  font-family: var(--display);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 8px;
}
.sample-ad-meta .credit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 16px;
}
@media (max-width: 720px) {
  .sample-ad { grid-template-columns: 1fr; }
  .sample-ad-img { max-width: 240px; }
}

/* ─── Closing punchline + after CTA ──────────────────────────────── */
.audit-punchline {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(48px, 5vw, 72px);
  border-top: 0.5px solid var(--rule);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.audit-punchline.is-shown { opacity: 1; transform: translateY(0); }
.audit-punchline p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.audit-punchline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.audit-after {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.audit-after p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  max-width: 38ch;
}

/* "Runs live on this page" indicator — part of the shared audit component */
.audit-live { display:inline-flex; align-items:center; gap:10px; margin-top:20px; padding:8px 16px 8px 14px; border-radius:999px; border:0.5px solid var(--rule); background:var(--paper); color:var(--ink-3); font-size:11px; letter-spacing:0.1em; text-transform:uppercase; }
.audit-live .pulse { width:6px; height:6px; border-radius:50%; background:var(--accent); animation:pulse 1.6s ease-in-out infinite; flex-shrink:0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
