/* CityMotion Portal — semantic tokens, light and dark are peers. */
:root {
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #e9edf1;
  --surface-3: #dfe5ea;
  --text: #0f161d;
  --text-2: #465565;
  --text-3: #596675;
  --brand: #0b6f73;
  --brand-strong: #07565a;
  --on-brand: #ffffff;
  --ok: #1d6d46;
  --ok-bg: #e1f0e8;
  --warn: #7d5300;
  --warn-bg: #f8eed8;
  --danger: #9d2626;
  --danger-bg: #f9e5e5;
  --border: #d3dbe2;
  --code-bg: #e7ecf0;
  --focus: #0b6f73;

  --radius: 2px;
  --max: 1240px;
  --gutter: 24px;
}

html[data-theme="dark"] {
  --bg: #0b0f13;
  --surface: #111820;
  --surface-2: #17212b;
  --surface-3: #1e2a35;
  --text: #eef3f7;
  --text-2: #a8b6c2;
  --text-3: #95a6b5;
  --brand: #45d6c8;
  --brand-strong: #7ce8dd;
  --on-brand: #06201f;
  --ok: #63dda0;
  --ok-bg: #133226;
  --warn: #e7b45c;
  --warn-bg: #2f2413;
  --danger: #ff9191;
  --danger-bg: #331a1c;
  --border: #263441;
  --code-bg: #17212b;
  --focus: #45d6c8;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0b0f13;
    --surface: #111820;
    --surface-2: #17212b;
    --surface-3: #1e2a35;
    --text: #eef3f7;
    --text-2: #a8b6c2;
    --text-3: #95a6b5;
    --brand: #45d6c8;
    --brand-strong: #7ce8dd;
    --on-brand: #06201f;
    --ok: #63dda0;
    --ok-bg: #133226;
    --warn: #e7b45c;
    --warn-bg: #2f2413;
    --danger: #ff9191;
    --danger-bg: #331a1c;
    --border: #263441;
    --code-bg: #17212b;
    --focus: #45d6c8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  overflow-wrap: anywhere;
}

pre code {
  background: transparent;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 16px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

h1,
h2,
h3,
p,
dl,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 680;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  max-width: 52ch;
}

p + p {
  margin-top: 1em;
}

.lead {
  margin-top: 24px;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 56ch;
}

.field-note,
.caption,
figcaption {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- header */

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg);
}

.brand {
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--text-2);
  font-weight: 560;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--text-2);
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .button {
  flex: 0 0 auto;
}

.theme-switch {
  display: flex;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--radius);
}

.theme-switch button {
  border: 0;
  background: transparent;
  padding: 6px 9px;
  font-size: 1rem;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 1px;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-small {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.button-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--brand-strong);
}

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

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

.button-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: 600px;
}

.hero-copy h1 {
  max-width: 22ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hero-facts dt {
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-2);
}

/* Cockpit fragment: a real interface on a car screen, allowed its own UI rules. */
.cockpit {
  background: #0d141b;
  color: #e9f1f6;
  padding: 22px;
  border-radius: 3px;
  border: 1px solid #22303c;
  max-width: 560px;
  margin-left: auto;
}

.cockpit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #22303c;
}

.cockpit-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cockpit-tag {
  font-size: 0.82rem;
  color: #d7a94e;
  background: #2c2414;
  padding: 3px 7px;
  border-radius: 2px;
}

.cockpit-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0 18px;
}

.score-ring {
  position: relative;
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 8;
}

.ring-track {
  stroke: #22303c;
}

