@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-RegularIt.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-Black.woff") format("woff");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --indigo: #180c54;
  --yellow: #f5bb06;
  --paper: #f7f5ef;
  --ink: #16122e;
  --white: #ffffff;
  --muted: #6f6b8a;
  --muted-light: #ddd8ea;
  --indigo-soft: #eeeaf7;
  --line: #cfc8df;
  --focus: #f5bb06;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1180px;
  font-family: "Neogrotesk Pro", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

body.is-funnel-state {
  background: var(--indigo);
}

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

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

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

a {
  color: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--content)) / 2));
  background: var(--indigo);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 178px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.header-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.screen[hidden] {
  display: none;
}

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

h1,
h2,
h3 {
  text-wrap: pretty;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 6.2vw, 5.8rem);
  line-height: 0.94;
  font-weight: 900;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
  line-height: 0.98;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}

.kicker.light {
  color: var(--yellow);
}

.marker {
  display: inline;
  padding: 0.1em 0.14em 0.12em;
  background: var(--yellow);
  color: var(--ink);
  line-height: 1.32;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 112px);
  width: min(var(--content), calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 86px) 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 12ch;
  color: var(--indigo);
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.url-form {
  max-width: 700px;
}

.url-form > label:first-child,
#retry-form label,
.phone-form legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-frame {
  display: flex;
  align-items: center;
  min-height: 72px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--indigo);
}

.field-frame:focus-within {
  outline: 4px solid rgba(245, 187, 6, 0.4);
}

.field-frame.has-error {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--indigo);
}

.field-frame > span {
  padding-left: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1rem;
}

.field-frame input {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 0 20px 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
}

.field-frame input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field-hint,
.field-error {
  min-height: 21px;
  margin: 7px 0 5px;
  font-size: 0.88rem;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: var(--indigo);
  font-weight: 700;
}

.check-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  line-height: 1.35;
}

.check-row input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check-box {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  background: var(--white);
}

.check-row input:checked + .check-box {
  background: var(--yellow);
}

.check-row input:checked + .check-box::after {
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 12px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(42deg);
  content: "";
}

.check-row input:focus-visible + .check-box {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.security-option {
  margin: 12px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 15px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  width: 100%;
  margin-top: 10px;
  background: var(--indigo);
  color: var(--white);
}

.button-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.trust-line {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.trust-line span {
  white-space: nowrap;
}

.hero-lab {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  padding: 36px 22px 22px;
  background: var(--indigo);
  transform: rotate(1deg);
}

.file-tab {
  position: absolute;
  top: 0;
  left: 0;
  padding: 9px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.lab-sheet {
  position: relative;
  min-height: 430px;
  padding: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 10px 12px 0 var(--yellow);
}

.lab-head,
.lab-domain,
.redaction,
.lab-stamp {
  font-family: var(--mono);
}

.lab-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--indigo);
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 700;
}

.lab-domain {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 0.8rem;
}

.redaction {
  margin-bottom: 22px;
  font-size: 0.68rem;
  color: var(--muted);
}

.redaction i {
  display: block;
  width: 88%;
  height: 20px;
  margin-top: 7px;
  background: var(--indigo);
}

.redaction:nth-of-type(3) i {
  width: 72%;
}

.redaction:nth-of-type(4) i {
  width: 94%;
}

.lab-stamp {
  position: absolute;
  right: 22px;
  bottom: 27px;
  padding: 11px 14px;
  transform: rotate(-5deg);
  border: 3px solid var(--indigo);
  background: var(--white);
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.context-band {
  padding: clamp(80px, 11vw, 150px) 20px;
  background: var(--indigo);
  color: var(--white);
}

.context-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.context-inner h2 {
  max-width: 15ch;
}

.context-inner > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted-light);
  font-size: 1.15rem;
  line-height: 1.6;
}

.below-section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(82px, 11vw, 150px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.section-heading h2 {
  max-width: 14ch;
  color: var(--indigo);
}

.typical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
}

.finding-preview {
  position: relative;
  min-height: 330px;
  padding: 38px 28px 34px;
  overflow: hidden;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.finding-preview:last-child {
  border-right: 0;
}

.finding-preview .number {
  position: absolute;
  top: -38px;
  right: 8px;
  color: var(--yellow);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
}

.chip {
  position: relative;
  display: inline-flex;
  margin-bottom: 62px;
  padding: 0.9em;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.finding-preview h3,
.finding-preview p:last-child {
  position: relative;
}

.finding-preview h3 {
  color: var(--indigo);
}

.finding-preview p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-note,
.method-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.method-section {
  border-top: 1px solid var(--line);
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--indigo);
}

.method-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.method-list strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.sender-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  min-height: 700px;
  background: var(--indigo);
  color: var(--white);
}

.sender-photo-wrap {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.sender-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.78) contrast(1.04);
}

.sender-photo-wrap span {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
}

.sender-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  padding: clamp(50px, 8vw, 120px);
}

.sender-copy h2 {
  max-width: 12ch;
}

