:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --alt: #fff6f2;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --accent: #f59e0b;
  --answer: #fff1ea;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h2 a { color: inherit; text-decoration: none; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: .95rem; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: url("/favicon.svg") center/cover; }
.site-header nav { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.site-header nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.site-header nav a.nav-cta { background: var(--accent); padding: 6px 14px; border-radius: 999px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto; padding: 12px 16px 0; max-width: 780px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

.hero { padding: 44px 0 32px; background: linear-gradient(180deg, var(--alt), #fff); }
.hero.small { padding: 24px 0 18px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.eyebrow { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: .4em; }
.eyebrow a { text-decoration: none; }
.search input { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); }
.search input:focus { outline: none; border-color: var(--brand); }
.search-results li { padding-left: 0; }
.search-results { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; margin-top: 8px; }

.short-answer { background: var(--answer); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 18px; margin: 8px 0 12px; }
.short-answer .label { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); margin-bottom: .3em; }
.short-answer p:last-child { margin: 0; font-size: 1.05rem; }
.byline { color: var(--muted); font-size: .9rem; margin: 0; }

.prose { padding-bottom: 24px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

.cta-inline { border: 1px dashed var(--brand); border-radius: 8px; padding: 10px 14px; margin: 8px 0 4px; font-size: .95rem; }
.cta-inline p { margin: 0; }

.section { padding: 32px 0; }
.section.alt { background: var(--alt); }
.q-list { list-style: none; padding: 0; margin: 0 0 12px; }
.q-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-list li:last-child { border-bottom: 0; }
.q-list a { font-weight: 700; text-decoration: none; display: block; }
.q-list a:hover { text-decoration: underline; }
.q-list span { color: var(--muted); font-size: .93rem; display: block; margin-top: 2px; }
.topic-links { padding-left: 1.2em; }
.topic-links li { margin-bottom: .4em; }

.next-q { padding: 20px 16px; display: flex; flex-direction: column; gap: 2px; }
.next-q span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.next-q a { font-weight: 700; font-size: 1.1rem; }

.cta-band { background: var(--brand-dark); color: #fff; padding: 40px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9e0ff; }
.button { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 700; padding: 13px 26px; border-radius: 999px; text-decoration: none; border: 0; font-size: 1rem; cursor: pointer; }
.button:hover { color: var(--ink); filter: brightness(1.05); }

.audit-grid { max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.lead-form h3 { font-size: 1.25rem; }
.lead-form label { display: block; font-weight: 600; margin-bottom: 12px; }
.lead-form input, .lead-form select { display: block; width: 100%; margin-top: 4px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.lead-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; }
.lead-form fieldset label { display: inline-block; margin-right: 16px; font-weight: 400; }
.lead-form fieldset input { display: inline; width: auto; }
.lead-form button { background: var(--brand); color: #fff; font: inherit; font-weight: 700; border: 0; padding: 12px 20px; border-radius: 999px; cursor: pointer; width: 100%; }
.form-status { margin-top: 10px; color: var(--muted); }
.form-sub { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin-bottom: 12px; }
.footer-cols h3 { font-size: .95rem; }
.footer-cols h3 a { color: var(--ink); text-decoration: none; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 4px; }

@media (max-width: 760px) {
  .audit-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}

.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.finder-sentence { font-size: 1.15rem; font-weight: 600; line-height: 2.4; margin: 0; }
.combo { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.combo-input { font: inherit; font-weight: 700; color: var(--brand); background: var(--answer); border: 0; border-bottom: 2px solid var(--brand); border-radius: 6px 6px 0 0; padding: 2px 8px; width: 15em; max-width: 100%; }
.combo-input::placeholder { color: var(--muted); font-weight: 500; }
.combo-input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.combo-list { position: absolute; left: 0; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px; min-width: 100%; width: max-content; max-width: min(22em, 90vw); max-height: 18em; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); font-size: 1rem; font-weight: 500; line-height: 1.4; }
.combo-list li { padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.combo-list li.active, .combo-list li:hover { background: var(--answer); color: var(--brand-dark); }
.combo-list li.none { cursor: default; color: var(--muted); background: none; }
.finder-results .q-list { margin-top: 6px; }
.finder-count { margin: 8px 0 0; }
.finder-more a { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.topic-links.cols { columns: 2 220px; }

/* ismyseoagencyworking: guide form, tools, quiz */
.cta-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.form-card, .guide-form { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.form-card .guide-form { border: 0; padding: 0; }
.guide-form label, .form-card > label { display: block; font-weight: 600; font-size: .95rem; margin: 10px 0 4px; }
.guide-form input[type=text], .guide-form input[type=email], .form-card input[type=text], .form-card input[type=email] { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.guide-form .button { margin-top: 14px; width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b91c1c; font-weight: 600; }
.form-done { font-weight: 600; }
.button.ghost { background: #fff; color: var(--ink); border: 1px solid #cbd5e1; }
.tool-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .tool-cards { grid-template-columns: 1fr 1fr; } }
.tool-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); background: #fff; }
.tool-card:hover { border-color: var(--brand); }
.tool-card strong { display: block; color: var(--brand); margin-bottom: 4px; }
.tool-card span { color: var(--muted); font-size: .95rem; }
.quiz-progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.quiz-count { margin: 6px 0 14px; }
.quiz-q { font-weight: 700; margin: 0 0 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--answer); }
.choice input { margin-top: 4px; accent-color: var(--brand); }
.quiz-nav { display: flex; gap: 12px; margin-top: 16px; }
.quiz-findings li { margin: 0 0 10px; }
.spectrum { margin: 24px 0; }
.spectrum-top { display: flex; justify-content: space-between; align-items: flex-end; }
.spectrum-top .good { width: 30%; } .spectrum-top .rest { width: 70%; text-align: center; }
.spectrum-top strong { display: block; font-size: 1.8rem; }
.spectrum-top .rest strong { color: var(--brand); }
.spectrum-top span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.spectrum-bar { position: relative; display: flex; gap: 6px; margin-top: 10px; }
.bar-good { height: 14px; width: 30%; border-radius: 99px; background: var(--ink); }
.bar-rest { height: 14px; flex: 1; border-radius: 99px; background: linear-gradient(90deg, #cbd5e1, var(--brand)); }
.spectrum-marker { position: absolute; top: -7px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; border: 4px solid #fff; background: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.spectrum-labels { display: flex; margin-top: 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.spectrum-labels span:first-child { width: 30%; } .spectrum-labels span:nth-child(2) { flex: 1; } .spectrum-labels span:last-child { color: var(--brand); }
.check-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 14px; }
.check-item legend { font-weight: 700; padding: 0 6px; }
.check-options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row input { margin-top: 5px; accent-color: var(--brand); }
.check-row strong { display: block; }
.check-row .muted { display: block; font-size: .92rem; }
.check-result { margin-top: 20px; }
.check-result:not(:empty) { border: 2px solid var(--brand); border-radius: var(--radius); padding: 18px; background: var(--answer); }
.cta-grid > * { min-width: 0; }
