:root {
  color-scheme: light;
  --canvas: #f4f5f9;
  --paper: #fff;
  --ink: #171a22;
  --muted: #555c70;
  --line: #d9deea;
  --blue: #234fca;
  --dark: #141d38;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #2460e5; outline-offset: 5px; border-radius: 4px; }
main:focus { outline: none; }
.skip { position: fixed; z-index: 5; top: .75rem; left: .75rem; transform: translateY(-200%); background: white; padding: .75rem 1rem; }
.skip:focus { transform: none; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.05vw, 6rem); font-weight: 750; }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 720; }
h3 { font-size: 1.24rem; letter-spacing: -.025em; }
p { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .site-header nav, .site-footer nav { display: flex; align-items: center; }
.header-inner, .footer-inner { justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 80px; }
.site-header nav, .site-footer nav { gap: clamp(.8rem, 3vw, 2.25rem); }
.site-header nav a, .site-footer nav a { color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav [aria-current], .site-footer nav [aria-current] { color: var(--blue); text-decoration: underline; }
.wordmark { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); font-size: 1.4rem; font-weight: 780; text-decoration: none; letter-spacing: -.06em; }
.sign-in { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .95rem; background: var(--paper); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.7rem; }
.footer-inner p { font-size: .875rem; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(1.8rem, 4vw, 4.5rem); padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem); }
.eyebrow { color: var(--blue); font-size: .875rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.1rem, 1.65vw, 1.4rem); max-width: 42ch; margin-top: 1.5rem; line-height: 1.55; }
.actions { display: flex; gap: .85rem 1.4rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.button, .text-link { font-weight: 700; font-size: .94rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.15rem; border-radius: 8px; background: var(--blue); color: white; text-decoration: none; }
.button:hover { background: #173da9; }
.text-link:hover { text-decoration-thickness: 2px; }

.audit-visual {
  padding: clamp(1.15rem, 4vw, 3.8rem);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, #ffffff24 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, #ffffff24 27px 28px),
    radial-gradient(ellipse at 100% 0%, #4f83fa, transparent 65%),
    linear-gradient(145deg, #3159e3, #183599);
  border-radius: 22px;
  box-shadow: 0 18px 35px -23px #223fa2;
}
.audit-sheet { overflow: hidden; background: var(--paper); border: 1px solid #ffffff96; border-radius: 14px; box-shadow: 0 14px 48px #0a205b65; }
.sheet-head, .sheet-summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1.15rem; border-bottom: 1px solid var(--line); }
.sheet-head span { font-size: .77rem; color: var(--muted); font-weight: 650; }
.sheet-summary { padding-block: 1.15rem; background: #f7f9ff; }
.metric-label { display: block; color: var(--muted); font-size: .875rem; font-weight: 650; }
.score { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -.07em; }
.score span { margin-left: .15em; font-size: .52em; color: var(--blue); }
.bars { height: 58px; flex: 0 1 54%; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid #bdc9e3; }
.bars i { height: 30%; flex: 1; background: #a3b8f8; border-radius: 3px 3px 0 0; }
.bars i:nth-child(2) { height: 48%; }
.bars i:nth-child(3) { height: 42%; }
.bars i:nth-child(4) { height: 59%; }
.bars i:nth-child(5) { height: 54%; }
.bars i:nth-child(6) { height: 70%; }
.bars i:nth-child(7) { height: 64%; }
.bars i:nth-child(8) { height: 77%; }
.bars i:nth-child(9) { height: 86%; background: var(--blue); }
.sheet-issues { padding: .85rem 1.15rem .65rem; }
.sheet-issues p { font-size: .8rem; font-weight: 700; }
.sheet-issues ul { margin: .25rem 0 0; list-style: none; padding: 0; }
.sheet-issues li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem 0; font-size: .875rem; }
.sheet-issues li + li { border-top: 1px solid #eaedf4; }
.count { min-width: 1.8rem; text-align: center; border-radius: 5px; font-size: .8rem; }
.error { color: #982637; background: #ffe6eb; }
.warning { color: #81500c; background: #ffefd5; }
.notice { color: #284ba4; background: #e7eeff; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.metrics div { display: flex; flex-direction: column-reverse; gap: .45rem; padding: 1.45rem 1.5rem; }
.metrics div:first-child { padding-left: 0; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.metrics dd { font-size: clamp(1.9rem, 4vw, 3.25rem); font-weight: 730; line-height: 1; letter-spacing: -.065em; }
.metrics small { color: var(--blue); font-size: .34em; letter-spacing: 0; }

.section { padding-block: clamp(3rem, 6vw, 5.75rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.section-heading a { white-space: nowrap; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tool { display: flex; flex-direction: column; gap: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: clamp(1.05rem, 2vw, 1.55rem); scroll-margin-top: 1rem; }
.tool:target { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.tool h3 a { color: var(--ink); text-decoration-color: #a9b9e4; }
.tool h3 a:hover { color: var(--blue); text-decoration-color: currentColor; }
.tool p { margin-top: .65rem; }
.tool-icon { display: grid; place-items: center; width: 40px; height: 40px; background: #eaf0ff; border-radius: 8px; color: var(--blue); }
.tool-icon::before { content: ''; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 3px; }
.icon-tracking::before { border: 0; border-radius: 0; background: currentColor; clip-path: polygon(0 82%, 40% 38%, 61% 58%, 100% 10%, 100% 41%, 62% 87%, 41% 67%, 0 100%); }
.icon-on-page::before { border-radius: 50%; box-shadow: inset 0 0 0 3px #eaf0ff; background: currentColor; }
.icon-backlinks::before { transform: rotate(-42deg); height: 9px; box-shadow: 7px 0 0 -2px #eaf0ff, 7px 0 currentColor; }
.icon-link-building::before { border-style: dashed; }
.icon-google::before { border-radius: 50%; border-right-color: transparent; }
.availability { display: block; font-size: .8rem; color: var(--blue); font-weight: 750; margin-bottom: .4rem; }
.method { background: var(--dark); color: white; padding-block: clamp(3rem, 6vw, 5rem); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.method a { color: #abc6ff; display: inline-block; margin-top: 1.25rem; }
.method a:focus-visible { outline-color: #abc6ff; }
.method p { color: #c9d3eb; margin-top: .55rem; max-width: 52ch; }
.method p + h3 { margin-top: 1.75rem; }
.access { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: #e5edff; padding: clamp(1.4rem, 4vw, 3.2rem); border-radius: 16px; }
.access h2 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }
.access .button { flex-shrink: 0; }

.page-intro { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.page-intro h1, .detail-title { font-size: clamp(2.9rem, 5.4vw, 5.1rem); }
.detail-tools h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); margin-bottom: 1.2rem; }
.detail-section { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: 1.5rem 3rem; border-top: 1px solid var(--line); }
.detail-list div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.detail-list div:first-child { padding-top: 0; }
.detail-list dt { font-weight: 750; }
.detail-list dd { color: var(--muted); margin-top: .35rem; }
.callout { border: 1px solid var(--line); border-radius: 14px; background: white; padding: clamp(1.3rem, 4vw, 2.8rem); }
.callout p { margin: 1rem 0; }
.steps { padding-left: 0; list-style: none; margin-block: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr 1.6fr; gap: 1rem 1.6rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); color: var(--blue); background: #e5edff; font-weight: 750; display: grid; place-items: center; border-radius: 8px; width: 2.6rem; height: 2.6rem; }
.steps h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); margin-bottom: .35rem; }
.steps p { max-width: 55ch; }

.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.concept { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; }
.specimen { display: flex; align-items: center; gap: .45rem; min-height: 128px; padding: 1rem; }
.specimen b { color: var(--ink); font-size: clamp(1.2rem, 2.2vw, 2.1rem); letter-spacing: -.065em; }
.specimen.dark { background: var(--dark); color: white; min-height: 60px; gap: .75rem; }
.specimen.dark img { filter: brightness(0) invert(1); }
.specimen.dark span { font-size: .8rem; }
.concept-copy { padding: 1.2rem; }
.concept-copy h2 { font-size: 1.7rem; }
.concept-copy p { margin: .55rem 0 .75rem; }

.policy { max-width: 760px; padding-block: clamp(3rem, 6vw, 5.5rem); }
.policy h1 { font-size: clamp(2.65rem, 5.7vw, 4.8rem); }
.policy-intro { margin-top: 1rem; font-size: 1.2rem; }
.policy section { margin-top: 2rem; }
.policy h2 { font-size: 1.55rem; letter-spacing: -.025em; }
.policy section p, .error-actions { margin-top: .7rem; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 1.6rem; }
  .wide-only { display: none; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; row-gap: 2rem; }
  .audit-visual { padding: clamp(1.2rem, 6vw, 3rem); }
  .tools-grid, .concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div { padding-inline: .7rem; }
  .metrics small { font-size: .41em; }
  .detail-section { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; gap: .45rem; padding-block: .7rem .6rem; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .7rem; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .wordmark { min-height: 44px; }
  .tools-grid, .concept-grid, .method-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div, .metrics div:first-child { display: grid; grid-template-columns: 7.2rem 1fr; align-items: center; padding: .95rem 0; gap: .55rem; }
  .metrics dd { grid-area: 1 / 1; }
  .metrics div + div { border-left: 0; border-top: 1px solid var(--line); }
  .access { flex-direction: column; align-items: flex-start; }
  .steps li { grid-template-columns: 2.6rem 1fr; }
  .steps li p { grid-column: 2; }
  .footer-inner { flex-wrap: wrap; }
}
