:root {
  --bg: #07110f;
  --bg-soft: #0b1714;
  --panel: #0e1d19;
  --panel-2: #132722;
  --panel-3: #193129;
  --ink: #f5faf7;
  --ink-2: #dbe8e1;
  --muted: #91a79c;
  --line: #244239;
  --line-bright: #365f51;
  --brand: #75edb1;
  --brand-2: #d7ff67;
  --blue: #8fb8ff;
  --danger: #ff9a8d;
  --warn: #ffd477;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(117, 237, 177, .13), transparent 30rem),
    radial-gradient(circle at -8% 38%, rgba(143, 184, 255, .06), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 7px; }

.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-wrap { position: sticky; top: 0; z-index: 30; background: rgba(7, 17, 15, .82); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.035em; font-size: 19px; }
.brandmark { width: 31px; height: 31px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 5px rgba(117,237,177,.08); position: relative; }
.brandmark::after { content: ""; position: absolute; inset: 8px; border: 2px solid #07110f; border-left-width: 5px; border-radius: 3px; }
.navlinks { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 14px; font-weight: 650; }
.navlinks a:hover, .footer a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 16px; color: var(--ink); background: var(--panel); font-weight: 760; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-bright); background: var(--panel-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { color: #06110d; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 9px 26px rgba(117,237,177,.15); }
.btn-primary:hover { border-color: transparent; background: linear-gradient(135deg, #8af9c4, #e1ff87); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 36px; padding: 7px 12px; font-size: 13px; }

section { padding: 78px 0; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 58px; padding: 96px 0 76px; }
.hero-copy { min-width: 0; }
.hero > * { min-width: 0; }
.eyebrow, .section-kicker { color: var(--brand); font-size: 11px; line-height: 1.2; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: rgba(117,237,177,.04); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(117,237,177,.10); }
.hero h1 { max-width: 760px; margin: 18px 0; font-size: clamp(48px, 6.2vw, 78px); line-height: .99; letter-spacing: -.064em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { max-width: 690px; margin: 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.microcopy { margin-top: 13px; color: #789087; font-size: 12px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 9px 17px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.trust-strip span::before { content: "✓"; margin-right: 6px; color: var(--brand); font-weight: 900; }

.visual { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); box-shadow: var(--shadow); }
.visual::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -120px; top: -130px; background: rgba(117,237,177,.12); filter: blur(50px); }
.visual-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 14px; color: var(--muted); font-size: 11px; }
.today-card { position: relative; margin: 10px 0; padding: 18px; border: 1px solid #294b40; border-radius: 17px; background: rgba(7,17,15,.82); }
.today-card h3 { margin: 8px 0 5px; font-size: 17px; line-height: 1.35; }
.today-card p { margin: 0; color: var(--muted); font-size: 12px; }
.tag, .data-label { display: inline-flex; width: fit-content; border-radius: 999px; padding: 4px 8px; color: var(--brand); background: rgba(117,237,177,.10); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.meter { height: 6px; overflow: hidden; border-radius: 999px; margin-top: 14px; background: var(--panel-3); }
.meter span { display: block; width: 78%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 10px; }
.mini { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,17,15,.72); }
.mini b { display: block; color: var(--ink-2); font-size: 14px; }
.mini span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.section-title { max-width: 820px; margin: 10px 0 14px; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -.047em; }
.section-lede { max-width: 750px; margin: 0; color: var(--muted); font-size: 17px; }
.section-center { max-width: 800px; margin-inline: auto; text-align: center; }
.section-center .section-title, .section-center .section-lede { margin-inline: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 34px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), rgba(11,23,20,.94)); }
.card h3 { margin: 11px 0 7px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-link { transition: transform .18s ease, border-color .18s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--line-bright); }
.num { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(117,237,177,.2); border-radius: 10px; color: var(--brand); background: rgba(117,237,177,.08); font-weight: 900; }
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 32px; }
.loop .step { position: relative; padding: 18px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); font-size: 12px; color: var(--muted); }
.step small { display: block; margin-bottom: 7px; color: var(--brand); font-weight: 900; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
.feature-list { display: grid; gap: 10px; }
.feature-row { display: grid; grid-template-columns: auto 1fr; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.feature-row b { color: var(--ink-2); }
.feature-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; background: var(--brand); box-shadow: 0 0 0 4px rgba(117,237,177,.08); }
.proof-band { border-block: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.018); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proof { padding: 15px 0; }
.proof strong { display: block; font-size: 24px; letter-spacing: -.035em; }
.proof span { color: var(--muted); font-size: 12px; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 32px; }
.price { position: relative; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.price.popular { border-color: #5fba91; box-shadow: inset 0 0 0 1px rgba(117,237,177,.14), 0 20px 60px rgba(0,0,0,.18); }
.popular-label { position: absolute; right: 16px; top: 16px; color: var(--brand); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.price h3 { margin: 0; }
.price .amount { margin: 12px 0 2px; font-size: 37px; font-weight: 900; letter-spacing: -.045em; }
.price .amount small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.price ul { min-height: 180px; margin: 16px 0 22px; padding-left: 18px; color: var(--muted); font-size: 12px; }
.price li { margin: 7px 0; }
.price .btn { width: 100%; margin-top: auto; }
.comparison-table { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 13px; }
.comparison-table th, .comparison-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.comparison-table td:first-child { color: var(--ink-2); font-weight: 760; }
.check { color: var(--brand); font-weight: 900; }
.faq { max-width: 860px; margin: 30px auto 0; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink-2); font-weight: 750; }
.faq p { color: var(--muted); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border: 1px solid #365f51; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(117,237,177,.10), rgba(215,255,103,.035)); }
.cta h2 { margin: 3px 0 8px; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.04em; }
.footer { padding: 50px 0 34px; border-top: 1px solid rgba(255,255,255,.07); color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 30px; }
.footer-grid strong { color: var(--ink-2); }
.footer-grid nav { display: grid; gap: 8px; margin-top: 11px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }

.audit-wrap { padding: 68px 0; }
.audit-form { display: flex; gap: 9px; max-width: 760px; margin-top: 24px; }
.input, .textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: #091612; outline: none; }
/* Native file inputs report an intrinsic min-content width (their built-in "choose file"
   button plus filename text) that ignores width:100% in some engines, which can force a flex
   or grid ancestor wider than the viewport. max-width plus box-sizing:border-box (set globally)
   caps it at its container regardless of that intrinsic sizing. */
.input[type="file"] { min-width: 0; }
/* A wide table (long URLs, domains) belongs inside its own scroll container, never scrolling
   the whole page -- unconditional so it never depends on the current viewport matching a
   specific breakpoint at the moment the table's own intrinsic width exceeds it. */
#backlink-table { overflow-x: auto; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(117,237,177,.08); }
.textarea { min-height: 110px; resize: vertical; }
.audit-select { max-width: 220px; }
.status { min-height: 22px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.result { display: none; margin-top: 28px; }
.result.active { display: block; }
.score-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.score-ring { position: relative; display: grid; width: 110px; height: 110px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) var(--score), #183028 0); }
.score-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel); }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 27px; }
.score-ring span { display: block; color: var(--muted); font-size: 9px; }
.subscores { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; margin-top: 14px; }
.subscores span { padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #091612; font-size: 10px; }
.subscores b { display: block; color: var(--ink); font-size: 15px; }
.issues, .site-page-list { display: grid; gap: 10px; margin-top: 15px; }
.issue { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.issue-head { display: flex; justify-content: space-between; gap: 12px; }
.issue-head > div { display: grid; gap: 4px; }
.severity { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.severity.Critical, .error-text { color: var(--danger) !important; }
.severity.High { color: #ffb28a; }
.severity.Medium { color: var(--warn); }
.severity.Low { color: var(--blue); }
.issue p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.issue-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.three-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.kv span { color: var(--muted); }
.notice { padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #0a1713; font-size: 12px; }

.auth-page { min-height: 100vh; }
.auth-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr minmax(360px, 490px); gap: 70px; align-items: center; padding: 60px 0; }
.auth-copy h1 { margin: 17px 0; font-size: clamp(42px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.auth-copy p { max-width: 650px; color: var(--muted); font-size: 17px; }
.auth-panel, .auth-card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--panel), #091713); box-shadow: var(--shadow); }
.auth-card { max-width: 480px; margin: 80px auto; }
.auth-panel h2, .auth-card h1 { margin-top: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 11px; background: var(--bg); }
.auth-tab { border: 0; border-radius: 8px; padding: 9px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.auth-tab.active { color: var(--ink); background: var(--panel-2); }
.stack-form { display: grid; gap: 10px; margin-top: 17px; }
.stack-form label, .control-grid label, .inline-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.stack-form .btn { margin-top: 8px; }
.form-help { margin: 0; color: var(--muted); font-size: 11px; }
.link-button { border: 0; padding: 8px 0; color: var(--brand); background: transparent; text-align: left; cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 23px 18px; border-right: 1px solid var(--line); background: rgba(7,17,15,.8); }
.sidebar nav { display: grid; gap: 4px; margin-top: 27px; }
.sidebar nav a, .nav-disabled { padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.sidebar nav a.active, .sidebar nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav-disabled { color: #587067; cursor: not-allowed; }
.sidebar-logout { width: 100%; margin-top: auto; }
.app-main { width: min(1240px, 100%); min-width: 0; padding: 34px; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.app-head h1 { margin: 5px 0 0; letter-spacing: -.04em; }
.scope-switchers { display: flex; gap: 8px; margin-top: 12px; }
.scope-switchers .input { min-width: 180px; padding: 8px 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 22px 0; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.metric span { display: block; color: var(--muted); font-size: 10px; }
.metric b { display: block; margin-top: 3px; font-size: 25px; letter-spacing: -.035em; }
.app-section { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.06); }
.section-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-row h2 { margin: 4px 0 0; }
.app-list, .facts-list { display: grid; gap: 9px; }
.list-row, .opportunity-row, .fact { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.list-row p, .opportunity-row p, .fact p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; width: fit-content; white-space: nowrap; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; }
.opportunity-row { display: grid; grid-template-columns: auto 1fr auto; }
.operator-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.operator-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, var(--panel), rgba(166, 255, 92, .035)); color: var(--text); text-decoration: none; }
.operator-card:hover { border-color: rgba(166, 255, 92, .4); transform: translateY(-1px); }
.operator-card > span, .operator-card p { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.operator-card p { margin-bottom: 0; line-height: 1.55; }
.operator-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.operator-card .status-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.attention-row { color: inherit; text-decoration: none; }
.opportunity-score { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(117,237,177,.25); border-radius: 12px; color: var(--brand); background: rgba(117,237,177,.08); font-weight: 900; }
.muted-row { opacity: .78; }
.empty { padding: 28px; border: 1px dashed var(--line-bright); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty.compact { padding: 21px; text-align: left; }
.onboarding-card { max-width: 830px; margin: 18px 0; }
.step-number { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--brand); background: rgba(117,237,177,.10); font-weight: 900; }
.progress-wrap { margin-top: 18px; }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #183028; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--brand),var(--brand-2)); transition: width .25s; }
.context-hero { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
.context-hero h3 { margin: 5px 0; }
.context-hero p { margin: 0; color: var(--muted); }
.confidence { white-space: nowrap; color: var(--brand); font-size: 11px; font-weight: 800; }
.fact { align-items: start; }
.fact small { color: #789087; }
.fact-source { display: inline-flex; margin-right: 8px; border-radius: 999px; padding: 3px 7px; color: var(--muted); background: var(--panel-3); font-size: 8px; font-weight: 900; }
.fact-source.OBSERVED, .fact-source.USER_VERIFIED, .verified { color: var(--brand); }
.control-grid, .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.inline-form .input { min-width: 170px; }
.integration-site, .compact-form { max-width: 680px; }
.integration-card { max-width: 900px; }
.compact-select { max-width: 260px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-fields > div { display: grid; gap: 8px; }
.compact-metrics, .prompt-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 14px 0; }
.search-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 14px 0; }
.small-value { font-size: 14px !important; }
.change-list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.change-list li { margin: 7px 0; }
.content-preview { max-height: 28rem; overflow: auto; white-space: pre-wrap; word-break: break-word; padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink-2); background: #081410; font-size: .82rem; }
.publication-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: .75rem; margin-top: .75rem; border-top: 1px solid var(--line); }
.content-card details { margin: .75rem 0; }
.content-card summary { cursor: pointer; font-weight: 700; }
.answer-text { white-space: pre-wrap; color: var(--muted); }

.cookie-panel { position: fixed; z-index: 50; left: 20px; right: 20px; bottom: 20px; display: none; max-width: 760px; margin: auto; padding: 18px; border: 1px solid var(--line-bright); border-radius: 16px; background: rgba(10,23,19,.97); box-shadow: var(--shadow); }
.cookie-panel.active { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.cookie-panel p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-settings { display: none; grid-column: 1 / -1; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.cookie-settings.active { display: grid; }
.cookie-setting { display: flex; justify-content: space-between; gap: 20px; color: var(--ink-2); font-size: 12px; }
.cookie-setting span { color: var(--muted); }

@media (max-width: 1180px) {
  .operator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 68px; }
  .visual { max-width: 720px; }
  .grid3, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .grid4, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: repeat(3, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { grid-template-columns: repeat(4, 1fr); }
  .sidebar-logout { margin-top: 10px; width: auto; align-self: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  section { padding: 58px 0; }
  .nav { min-height: 68px; }
  .nav-toggle { display: inline-flex; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; color: var(--ink); background: var(--panel); cursor: pointer; }
  .navlinks { position: absolute; top: 68px; left: 14px; right: 14px; display: none; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,23,19,.98); box-shadow: var(--shadow); }
  .navlinks.active { display: grid; }
  .nav-actions > .btn-ghost { display: none; }
  .nav-actions { display: none; }
  .hero { gap: 36px; padding: 56px 0 42px; }
  .hero h1 { font-size: clamp(42px, 12vw, 64px); overflow-wrap: anywhere; }
  .grid3, .grid4, .price-grid, .three-cols { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 27px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audit-form, .inline-form { flex-direction: column; align-items: stretch; }
  .audit-select, .compact-select { width: 100%; max-width: none; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; padding: 38px 0; }
  .auth-copy h1 { font-size: 43px; }
  .app-main { padding: 22px 18px; }
  .sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .app-head { flex-direction: column; }
  .control-grid, .settings-grid, .two-fields { grid-template-columns: 1fr; }
  .search-metrics, .compact-metrics, .prompt-metrics { grid-template-columns: 1fr 1fr; }
  .subscores { grid-template-columns: repeat(2, 1fr); }
  .cookie-panel.active { grid-template-columns: 1fr; }
  /* Unbreakable cell content (URLs, domains) can force a wider intrinsic table width than a
     narrow viewport at this breakpoint has room for; scrolling inside the table, rather than the
     whole page, keeps the app-shell grid from being stretched wide by a grid-item min-content
     blowout. Matches the layout's own single-column breakpoint, not the narrower 500px one below,
     since the sidebar/main stacking already starts here. */
  .comparison-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .mini-grid, .loop, .proof-grid, .footer-grid { grid-template-columns: 1fr; }
  .sidebar nav { grid-template-columns: 1fr 1fr; }
  .metric-grid, .search-metrics, .compact-metrics, .prompt-metrics { grid-template-columns: 1fr; }
  .scope-switchers { flex-direction: column; }
  .scope-switchers .input { min-width: 0; }
  .list-row, .fact { align-items: flex-start; flex-direction: column; }
  .opportunity-row { grid-template-columns: 1fr; }
  .operator-grid { grid-template-columns: 1fr; }
  .auth-panel, .auth-card { padding: 20px; }
  .cookie-panel { left: 10px; right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Free audit lead capture. The honeypot must be reachable by nothing a human uses:
   hidden from sight, from screen readers, and from the tab order. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
#report-offer .field { margin-bottom: 12px; }

/* Feedback launcher and dialog. Fixed so it is reachable from any screen without
   occupying layout space, and never covering the primary action on small viewports. */
.feedback-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  border: 1px solid var(--line, #d5dae3);
  background: var(--surface, #fff);
  color: inherit;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}
.feedback-launcher:hover { transform: translateY(-1px); }
.feedback-launcher:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}
.feedback-dialog[hidden] { display: none; }
.feedback-panel {
  background: var(--surface, #fff);
  border-radius: 14px;
  padding: 20px;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.feedback-panel .field { margin-bottom: 12px; }
.feedback-panel textarea { width: 100%; resize: vertical; }
@media (max-width: 480px) {
  .feedback-launcher { right: 12px; bottom: 12px; padding: 9px 14px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-launcher:hover { transform: none; }
}
