/* ============================================================
   AgentReady — product/app UI (layers on the shared app.css)
   ============================================================ */

/* Impersonation banner (admin viewing as customer) */
.ar-nav-logo { width:auto; height:80px; object-fit:contain; }
.impersonation-banner { background:#F5B841; color:#161616; padding:.5rem 0; font-size:13px; font-weight:500; position:sticky; top:0; z-index:100; }

/* AgentReady scan console overrides — bigger, more commercial */
.scan-console { --scan-bg: rgba(22,22,34,0.8); background: var(--scan-bg); border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,0.4); }
.scan-form { display:flex; gap:.6rem; padding:1.25rem; background:rgba(0,0,0,0.25); border-bottom:1px solid var(--border); }
.scan-form .btn { white-space:nowrap; }
.scan-readout { display:grid; grid-template-columns:160px 1fr; gap:1rem; padding:1.25rem; }
.scan-dial-wrap { display:flex; flex-direction:column; align-items:center; gap:.75rem; text-align:center; }
.scan-dial { position:relative; width:150px; height:150px; }
.scan-dial-score { font-size:38px; font-weight:700; color:var(--signal); }
.scan-dial-label-sm { font-size:11px; letter-spacing:.15em; color:var(--muted-foreground); }
.scan-dial-label { font-family:var(--font-mono); font-size:11px; letter-spacing:.15em; color:var(--muted-foreground); }
.scan-evidence { background:rgba(0,0,0,0.35); border-radius:12px; padding:.75rem; }
.scan-evidence-header { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:10px; letter-spacing:.15em; color:var(--muted-foreground); padding:0 .5rem .5rem; border-bottom:1px solid var(--border); }
.scan-evidence-row { display:flex; justify-content:space-between; align-items:center; gap:.5rem; padding:.6rem .5rem; border-bottom:1px solid rgba(255,255,255,0.05); font-size:14px; }
.scan-evidence-row .label { color:var(--foreground); font-weight:500; }
.scan-evidence-row .status { display:flex; align-items:center; gap:.5rem; color:var(--muted-foreground); }
.scan-evidence-row .status svg { width:18px; height:18px; }
.scan-evidence-row .detail { font-size:12px; color:var(--muted-foreground); }
.scan-actions { margin:0 1.25rem 1rem; padding:1rem; background:rgba(0,0,0,0.35); border-radius:12px; }
.scan-actions-header { font-family:var(--font-mono); font-size:11px; letter-spacing:.15em; color:var(--muted-foreground); margin-bottom:.75rem; }
.scan-action-row { display:flex; align-items:center; gap:.5rem; padding:.35rem 0; font-size:14px; }
.scan-action-row .mark { font-weight:700; }
.scan-action-row.ok .mark { color:var(--pass); }
.scan-action-row.no .mark { color:rgb(var(--fail-rgb)); }

.scan-gated { display:none; margin:1.25rem; padding:1.25rem; background:linear-gradient(135deg, rgba(var(--signal-rgb),0.12), rgba(var(--signal-rgb),0.04)); border:1px solid rgba(var(--signal-rgb),0.4); border-radius:16px; text-align:center; }
.scan-gated.shown { display:block !important; }
.scan-captured { display:none; }
.scan-captured.shown { display:flex !important; }
.scan-gated-headline { font-family:var(--font-display); font-size:1.4rem; font-weight:700; color:var(--foreground); }
.scan-gated-body { margin:.5rem auto 0; max-width:420px; font-size:15px; color:var(--muted-foreground); }
.scan-gated-form { margin-top:1rem; display:flex; gap:.5rem; justify-content:center; }
.scan-email-input { flex:1; max-width:320px; border:1px solid var(--input); background:var(--background); border-radius:var(--radius-md); padding:.75rem 1rem; font-size:15px; color:var(--foreground); outline:none; }
.scan-gated-footnote { margin-top:.75rem; font-size:12px; color:var(--muted-foreground); }
.scan-gated-alt { display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap; }

.scan-captured.shown { margin:1.25rem; padding:1.25rem; background:rgba(var(--pass-rgb),0.08); border:1px solid rgba(var(--pass-rgb),0.3); border-radius:16px; gap:1rem; align-items:flex-start; }
.scan-captured-icon { color:var(--pass); font-size:24px; line-height:1; }
.scan-captured-title { font-family:var(--font-display); font-size:1.2rem; font-weight:700; color:var(--foreground); }
.scan-captured-body { margin-top:.25rem; font-size:14px; color:var(--muted-foreground); }
.scan-captured-ctas { margin-top:1rem; display:flex; gap:.5rem; flex-wrap:wrap; }

