:root {
  color-scheme: light;
  --ink: #0b1220;
  --paper: #fffdf4;
  --surface: #ffffff;
  --teal: #2dd4bf;
  --teal-dark: #00695e;
  --amber: #fbbf24;
  --blue: #cfe0fd;
  --rose: #fed7d7;
  --muted: #334155;
  --line: 3px;
  --shadow: 7px 7px 0 var(--ink);
  --radius: 14px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-dark);
  font-weight: 750;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid #1d4ed8;
  outline-offset: 4px;
}

main:focus {
  outline: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  border: var(--line) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: var(--line) solid var(--ink);
  background: rgba(255, 253, 244, 0.96);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 0.2em;
}

.menu-button {
  display: none;
}

.button,
button.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--teal);
  box-shadow: 4px 4px 0 var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.secondary {
  background: var(--surface);
}

.button.amber {
  background: var(--amber);
}

.button.disabled {
  color: var(--muted);
  background: #e2e8f0;
  cursor: not-allowed;
}

.button.disabled:hover {
  transform: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  display: grid;
  min-height: 680px;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  grid-template-columns: 1.08fr 0.92fr;
}

.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-block: 1rem 1.4rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 950;
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.sample-verdict {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.05;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-art {
  position: relative;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.phone {
  max-width: 390px;
  margin-inline: auto;
  padding: 1rem;
  transform: rotate(2deg);
  border: 5px solid var(--ink);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: 14px 14px 0 var(--ink);
}

.phone-screen {
  overflow: hidden;
  min-height: 490px;
  padding: 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
}

.score {
  display: grid;
  width: 152px;
  height: 152px;
  margin: 1.5rem auto;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 3.2rem;
  font-weight: 950;
}

.finding {
  margin-block: 0.8rem;
  padding: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 750;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card.teal {
  background: var(--teal);
}

.card.amber {
  background: var(--amber);
}

.card.blue {
  background: var(--blue);
}

.card p:last-child {
  margin-bottom: 0;
}

.number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  font-size: 1.25rem;
  font-weight: 950;
}

.callout {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--teal);
  box-shadow: 10px 10px 0 var(--ink);
}

.disclaimer {
  padding: 1rem 1.2rem;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 2rem;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
}

.legal-nav {
  position: sticky;
  top: 104px;
  padding: 1.2rem;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--amber);
}

.legal-nav ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.legal-content h2:first-of-type {
  margin-top: 1rem;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.draft-banner {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  background: var(--rose);
  font-weight: 800;
}

.faq {
  border-top: var(--line) solid var(--ink);
}

.faq-item {
  border-bottom: var(--line) solid var(--ink);
}

.faq button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq button::after {
  content: "+";
  font-size: 1.6rem;
}

.faq button[aria-expanded="true"]::after {
  content: "−";
}

.faq-panel {
  padding-bottom: 1.25rem;
}

.download-panel {
  display: grid;
  align-items: center;
  gap: 2rem;
  grid-template-columns: 1fr auto;
}

.qr-placeholder {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 4px solid var(--ink);
  background:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--surface);
  box-shadow: var(--shadow);
}

.qr-placeholder span {
  padding: 0.45rem;
  border: 2px solid var(--ink);
  background: var(--surface);
  font-weight: 900;
}

.site-footer {
  margin-top: 5rem;
  border-top: 4px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.site-footer a {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: var(--amber);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  padding-block: 1rem 2rem;
  border-top: 1px solid #475569;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.language-links a[aria-current="true"] {
  color: var(--ink);
  background: var(--amber);
}

@media (max-width: 900px) {
  .hero,
  .grid.three,
  .grid.two,
  .legal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .legal-nav {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-button:not([hidden]) {
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--ink);
    border-radius: 8px;
    background: var(--amber);
    font: inherit;
    font-weight: 900;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 3px solid var(--ink);
    background: var(--paper);
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .nav-links[hidden] {
    display: none;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem;
  }

  .download-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .qr-placeholder {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }
}

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

@media (forced-colors: active) {
  .button,
  .card,
  .callout,
  .phone,
  .legal-content {
    box-shadow: none;
  }
}
