/* Gleyde Technologies — Cybersecurity & Software
   Minimal luxury design system. One stylesheet, no inline styles (strict CSP).
   Near-black, ivory type, gold used sparingly: hairlines, one primary button, small accents.
   Contrast (WCAG 2.2 AA) checked for every text colour on every surface it sits on:
   ivory 15.5:1+, muted 9:1+, dim 5.5:1+, gold 8:1+, status colours 7.5:1+. */

/* ---------- Fonts (self-hosted, subset to the characters the site uses) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/gleyde-serif-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/gleyde-serif-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/gleyde-sans-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* colour */
  --bg: #0b0b0c;
  --bg-alt: #0f0f11;
  --surface: #141416;
  --field: #0e0e10;
  --ivory: #f2ede4;
  --muted: #bdb6aa;
  --dim: #948d82;
  --gold: #c9a86a;
  --gold-soft: #e2c993;
  --ink: #141109; /* text on gold */
  --pass: #a7c49a;
  --warn: #ff9a4d;
  --fail: #ff5a4f;
  --fail-fill: #c7281e; /* white text on it: 5.6:1 */
  --line: rgba(242, 237, 228, 0.09);
  --line-strong: rgba(242, 237, 228, 0.18);
  --hairline: rgba(201, 168, 106, 0.32);

  /* type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --t-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);
  --t-h2: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --t-h3: 1.375rem;
  --t-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* spacing scale (4px base): use only these */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* layout */
  --wrap: 1120px;
  --measure: 38rem;
  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 64px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 160ms;
  --med: 220ms;
}
@media (min-width: 720px) {
  :root {
    --gutter: 40px;
    --header-h: 76px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s4));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--t-h1);
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
}
h4 {
  font-size: 1.2rem;
  line-height: 1.25;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--gold);
}
p {
  margin: 0;
  text-wrap: pretty;
}
p + p {
  margin-top: var(--s4);
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--fast) var(--ease);
}
a:hover {
  color: var(--gold-soft);
}
strong {
  font-weight: 600;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s6) 0;
}
::selection {
  background: rgba(201, 168, 106, 0.35);
  color: var(--ivory);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -80px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: var(--s3);
  color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: calc(46rem + var(--gutter) * 2);
}
.section {
  padding: var(--s9) 0;
}
.section-tight {
  padding: var(--s8) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .section {
    padding: var(--s10) 0;
  }
}
.section-head {
  max-width: var(--measure);
  margin-bottom: var(--s7);
}
.section-head h2 + p {
  margin-top: var(--s4);
}

/* small text roles */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s5);
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.lede {
  max-width: var(--measure);
  font-size: var(--t-lede);
  line-height: 1.65;
  color: var(--muted);
}
.small {
  font-size: var(--t-small);
  color: var(--dim);
}
.meta-label {
  margin-bottom: var(--s3);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.note {
  max-width: var(--measure);
  margin-top: var(--s7);
  padding-left: var(--s4);
  border-left: 1px solid var(--gold);
  font-size: var(--t-small);
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  color: var(--ivory);
  text-decoration: none;
}
.brand:hover {
  color: var(--ivory);
}
.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 3px;
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ivory);
  transition: transform var(--med) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}
.nav-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: none;
  flex-direction: column;
  padding: var(--s4) var(--gutter) var(--s6);
  list-style: none;
  background: rgba(11, 11, 12, 0.98);
  border-bottom: 1px solid var(--line);
}
.nav-menu.open {
  display: flex;
}
.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.0625rem;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-menu a[aria-current="page"] {
  color: var(--gold);
}
.nav-menu .nav-cta {
  margin-top: var(--s5);
}
.nav-menu .nav-cta a {
  justify-content: center;
  border: 1px solid var(--gold);
}
.no-js .nav-toggle {
  display: none;
}
.no-js .nav-menu {
  position: static;
  display: flex;
  flex-flow: row wrap;
  gap: 0 var(--s4);
  padding: 0;
  background: none;
  border: 0;
}
@media (min-width: 1000px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu,
  .no-js .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--s1);
    padding: 0;
    background: none;
    border: 0;
  }
  .nav-menu a {
    position: relative;
    min-height: 44px;
    padding: 0 var(--s3);
    font-size: var(--t-small);
    letter-spacing: 0.02em;
    color: var(--muted);
    border: 0;
  }
  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: var(--s3);
    right: var(--s3);
    bottom: 10px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--med) var(--ease);
  }
  .nav-menu a:hover {
    color: var(--ivory);
  }
  .nav-menu a:not(.btn):hover::after,
  .nav-menu a[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .nav-menu a[aria-current="page"] {
    color: var(--ivory);
  }
  .nav-menu .nav-cta {
    margin: 0 0 0 var(--s4);
  }
  .nav-menu .nav-cta a {
    padding: 0 var(--s4);
  }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 48px;
  padding: 0 var(--s5);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--med) var(--ease), border-color var(--med) var(--ease), color var(--med) var(--ease),
    transform var(--med) var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--ink);
}
.btn-line,
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-strong);
}
.btn-line {
  border-color: var(--hairline);
}
.btn-line:hover,
.btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.06);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn .arrow,
.link .arrow,
.lines .arrow {
  display: inline-block;
  transition: transform var(--med) var(--ease);
}
.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(4px);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ivory);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: color var(--fast) var(--ease), background-size var(--med) var(--ease);
}
.link:hover {
  color: var(--gold-soft);
}

