/* Brett's Tech & Repair — site styles
   Palette from the logo: Logo Blue #388BDB, Brand Blue #2672C2 (white text passes AA),
   Navy #0F2340, Paper #F5F8FC, Sky #DCEAF9, Spark #FFC531 (carried over from the Facebook series). */

:root {
  --logo-blue: #388BDB;
  --blue: #2672C2;
  --blue-dark: #1F67B5;
  --navy: #0F2340;
  --navy-2: #17305A;
  --paper: #F5F8FC;
  --white: #FFFFFF;
  --sky: #DCEAF9;
  --sky-2: #EAF2FC;
  --spark: #FFC531;
  --slate: #4B5D75;
  --rule: #C8D7EA;
  --on-blue-muted: #DCEAF9;

  --font: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--spark); color: var(--navy); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--spark); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.02; }
h4 { font-size: 1.15rem; margin: 0; font-weight: 750; }
p { margin: 0; max-width: 66ch; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.muted { color: var(--slate); }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 750; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-spark { background: var(--spark); color: var(--navy); }
.btn-spark:hover { background: #FFD45F; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--blue); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--blue); color: var(--white); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,35,64,.22); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; font-stretch: 90%; font-variation-settings: "wdth" 90; }
.brand-name small { display: block; font-weight: 500; font-size: .82rem; color: var(--on-blue-muted); font-stretch: 100%; font-variation-settings: "wdth" 100; }
.brand:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:not(.btn):hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -3px 0 var(--spark); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: transparent; border: 2px solid rgba(255,255,255,.75); color: var(--white);
  border-radius: 999px; min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer;
  align-items: center; gap: 8px;
}
.nav-toggle svg { transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue); padding: 8px var(--gutter) 22px;
    box-shadow: 0 18px 30px rgba(15,35,64,.25);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .32s var(--ease), visibility 0s linear .32s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .32s var(--ease); }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.18); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: inset 4px 0 0 var(--spark); padding-left: 14px; }
  .nav .btn { margin: 16px 0 0; }
}

/* ---------- Blue bands (heroes) ---------- */
.band-blue { background: var(--blue); color: var(--white); }
.band-blue a:not(.btn) { color: var(--white); }
.band-blue .muted { color: var(--on-blue-muted); }

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { color: var(--white); max-width: 34rem; }
.hero-copy > * + * { margin-top: 1.5rem; }
.hero-copy .btn-row { margin-top: 2rem; }
.hero-note { font-size: .95rem; color: var(--on-blue-muted); }
/* the logo's monitor outline, echoed large behind the hero */
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 360px;
  border: 26px solid rgba(255,255,255,.07); border-radius: 36px; pointer-events: none;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
}

/* ---------- Answer engine (home hero) ---------- */
.engine {
  background: var(--white); color: var(--navy); border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 30px 60px -20px rgba(9,26,51,.55);
  position: relative; z-index: 1;
}
.engine-query {
  display: flex; align-items: center; gap: 12px; min-height: 58px;
  background: var(--sky-2); border: 2px solid var(--sky); border-radius: 999px; padding: 10px 18px;
  font-weight: 600; font-size: 1.05rem;
}
.engine-query svg { flex: none; color: var(--blue); }
.engine-typed { min-height: 1.6em; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--blue); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.engine-body { margin-top: 18px; min-height: 300px; }
.engine-think { display: flex; gap: 6px; padding: 8px 2px; }
.engine-think i { width: 8px; height: 8px; border-radius: 50%; background: var(--logo-blue); animation: think 1s var(--ease) infinite; }
.engine-think i:nth-child(2) { animation-delay: .15s; }
.engine-think i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-5px); opacity: 1; } }

.engine-answer { color: var(--slate); font-size: .98rem; }
.engine-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.engine-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: var(--radius-md); background: var(--sky-2);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.engine-list li.is-in { opacity: 1; transform: none; }
.engine-list .is-you { background: var(--spark); font-weight: 800; font-size: 1.12rem; }
.engine-list .is-you span:last-child { font-size: .85rem; font-weight: 700; }
.engine-bar { display: block; height: 12px; border-radius: 6px; background: var(--sky); }