.ring-value {
  stroke: #4bdc9b;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 19;
  transition: stroke-dashoffset 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.score-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.score-value strong {
  font-size: 2.9rem;
  line-height: 1;
  font-weight: 620;
  letter-spacing: -0.05em;
  color: #4bdc9b;
}

.score-value span {
  font-size: 0.82rem;
  color: #8fa4b4;
}

.cockpit-copy {
  min-width: 0;
}

.cockpit-label {
  font-size: 0.82rem;
  color: #8fa4b4;
}

.cockpit-style {
  margin-top: 4px;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cockpit-sub {
  margin-top: 6px;
  color: #aebfcc;
  font-size: 0.9rem;
}

.cockpit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cockpit-stats div {
  background: #15202a;
  padding: 10px 11px;
  border-radius: 2px;
}

.cockpit-stats dt {
  font-size: 0.82rem;
  color: #8fa4b4;
}

.cockpit-stats dd {
  margin: 3px 0 0;
  font-size: 0.98rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.cockpit-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 34px;
  margin-top: 16px;
}

.cockpit-bars .bar {
  width: 25%;
  background: #2b3d4c;
  height: 100%;
  border-radius: 1px;
}

.cockpit-bars .bar:nth-child(1) {
  background: #4bdc9b;
}

.bar-62 { height: 62% !important; }
.bar-48 { height: 48% !important; }
.bar-71 { height: 71% !important; }
.bar-38 { height: 38% !important; }

.cockpit-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #8fa4b4;
}

/* --------------------------------------------------------------- sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section + .section {
  margin-top: clamp(96px, 11vw, 152px);
}

.section-head {
  max-width: 760px;
}

.section-lead {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 58ch;
}

.section-showcase {
  margin-top: clamp(100px, 12vw, 168px);
}

.screenshot-figure {
  margin-top: 36px;
}

.screenshot-figure img {
  width: 100%;
  aspect-ratio: 1920 / 720;
  object-fit: cover;
  border-radius: 2px;
  background: var(--surface-2);
}

.screenshot-figure figcaption {
  margin-top: 12px;
  max-width: 80ch;
}

.feature-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 64px;
}

.gallery-two {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.gallery-two .screenshot-figure {
  margin-top: 0;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-2);
  max-width: 46ch;
}

/* steps */

.step-list {
  margin-top: 56px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.step-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.step-list h3 {
  font-size: 1.35rem;
}

.step-list p {
  color: var(--text-2);
  max-width: 38ch;
}

.step-list .text-link {
  margin-top: auto;
}

/* profile panel */

.profile-panel {
  background: var(--surface);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.profile-panel-copy,
.profile-panel-matrix {
  min-width: 0;
}

.profile-panel-matrix {
  overflow-x: auto;
}

.profile-panel-copy h2 {
  margin-bottom: 18px;
}

.profile-panel-copy > p {
  color: var(--text-2);
  max-width: 48ch;
}

.profile-line {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.profile-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 0.86rem;
  color: var(--text-3);
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.matrix caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 12px;
  color: var(--text-2);
}

.matrix th,
.matrix td {
  text-align: left;
  vertical-align: top;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
}

.matrix thead th {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
}

.matrix tbody th {
  font-weight: 600;
}

.matrix-compact th,
.matrix-compact td {
  padding: 9px 8px;
}

.status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 2px;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 650;
  white-space: nowrap;
}

.status-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.status-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-neutral {
  background: var(--surface-3);
  color: var(--text-2);
}

/* boundaries */

.boundaries {
  background: var(--surface-2);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.boundaries h2 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.plain-list {
  padding-left: 1.1em;
}

.plain-list li {
  margin: 0.45em 0;
  color: var(--text-2);
}

.plain-list li::marker {
  color: var(--brand);
}

/* FAQ */

.faq {
  margin-top: 32px;
  max-width: 900px;
}

.section-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-faq .section-head {
  position: sticky;
  top: 24px;
}

.section-faq .faq {
  margin-top: 0;
  max-width: none;
}

.faq details {
  padding: 18px 0;
}

.faq details:last-child {
  padding-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  list-style-position: outside;
}

.faq details p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 56ch;
}

.faq-large summary {
  font-size: 1.12rem;
}

/* CTA */

.cta-band {
  background: var(--brand);
  color: var(--on-brand);
  padding: clamp(36px, 5vw, 64px);
  max-width: 100%;
}

.cta-band h2 {
  max-width: 18ch;
}

.cta-band p {
  margin-top: 16px;
  max-width: 60ch;
  color: color-mix(in srgb, var(--on-brand) 86%, transparent);
}

.cta-band .button-primary {
  background: var(--on-brand);
  color: var(--brand);
}

.cta-band .button-secondary {
  background: transparent;
  color: var(--on-brand);
  border: 1px solid color-mix(in srgb, var(--on-brand) 48%, transparent);
}

/* ----------------------------------------------------------- page layouts */

.page-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 24px;
}

.page-head {
  max-width: 880px;
  margin-bottom: 48px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.instruction-scope {
  font-size: 0.95rem;
  color: var(--text-3);
  margin-bottom: 12px;
}

.result-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 20px 0;
  color: var(--text-3);
  font-size: 0.86rem;
}

.notice {
  padding: 20px 22px;
  margin: 28px 0;
  border-radius: var(--radius);
  max-width: 900px;
}

.notice p {
  margin: 0;
}

.notice-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px !important;
}