/* ---------- Heroes ---------- */
.hero {
  padding: var(--s9) 0 var(--s9);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .hero {
    padding: 160px 0 var(--s10);
  }
}
.hero h1 {
  max-width: 14ch;
  font-size: var(--t-display);
  line-height: 1.02;
}
.hero h1 em {
  display: block;
}
@media (min-width: 900px) {
  .hero h1 {
    max-width: 24ch;
  }
}
@media (min-width: 1000px) {
  .hero {
    padding: var(--s9) 0;
  }
  .hero-grid h1 {
    font-size: clamp(3rem, 1.2rem + 3.4vw, 4.5rem);
  }
}
.hero .lede {
  margin-top: var(--s6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
  margin-top: var(--s7);
}
.hero-meta {
  margin-top: var(--s5);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  color: var(--dim);
}
.page-hero {
  padding: var(--s9) 0 var(--s8);
  border-bottom: 1px solid var(--line);
}
.page-hero-tight {
  padding: var(--s8) 0 var(--s7);
}
.page-hero h1 {
  max-width: 16ch;
}
.page-hero .lede {
  margin-top: var(--s5);
}
.center-page {
  min-height: 60vh;
  display: grid;
  align-items: center;
  padding: var(--s9) 0;
}
.center-page .lede {
  margin: var(--s5) 0 var(--s6);
}

/* ---------- Hero: check box + scanner visual ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* soft gold glow behind the visual */
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 70vmax;
  height: 70vmax;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(201, 168, 106, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: var(--s7);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: var(--s8);
  }
}
@media (max-width: 999px) {
  .hero {
    padding: var(--s7) 0 var(--s8);
  }
  .hero .eyebrow {
    margin-bottom: var(--s4);
  }
  .hero .lede {
    margin-top: var(--s4);
  }
  .hero-check {
    margin-top: var(--s6) !important;
  }
}
.hero-check {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  max-width: 34rem;
  margin-top: var(--s7);
  padding: var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(14, 14, 16, 0.8);
  transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.hero-check:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.14), 0 20px 60px -30px rgba(201, 168, 106, 0.5);
}
.hero-check input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--s4);
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1.0625rem;
}
.hero-check input::placeholder {
  color: var(--dim);
}
.hero-check input:focus {
  outline: none;
}
.hero-check .btn {
  flex: 1 0 auto;
  min-height: 52px;
}
@media (min-width: 480px) {
  .hero-check .btn {
    flex: 0 0 auto;
  }
}
.hero-more {
  margin-top: var(--s2);
}
.hero-visual {
  display: none;
}
@media (min-width: 1000px) {
  .hero-visual {
    display: block;
  }
}
.scanner {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  overflow: visible;
}
.scanner-grid circle,
.scanner-grid path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.18;
}
.scanner-grid circle:first-child {
  opacity: 0.35;
}
.scanner-ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 2 10;
  opacity: 0.6;
}
.scanner-ring,
.scanner-sweep {
  transform-origin: 240px 240px;
}
.scanner-ring {
  animation: spin 90s linear infinite reverse;
}
.scanner-sweep {
  animation: spin 7s linear infinite;
}
.scanner-edge {
  stroke: var(--gold-soft);
  stroke-width: 1.5;
  opacity: 0.9;
}
.scanner-mark {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}
.blip {
  opacity: 0;
  animation: blip 7s var(--ease) infinite;
}
.blip.ok {
  fill: var(--gold-soft);
}
.blip.risk {
  fill: var(--fail);
  filter: drop-shadow(0 0 6px rgba(255, 90, 79, 0.9));
}
.blip:nth-child(1) {
  animation-delay: 0.9s;
}
.blip:nth-child(2) {
  animation-delay: 4.2s;
}
.blip:nth-child(3) {
  animation-delay: 2.4s;
}
.blip:nth-child(4) {
  animation-delay: 6.4s;
}
.blip:nth-child(5) {
  animation-delay: 5.2s;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blip {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  45% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Ticker: what the check looks at ---------- */
.ticker {
  overflow: hidden;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker ul {
  display: flex;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--muted);
}
.ticker li::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 var(--s6);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Inner page heroes: faint gold rings ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 63px, rgba(201, 168, 106, 0.16) 63px 64px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .page-hero::after {
    right: -320px;
    opacity: 0.6;
  }
}

/* ---------- Livelier hover ---------- */
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 600ms var(--ease);
}
.btn-gold:hover::after {
  left: 120%;
}
.lines a {
  transition: background-color var(--med) var(--ease), padding-left var(--med) var(--ease);
}
@media (hover: hover) {
  .lines a:hover {
    padding-left: var(--s3);
    background: linear-gradient(90deg, rgba(201, 168, 106, 0.07), transparent 70%);
  }
  .values li,
  .steps3 li,
  .team-card {
    transition: border-color var(--med) var(--ease), transform var(--med) var(--ease);
  }
  .values li:hover,
  .steps3 li:hover,
  .team-card:hover {
    border-top-color: var(--gold);
    transform: translateY(-3px);
  }
  .chooser a:hover .chooser-q {
    color: var(--gold-soft);
  }
}