.sender-copy > p:not(.kicker) {
  max-width: 650px;
  color: var(--muted-light);
  font-size: 1.16rem;
  line-height: 1.55;
}

.sender-quote {
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  color: var(--white) !important;
  font-weight: 700;
}

.sender-copy .button {
  margin-top: 18px;
}

.launch-test-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 56px 20px;
  background: var(--paper);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 900;
}

.screen-process,
.screen-gate {
  min-height: calc(100svh - 76px);
  background: var(--indigo);
  color: var(--white);
}

.process-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.screen-head h1 {
  margin-bottom: 12px;
  color: var(--white);
}

.process-domain {
  min-height: 24px;
  margin-bottom: 36px;
  color: var(--muted-light);
  font-family: var(--mono);
  word-break: break-word;
}

.progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.progress-track span {
  display: block;
  width: 3%;
  height: 100%;
  background: var(--yellow);
  transition: width 240ms ease;
}

.check-steps {
  margin: 30px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.check-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2vw, 0.96rem);
}

.step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--indigo);
  background: var(--yellow);
  font-weight: 900;
}

.check-step.is-running .step-mark {
  background: var(--white);
}

.step-copy {
  min-width: 0;
  color: var(--white);
}

.step-state {
  color: var(--muted-light);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.process-note {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gate-ready {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--yellow);
}

.masked-result {
  text-align: center;
}

.masked-result > p {
  margin: 13px 0 0;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.masked-ring {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border: 12px solid var(--white);
  border-radius: 50%;
}

.masked-ring span,
.masked-ring i,
.masked-ring b {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 24px;
  background: var(--indigo);
  transform: rotate(-4deg);
}

.masked-ring span {
  top: 39px;
}

.masked-ring i {
  top: 72px;
}

.masked-ring b {
  top: 105px;
}

.gate-copy h2 {
  max-width: 13ch;
  color: var(--white);
}

.gate-copy > p:not(.kicker) {
  color: var(--muted-light);
  font-size: 1.15rem;
}

.gate-copy .button {
  margin-top: 12px;
}

.unreachable-state {
  margin-top: 50px;
  padding-top: 45px;
  border-top: 2px solid var(--yellow);
}

.unreachable-state h2 {
  max-width: 17ch;
  color: var(--white);
}

#retry-form {
  max-width: 620px;
  margin-top: 30px;
}

#retry-form label {
  color: var(--white);
}

#retry-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--ink);
}

#retry-form .field-error {
  color: var(--yellow);
}

.gate-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.08fr);
  width: min(var(--content), calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 0;
}

.gate-summary {
  padding: clamp(34px, 5vw, 64px);
  background: var(--indigo);
  border: 2px solid var(--yellow);
}

.gate-count {
  margin-bottom: 38px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
}

.compact .masked-ring {
  width: 150px;
  height: 150px;
  border-width: 10px;
}

.compact .masked-ring span {
  top: 28px;
}

.compact .masked-ring i {
  top: 56px;
}

.compact .masked-ring b {
  top: 84px;
}

.manual-summary h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.manual-summary > p:last-child {
  color: var(--muted-light);
  font-size: 1.1rem;
  line-height: 1.55;
}

.gate-form-wrap {
  padding: clamp(38px, 7vw, 92px);
  background: var(--paper);
  color: var(--ink);
}

.gate-form-wrap h1 {
  max-width: 12ch;
  color: var(--indigo);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.gate-form-wrap > p:not(.kicker, .gate-trust) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.phone-form {
  margin-top: 30px;
}

.phone-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.phone-field {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  min-height: 62px;
  background: var(--white);
  border: 2px solid var(--indigo);
}

.phone-field select,
.phone-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1.12rem;
}

.phone-field select {
  padding: 0 16px;
  border-right: 1px solid var(--line);
  font-weight: 700;
}

.phone-field input {
  width: 100%;
  padding: 0 16px;
}

.phone-field:focus-within {
  outline: 4px solid rgba(245, 187, 6, 0.45);
}

.consent-row {
  margin-top: 18px;
}

.consent-row > span:last-child {
  font-size: 0.9rem;
}

.gate-trust {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.launch-block {
  margin-top: 20px;
  padding: 14px;
  background: var(--indigo-soft);
  border-left: 4px solid var(--indigo);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
}

.launch-block strong,
.launch-block span {
  display: block;
}

.screen-confirmation {
  min-height: calc(100svh - 76px);
  padding: clamp(50px, 10vw, 120px) 20px;
  background: var(--yellow);
  color: var(--ink);
}

.confirmation-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 70px);
  background: var(--paper);
  border: 3px solid var(--indigo);
  box-shadow: 12px 12px 0 var(--indigo);
}

.confirmation-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  background: var(--indigo);
  color: var(--yellow);
  font-size: 2rem;
  font-weight: 900;
}

.confirmation-shell h1 {
  max-width: 11ch;
  color: var(--indigo);
}

.confirmation-shell p {
  line-height: 1.55;
}

