/* WooCommerce Speed Audit — speed.sarahub.com
   Palette: Bone / Graphite / Cobalt / Signal Red / Signal Green. No gradients. */

:root {
  --bone: #e9ebe6;
  --surface: #f3f4f1;
  --ink: #15181b;
  --ink-soft: #4d555b;
  --rule: rgba(21, 24, 27, 0.14);
  --rule-strong: rgba(21, 24, 27, 0.3);
  --cobalt: #1e3fcc;
  --panel: #101315;
  --sig-red: #ff5f52;
  --sig-green: #37d399;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 780px;
  --pad: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}
.panel :focus-visible, .readout :focus-visible { outline-color: var(--sig-green); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--ink); color: var(--bone);
  padding: 10px 16px; font: 600 14px/1 var(--sans);
}
.skip:focus { left: 8px; top: 8px; color: var(--bone); }

/* ---------- layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

section { padding: 56px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

/* ---------- top bar / language switcher ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 46px;
}
.mark {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.lang { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; }
.lang a, .lang span { padding: 4px 2px; }
.lang [aria-current="true"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.lang .sep { color: var(--rule-strong); padding: 0 4px; }

/* ---------- type ---------- */

.eyebrow {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.021em;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.15vw, 1.8rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  max-width: 30ch;
  text-wrap: balance;
}
h2.wide { max-width: 34ch; }

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.fine { font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- hero ---------- */

.hero { padding-top: 52px; padding-bottom: 60px; }

.cta {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font: 600 1.02rem/1 var(--sans);
  letter-spacing: 0.005em;
  padding: 17px 28px;
  border: 1px solid var(--cobalt);
  text-decoration: none;
}
.cta:hover { background: #16309e; border-color: #16309e; color: #fff; }
.cta:active { transform: translateY(1px); }

.trust { margin: 18px 0 0; font-size: 0.95rem; font-weight: 600; }
.trust + .fine { margin-top: 4px; }

/* ---------- signature element: diagnostic readout ---------- */

.readout { margin: 0 0 34px; }

.readout__panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  color: #d7dee2;
  border: 1px solid var(--panel);
  padding: 16px 18px 18px;
}

.readout__head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 222, 226, 0.16);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.readout__dot {
  width: 7px; height: 7px; flex: none;
  background: var(--sig-green); border-radius: 50%;
}
.readout__host {
  margin-left: auto; color: #79868d;
  letter-spacing: 0.06em; text-transform: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.readout__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.readout__table th, .readout__table td { padding: 9px 0; text-align: right; }
.readout__table th[scope="row"], .readout__table thead th:first-child { text-align: left; }
.readout__table thead th {
  font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #79868d;
  padding-top: 12px;
}
.readout__table th[scope="row"] { font-weight: 500; color: #d7dee2; }
.readout__table tbody tr + tr { border-top: 1px solid rgba(215, 222, 226, 0.08); }
.v { font-variant-numeric: tabular-nums; }
.v--bad { color: var(--sig-red); }
.v--good { color: var(--sig-green); }
.arrow { color: #5c686e; width: 1.6em; }

.readout__note { margin: 10px 0 0; font-size: 0.8rem; color: var(--ink-soft); }

/* the one orchestrated moment: a single scan on load */
.readout.is-measuring .v { animation: resolve 0.55s ease-out both; }
.readout.is-measuring tbody tr:nth-child(1) .v { animation-delay: 0.1s; }
.readout.is-measuring tbody tr:nth-child(2) .v { animation-delay: 0.28s; }
.readout.is-measuring tbody tr:nth-child(3) .v { animation-delay: 0.46s; }
.readout.is-measuring .readout__panel::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--sig-green); opacity: 0.55;
  animation: sweep 1.15s ease-in-out 1 both;
}
@keyframes resolve {
  from { opacity: 0.12; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes sweep {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { transform: translateY(var(--sweep-h, 180px)); opacity: 0; }
}

/* ---------- checks ---------- */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 18px 0; border-top: 1px solid var(--rule); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.check__name {
  display: block;
  font: 600 0.82rem/1.4 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 5px;
}
.check__name::before {
  content: "\2713";
  color: var(--cobalt);
  margin-right: 9px;
  font-family: var(--sans);
}
.check__desc { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- steps (the only true sequence) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0 16px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  grid-row: span 2;
  font: 500 1.5rem/1 var(--mono);
  color: var(--rule-strong);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.steps p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- report figure ---------- */

figure { margin: 0; }
.shot {
  width: 100%; height: auto;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}
figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; }
.about img {
  width: 132px; height: 132px;
  border: 1px solid var(--rule-strong);
  object-fit: cover;
}
.about p { font-size: 1rem; }

/* ---------- faq ---------- */

.faq { margin: 0; }
.faq dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.35;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.faq dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.faq dd { margin: 7px 0 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- final cta + footer ---------- */

.final { padding-bottom: 60px; }
.final h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.3rem);
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: 14px;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0 44px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}
footer p { margin: 0 0 6px; }
footer a { color: var(--ink-soft); }

/* ---------- privacy pages ---------- */

.doc { padding: 48px var(--pad) 64px; max-width: 68ch; }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.4rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.15rem; max-width: none; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 0.99rem; }
.doc ul { padding-left: 1.1rem; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.back {
  display: inline-block;
  font: 500 0.85rem/1 var(--mono);
  letter-spacing: 0.06em;
  margin-bottom: 34px;
}
.updated { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 32px; }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  section { padding: 44px 0; }
  .hero { padding-top: 38px; }
  .about { grid-template-columns: 1fr; gap: 18px; }
  .about img { width: 112px; height: 112px; }
  .cta { display: block; text-align: center; padding: 17px 20px; }
  .readout__panel { padding: 14px 14px 16px; }
  .readout__table { font-size: 0.83rem; }
  .steps li { grid-template-columns: 2.5rem 1fr; gap: 0 12px; }
  .steps li::before { font-size: 1.25rem; }
}

@media (max-width: 400px) {
  :root { --pad: 18px; }
  .readout__head { font-size: 10px; letter-spacing: 0.1em; }
}

@media (max-width: 340px) {
  .readout__host { display: none; }
}

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