/* ---------- Home: three lines ---------- */
.lines {
  list-style: none;
  border-top: 1px solid var(--line);
}
.lines li {
  border-bottom: 1px solid var(--line);
}
.lines a {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  grid-template-areas: "num title arrow" "num text arrow";
  align-items: baseline;
  gap: var(--s1) var(--s4);
  padding: var(--s6) 0;
  color: var(--ivory);
  text-decoration: none;
}
.lines a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.lines a:hover::after,
.lines a:focus-visible::after {
  transform: scaleX(1);
}
.lines-num {
  grid-area: num;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  color: var(--gold);
}
.lines-title {
  grid-area: title;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}
.lines-text {
  grid-area: text;
  color: var(--muted);
}
.lines .arrow {
  grid-area: arrow;
  align-self: center;
  color: var(--gold);
}
.lines a:hover .arrow {
  transform: translateX(6px);
}
@media (min-width: 900px) {
  .lines a {
    grid-template-columns: 4rem 14rem 1fr auto;
    grid-template-areas: "num title text arrow";
    padding: var(--s7) 0;
  }
}

/* ---------- Steps ---------- */
.steps3 {
  list-style: none;
  display: grid;
  gap: var(--s7);
  margin-bottom: var(--s7);
}
@media (min-width: 820px) {
  .steps3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
  }
}
.steps3 li {
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}
.step-n {
  display: block;
  margin-bottom: var(--s4);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
}
.steps3 h3 {
  margin-bottom: var(--s2);
}
.steps3 p {
  color: var(--muted);
}
.steps {
  list-style: none;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s4);
  padding: var(--s7) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .step {
    grid-template-columns: 5rem 1fr;
  }
}
.step .step-n {
  font-size: 2rem;
  line-height: 1;
}
.step h3 {
  margin-bottom: var(--s3);
  font-size: 1.75rem;
}
.step p {
  color: var(--muted);
}
.ticks {
  list-style: none;
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
}
.ticks li {
  position: relative;
  padding-left: var(--s5);
  font-size: 0.9375rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Values ---------- */
.values {
  list-style: none;
  display: grid;
  gap: var(--s6);
}
@media (min-width: 820px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
  .values-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .values-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.values li {
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}
.values h3 {
  margin-bottom: var(--s2);
}
.values p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Closing call to action ---------- */
.closing {
  text-align: center;
}
.closing .rule {
  display: block;
  width: 1px;
  height: var(--s8);
  margin: 0 auto var(--s6);
  background: linear-gradient(transparent, var(--gold));
}
.closing p {
  max-width: var(--measure);
  margin: var(--s4) auto var(--s6);
  color: var(--muted);
}

/* ---------- Services ---------- */
.chooser-title {
  margin-bottom: var(--s5);
  font-size: 1.75rem;
}
.chooser {
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .chooser {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
    gap: var(--s5);
  }
}
.chooser a {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  height: 100%;
  min-height: 44px;
  padding: var(--s5) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--med) var(--ease);
}
@media (min-width: 820px) {
  .chooser a {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .chooser a:hover {
    border-top-color: var(--gold);
  }
}
.chooser-q {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--ivory);
}
.chooser-a {
  font-size: var(--t-small);
  color: var(--gold);
}
.service {
  display: grid;
  gap: var(--s6);
  padding: var(--s8) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--s4));
}
.service:first-child {
  border-top: 0;
  padding-top: var(--s4);
}
@media (min-width: 900px) {
  .service {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s9);
  }
}
.service-num {
  margin-bottom: var(--s4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}
.service h2 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}
.service .lede {
  margin-top: var(--s4);
}
.service .for {
  max-width: var(--measure);
  margin-top: var(--s5);
  font-size: 0.9375rem;
  color: var(--muted);
}
.service .for .meta-label {
  display: block;
  margin-bottom: var(--s1);
}
.service-body .ticks {
  margin: 0 0 var(--s6);
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s2);
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}
.price .from,
.price .unit {
  font-size: var(--t-small);
  color: var(--dim);
}
.price .amount {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}
.price-note {
  margin: var(--s2) 0 var(--s4);
  font-size: var(--t-small);
  color: var(--dim);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: var(--s4) var(--s7) var(--s4) 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: var(--s2);
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--gold);
  transition: transform var(--med) var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq details p {
  max-width: var(--measure);
  padding-bottom: var(--s5);
  color: var(--muted);
}