.notice-info {
  background: var(--surface-2);
  color: var(--text);
}

.notice-warning {
  background: var(--warn-bg);
  color: var(--warn);
}

.notice-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.receipt {
  display: block;
  margin-top: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--warn-bg) 60%, var(--surface));
  color: var(--text);
  overflow-wrap: anywhere;
}

/* forms */

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  font-weight: 600;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.inline-form input,
.inline-form select,
.inline-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 11px 12px;
  border-radius: var(--radius);
  font-weight: 400;
  color: var(--text);
}

.field input::placeholder,
.inline-form input::placeholder {
  color: var(--text-3);
}

.wizard-form,
.filter-form,
.upload-form {
  max-width: 900px;
  background: var(--surface);
  padding: clamp(22px, 3vw, 36px);
}

.filter-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 40px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-2);
  margin: 12px 0;
}

.check-line input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--brand);
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 560px;
}

.inline-form label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  font-weight: 600;
}

.inline-form textarea {
  resize: vertical;
}

/* readiness */

.readiness {
  margin-top: 48px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface);
}

.readiness h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.readiness > p {
  color: var(--text-2);
  max-width: 56ch;
}

.readiness-scope {
  font-weight: 650;
  color: var(--text) !important;
}

.readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 28px;
}

.two-col h3 {
  margin-bottom: 10px;
}

.boundary-note {
  margin-top: 56px;
  max-width: 900px;
}

.boundary-note h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.boundary-note p {
  color: var(--text-2);
}

/* packages */

.package {
  margin-top: 24px;
  background: var(--surface-2);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: start;
}

.package-compact {
  display: block;
  padding: 18px;
}

.package-label {
  font-size: 0.82rem;
  color: var(--text-3);
}

.package h3 {
  margin-top: 4px;
}