@media (max-width: 640px) {
  .scan-readout { grid-template-columns:1fr; }
  .scan-form { flex-direction:column; }
  .scan-gated-form { flex-direction:column; align-items:center; }
  .scan-email-input { max-width:none; width:100%; }
}

/* Onboarding wizard */
.onb-progress { display:flex; gap:.5rem; margin:1rem 0; flex-wrap:wrap; }
.onb-step { display:flex; align-items:center; gap:.4rem; padding:.4rem .75rem; border-radius:999px; background:var(--card); border:1px solid var(--border); font-size:13px; }
.onb-step.done { border-color:var(--pass); color:var(--pass); }
.onb-step.current { border-color:var(--signal); color:var(--signal); font-weight:600; }
.onb-num { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--border); font-size:11px; font-weight:700; }
.onb-step.done .onb-num { background:var(--pass); color:#161616; }
.onb-step.current .onb-num { background:var(--signal); color:#161616; }
.onb-card.locked { opacity:.5; }
.onb-card.done { border-color:rgba(var(--pass-rgb),.3); }
.onb-tabs { display:flex; gap:.25rem; margin:.75rem 0; flex-wrap:wrap; }
.onb-tab { background:transparent; border:1px solid var(--border); color:var(--muted-foreground); padding:.35rem .75rem; border-radius:6px; font-size:13px; cursor:pointer; }
.onb-tab.active { background:var(--signal); color:#161616; border-color:var(--signal); font-weight:600; }
.onb-instructions { padding-left:1.25rem; margin:.5rem 0; line-height:1.8; font-size:14px; }
.onb-instructions li { margin:.25rem 0; }
.onb-file { margin:.75rem 0; }
.onb-file textarea { width:100%; margin-bottom:.5rem; }

/* AgentReady's product accent is CYAN (distinct from the umbrella's amber).
   Overrides the shared --signal token so buttons, scores, links, and eyebrows
   pick up cyan everywhere. Loaded after app.css so these win. */
:root {
  --signal: #22d3ee;              /* cyan-400 */
  --signal-rgb: 34, 211, 238;
  --signal-foreground: #04252c;   /* dark text on cyan buttons */
  --ring: rgba(34, 211, 238, 0.55);
}

/* Page shells */
.ar-page { max-width: 1080px; margin: 0 auto; padding: 6.5rem 1.5rem 4rem; }
.ar-narrow { max-width: 520px; }
.ar-page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.ar-page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2 { font-size: 1.1rem; }
.muted { color: var(--muted-foreground); }
.sm { font-size: 12px; }
.mono { font-family: var(--font-mono); }
.link { color: var(--signal); } .link:hover { text-decoration: underline; }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 1rem; }
label { display: block; font-size: 13px; font-weight: 500; }
label.inline { display: inline-flex; align-items: center; gap: .5rem; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%; margin-top: .35rem; padding: .6rem .7rem; background: rgba(var(--background-rgb), .6);
  color: var(--foreground); border: 1px solid var(--input); border-radius: var(--radius-md); font-size: 14px;
}
/* Force dark theme on dropdown option lists (browsers default to white) */
select option, select optgroup { background: rgb(var(--card-rgb)); color: var(--foreground); }
select option:checked, select option:hover { background: rgba(var(--signal-rgb), .25); color: var(--foreground); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }

/* Buttons (extends .btn from app.css) */
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--foreground); padding: .55rem .9rem; border-radius: var(--radius-md); font-size: 13px; }
.btn-ghost:hover { border-color: var(--input); }
.btn-danger { background: transparent; border: 1px solid rgba(var(--fail-rgb), .5); color: rgb(var(--fail-rgb)); padding: .5rem .8rem; border-radius: var(--radius-md); font-size: 13px; }
.btn-sm { padding: .35rem .6rem; font-size: 12px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.table td { padding: .7rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.ta-right { text-align: right; }

/* Badges */
.badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.badge-ok { color: var(--pass); border: 1px solid rgba(var(--pass-rgb), .4); }
.badge-warn { color: var(--signal); border: 1px solid rgba(var(--signal-rgb), .4); }
.badge-draft { color: var(--muted-foreground); border: 1px solid var(--border); }

/* Flash */
.flash { padding: .8rem 1rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; font-size: 14px; border: 1px solid var(--border); }
.flash-error { border-color: rgba(var(--fail-rgb), .5); background: rgba(var(--fail-rgb), .1); }
.flash-info { border-color: rgba(var(--pass-rgb), .4); background: rgba(var(--pass-rgb), .08); }

/* Auth pages */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem 3rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-alt { margin-top: 1rem; font-size: 13px; color: var(--muted-foreground); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--signal); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); margin-top: .5rem; }

