:root {
  color-scheme: dark;
  --ink: #f8f2e6;
  --muted: #c7bcaa;
  --paper: #0b0b0a;
  --panel: rgba(255, 250, 241, 0.08);
  --panel-strong: rgba(255, 250, 241, 0.12);
  --line: rgba(218, 179, 117, 0.22);
  --accent: #c48745;
  --accent-dark: #8f5525;
  --cream-band: #f3ecdf;
  --cream-ink: #151413;
  --cream-muted: #5a5349;
  --allow: #50cd80;
  --refuse: #e36d60;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(196, 135, 69, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 135, 69, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
  padding: 17px max(20px, calc((100vw - 1120px) / 2));
}

.site-nav__brand,
.site-nav__links a {
  text-decoration: none;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fffaf1;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dab375;
  border-radius: 50%;
  color: #f2d994;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 28px rgba(216, 179, 90, 0.18), inset 0 0 18px rgba(216, 179, 90, 0.12);
}

.site-nav__brand-text {
  line-height: 1.2;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
}

.site-nav__links a {
  border: 1px solid transparent;
  color: #ead9bf;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 8px 0;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: #ffe29a;
}

.site-nav__links .site-nav__cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
}

.site-nav__links .site-nav__cta {
  min-height: 44px;
  border-color: #d8b35a;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(216,179,90,0.24), rgba(216,179,90,0.08));
  color: #ffe29a;
  padding: 0 18px;
  box-shadow: 0 0 34px rgba(216,179,90,0.12);
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  border-bottom: 1px solid rgba(218, 179, 117, 0.28);
  background:
    linear-gradient(125deg, rgba(8, 8, 7, 0.94), rgba(8, 8, 7, 0.76) 56%, rgba(36, 26, 16, 0.74)),
    linear-gradient(90deg, rgba(218, 179, 117, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(218, 179, 117, 0.08) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: end;
  padding: 96px 0 86px;
}

.section-label {
  margin: 0 0 16px;
  color: #e4b46f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 1.07;
}

.service-line {
  max-width: 760px;
  color: #f0e6d4;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.scope-note,
.control-group,
.checkpoint,
.result-panel,
.receipt-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.11), rgba(255, 250, 241, 0.045)),
    rgba(13, 13, 11, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.scope-note {
  padding: 24px;
}

.scope-note h2 {
  font-size: 1.2rem;
}

.scope-note p,
.demo-copy p,
.control-group small,
.checkpoint p,
.result-panel p,
.receipt-note {
  color: #ddd5c5;
}

.demo-shell {
  padding: 72px 0;
}

.demo-copy {
  max-width: 860px;
  margin-bottom: 28px;
}

.boundary-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.control-group {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
}

.control-group legend {
  padding: 0 8px;
  color: #fffaf1;
  font-size: 1.1rem;
  font-weight: 800;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 72px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.045);
  padding: 16px;
  cursor: pointer;
}

.option-card:hover,
.option-card:focus-within {
  border-color: rgba(218, 179, 117, 0.48);
  background: rgba(218, 179, 117, 0.1);
}

.option-card input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.option-card strong,
.option-card small {
  display: block;
}

.button {
  min-height: 52px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(180deg, #d39a57, var(--accent-dark));
  color: #fffaf1;
  padding: 12px 18px;
  font-size: 1rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.boundary-form > .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
}

.checkpoint {
  margin-top: 34px;
  padding: 24px;
}

.checkpoint h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

.checkpoint__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.checkpoint__track span {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(218, 179, 117, 0.26);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.06);
  color: #fffaf1;
  font-weight: 800;
  text-align: center;
}

.result-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: 28px;
  margin-top: 34px;
  padding: 26px;
  border-top-width: 6px;
}

.result-panel[hidden] {
  display: none;
}

.result-panel--allow {
  border-top-color: var(--allow);
}

.result-panel--refuse {
  border-top-color: var(--refuse);
}

.result-panel h2 {
  overflow-wrap: anywhere;
}

.plain-stop {
  border-left: 4px solid var(--refuse);
  background: rgba(227, 109, 96, 0.12);
  padding: 14px 16px;
  font-weight: 800;
}

.receipt-card {
  padding: 22px;
}

.receipt-card h2 {
  font-size: 1.35rem;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
  padding-bottom: 10px;
}

dt {
  color: #e4b46f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: #fffaf1;
  font-weight: 700;
}

.receipt-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  font-size: 0.95rem;
}

.band {
  padding: 72px 0;
  background: var(--cream-band);
  color: var(--cream-ink);
}

.band .section-label {
  color: #8f5525;
}

.closing h2 {
  max-width: 960px;
  margin: 0;
}

@media (max-width: 920px) {
  body {
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav__links {
    justify-content: flex-start;
  }

  .hero__grid,
  .boundary-form,
  .result-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 580px) {
  body {
    font-size: 1.16rem;
    line-height: 1.68;
  }

  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .site-nav {
    padding: 14px;
  }

  .site-nav__brand {
    white-space: normal;
  }

  .site-nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav__links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .site-nav__links .site-nav__cta {
    grid-column: 1 / -1;
  }

  .hero__grid {
    padding: 48px 0 54px;
  }

  h1 {
    font-size: 2.72rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 2.05rem;
    line-height: 1.12;
  }

  .demo-shell,
  .band {
    padding: 56px 0;
  }

  .control-group,
  .checkpoint,
  .result-panel,
  .receipt-card,
  .scope-note {
    padding: 22px;
  }

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

  .button {
    width: 100%;
    min-height: 64px;
    font-size: 1.05rem;
  }

  .boundary-form > .button {
    justify-self: stretch;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