.engine-sources { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sky); }
.engine-sources p { font-size: .85rem; color: var(--slate); margin-bottom: 10px; }
.engine-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.engine-chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  border: 2px solid var(--sky); font-size: .88rem; font-weight: 650; color: var(--slate);
  transition: border-color .3s, background-color .3s, color .3s;
}
.engine-chips li svg { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s var(--ease); }
.engine-chips li.is-on { border-color: var(--navy); color: var(--navy); background: var(--white); }
.engine-chips li.is-on svg { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-sky { background: var(--sky-2); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .muted { color: #B7C6DB; }
.section-navy a:not(.btn) { color: var(--white); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(36px, 5vw, 64px); max-width: 52rem; }

/* three things AI reads */
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.read { border-top: 4px solid var(--navy); padding-top: 22px; }
.read h3 { margin-bottom: .75rem; }
.read-tie { margin-top: 1.1rem; font-weight: 700; }
.reads-close { margin-top: clamp(36px, 5vw, 56px); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 80%; font-variation-settings: "wdth" 80; line-height: 1.15; max-width: 30ch; }
@media (max-width: 820px) { .reads { grid-template-columns: minmax(0, 1fr); } }

/* service rows */
.services { display: grid; gap: clamp(56px, 8vw, 104px); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.service-row:nth-child(even) .service-visual { order: -1; }
.service-name { font-size: clamp(3rem, 7vw, 5.6rem); }
.service-row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-row li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.service-row li svg { margin-top: 4px; color: var(--blue); }
.service-link { font-weight: 750; font-size: 1.05rem; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row:nth-child(even) .service-visual { order: 0; }
}

/* mini visuals (shared by home rows and service heroes) */
.viz { background: var(--white); border-radius: var(--radius-lg); border: 2px solid var(--rule); padding: 20px; color: var(--navy); }
.band-blue .viz { border-color: transparent; box-shadow: 0 30px 60px -20px rgba(9,26,51,.55); }
.viz-browser-top { display: flex; gap: 6px; margin-bottom: 14px; }
.viz-browser-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.viz-url { flex: 1; margin-left: 8px; height: 10px; border-radius: 5px; background: var(--sky-2); }
.viz-page { display: grid; gap: 10px; }
.vp-hero { height: 92px; border-radius: 12px; background: var(--blue); display: grid; align-content: center; gap: 8px; padding: 0 18px; }
.vp-hero b { display: block; height: 14px; width: 62%; border-radius: 7px; background: rgba(255,255,255,.9); }
.vp-hero span { display: block; height: 10px; width: 28%; border-radius: 5px; background: var(--spark); }
.vp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vp-cols i { height: 64px; border-radius: 10px; background: var(--sky-2); border: 2px solid var(--sky); }
.vp-line { height: 10px; border-radius: 5px; background: var(--sky); }
.vp-line.w60 { width: 60%; } .vp-line.w80 { width: 80%; }
.vp-tag { justify-self: start; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--navy); color: var(--white); }

.viz-gbp-head { display: flex; gap: 14px; align-items: center; }
.viz-gbp-head .pin { width: 48px; height: 48px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; color: var(--white); flex: none; }
.viz-gbp-name { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.stars { display: flex; gap: 3px; margin-top: 4px; }
.stars svg { width: 18px; height: 18px; }
.stars .star-fill { fill: var(--spark); stroke: #C9930A; }
.viz-gbp-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.viz-gbp-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--sky-2); font-weight: 650; font-size: .95rem; }
.viz-gbp-list .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; flex: none; }

.viz-app { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.viz-app-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; font-weight: 800; }
.viz-app-head span { width: 28px; height: 28px; border-radius: 8px; background: var(--sky); }
.tile { border-radius: 12px; padding: 14px 12px; min-height: 86px; display: flex; flex-direction: column; justify-content: space-between; color: var(--navy); font-weight: 750; font-size: .9rem; line-height: 1.2; }
.tile i { width: 22px; height: 22px; border-radius: 6px; background: rgba(15,35,64,.18); }
.tile.t1 { background: #FFE39A; } .tile.t2 { background: var(--sky); } .tile.t3 { background: #CDEBD9; }
.tile.t4 { background: #FFD6C2; } .tile.t5 { background: #E3DCF7; }
.tile.wide { grid-column: span 2; }

/* one-shot build animations for service heroes (run once, when .viz gets .is-built) */
.viz-anim [data-step] { opacity: 0; transform: translateY(10px) scale(.98); }
.viz-anim.is-built [data-step] { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 140ms); }
.viz-anim .stars .star-fill { fill: var(--white); stroke: var(--rule); transition: fill .3s, stroke .3s; }
.viz-anim.is-built .stars .star-fill { fill: var(--spark); stroke: #C9930A; transition-delay: calc(400ms + var(--i, 0) * 120ms); }

/* steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--spark); color: var(--navy); font-weight: 850; font-size: 1.4rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 64px; right: -12px; height: 2px; background: rgba(255,255,255,.25); }
.steps h3 { font-size: 1.6rem; margin-bottom: .6rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 0 0 0 76px; min-height: 56px; }
  .steps li:not(:last-child)::after { display: none; }
}

/* clients */
.clients { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.clients li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.clients .c-name { font-weight: 850; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-stretch: 80%; font-variation-settings: "wdth" 80; line-height: 1.1; }
.clients a { font-weight: 700; }
@media (max-width: 720px) { .clients li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* area */
.area { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 2px solid var(--rule); font-weight: 650; }
@media (max-width: 820px) { .area { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { border-top: 2px solid var(--navy); max-width: 60rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 750; font-size: clamp(1.1rem, 1.7vw, 1.3rem); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy); position: relative; transition: background-color .2s, transform .3s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .pm { background: var(--spark); border-color: var(--spark); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .faq-a { padding: 0 0 24px; }
.faq .faq-a p + p { margin-top: .8rem; }
.faq details[open] .faq-a { animation: faqin .35s var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* booking */
.book-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.book-frame { background: var(--white); border-radius: var(--radius-lg); padding: 8px; box-shadow: 0 24px 50px -24px rgba(15,35,64,.35); min-height: 600px; }
.book-frame iframe { display: block; width: 100%; border: 0; border-radius: 16px; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines svg { color: var(--blue); flex: none; }
.section-navy .contact-lines svg { color: var(--spark); }
@media (max-width: 900px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }

/* page hero (inner) */
.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.crumbs { font-size: .92rem; margin-bottom: 1.5rem; color: var(--on-blue-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--white); }

/* two-column content */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.checklist li svg { margin-top: 3px; color: var(--blue); }
.checklist strong { display: block; font-size: 1.15rem; margin-bottom: 2px; }

/* plans (two ways to start) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.plan { background: var(--white); border: 2px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 1rem; align-content: start; }
.plan.is-featured { border-color: var(--navy); box-shadow: 8px 8px 0 var(--spark); }
.plan h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.plan ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* article (AI search guide) */
.article { max-width: 46rem; }
.article h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 3.5rem; margin-bottom: 1.1rem; }
.article h3 { margin-top: 2rem; margin-bottom: .6rem; }
.article p + p { margin-top: 1rem; }
.article ul, .article ol { padding-left: 1.2rem; display: grid; gap: 8px; margin: 1rem 0; }
.callout { margin: 2rem 0; padding: 22px 24px; border-radius: var(--radius-md); background: var(--sky-2); border: 2px solid var(--sky); }
.byline { display: flex; align-items: center; gap: 12px; color: var(--on-blue-muted); font-size: .95rem; margin-top: 1.5rem; }
.toc { position: sticky; top: 100px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 16px; text-decoration: none; color: var(--slate); font-weight: 600; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--navy); border-left-color: var(--navy); }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* forms */
.form { display: grid; gap: 16px; max-width: 40rem; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--white);
  border: 2px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
.form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { background: var(--spark); color: var(--navy); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 18ch; }

/* prose lists for repair page */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--navy); }
.svc-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.svc-list strong { display: block; font-size: 1.15rem; }
@media (max-width: 760px) { .svc-list { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.site-footer { background: var(--navy); color: #D3DEEC; padding: clamp(48px, 6vw, 80px) 0 32px; font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 1.05rem; font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 800; color: var(--white); margin-bottom: 14px; line-height: 1.3; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid li a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: #A9BAD1; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-lg { margin-top: clamp(36px, 5vw, 56px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .caret { display: none; }
}
.engine-think[hidden] { display: none; }
h1, h2 { overflow-wrap: break-word; }
h1, h2, h3, .display, .clients .c-name, .reads-close { word-spacing: 0.08em; }
h3 { font-stretch: 80%; font-variation-settings: "wdth" 80; }
@media (max-width: 560px) {
  .engine-query { min-height: 84px; border-radius: 20px; font-size: .98rem; }
  .brand-name { font-size: 1.02rem; }
}
.hero::after { right: -60px; bottom: -220px; width: 640px; height: 420px; }
.page-hero .wrap > .hero-copy:only-child h1 { max-width: 20ch; }
.headshot {
  width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 1; object-fit: cover;
  border-radius: 28px; border: 6px solid var(--white);
  box-shadow: 14px 14px 0 var(--spark), 0 30px 60px -20px rgba(9,26,51,.55);
}
@media (max-width: 900px) { .headshot { max-width: 320px; justify-self: start; } }

/* ---------- AI visibility check ---------- */
.check-form { display: grid; gap: 14px; }
.check-form-title { font-size: 1.9rem; margin-bottom: 4px; }
.check-form label { font-weight: 700; display: block; margin-bottom: 6px; font-size: .95rem; }
.check-form input { width: 100%; font: inherit; color: var(--navy); background: var(--white); border: 2px solid var(--rule); border-radius: var(--radius-sm); padding: 11px 13px; min-height: 48px; }
.check-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
.check-form .btn { width: 100%; margin-top: 4px; }
.check-form .btn[disabled], .check-gate .btn[disabled] { opacity: .7; cursor: progress; }
.check-error { color: #A3330B; font-weight: 700; }
.band-blue .check-form .muted { color: var(--slate); }

.check-progress { max-width: 44rem; }
.check-progress h2 { margin-bottom: 1.25rem; }
.progress-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 12px; }
.progress-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--white); border: 2px solid var(--rule); font-weight: 650; }
.pstate { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--sky); border-top-color: var(--blue); animation: spin .9s linear infinite; }
.progress-list li.is-done .pstate { animation: none; border-color: var(--navy); background: var(--navy); position: relative; }
.progress-list li.is-done .pstate::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.progress-list li.is-error .pstate { animation: none; border-color: #A3330B; background: #FDE7DD; }
@keyframes spin { to { transform: rotate(360deg); } }

#check-report > * + * { margin-top: clamp(24px, 3vw, 36px); }
.ai-verdict { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); border: 3px solid var(--navy); background: var(--white); max-width: 52rem; }
.ai-verdict.is-yes { box-shadow: 10px 10px 0 var(--spark); }
.ai-verdict.is-no { box-shadow: 10px 10px 0 #F4B9A3; }
.ai-verdict h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: .4rem 0 1rem; }
.ai-q { font-weight: 650; color: var(--slate); }
.ai-names { margin: .5rem 0 1rem; padding-left: 1.3rem; display: grid; gap: 4px; font-weight: 750; font-size: 1.1rem; }
.small { font-size: .9rem; }
.check-score { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 850; font-stretch: 80%; font-variation-settings: "wdth" 80; }
.check-gate { background: var(--sky-2); border: 2px solid var(--sky); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); max-width: 36rem; }
.check-gate h3 { font-size: 1.9rem; }
.check-fixes h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.steps-plain { margin: 0; padding-left: 1.4rem; display: grid; gap: 14px; max-width: 48rem; }
.steps-plain strong { display: block; font-size: 1.1rem; }
.check-area h3 { margin-bottom: .8rem; }
.check-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); max-width: 60rem; }
.check-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.check-list strong { display: block; }
.badge { display: inline-block; text-align: center; font-size: .82rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.is-pass .badge { background: var(--navy); color: var(--white); }
.is-warn .badge { background: var(--spark); color: var(--navy); }
.is-fail .badge { background: #FDE7DD; color: #8A2A08; border: 2px solid #E9A68C; }
.check-cta h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.check-cta .btn { margin-top: 1rem; }
@media (max-width: 600px) { .check-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; } .badge { justify-self: start; } }
