:root {
  color-scheme: light;
  --ink: #11263d;
  --muted: #456075;
  --teal: #006561;
  --line: #d7e3ea;
  --slate: #f1f6f9;
  --white: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #168a84; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h2 { font-size: clamp(1.95rem, 4vw, 2.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.1rem; }
p, li { color: var(--muted); }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.wrap { width: min(71rem, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-intro { margin: .65rem 0 1.8rem; }

.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  top: .7rem;
  left: .7rem;
  z-index: 1;
  width: auto;
  height: auto;
  clip-path: none;
  padding: .6rem .9rem;
  background: var(--white);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .actions, .file-links { display: flex; align-items: center; flex-wrap: wrap; }
.header-inner { min-height: 4.5rem; justify-content: space-between; gap: .75rem 1.5rem; }
.brand, nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; }
.brand span {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--teal);
  border-radius: 3px;
  background: linear-gradient(to top, var(--teal) 40%, transparent 40%);
}
nav { gap: .65rem 1.5rem; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 650; }
nav a:hover { text-decoration: underline; }

.hero { padding-block: clamp(3rem, 8vw, 6.5rem); background: linear-gradient(125deg, #f6f9fb, #ebf5f5); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { color: var(--teal); font-size: .875rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: .75rem 0 1.05rem; font-size: clamp(2.5rem, 5.1vw, 4.25rem); letter-spacing: -.055em; line-height: 1.04; }
.intro { max-width: 36rem; font-size: 1.1rem; }
.terms { margin: 1.4rem 0 1rem; color: var(--ink); font-weight: 600; }
.terms span { padding-inline: .25em; }
.actions { gap: .65rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { border-color: var(--teal); background: #edf7f6; }
.button.primary { border-color: var(--teal); background: var(--teal); color: var(--white); }
.button.primary:hover { background: #004f4c; }

.sample-card, figure, .scope-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
}
.sample-card {
  padding: clamp(1.15rem, 3vw, 1.7rem);
  border-top: 3px solid var(--teal);
  box-shadow: 0 16px 36px #15394e0d;
}
.sample-card h2 { font-size: 1.15rem; letter-spacing: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0; }
.metrics div { padding: .65rem .35rem; border-radius: .4rem; background: var(--slate); text-align: center; }
.metrics dt { color: var(--muted); font-size: .875rem; }
.metrics dd { margin: 0; color: var(--teal); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.checksum { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.checksum span { display: block; color: var(--muted); font-size: .875rem; font-weight: 650; }
.checksum code { display: block; margin-top: .25rem; font-size: .8rem; overflow-wrap: anywhere; }

.figures, .scope-grid, .order-steps, .order-contact { display: grid; gap: 1rem; }
.figures, .scope-grid, .order-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
figure > a { display: block; padding: .6rem; border-radius: .7rem .7rem 0 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
figcaption a, .file-links a { font-weight: 650; }

.audit-band { background: var(--slate); }
.audit-switch { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.audit-switch label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0 .3rem .6rem 0;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.audit-switch input:checked + label { border-color: var(--teal); background: var(--teal); color: var(--white); }
.audit-switch input:focus-visible + label { outline: 3px solid #168a84; outline-offset: 3px; }
.audit-panel { display: none; overflow: auto; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); }
#view-report:checked ~ #report-panel, #view-log:checked ~ #log-panel { display: block; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; text-align: left; }
th, td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #e8f1f5; }
tbody th { font-weight: 500; overflow-wrap: anywhere; }
td:nth-child(2), thead th:nth-child(2) { text-align: right; }
tbody tr:last-child > * { border-bottom: 0; }
pre { margin: 0; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-links { gap: .5rem 1.2rem; margin-top: .85rem; }

.scope-grid { margin-top: 1.3rem; }
.scope-card { padding: 1.15rem 1.2rem; }
.scope-card ul { margin: .65rem 0 0; padding-left: 1.15rem; }
.scope-card li + li { margin-top: .35rem; }
.order-band { background: var(--ink); color: var(--white); }
.order-band p, .order-band li { color: #d5e3eb; }
.order-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0 1.65rem; padding-left: 1.4rem; }
.order-steps li { padding: .35rem .5rem .5rem 0; }
.order-steps li::marker { color: #89e5d9; font-weight: 750; }
.order-band h3 { color: var(--white); }
.order-band h3 + p { margin-top: .4rem; }
.order-contact { border-top: 1px solid #456075; padding-top: 1.25rem; gap: 1.25rem; }
.contact-links { margin-top: .7rem; }
#payment-note { margin-top: .4rem; overflow-wrap: anywhere; }

@media (max-width: 48rem) {
  .hero-grid, .scope-grid, .order-steps, .order-contact { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 1.75rem; }
  .order-steps { gap: .45rem; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { padding-block: .75rem; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-inline: .4rem; }
  tbody code { font-size: .8rem; }
}