/* ---------- About ---------- */
.prose p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
}
.prose p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.35;
  color: var(--ivory);
}
.prose h2 {
  margin: var(--s8) 0 var(--s4);
  padding-top: var(--s5);
  font-size: 1.75rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  display: grid;
  gap: var(--s3);
  padding-left: var(--s5);
  color: var(--muted);
}
.prose li::marker {
  color: var(--gold);
}
.prose li strong {
  color: var(--ivory);
}
.prose ul + p,
.prose p + ul {
  margin-top: var(--s4);
}
.prose:has(h2) p {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
}
.prose:has(h2) p:first-child {
  font-family: var(--sans);
  font-size: 1rem;
}
.team {
  display: grid;
  gap: var(--s7);
}
@media (min-width: 820px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s8);
    max-width: 920px;
  }
}
.team-card {
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}
.avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: var(--s5);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--gold);
}
.avatar-photo {
  overflow: hidden;
  padding: 3px;
}
.avatar-photo picture,
.avatar-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.role {
  margin-bottom: var(--s2);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.team-card h3 {
  margin-bottom: var(--s3);
  font-size: 1.75rem;
}
.team-card p:last-child {
  color: var(--muted);
}

/* ---------- Forms ---------- */
.contact-layout {
  display: grid;
  gap: var(--s8);
}
@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 1.35fr 1fr;
    gap: var(--s9);
    align-items: start;
  }
}
.contact-layout aside h2 {
  margin-bottom: var(--s5);
  font-size: 1.75rem;
}
.next-steps {
  list-style: none;
  counter-reset: next;
  border-top: 1px solid var(--line);
  margin-bottom: var(--s5);
}
.next-steps li {
  counter-increment: next;
  position: relative;
  padding: var(--s5) 0 var(--s5) var(--s7);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.next-steps li::before {
  content: "0" counter(next);
  position: absolute;
  left: 0;
  top: var(--s5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--gold);
}
.next-steps strong {
  display: block;
  margin-bottom: var(--s1);
  font-weight: 500;
  color: var(--ivory);
}
.form {
  display: grid;
  gap: var(--s5);
}
.field {
  display: grid;
  gap: var(--s2);
}
.field label {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.opt {
  font-weight: 400;
  color: var(--dim);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: var(--s3) var(--s4);
  font: inherit;
  font-size: 1rem; /* 16px: no iOS zoom */
  color: var(--ivory);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--s7);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: rgba(242, 237, 228, 0.3);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.2);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--fail);
}
.field-hint {
  font-size: var(--t-small);
  color: var(--dim);
}
.field-error {
  font-size: var(--t-small);
  color: var(--fail);
}
.field-error:empty {
  display: none;
}
.field-row {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-slot {
  min-height: 65px;
}
.form-status {
  padding: var(--s4);
  border-left: 1px solid currentColor;
  font-size: 0.9375rem;
  background: var(--surface);
}
.form-status:empty {
  display: none;
}
.form-status.ok {
  color: var(--pass);
}
.form-status.err {
  color: var(--fail);
}
.form .btn {
  width: 100%;
}
@media (min-width: 560px) {
  .form .btn {
    width: auto;
    justify-self: start;
  }
}

/* ---------- Security Check page ---------- */
.scan-layout {
  display: grid;
  gap: var(--s8);
}
@media (min-width: 1000px) {
  .scan-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s9);
    align-items: start;
  }
}
.scan-main {
  min-width: 0;
}
.scan-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s6);
  font-size: var(--t-small);
  color: var(--muted);
}
.scan-facts li + li::before {
  content: "\00b7";
  margin-right: var(--s4);
  color: var(--gold);
}
.scan-form .domain-row input {
  min-height: 60px;
  font-size: 1.125rem;
}
.scan-submit {
  width: 100%;
}
.scan-trust {
  font-size: var(--t-small);
  color: var(--muted);
}
.scan-progress {
  padding: var(--s6) 0;
  border-top: 1px solid var(--hairline);
}
.scan-progress-title {
  margin-bottom: var(--s5);
  font-size: 1.75rem;
  overflow-wrap: anywhere;
}
.progress-steps {
  list-style: none;
  border-top: 1px solid var(--line);
}
.progress-steps li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: var(--s4);
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--dim);
}
.progress-steps .dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  transition: background-color var(--med) var(--ease), border-color var(--med) var(--ease);
}
.progress-steps .step-state {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.progress-steps li[data-state="active"] {
  color: var(--ivory);
}
.progress-steps li[data-state="active"] .dot {
  border-color: var(--gold);
  background: var(--gold);
  animation: pulse 1.4s var(--ease) infinite;
}
.progress-steps li[data-state="active"] .step-state {
  color: var(--gold);
}
.progress-steps li[data-state="done"] {
  color: var(--muted);
}
.progress-steps li[data-state="done"] .dot {
  border-color: var(--pass);
  background: var(--pass);
}
.progress-steps li[data-state="done"] .step-state {
  color: var(--pass);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.scan-aside {
  min-width: 0;
}
.example-card {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.example-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.example-head h2 {
  font-size: 1.25rem;
}
.example-tag {
  padding: 2px var(--s2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.example-body {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}
.example-grade {
  display: grid;
  place-items: center;
  align-content: center;
  width: 84px;
  height: 84px;
  flex: none;
  border: 1px solid var(--warn);
  border-radius: 50%;
}
.example-grade span {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}
.example-grade small {
  font-size: var(--t-micro);
  color: var(--muted);
}
.example-meta p {
  font-size: var(--t-small);
  color: var(--muted);
}
.example-meta .example-domain {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--ivory);
}
.example-sub {
  margin: var(--s5) 0 var(--s3);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.example-fixes {
  list-style: none;
  display: grid;
  gap: var(--s3);
  font-size: 0.9375rem;
}
.example-fixes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}
.example-note {
  margin-top: var(--s5);
  font-size: var(--t-micro);
  color: var(--dim);
}
.aside-title {
  margin: var(--s7) 0 var(--s4);
  font-size: 1.5rem;
}
.checks-included {
  list-style: none;
  border-top: 1px solid var(--line);
}
.checks-included li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.checks-included strong {
  display: block;
  font-weight: 500;
  color: var(--ivory);
}

/* ---------- Report ---------- */
.scan-results {
  display: grid;
  gap: var(--s7);
  margin-top: var(--s8);
}
.scan-results > *,
.check > div,
.verify-body,
.top-fixes li {
  min-width: 0;
}
.report-head {
  display: grid;
  gap: var(--s6);
  align-items: center;
  padding: var(--s7) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .report-head {
    grid-template-columns: auto 1fr;
    gap: var(--s8);
  }
}
.report-head-text {
  min-width: 0;
}
.report-head .eyebrow {
  margin-bottom: var(--s3);
}
.report-head h2 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  overflow-wrap: anywhere;
}
.report-head h2:focus {
  outline: none;
}
.report-head .lede {
  margin: var(--s3) 0 var(--s4);
}
.report-head .small + .small {
  margin-top: var(--s1);
}
.grade-ring {
  --pct: 0;
  --c: var(--fail);
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg) calc(100% - 3px), transparent calc(100% - 2px)),
    conic-gradient(var(--c) calc(var(--pct) * 1%), rgba(242, 237, 228, 0.08) 0);
}
.grade-ring.pass {
  --c: var(--pass);
}
.grade-ring.warn {
  --c: var(--warn);
}
.grade-ring.grade-big {
  width: 200px;
  height: 200px;
}
@media (min-width: 760px) {
  .grade-ring.grade-big {
    width: 240px;
    height: 240px;
  }
}
.grade-letter {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.9;
  color: var(--ivory);
}
.grade-big .grade-letter {
  font-size: 6.5rem;
}
@media (min-width: 760px) {
  .grade-big .grade-letter {
    font-size: 8rem;
  }
}
.grade-score {
  margin-top: var(--s2);
  font-size: var(--t-small);
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.report-counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--s2);
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--muted);
}
.chip.pass,
.badge.pass {
  color: var(--pass);
}
.chip.warn,
.badge.warn {
  color: var(--warn);
}
.chip.fail,
.badge.fail {
  color: var(--fail);
}
.badge.info {
  color: var(--dim);
}
.progress {
  margin-bottom: var(--s3);
  font-size: var(--t-small);
  color: var(--muted);
}
.progress.up {
  color: var(--pass);
}
.progress.down {
  color: var(--fail);
}
.email-note.sent {
  color: var(--pass);
}

