:root {
  color-scheme: light dark;
  --bg: #edf3f1;
  --card: #fcfdfb;
  --glass: rgba(252, 253, 251, 0.82);
  --text: #23383c;
  --muted: #415558;
  --faint: #526569;
  --line: rgba(35, 56, 60, 0.19);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #142025;
    --card: #1d2d32;
    --glass: rgba(29, 45, 50, 0.84);
    --text: #ebf2ee;
    --muted: #b9caca;
    --faint: #a0b0ae;
    --line: rgba(235, 242, 238, 0.22);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; z-index: 2; top: 12px; left: 12px; min-height: 44px; padding: 10px 14px; transform: translateY(-150%); background: var(--card); }
.skip-link:focus-visible { transform: none; }
.site-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -0.04em; }
.brand-mark { display: block; width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.site-nav a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav .nav-test { color: var(--text); }
.eyebrow, .section-kicker, .mono-label { margin: 0; color: var(--muted); font-size: 12px; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: clamp(32px, 7vw, 96px); min-height: 460px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 40px; background: radial-gradient(ellipse at 84% 15%, color-mix(in srgb, var(--neutral) 14%, transparent), transparent 65%); animation: sky-drift 40s ease-in-out infinite alternate; }
@keyframes sky-drift { from { transform: translateY(0); } to { transform: translateY(12px); } }
.hero-copy { max-width: 700px; }
.hero h1 { margin: 10px 0 18px; font-size: clamp(50px, 6vw, 78px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.hero-lede { max-width: 600px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.availability { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.availability strong { display: block; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); color: var(--text); font: 500 14px/1.3 var(--sans); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 12px rgba(0, 0, 0, 0.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color 120ms ease, background-color 120ms ease; }
.button-primary { border-color: var(--text); background: var(--text); color: var(--bg); }
.button:disabled { cursor: wait; opacity: 0.65; }
.hero-aside { justify-self: end; }
.shield-mark { display: block; width: 180px; aspect-ratio: 1; background: var(--neutral); -webkit-mask: url("./shield.svg") center / contain no-repeat; mask: url("./shield.svg") center / contain no-repeat; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; }
.layer-list { border-top: 1px solid var(--line); }
.layer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.layer:last-child { border-bottom: 0; }
.layer h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.layer p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.layer-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--text); font-size: 14px; text-decoration: none; white-space: nowrap; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); }
.card-number { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.025em; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-top: 16px; color: var(--text); font-size: 14px; text-decoration: none; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 44px; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; counter-increment: step; }
.steps li::before { position: absolute; top: 14px; left: 0; color: var(--neutral); content: counter(step); font-size: 12px; }
.steps strong { color: var(--text); font-weight: 600; }
.callout { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); color: var(--muted); font-size: 14px; }
.callout strong { color: var(--text); }

.weather-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.weather { --sky: var(--neutral); --atmosphere: #b8c8ce; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); }
.weather-storm { --sky: var(--off); --atmosphere: #788b96; }
.weather-overcast { --sky: var(--partial); --atmosphere: #ddc7a5; }
.weather-clear { --sky: var(--ready); --atmosphere: #bad8c8; }
.weather h3 { margin: 14px 0 8px; color: var(--sky); font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.weather p { margin: 0; color: var(--muted); font-size: 14px; }
.weather-sky { position: relative; height: 72px; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at 80% 10%, color-mix(in srgb, var(--atmosphere) 38%, transparent), transparent 80%), color-mix(in srgb, var(--atmosphere) 16%, var(--bg)); }
.cloud { position: absolute; top: 30px; left: calc(50% - 30px); width: 62px; height: 20px; border-radius: 22px; background: var(--sky); opacity: 0.7; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 8px; background: inherit; border-radius: 50%; }
.cloud::before { left: 9px; width: 26px; height: 26px; }
.cloud::after { right: 8px; width: 34px; height: 34px; }
.sun { position: absolute; top: 15px; left: calc(50% - 16px); width: 32px; height: 32px; border-radius: 50%; background: var(--sky); opacity: 0.8; box-shadow: 0 0 18px color-mix(in srgb, var(--sky) 55%, transparent); }
.weather-overcast .sun { left: calc(50% + 5px); top: 10px; }
.rain { position: absolute; top: 53px; left: calc(50% - 20px); width: 3px; height: 10px; transform: rotate(18deg); border-radius: 2px; background: var(--sky); box-shadow: 16px 0 var(--sky), 32px 0 var(--sky); opacity: 0.7; }
.test-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); }
.test-cta h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.025em; }
.test-cta p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; }

.page-hero { padding: 48px 0 30px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 800px; margin: 10px 0 14px; font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; }
.page-hero > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; }
.test-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr); gap: 14px; padding: 32px 0 56px; }
.test-card { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--glass); }
.test-card h2 { margin: 6px 0 12px; font-size: 24px; letter-spacing: -0.035em; }
.test-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.test-card code { overflow-wrap: anywhere; }
.probe-result { display: block; width: 100%; min-height: 52px; margin: 8px 0 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font: 13px/1.55 var(--mono); overflow-wrap: anywhere; }
.probe-result[data-state="pass"] { border-color: var(--ready); color: var(--ready); }
.probe-result[data-state="warn"] { border-color: var(--partial); color: var(--partial); }
.probe-result[data-state="fail"] { border-color: var(--off); color: var(--off); }
.test-card .probe-label { margin: 24px 0 0; }
.test-card .probe-note { margin: 18px 0 0; }
.status-list { display: grid; gap: 16px; margin: 18px 0 0; padding: 0 0 0 20px; color: var(--muted); font-size: 14px; }
.status-list strong { color: var(--text); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 20px 0 28px; color: var(--faint); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-block; min-height: 44px; padding: 12px 0; color: var(--muted); }
@media (hover: hover) {
  .site-nav a:hover, .site-footer a:hover { color: var(--text); }
  .button:hover { border-color: var(--text); }
  .button-primary:hover { background: color-mix(in srgb, var(--text) 88%, var(--bg)); }
  .layer-link:hover, .card-link:hover { text-decoration: underline; }
}
@media (max-width: 900px) { .weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) {
  .hero { grid-template-columns: minmax(0, 1fr) 110px; gap: 24px; min-height: 0; padding: 40px 0; }
  .shield-mark { width: 110px; }
  .setup-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .test-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-shell { width: calc(100% - 36px); }
  .site-header { gap: 8px; flex-wrap: wrap; padding: 10px 0; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-aside { grid-row: 1; justify-self: start; }
  .shield-mark { width: 88px; }
  .hero h1 { font-size: clamp(48px, 13vw, 60px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .weather-grid { grid-template-columns: 1fr; }
  .weather { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .weather-sky { grid-row: span 2; }
  .weather h3 { margin-top: 0; overflow-wrap: anywhere; }
  .weather p { overflow-wrap: anywhere; }
  .test-cta { align-items: stretch; flex-direction: column; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--card); }
  .button { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