/* ---------- Results "knock-knock" deep-dive ---------- */
.door-hero { text-align: center; padding: 1rem 0 1.5rem; }
.door-score { font-family: var(--font-display); font-weight: 700; line-height: 1; font-size: 4rem; }
.door-score .slash { font-size: 1.5rem; color: var(--muted-foreground); }
.door-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--muted-foreground); margin-top: .5rem; }
.door-lede { max-width: 44rem; margin: 1rem auto 0; color: var(--foreground); font-size: 1.05rem; }

.dim-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 640px) { .dim-grid { grid-template-columns: 1fr 1fr; } }
.dim { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(var(--background-rgb), .4); }
.dim .name { font-size: 13px; }
.dim .val { font-family: var(--font-mono); font-weight: 600; }
.dim.pass .val { color: var(--pass); } .dim.fail .val { color: rgb(var(--fail-rgb)); } .dim.warn .val { color: var(--signal); }

.action-row { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.action-row:last-child { border-bottom: none; }
.action-row .mark { font-weight: 700; width: 1.1rem; text-align: center; }
.action-row.ok .mark { color: var(--pass); }
.action-row.no .mark { color: rgb(var(--fail-rgb)); }
.action-row .a-name { font-size: 14px; }
.action-row .a-ev { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }

.reco { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.reco:last-child { border-bottom: none; }
.reco-title { font-size: 14px; font-weight: 600; }
.reco-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.sev-critical { color: rgb(var(--fail-rgb)); }
.sev-warning { color: var(--signal); }
.sev-info { color: var(--muted-foreground); }

/* Big CTA banner (fix / monitor) */
.ar-cta { margin-top: 2rem; padding: 2rem; text-align: center; background: var(--card); border: 1px solid rgba(var(--signal-rgb), .3); border-radius: var(--radius-xl); }
.ar-cta h3 { font-size: 1.35rem; } .ar-cta p { color: var(--muted-foreground); margin: .5rem 0 1.25rem; }
.ar-cta-secondary { margin-top: 1rem; }
.ar-cta-secondary a { color: var(--signal); font-family: var(--font-mono); font-size: 12px; }

.row-actions { display: inline-flex; gap: .4rem; align-items: center; }
.row-actions form { display: inline; margin: 0; }

/* Pricing */
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:1rem; }
.price-card { border:1px solid var(--border); border-radius:14px; padding:1.5rem; background:var(--card); display:flex; flex-direction:column; }
.price-card.featured { border-color:var(--signal); box-shadow:0 0 0 1px var(--signal) inset; }
.price-name { font-family:var(--font-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-foreground); }
.price-amt { font-family:var(--font-display); font-size:2rem; font-weight:700; margin:.3rem 0 1rem; }
.price-feats { list-style:none; padding:0; margin:0 0 1.25rem; flex:1; }
.price-feats li { padding:.35rem 0; border-bottom:1px solid var(--border); font-size:14px; }
.price-feats li:before { content:"\2713"; color:var(--signal); font-weight:700; margin-right:.5rem; }
.btn-block { display:block; width:100%; text-align:center; }

/* Billing toggle */
.billing-toggle { display:flex; gap:.5rem; justify-content:center; margin:1rem 0 .5rem; }
.bt-btn { background:transparent; border:1px solid var(--border); color:var(--muted-foreground); padding:.5rem 1.25rem; border-radius:999px; font-size:14px; cursor:pointer; transition:all .15s; }
.bt-btn.active { background:var(--signal); color:#161616; border-color:var(--signal); font-weight:600; }
.bt-save { font-size:11px; font-weight:700; color:var(--pass); margin-left:.25rem; }
.bt-btn.active .bt-save { color:#161616; }

/* Progress trends */
.trend-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.25rem; }
.trend-label { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-foreground); }
.trend-val { font-family:var(--font-display); font-size:1.5rem; font-weight:700; margin:.15rem 0 .35rem; }
.trend-delta { font-size:12px; font-weight:600; margin-left:.35rem; }
.trend-up { color:var(--pass); } .trend-down { color:rgb(var(--fail-rgb)); } .trend-flat { color:var(--muted-foreground); }
.spark { display:block; width:100%; height:44px; }

/* Fix progress tracker */
.fix-progress { margin-bottom:1.25rem; padding:1rem; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.02); }
.fix-progress-header { display:flex; align-items:center; gap:.75rem; margin-bottom:.5rem; }
.fix-progress-label { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-foreground); }
.fix-progress-count { font-size:13px; color:var(--muted-foreground); flex:1; }
.fix-progress-pct { font-family:var(--font-display); font-size:1.25rem; font-weight:700; color:var(--signal); }
.fix-progress-bar { height:8px; background:rgba(255,255,255,.08); border-radius:4px; overflow:hidden; }
.fix-progress-fill { height:100%; background:linear-gradient(90deg,var(--signal),var(--pass)); border-radius:4px; transition:width .4s ease; }
.fix-progress-done { color:var(--pass); font-size:14px; margin:.5rem 0 0; }