/* top three fixes */
.top-fixes h3 {
  margin-bottom: var(--s5);
  font-size: var(--t-h2);
}
.top-fixes ol {
  list-style: none;
  counter-reset: fix;
  border-top: 1px solid var(--line);
}
.top-fixes li {
  counter-increment: fix;
  position: relative;
  padding: var(--s6) 0 var(--s6) var(--s8);
  border-bottom: 1px solid var(--line);
}
.top-fixes li::before {
  content: counter(fix);
  position: absolute;
  left: 0;
  top: var(--s5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
}
.top-fixes h4 {
  margin-bottom: var(--s3);
  font-size: 1.5rem;
}
.top-fixes p:last-child {
  max-width: var(--measure);
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: var(--t-micro);
  color: var(--muted);
}
.tag.impact-critical,
.tag.impact-high {
  color: var(--fail);
  border-color: currentColor;
}
.tag.impact-medium {
  color: var(--warn);
  border-color: currentColor;
}

/* one clear next step */
.report-cta {
  display: grid;
  gap: var(--s5);
  align-items: center;
  padding: var(--s6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.06), transparent);
}
@media (min-width: 760px) {
  .report-cta {
    grid-template-columns: 1fr auto;
    padding: var(--s7);
  }
}
.report-cta h3 {
  margin-bottom: var(--s2);
  font-size: 1.75rem;
}
.report-cta p {
  max-width: var(--measure);
  color: var(--muted);
}
.report-cta .btn {
  min-height: 52px;
}
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}
.industry-note {
  margin-top: 0;
}