.package-platform {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.package-note {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.86rem;
  max-width: 54ch;
}

.package-meta {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  margin: 16px 0 0;
}

.package-meta dt {
  color: var(--text-3);
}

.package-meta dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.package > .button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.package-compact .package-meta {
  margin-bottom: 16px;
}

.package-compact .button {
  margin-top: 12px;
}

.package-list {
  display: grid;
  gap: 24px;
}

.package-row {
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.package-row h2 {
  font-size: 1.5rem;
}

.package-row > div > p {
  margin-top: 8px;
  color: var(--text-2);
  max-width: 56ch;
}

.package-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* guide */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.recipe-steps {
  list-style: none;
  padding: 0;
  counter-reset: recipe;
}

.recipe-steps li {
  counter-increment: recipe;
  padding: 0 0 40px 0;
}

.recipe-steps li::before {
  content: counter(recipe);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.recipe-steps h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.recipe-steps p {
  color: var(--text-2);
  max-width: 56ch;
}

.guide-section {
  margin-top: 56px;
}

.guide-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.guide-aside {
  background: var(--surface);
  padding: 26px;
  position: sticky;
  top: 24px;
}

.guide-aside h2 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.guide-aside h2:first-child {
  margin-top: 0;
}

.guide-aside p {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* upload */

.file-drop {
  background: var(--surface-2);
  padding: 24px;
}

.file-drop label {
  display: block;
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 10px;
}

.file-drop input {
  width: 100%;
}

.consent-block {
  margin-top: 28px;
  background: var(--surface-2);
  padding: 24px;
}

.consent-block h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.consent-block p {
  color: var(--text-2);
  max-width: 56ch;
  font-size: 1rem;
}

.format-details {
  margin-top: 24px;
}

.format-details summary {
  cursor: pointer;
  font-weight: 650;
}

.format-details ul {
  margin-top: 12px;
}

/* result */

.result-page .page-head,
.result-page .notice,
.result-page .delete-details,
.result-page .result-grid,
.result-page .result-gallery {
  max-width: none;
  width: 100%;
}

.gallery-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.gallery-three .screenshot-figure {
  margin-top: 0;
}

.result-figure {
  margin: 0 0 44px;
}

.result-hero-media {
  margin: 0 0 44px;
}

.result-hero-media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  background: var(--surface-2);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin: 40px 0 56px;
}

.result-grid h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.result-grid p {
  color: var(--text-2);
  margin-bottom: 12px;
}

.definition-list {
  display: grid;
  gap: 0;
}

.definition-list > div {
  padding: 10px 0;
}

.definition-list dt {
  font-size: 0.82rem;
  color: var(--text-3);
}

.definition-list dd {
  margin: 2px 0 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.matrix-heading {
  font-size: 1.5rem;
  margin: 0 0 18px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.catalog-table caption {
  text-align: left;
  color: var(--text-3);
  font-size: 0.82rem;
  padding-bottom: 10px;
}

.catalog-table th,
.catalog-table td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.catalog-table thead th {
  font-size: 0.82rem;
  color: var(--text-3);
}

.table-link {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.table-link:hover {
  color: var(--brand);
}

.cap-title {
  display: block;
  font-weight: 650;
}

.cap-desc {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 400;
  max-width: 42ch;
}

.delete-details {
  margin-top: 56px;
  max-width: 760px;
}

.delete-details summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--danger);
}

.delete-details p {
  margin: 14px 0;
  color: var(--text-2);
}

/* profile */

.profile-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  margin-bottom: 56px;
}

.profile-recipe h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.profile-recipe p {
  color: var(--text-2);
}

.methodology-figure {
  margin-top: 48px;
  max-width: 900px;
}

.profile-notes {
  margin-top: 56px;
}

.evidence-list {
  list-style: none;
  padding: 0;
}

.evidence-list li {
  padding: 12px 0;
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}

.evidence-list li span:last-child {
  color: var(--text-3);
  font-size: 0.82rem;
}

/* legal */

.legal-page {
  max-width: 900px;
}

.legal-section {
  margin-top: 44px;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.legal-section p {
  color: var(--text-2);
}

/* admin */

.admin-page {
  padding-bottom: 80px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 56px;
}

.admin-metrics div {
  background: var(--surface);
  padding: 20px;
}

.admin-metrics span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.admin-metrics p {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.84rem;
}

.admin-page h2 {
  font-size: 1.45rem;
  margin: 48px 0 16px;
}

.admin-login {
  background: var(--surface);
  padding: 28px;
}

.json-block {
  background: var(--surface-2);
  padding: 16px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 520px;
}

/* empty state */

.empty-state {
  background: var(--surface);
  padding: clamp(32px, 5vw, 56px);
  max-width: 760px;
}

.empty-state h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-2);
  margin-bottom: 22px;
}

/* ------------------------------------------------------------- footer */

.site-footer {
  max-width: var(--max);
  margin: clamp(100px, 12vw, 156px) auto 0;
  padding: 0 var(--gutter) 36px;
}

.footer-top {
  background: var(--surface-2);
  padding: clamp(32px, 4vw, 56px);
}

.footer-wordmark {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.9;
  font-weight: 740;
  letter-spacing: -0.06em;
}

.footer-claim {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--text-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0 8px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-grid a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 1rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 1rem;
  max-width: 70ch;
}

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .cockpit-bars .bar {
    animation: bar-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .cockpit-bars .bar:nth-child(2) { animation-delay: 60ms; }
  .cockpit-bars .bar:nth-child(3) { animation-delay: 120ms; }
  .cockpit-bars .bar:nth-child(4) { animation-delay: 180ms; }

  @keyframes bar-rise {
    from { transform: scaleY(0.3); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 56px;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .cockpit {
    margin: 0;
    max-width: 640px;
  }

  .profile-panel,
  .guide-layout,
  .result-grid,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
  }

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

  .package-row {
    grid-template-columns: 1fr;
  }

  .package-row-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .theme-switch button {
    padding: 6px 7px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-facts,
  .feature-list,
  .gallery-two,
  .gallery-three,
  .step-list,
  .boundaries,
  .two-col,
  .field-grid,
  .filter-form,
  .admin-metrics,
  .section-faq {
    grid-template-columns: 1fr;
  }

  .section-faq .section-head {
    position: static;
  }

  .hero-facts {
    gap: 18px;
    margin-top: 36px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .cockpit {
    padding: 16px;
  }

  .cockpit-main {
    gap: 14px;
  }

  .score-ring {
    width: 116px;
    height: 116px;
    flex-basis: 116px;
  }

  .score-value strong {
    font-size: 2.2rem;
  }

  .cockpit-style {
    font-size: 1.35rem;
  }

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

  .section + .section {
    margin-top: 84px;
  }

  .screenshot-figure {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }

  .screenshot-figure figcaption {
    padding: 0 var(--gutter);
  }

  .profile-panel,
  .boundaries,
  .wizard-form,
  .filter-form,
  .upload-form,
  .readiness,
  .package-row {
    padding: 20px;
  }

  .package {
    grid-template-columns: 1fr;
  }

  .package > .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .page-section {
    padding-top: 44px;
  }

  .page-head {
    margin-bottom: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .result-grid,
  .profile-facts {
    gap: 32px;
  }

  .matrix {
    font-size: 0.82rem;
  }

  .matrix th,
  .matrix td {
    padding: 9px 7px;
  }
}

/* --------------------------------------------------- check / profile pages */

.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  max-width: none;
}

.check-layout .wizard-form,
.upload-layout .upload-form {
  max-width: none;
}

.check-side {
  background: var(--surface);
  padding: clamp(22px, 3vw, 32px);
}

.check-side h2 {
  font-size: 1.3rem;
  margin: 24px 0 10px;
}

.check-side .screenshot-figure {
  margin-top: 0;
}

.check-side .plain-list {
  margin-top: 12px;
}

.check-side p,
.check-side li,
.check-side .field-note {
  font-size: 1rem;
}

.upload-gallery {
  margin-top: 48px;
}

.profile-hero-media {
  margin: 0 0 56px;
}

.profile-hero-media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  background: var(--surface-2);
}

.profile-hero-media figcaption {
  margin-top: 10px;
}

.profile-gallery {
  margin-top: 56px;
}

.profile-wide-figure {
  margin-top: 56px;
}

.download-figure {
  margin: 0 0 48px;
}

.profile-gallery .methodology-figure {
  margin-top: 0;
}

.matrix {
  font-size: 1rem;
  min-width: 760px;
  table-layout: fixed;
}

.matrix th:first-child {
  width: 30%;
}

.matrix-compact {
  min-width: 520px;
  table-layout: fixed;
}

.matrix-compact th:first-child {
  width: 40%;
}

.cap-desc {
  font-size: 1rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.matrix th,
.matrix td {
  overflow-wrap: break-word;
}

@media (max-width: 1080px) {
  .check-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .check-side {
    padding: 18px;
  }
}

/* ------------------------------------------------- product-first hero */

.hero-product {
  display: block;
  min-height: 0;
  padding-top: 48px;
}

.hero-product .hero-media {
  margin: 0 0 40px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1920 / 720;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  background: var(--surface-2);
}

.hero-media figcaption {
  margin-top: 10px;
}

.hero-product .hero-copy {
  max-width: 900px;
}

.hero-product .hero-copy h1 {
  max-width: 20ch;
}

.hero-product .hero-facts {
  margin-top: 40px;
}

.availability {
  background: var(--surface-2);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.availability h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.availability p {
  color: var(--text-2);
  max-width: 52ch;
}

.availability .text-link {
  display: inline-block;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .hero-product {
    padding-top: 36px;
  }

  .hero-product .hero-media {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
    object-position: left center;
  }

  .hero-product .hero-media figcaption {
    padding: 0 var(--gutter);
  }

  .availability {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.download-availability {
  margin-bottom: 40px;
}

.package-format {
  margin-top: 6px;
  color: var(--warn);
  font-weight: 600;
  font-size: 0.95rem;
}

.guide-hero {
  margin: 0 0 40px;
}

.guide-hero img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
}

.matrix-compact .status {
  white-space: normal;
}