/* Journey timeline */
.journey-timeline { display:flex; flex-direction:column; gap:.5rem; }
.journey-row { display:flex; align-items:center; gap:.75rem; padding:.6rem .75rem; border-radius:8px; border:1px solid var(--border); }
.journey-row.pass { border-color:rgba(52,211,153,.25); background:rgba(52,211,153,.04); }
.journey-row.fail { border-color:rgba(255,92,92,.2); background:rgba(255,92,92,.03); }
.journey-mark { font-size:1.1rem; font-weight:700; width:1.5rem; text-align:center; flex-shrink:0; }
.journey-row.pass .journey-mark { color:var(--pass); }
.journey-row.fail .journey-mark { color:rgb(var(--fail-rgb)); }
.journey-info { flex:1; }
.journey-name { font-weight:600; font-size:14px; }
.journey-delta { font-size:11px; font-family:var(--font-mono); white-space:nowrap; }
.journey-up { color:var(--pass); }
.journey-down { color:rgb(var(--fail-rgb)); }
.journey-flat { color:var(--muted-foreground); }
.journey-new { color:var(--signal); }

/* AI Agent Visit Beacon */
.beacon-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1rem; margin-bottom:1.25rem; }
.beacon-stat { text-align:center; }
.beacon-stat-num { font-family:var(--font-display); font-size:1.75rem; font-weight:700; color:var(--signal); }
.beacon-stat-label { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-foreground); margin-top:.15rem; }
.beacon-breakdown { display:flex; flex-direction:column; gap:.5rem; margin-bottom:.75rem; }
.beacon-bot-row { display:flex; align-items:center; gap:.75rem; }
.beacon-bot-name { font-size:13px; min-width:180px; }
.beacon-bot-bar { flex:1; height:8px; background:rgba(255,255,255,.08); border-radius:4px; overflow:hidden; }
.beacon-bot-fill { height:100%; background:var(--signal); border-radius:4px; transition:width .3s; }
.beacon-bot-count { font-family:var(--font-mono); font-size:13px; font-weight:600; min-width:2rem; text-align:right; }
.beacon-feed { display:flex; flex-direction:column; gap:.25rem; }
.beacon-feed-row { display:flex; align-items:center; gap:.75rem; padding:.3rem 0; border-bottom:1px solid var(--border); }
.beacon-feed-bot { font-size:13px; font-weight:600; min-width:140px; }
.beacon-feed-page { flex:1; }
.beacon-feed-time { font-size:12px; white-space:nowrap; }
.beacon-install { margin-bottom:.5rem; }
.beacon-snippet-wrap { display:flex; gap:.5rem; align-items:flex-start; margin-top:.4rem; }
.beacon-snippet-wrap textarea { flex:1; font-size:12px; }

/* Enrichment links */
.enrich-link-row { display:flex; align-items:center; gap:.75rem; padding:.5rem 0; border-bottom:1px solid var(--border); }
.enrich-link-row .badge { flex-shrink:0; }
.enrich-link-row .link { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Site switcher */
.site-switcher { background:rgb(var(--card-rgb)); border:1px solid var(--border); color:var(--foreground); border-radius:8px; padding:.4rem .6rem; font-size:13px; cursor:pointer; }
.site-switcher:hover { border-color:var(--signal); }
.site-switcher option { background:rgb(var(--card-rgb)); color:var(--foreground); }