/* full results */
.full-results-title {
  font-size: var(--t-h2);
}
.report-section h3 {
  margin-bottom: var(--s4);
  font-size: 1.5rem;
}
.check-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.check {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .check {
    grid-template-columns: 7.5rem 1fr;
    gap: var(--s5);
  }
  .check .badge {
    justify-self: start;
    align-self: start;
    margin-top: 3px;
  }
}
.check .badge {
  justify-self: start;
}
.check h4 {
  margin-bottom: var(--s2);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.check p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.check p + p {
  margin-top: var(--s2);
}
.check .fix {
  color: var(--ivory);
}
.check .fix strong {
  color: var(--gold);
  font-weight: 500;
}
.snippet {
  margin-top: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  overflow: hidden;
}
.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 0 0 0 var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--dim);
}
.snippet pre {
  margin: 0;
  padding: var(--s4);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ivory);
}
.snippet pre:focus-visible {
  outline-offset: -2px;
}
.copy-btn {
  min-width: 72px;
  min-height: 44px;
  padding: 0 var(--s4);
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease);
}
.copy-btn:hover {
  background: rgba(201, 168, 106, 0.08);
}
.verify-panel {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.verify-panel h3 {
  margin-bottom: var(--s3);
  font-size: 1.5rem;
}
.verify-panel p {
  color: var(--muted);
}
.verify-body {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s4);
}
.verified-section {
  padding-left: var(--s4);
  border-left: 1px solid var(--gold);
}

