/* Demo D: The Checker Is the Homepage.
   Cobalt colour-field panel after Cloudflare, checker input in the hero
   after Wiz, highlighted key word, rounded friendly sans, score dial. */
@font-face {
  font-family: "Carlito";
  src: url("assets/carlito-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("assets/carlito-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --cobalt: #003FE0;
  --cobalt-deep: #0B2A6B;
  --cobalt-hover: #0033B8;
  --signal: #FFD21F;
  --amber: #FF9E1B;
  --green: #1E9E6A;
  --deep: #0A2E6E;
  --ink: #14213D;
  --ink-soft: #45536E;
  --ground: #F2F6FF;
  --card: #FFFFFF;
  --line: #D7E2F5;
  --radius: 20px;
  --font: "Noto Sans", "Carlito", sans-serif;
  --body: "Carlito", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 19px; line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-hover); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--cobalt-deep); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-family: var(--font); font-weight: 600;
  text-decoration: none; transition: top 200ms ease;
}
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons: full house state set, shine sweep on primaries. */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 200ms ease, transform 120ms ease, border-color 200ms ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-white { background: #fff; color: var(--cobalt-deep); }
@media (hover: hover) {
  .btn-cobalt:hover { background: var(--cobalt-hover); color: #fff; }
  .btn-white:hover { background: var(--signal); color: var(--cobalt-deep); }
  .btn:hover::after { transform: translateX(120%); transition: transform 600ms ease; }
}
.btn:active { transform: scale(0.97); }
.btn:active::after { transform: translateX(-120%); transition: none; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4); border-top-color: currentColor;
  animation: btn-spin 800ms linear infinite;
}
.btn.is-success { pointer-events: none; }
.btn.is-success::before { content: "✓"; font-weight: 700; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Cobalt colour-field panel */
.panel-zone { padding: 18px 18px 0; }
.panel {
  background: var(--cobalt); border-radius: 30px;
  max-width: 1240px; margin: 0 auto; padding: 26px 44px 48px;
  color: #fff;
}
.site-header {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.brand img { width: 168px; display: block; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: 8px; }
.site-nav a {
  color: #fff; text-decoration: none; font-family: var(--font);
  font-weight: 600; font-size: 16px; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--signal); }
.header-cta { margin: 0 0 0 auto; }
.hero { padding: 44px 0 6px; max-width: 1020px; }
.hero h1 {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 18px;
}
.hero h1 mark {
  background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 94%, transparent 94%);
  color: #fff; padding: 0 4px; margin: 0 -4px;
}
.lede { font-size: 21px; line-height: 1.55; color: #E3EBFF; margin: 0 0 34px; max-width: 760px; }

/* Checker card inside the panel */
.checker-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 30px 34px; display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 34px; align-items: center;
  box-shadow: 0 18px 44px rgba(4, 24, 84, 0.28);
}
.checker-card h2 {
  font-family: var(--font); font-size: 26px; margin: 0 0 8px; color: var(--cobalt-deep);
}
.checker-line { font-size: 20px; margin: 0 0 20px; color: var(--ink-soft); }
.checker-form { display: flex; gap: 12px; flex-wrap: wrap; }
.checker-form input {
  flex: 1 1 260px; font-family: var(--body); font-size: 19px;
  padding: 13px 18px; border: 2px solid var(--line); border-radius: 999px;
  color: var(--ink); background: #FBFCFF;
}
.checker-form input:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(255,210,31,0.65); }
.checker-note { margin: 16px 0 0; font-family: var(--font); font-weight: 600; font-size: 15px; color: var(--cobalt); }
.dial-block { text-align: center; }
.dial { width: 100%; max-width: 230px; }
.dial-word { font-family: var(--font); font-weight: 700; font-size: 17px; fill: var(--cobalt-deep); }
.dial-word-sm { font-family: var(--font); font-size: 13px; fill: var(--ink-soft); }
.dial-caption { font-size: 16px; line-height: 1.45; color: var(--ink-soft); margin: 4px 0 0; }

/* Sections */
.section { padding: 56px 0 8px; }
.sec-title {
  font-family: var(--font); font-weight: 700; color: var(--cobalt-deep);
  font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 26px; letter-spacing: -0.01em;
}
.triage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.triage-card, .guarantee-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; display: flex; flex-direction: column;
}
.triage-card { border-top: 8px solid var(--cobalt); }
.triage-card.t-amber { border-top-color: var(--amber); }
.triage-card.t-deep { border-top-color: var(--deep); }
.triage-card h3, .guarantee-card h3 {
  font-family: var(--font); font-size: 22px; margin: 0 0 10px; color: var(--cobalt-deep);
}
.first-step, .what { margin: 0 0 16px; color: var(--ink-soft); }
.time-cost {
  font-family: var(--font); font-weight: 600; font-size: 15px;
  color: var(--cobalt); margin: 0 0 20px;
}
.row-action { margin: auto 0 0; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 28px 28px; overflow: hidden; display: flex; flex-direction: column;
}
.tile-band { display: block; height: 10px; margin: 0 -28px 22px; }
.tile-amber .tile-band { background: var(--amber); }
.tile-cobalt .tile-band { background: var(--cobalt); }
.tile-green .tile-band { background: var(--green); }
.tile-deep .tile-band { background: var(--deep); }
.tile h3 { font-family: var(--font); font-size: 24px; margin: 0 0 10px; color: var(--cobalt-deep); }
.status { font-family: var(--font); font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 20px; }

/* Seal */
.seal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 38px;
}
.seal-card .sec-title { margin-bottom: 14px; }
.prose { max-width: 820px; color: var(--ink-soft); margin: 0 0 18px; }
.prose-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px;
}
.seal { border: 2px solid var(--cobalt); border-radius: 14px; padding: 22px 24px; margin-top: 24px; }
.seal-head h3 { font-family: var(--font); margin: 0 0 4px; color: var(--cobalt-deep); font-size: 20px; }
.seal-meta { font-family: var(--font); font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.seal-scroll { overflow-x: auto; }
.seal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.seal th, .seal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.seal th { font-family: var(--font); color: var(--cobalt-deep); }
.hash { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.state { font-family: var(--font); font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.seal-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.stamp {
  font-family: var(--font); font-weight: 700; color: var(--green);
  border: 2px solid var(--green); border-radius: 8px; padding: 4px 12px;
  transform: rotate(-3deg); opacity: 0; transition: opacity 250ms ease;
}
.stamp.show { opacity: 1; }
.note-line { font-size: 16px; color: var(--ink-soft); margin: 16px 0 0; }

/* Footer */
.site-footer { margin-top: 64px; background: #fff; border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-in { display: flex; flex-direction: column; gap: 16px; }
.site-footer .brand img { width: 150px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font); font-weight: 600; font-size: 15px; text-decoration: none; }
.footer-line { margin: 0; font-size: 16px; color: var(--ink-soft); max-width: 820px; }

@media (max-width: 900px) {
  .triage-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .checker-card { grid-template-columns: 1fr; }
  .dial-block { order: -1; }
}
@media (max-width: 640px) {
  .panel-zone { padding: 10px 10px 0; }
  .panel { padding: 20px 20px 34px; border-radius: 22px; }
  .header-cta { margin-left: 0; }
  .checker-card { padding: 24px 20px; }
  .seal-card, .prose-card { padding: 24px 20px; }
  .btn { width: 100%; }
  .header-cta .btn, .seal-foot .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::after { transition: none; }
  .btn:hover::after { transform: translateX(-120%); }
  .btn.is-loading::before { animation: none; }
}
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
}
