/* Does AI Find Me? — site styles. Mobile-first. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #17203d;
  --ink-2: #3b4566;
  --muted: #5d6685;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e7e1d6;
  --line-2: #d7d0c3;
  --gold: #ffb224;
  --gold-soft: #fff3d6;
  --gold-ink: #7a4a00;
  --found: #137a4b;
  --found-soft: #e3f4ea;
  --missed: #b4380b;
  --missed-soft: #fdebe3;
  --partial: #8a5a00;
  --partial-soft: #fff1cf;
  --focus: #3157d5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 32, 61, .06), 0 6px 24px rgba(23, 32, 61, .06);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-stretch: 112%; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 850; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.1rem; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand .q { color: #d98e00; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .95rem; }
.nav a { text-decoration: none; padding: 6px 2px; color: var(--ink-2); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

/* Sections */
main { display: block; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.hero { padding: 40px 0 36px; }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.grid-2 { display: grid; gap: 28px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 44px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 64px 0 56px; }
}

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 800; margin-bottom: 10px; }

/* Forms */
form .row { margin-bottom: 14px; }
label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 5px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=url], input[type=email], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px;
}
input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(49, 87, 213, .18); }
.two { display: grid; gap: 14px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 750; font-size: 1rem;
  border: 0; border-radius: 999px; padding: 13px 22px; min-height: 48px; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: #24305a; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #ffc04d; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn.small { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn.block { width: 100%; }
.form-msg { margin-top: 10px; font-size: .95rem; }
.form-msg.error { color: var(--missed); }
.form-msg.ok { color: var(--found); }
.ts { min-height: 70px; margin: 6px 0 12px; }
.fineprint { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.allowed, .pill.yes { background: var(--found-soft); color: var(--found); }
.pill.blocked, .pill.no { background: var(--missed-soft); color: var(--missed); }
.pill.partial, .pill.maybe { background: var(--partial-soft); color: var(--partial); }
.pill.neutral { background: #eef0f6; color: var(--ink-2); }

/* Score */
.score { display: grid; gap: 18px; }
@media (min-width: 720px) { .score { grid-template-columns: auto 1fr; align-items: center; } }
.score-big { font-size: clamp(2.6rem, 10vw, 4rem); font-weight: 900; font-stretch: 115%; line-height: 1; }
.score-big .of { font-size: .45em; font-weight: 700; color: var(--muted); }
.meter { height: 14px; background: #eceae4; border-radius: 999px; position: relative; overflow: hidden; }
.meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; }
.meter .range { position: absolute; top: 0; bottom: 0; background: rgba(255, 178, 36, .55); }
.legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Report bits */
.answers { display: grid; gap: 14px; }
.answer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.answer summary { cursor: pointer; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; list-style: none; }
.answer summary::-webkit-details-marker { display: none; }
.answer .q { font-weight: 650; }
.answer .body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.answer .text { font-size: .95rem; color: var(--ink-2); padding-top: 12px; }
.answer .text ul, .answer .text ol { padding-left: 1.2em; }
.sources { font-size: .85rem; margin: 10px 0 0; padding-left: 1.1em; }
.sources li { margin: 2px 0; word-break: break-word; }
.fixes { display: grid; gap: 12px; padding: 0; list-style: none; }
.fixes li { border-left: 4px solid var(--line-2); background: var(--card); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.fixes li.high { border-left-color: var(--missed); }
.fixes li.medium { border-left-color: var(--gold); }
.fixes li.low { border-left-color: var(--line-2); }
.fixes h3 { font-size: 1rem; margin: 0 0 4px; }
.fixes p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.progress { height: 10px; background: #eceae4; border-radius: 999px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.live-log { font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.notice { background: var(--gold-soft); border: 1px solid #f3d892; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.notice.warn { background: var(--missed-soft); border-color: #f2c2ad; }
.notice.draft { background: #fff; border: 2px dashed var(--missed); }

/* Crawler checker */
.kind-group { margin-top: 22px; }
.agent-row td:first-child { font-family: var(--mono); font-size: .88rem; white-space: nowrap; }
.toggles { display: grid; gap: 10px; margin: 12px 0; }
pre.code { background: #10172e; color: #f3f1ea; border-radius: var(--radius-sm); padding: 14px; overflow: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.5; max-height: 420px; white-space: pre; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.key-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .key-grid { grid-template-columns: 1fr 1fr; } }
.key-grid .item { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 850; font-stretch: 112%; margin: 4px 0; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: 8px 0 16px; font-size: .95rem; flex: 1; }
.plan.featured { border: 2px solid var(--ink); }
.tag { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Prose pages */
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin: 4px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .9rem; color: var(--ink-2); background: #f5f1e9; margin-top: 40px; }
.site-footer .cols { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer nav a { display: block; padding: 3px 0; color: var(--ink-2); }
.disclaimer { font-size: .82rem; color: var(--muted); max-width: 640px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* Small utilities (no inline styles: the CSP blocks them) */
.h-card { font-size: 1.4rem; }
.mt-lg { margin-top: 28px; }
.mt { margin-top: 14px; }
.checks { padding-left: 0; list-style: none; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px var(--gold-soft); }
.center { text-align: center; }

/* The hidden attribute must win over display rules such as .grid-2 */
[hidden] { display: none !important; }

/* --- Owner dashboard (/admin/) ------------------------------------------------------- */
.admin .narrow-card { max-width: 480px; margin: 0 auto; }
.admin input[type=password], .admin input[type=search] {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { margin: 4px 0; }
.admin .small { font-size: .85rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.kpi-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .82rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line-2); margin-bottom: 14px; overflow-x: auto; overflow-y: hidden; }
.tabs [role=tab] { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; margin-bottom: -1.5px; white-space: nowrap; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--gold); }
.tabs [role=tab]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.admin-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.admin-toolbar input[type=search] { max-width: 360px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; }
.admin-table td { font-size: .92rem; }
.admin-table tr.detail td { background: var(--paper); }
.link-btn { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.cust-detail h4 { margin: 10px 0 4px; font-size: .9rem; }
.cust-detail ul { margin: 0; padding-left: 18px; }
.cust-detail li { margin: 3px 0; }
.admin .empty { padding: 18px 0; }