/* ---------- Risk emphasis: issues read as urgent, in red ---------- */
.risk-alert {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border: 1px solid rgba(255, 90, 79, 0.55);
  border-left: 3px solid var(--fail);
  border-radius: var(--radius);
  background: rgba(199, 40, 30, 0.16);
  color: var(--ivory);
  font-size: 1.0625rem;
}
.risk-alert strong {
  color: var(--fail);
  font-weight: 600;
}
.risk-alert-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fail-fill);
  color: #fff;
  font-weight: 700;
  animation: risk-pulse 2.4s var(--ease) infinite;
}
@keyframes risk-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 79, 0.55);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(255, 90, 79, 0);
  }
}
.report-head.fail {
  border-top-color: var(--fail);
}
.report-head.fail .lede {
  color: var(--fail);
}
.grade-ring.fail {
  box-shadow: 0 0 90px -18px rgba(255, 60, 50, 0.55);
}
.grade-ring.fail .grade-letter {
  color: var(--fail);
}
.chip.fail,
.badge.fail {
  background: var(--fail-fill);
  border-color: var(--fail-fill);
  color: #fff;
  font-weight: 600;
}
.tag.impact-critical {
  background: var(--fail-fill);
  border-color: var(--fail-fill);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.check.fail,
.check.warn {
  padding-left: var(--s4);
  border-left: 2px solid var(--fail);
  background: linear-gradient(90deg, rgba(255, 90, 79, 0.09), transparent 70%);
}
.check.warn {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(255, 154, 77, 0.06), transparent 70%);
}
.check.fail h4 {
  color: var(--fail);
}
.top-fixes h3 {
  color: var(--fail);
}
.top-fixes ol {
  border-top-color: rgba(255, 90, 79, 0.45);
}
.top-fixes li {
  padding-right: var(--s4);
  border-bottom-color: rgba(255, 90, 79, 0.25);
  background: linear-gradient(90deg, rgba(255, 90, 79, 0.08), transparent 75%);
}
.top-fixes li::before {
  left: var(--s4);
  color: var(--fail);
  font-style: normal;
}
.top-fixes li {
  padding-left: calc(var(--s8) + var(--s2));
}