.delivery-preview-state {
  padding: 18px;
  background: var(--indigo-soft);
  border-left: 5px solid var(--indigo);
}

.delivery-preview-state h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.delivery-preview-state p:last-child {
  margin-bottom: 0;
}

.preview-label,
#delivery-state-code {
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.text-button {
  min-height: 44px;
  margin-top: 24px;
  padding: 8px 0;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 700;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  padding: 24px max(20px, calc((100vw - var(--content)) / 2));
  background: var(--paper);
  color: var(--indigo);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 150px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}

.site-footer button {
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(84svh, 860px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid var(--indigo);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--yellow);
}

.legal-dialog::backdrop {
  background: rgba(24, 12, 84, 0.82);
}

.dialog-panel {
  position: relative;
  padding: clamp(28px, 6vw, 58px);
}

.dialog-panel h2 {
  color: var(--indigo);
}

.dialog-panel h3 {
  margin-top: 26px;
  color: var(--indigo);
  font-size: 1.15rem;
}

.dialog-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--indigo);
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
}

#tracking-form .button {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-lab {
    width: min(520px, 100%);
    justify-self: center;
  }

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

  .finding-preview {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .finding-preview:last-child {
    border-bottom: 0;
  }

  .sender-section {
    grid-template-columns: 1fr;
  }

  .sender-photo-wrap {
    min-height: 520px;
  }

  .gate-layout {
    grid-template-columns: 1fr;
  }

  .gate-summary {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 20px;
    align-items: center;
  }

  .gate-summary .kicker,
  .gate-summary .gate-count {
    grid-column: 1;
  }

  .gate-summary .masked-result {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .manual-summary {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding: 9px 16px;
  }

  .brand img {
    width: 140px;
    height: 40px;
  }

  .header-label {
    max-width: 130px;
    font-size: 0.65rem;
    text-align: right;
  }

  h1 {
    font-size: clamp(2.65rem, 13.2vw, 3.75rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2.15rem, 10.2vw, 3.25rem);
  }

  .hero-shell {
    width: min(100% - 32px, var(--content));
    min-height: calc(100svh - 68px);
    padding: 34px 0 52px;
  }

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

  .hero-lead {
    font-size: 1rem;
    line-height: 1.48;
  }

  .field-frame {
    min-height: 64px;
  }

  .field-frame input {
    min-height: 60px;
    padding-right: 12px;
    font-size: 1.08rem;
  }

  .field-frame > span {
    padding-left: 13px;
    font-size: 0.9rem;
  }

  .hero-lab {
    padding: 32px 14px 14px;
  }

  .lab-sheet {
    min-height: 360px;
    padding: 20px;
    box-shadow: 7px 8px 0 var(--yellow);
  }

  .context-band {
    padding-inline: 16px;
  }

  .below-section {
    width: calc(100% - 32px);
  }

  .finding-preview {
    padding: 32px 22px;
  }

  .method-list li {
    grid-template-columns: 42px 1fr;
  }

  .method-section h2 {
    font-size: 2rem;
  }

  .sender-photo-wrap {
    min-height: 430px;
  }

  .sender-copy {
    padding: 56px 20px 64px;
  }

  .launch-test-words {
    justify-content: flex-start;
    gap: 16px;
  }

  .process-shell {
    width: calc(100% - 32px);
    padding-top: 40px;
  }

  .check-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    min-height: 62px;
  }

  .step-state {
    display: none;
  }

  .gate-ready {
    grid-template-columns: 1fr;
  }

  .masked-result {
    justify-self: start;
  }

  .masked-ring {
    width: 150px;
    height: 150px;
    border-width: 10px;
  }

  .masked-ring span {
    top: 28px;
  }

  .masked-ring i {
    top: 56px;
  }

  .masked-ring b {
    top: 84px;
  }

  .gate-layout {
    width: 100%;
    padding: 0;
  }

  .gate-summary {
    display: block;
    padding: 38px 20px;
    border-right: 0;
    border-left: 0;
  }

  .gate-summary .masked-result {
    margin-top: 28px;
  }

  .gate-form-wrap {
    padding: 50px 20px 60px;
  }

  .gate-form-wrap h1 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .phone-field {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .phone-field select,
  .phone-field input {
    padding-inline: 12px;
    font-size: 1rem;
  }

  .screen-confirmation {
    padding: 38px 16px 60px;
  }

  .confirmation-shell {
    padding: 28px 22px 36px;
    box-shadow: 7px 7px 0 var(--indigo);
  }

  .confirmation-shell h1 {
    font-size: clamp(2.35rem, 10.6vw, 3.1rem);
  }

  .site-footer {
    display: block;
    padding: 28px 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .site-footer img {
    width: 130px;
  }
}

@media (max-width: 350px) {
  .header-label {
    max-width: 108px;
  }

  .hero-shell,
  .process-shell,
  .below-section {
    width: calc(100% - 24px);
  }

  .gate-form-wrap,
  .sender-copy {
    padding-inline: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