/* ---------- Reveal on scroll (site.js adds .in) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal.d1 {
  transition-delay: 80ms;
}
.js .reveal.d2 {
  transition-delay: 160ms;
}
.js .reveal.d3 {
  transition-delay: 240ms;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--s8) 0 var(--s6);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--dim);
}
.footer-grid {
  display: grid;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.footer-brand p {
  max-width: 30rem;
  margin-top: var(--s4);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s5);
}
@media (min-width: 900px) {
  .footer-links {
    justify-content: flex-end;
  }
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ivory);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  padding-top: var(--s5);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
}

/* ===================== AI chat assistant ===================== */
.chat-root {
  position: fixed;
  right: max(var(--s4), env(safe-area-inset-right));
  bottom: max(var(--s4), env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s3);
  font-family: var(--sans);
}
.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s4) 0 var(--s3);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  font: 500 var(--t-small) / 1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.9);
  transition: border-color var(--med) var(--ease), background-color var(--med) var(--ease);
}
.chat-launcher:hover {
  border-color: var(--gold);
  background: rgba(28, 26, 22, 0.96);
}
.chat-launcher svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.chat-root.is-open .chat-launcher-label {
  display: none;
}
.chat-root.is-open .chat-launcher {
  width: 48px;
  padding: 0;
  justify-content: center;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 100px));
  height: min(600px, calc(100dvh - 100px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ivory);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.9);
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  border-bottom: 1px solid var(--line);
}
.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.chat-title {
  font-family: var(--serif);
  font-size: 1.375rem;
}
.chat-badge {
  padding: 1px 6px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.chat-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.chat-icon-btn:hover {
  color: var(--ivory);
}
.chat-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.chat-consent {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
  padding: var(--s6) var(--s5);
  overflow-y: auto;
}
.chat-notice {
  padding-left: var(--s4);
  border-left: 1px solid var(--gold);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ivory);
}
.chat-start {
  width: 100%;
}
.chat-fine {
  font-size: var(--t-small);
  color: var(--dim);
}
.chat-flash {
  font-size: var(--t-small);
  color: var(--pass);
}
.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-log {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5) var(--s4);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat-msg {
  max-width: 88%;
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.chat-msg p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-msg-assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-bottom-left-radius: 2px;
}
.chat-msg-user {
  align-self: flex-end;
  background: rgba(201, 168, 106, 0.1);
  border: 1px solid var(--hairline);
  border-bottom-right-radius: 2px;
}
.chat-msg.is-pending {
  opacity: 0.65;
}
.chat-typing {
  margin: 0 var(--s4) var(--s2);
  font-size: var(--t-small);
  color: var(--dim);
}
.chat-status {
  margin: 0 var(--s4);
  font-size: var(--t-small);
  color: var(--pass);
}
.chat-status:empty {
  display: none;
}
.chat-status.is-error {
  color: var(--fail);
}
.chat-form {
  margin: var(--s2) var(--s3) 0;
  padding: var(--s2) var(--s2) var(--s1) var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--field);
  transition: border-color var(--fast) var(--ease);
}
.chat-form:focus-within {
  border-color: var(--gold);
}
.chat-input {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: 16px/1.45 var(--sans); /* 16px: no iOS zoom */
  resize: none;
}
.chat-input:focus,
.chat-input:focus-visible {
  outline: none;
}
.chat-input::placeholder {
  color: var(--dim);
}
.chat-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-count {
  font-size: var(--t-micro);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.chat-count.is-near {
  color: var(--warn);
}
.chat-send {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease);
}
.chat-send:hover {
  background: var(--gold-soft);
}
.chat-send[disabled] {
  opacity: 0.5;
  cursor: wait;
}
.chat-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.chat-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s1) var(--s3) var(--s2);
}
.chat-link-btn {
  min-height: 44px;
  padding: 0 var(--s1);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 400 var(--t-small) var(--sans);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.chat-link-btn:hover {
  color: var(--ivory);
  text-decoration-color: var(--gold);
}
.chat-contact,
.chat-confirm {
  display: grid;
  gap: var(--s2);
  margin: 0 var(--s3) var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.chat-confirm p {
  font-size: 0.9375rem;
}
.chat-contact label {
  font-size: var(--t-small);
  color: var(--muted);
}
.chat-contact input[type="text"],
.chat-contact input[type="email"] {
  min-height: 44px;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ivory);
  font: 16px var(--sans);
}
.chat-contact input:focus {
  outline: none;
  border-color: var(--gold);
}
.chat-contact input[aria-invalid="true"] {
  border-color: var(--fail);
}
.chat-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}
.chat-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.chat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.chat-small-btn {
  min-height: 44px;
  padding: 0 var(--s4);
  font-size: var(--t-small);
}
@media (max-width: 560px) {
  .chat-launcher-label {
    display: none;
  }
  .chat-launcher {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
  .chat-root.is-open {
    inset: 0;
    gap: 0;
  }
  .chat-root.is-open .chat-launcher {
    display: none;
  }
  .chat-panel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    border: 0;
    border-radius: 0;
  }
}

/* ---------- Reduced motion: no animation, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print / Save as PDF: light, ink-friendly, report only ---------- */
@media print {
  @page {
    margin: 14mm;
  }
  :root {
    --bg: #fff;
    --bg-alt: #fff;
    --surface: #fff;
    --field: #f5f5f5;
    --ivory: #111;
    --muted: #333;
    --dim: #555;
    --gold: #7a5a1e;
    --gold-soft: #5a3f10;
    --pass: #2d6a1f;
    --warn: #8a5a00;
    --fail: #a8321e;
    --line: #ccc;
    --line-strong: #999;
    --hairline: #b89a5a;
  }
  body {
    background: #fff;
    color: #111;
  }
  .site-header,
  .site-footer,
  .page-hero,
  .scan-layout,
  .no-print,
  .skip-link,
  .chat-root {
    display: none !important;
  }
  .section {
    padding: 0;
  }
  .scan-results {
    margin-top: 0;
  }
  .check,
  .top-fixes li,
  .snippet {
    break-inside: avoid;
  }
  .grade-ring {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
