.order-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: #090c10;
}
.order-page [hidden] { display: none; }

.order-page::before {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: max(245px, 34vw);
  background: url('assets/closing-horizon.webp') center bottom / max(100%, 720px) auto no-repeat;
  mask-image: linear-gradient(transparent, #000 65%);
  pointer-events: none;
  content: '';
}

.order-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: minmax(var(--site-header-row), auto);
  align-items: center;
  gap: clamp(24px, 4vw, 66px);
  padding: var(--site-header-top) var(--site-header-inset) 12px;
}

.order-steps {
  --step-connector-gap: clamp(8px, 1.15vw, 16px);
  display: flex;
  min-width: clamp(26rem, 33vw, 30rem);
  gap: var(--step-connector-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-steps li { color: #bdc5d0; }
.order-steps li:not(:last-child) {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--step-connector-gap);
}
.order-steps li:not(:last-child)::after {
  flex: 1;
  min-width: clamp(8px, 2vw, 14px);
  height: 1px;
  background: #303844;
  content: '';
}
.order-steps li:has(+ [aria-current="step"], + li > .order-step-control:enabled)::after {
  background: #a4afbd;
}
.order-step-control { display: flex; min-height: var(--site-header-row); align-items: center; gap: 7px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: .9rem; white-space: nowrap; }
button.order-step-control:enabled { color: #e2edf9; }
button.order-step-control:enabled:hover { color: #fff; }
button.order-step-control:enabled:hover .order-step-number { border-color: #9aacc2; }
button.order-step-control:disabled { opacity: 1; cursor: default; }
.order-step-number { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #465365; border-radius: 50%; font-size: .75rem; font-variant-numeric: tabular-nums; }
.order-steps [aria-current] { color: #f2f5f8; font-weight: 650; }
.order-steps [aria-current] .order-step-number { border-color: #edf4ff; color: #101b2d; background: #edf4ff; }
.order-step-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: no-preference) {
  :root:active-view-transition-type(order-step)::view-transition-group(root),
  :root:active-view-transition-type(order-step)::view-transition-group(header-wordmark) {
    animation-duration: 240ms;
    animation-timing-function: ease-in-out;
  }
}

@media (max-width: 800px) {
  .order-header { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .order-steps { --step-connector-gap: 6px; min-width: 0; }
  .order-steps li:not(:last-child) { flex: none; }
  .order-step-control { min-height: 36px; }
}

.order-main {
  --step-body-gap: 20px;
  width: min(100% - 2 * clamp(20px, 5.4vw, 80px), 960px);
  margin-inline: auto;
  padding-block: clamp(18px, 4svh, 42px);
}
.order-heading { max-width: 960px; margin-inline: auto; }
.order-title-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 14px;
  min-height: 40px;
}
.order-title-row .order-title { grid-area: 1 / 1; }
.order-title { font-size: clamp(1.85rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.order-title:focus { outline: none; }
.order-intro { margin: 9px 0 0; color: #bbc4cf; font-size: 1rem; line-height: 1.45; }
.order-fields, .dns-instructions, .checkout-layout { margin-top: var(--step-body-gap); }

.order-form {
  --order-row-gap: 15px;
  --order-control-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 24px clamp(24px, 3.4vw, 48px);
}
.order-fields { display: grid; gap: var(--order-row-gap); }
.order-actions {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid #303844;
  border-radius: 16px;
  background: #10151ce8;
}
.order-field label { display: block; margin-bottom: 7px; color: #e8eef6; font-size: .92rem; font-weight: 650; }
.order-field input {
  width: 100%;
  min-height: var(--order-control-height);
  padding: 9px 12px;
  border: 1px solid #374454;
  border-radius: 7px;
  color: #f2f5f8;
  background: #11161e;
  font: inherit;
}
.order-field input::placeholder { color: #9aa8b9; opacity: 1; }
.order-field input:hover { border-color: #647d9b; }
.order-field input:focus {
  outline: 1px solid #9ed0ff;
  outline-offset: -1px;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.order-summary h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.order-summary-label {
  margin: 4px 0 0;
  color: #bbc4cf;
  font-size: .9375rem;
}
.order-price {
  color: #f2f5f8;
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.order-inclusions {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid #303844;
  color: #c9d4e2;
  font-size: .9375rem;
  line-height: 1.4;
  list-style: none;
}
.order-inclusions li, .assessment-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
}
.order-inclusions li { align-items: center; }
.order-checkmark {
  display: grid;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #252c36;
  color: #f2f5f8;
  font-size: 1rem;
  font-weight: 700;
}
.order-continue { width: 100%; min-height: var(--order-control-height); }
.verify-button { width: 100%; min-height: 46px; }
.order-continue:disabled { opacity: .6; cursor: default; }

.order-verify .dns-instructions, .order-verify .verify-status, .order-verify .verify-button { max-width: 720px; }
.order-back-arrow { grid-area: 1 / 2; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid #374454; border-radius: 7px; color: #e4edfa; background: transparent; }
.order-back-arrow:hover { border-color: #8192a8; color: #fff; }
@media (min-width: 1120px) {
  .order-title-row { grid-template-columns: minmax(0, 1fr); }
  .order-back-arrow { position: absolute; grid-area: auto; inset-inline-end: calc(100% + 14px); top: 50%; transform: translateY(-50%); }
}
.order-verify .order-intro strong { color: #eef4fa; overflow-wrap: anywhere; }
.dns-instructions {
  margin-inline: 0;
  margin-bottom: 12px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #374454;
  border-radius: 10px;
  background: #10151c;
  list-style: none;
  counter-reset: dns-step;
}
.dns-instructions > li { position: relative; padding-inline-start: 39px; counter-increment: dns-step; }
.dns-instructions > li + li { margin-top: 14px; }
.dns-instructions > li::before {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #62758d;
  border-radius: 50%;
  color: #e4edfa;
  font-size: .8rem;
  font-weight: 650;
  content: counter(dns-step);
}
.dns-instructions > li:not(:last-child)::after { position: absolute; top: 31px; bottom: -9px; left: 13px; width: 1px; background: #354456; content: ''; }
.dns-instructions h2 { margin: 0; padding-top: 3px; font-size: 1rem; line-height: 1.35; }
.dns-instructions p { margin: 4px 0 0; color: #bbc4cf; font-size: .9rem; line-height: 1.4; }

.dns-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid #303d4d;
  border-radius: 7px;
  background: #0c1118;
}
.dns-record dl { display: grid; gap: 5px; margin: 0; }
.dns-record dl > div { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 7px; }
.dns-record dt { color: #bbc4cf; font-size: .875rem; }
.dns-record dd { margin: 0; }
.dns-record code { font-size: .9rem; overflow-wrap: anywhere; }
.dns-record small { display: block; margin-top: 4px; color: #aab8ca; line-height: 1.4; }
.dns-record .dns-copy-status { grid-column: 1 / -1; margin: 0; }
.dns-copy-status:not(:empty) { padding-top: 8px; }

.verify-status { margin: 0 0 10px; color: #b7c3d2; font-size: .9rem; line-height: 1.4; }

@media (min-width: 681px) {
  .order-main:has(> #order-checkout:not([hidden])) {
    --step-body-gap: 14px;
  }
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.5vw, 32px);
}
.checkout-scope { display: grid; gap: 8px; }
.checkout-details { display: grid; gap: 2px; color: #f2f5f8; line-height: 1.4; }
.checkout-detail { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; }
.checkout-website { margin: 0; align-items: baseline; overflow-wrap: anywhere; }
.checkout-detail-icon { margin-top: 5px; color: #a4afbd; }
.checkout-website .checkout-detail-icon { align-self: start; margin-top: 2px; }
.checkout-website-value { position: relative; }
.checkout-dns-check {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-inline-start: 4px;
  place-items: center;
  border-radius: 50%;
  background: #8ebfff;
  color: #0e1d31;
  vertical-align: middle;
  cursor: help;
}
.checkout-dns-tooltip {
  position: absolute;
  z-index: 1;
  inset-block-start: 100%;
  inset-inline-start: 0;
  width: min(18rem, 100%);
  padding: 8px 10px;
  border: 1px solid #465365;
  border-radius: 6px;
  background: #192330;
  color: #eef4fc;
  box-shadow: 0 4px 12px #080a0d80;
  font-size: .875rem;
  visibility: hidden;
}
.checkout-dns-check:is(:hover, :focus) + .checkout-dns-tooltip,
.checkout-dns-tooltip:hover { visibility: visible; }
.checkout-detail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.checkout-report { display: grid; min-width: 0; align-content: start; gap: 2px; }
.checkout-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.checkout-email-row strong { min-width: 0; overflow-wrap: anywhere; }
.checkout-edit-email {
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #b7d4f7;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.checkout-email-form { display: grid; min-width: 0; gap: 8px; }
.checkout-email-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scope-group, .checkout-payment { padding: 14px 16px; border: 1px solid #374454; border-radius: 8px; background: #10151c; }
.scope-group { padding-block: 12px; }
.scope-group h2, .checkout-payment h2 { margin: 0; font-size: 1.06rem; }
.assessment-list { display: grid; gap: 7px; margin: 7px 0 0; padding: 0; color: #c9d4e2; font-size: .9rem; list-style: none; }
.assessment-list li { align-items: start; line-height: 1.4; overflow-wrap: anywhere; }
.assessment-list strong { display: block; color: #f2f5f8; }
.assessment-list div > span { display: block; }
.checkout-consent { display: flex; align-items: flex-start; gap: 10px; padding: 2px 0; color: #e7edf5; font-size: .94rem; line-height: 1.4; }
.checkout-consent input, .checkout-consent label, label.checkout-consent { cursor: pointer; }
.checkout-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #edf4ff; }
.checkout-notice { margin: 0; color: #b7c3d2; font-size: .875rem; line-height: 1.45; }
.checkout-consent a, .checkout-notice a { color: #b7d4f7; text-decoration: underline; text-underline-offset: .18em; }
.checkout-prices { display: grid; gap: 10px; margin: 12px 0; font-variant-numeric: tabular-nums; }
.checkout-prices div { display: flex; justify-content: space-between; gap: 10px; }
.checkout-prices dd { margin: 0; white-space: nowrap; }
.checkout-prices .checkout-total { padding-top: 10px; border-top: 1px solid #354456; font-weight: 700; }
.payment-actions { display: grid; gap: 8px; }
.payment-actions button { min-height: 42px; }
.payment-actions button:disabled { opacity: .6; cursor: default; }
.checkout-status { margin: 10px 0 0; color: #b7c3d2; font-size: .83rem; line-height: 1.4; }

@media (min-width: 900px) and (max-height: 700px) {
  .order-main:has(> #order-checkout:not([hidden])) {
    --step-body-gap: 12px;
  }
  .assessment-list strong, .assessment-list div > span { display: inline; }
}

@media (max-width: 680px) {
  .order-form { grid-template-columns: minmax(0, 1fr); }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .payment-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-group { padding: 0; border: 0; border-radius: 0; background: transparent; }
  .checkout-payment { padding: 10px 12px; }
  .assessment-list { margin-top: 6px; }
  .checkout-prices { margin-block: 8px; }
}

@media (max-width: 480px) {
  .order-main { --step-body-gap: 16px; padding-block: 16px; }
  .order-form { --order-row-gap: 12px; }
  .dns-instructions { padding-inline: 8px; border-inline: 0; border-radius: 0; background: transparent; }
  .dns-instructions > li { padding-inline-start: 33px; }
  .dns-record { position: relative; grid-template-columns: 1fr; }
  .dns-record dl > div:first-child { min-height: 31px; align-items: center; }
  .dns-record .quiet-button { position: absolute; inset: 7px 8px auto auto; min-height: 34px; padding: 4px 9px; }
}

@media (max-width: 365px) {
  .order-step-control { gap: 4px; font-size: .8rem; }
  .order-step-number { width: 19px; height: 19px; }
  .order-main { width: calc(100% - 28px); padding-block: 12px; }
  .order-title { font-size: 1.65rem; }
  .dns-record { padding-inline: 8px; }
  .dns-record code { font-size: .82rem; }
}

@media (max-width: 365px) and (max-height: 620px) {
  .order-main { --step-body-gap: 12px; padding-block: 7px; }
  .order-form { --order-row-gap: 9px; }
  .checkout-layout { gap: 8px; }
  .checkout-scope { gap: 6px; }
  .assessment-list { margin-top: 4px; }
  .checkout-payment { padding-block: 8px; }
  .checkout-prices { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px; font-size: .9rem; }
  .checkout-prices .checkout-total { gap: 6px; padding: 0; border-top: 0; }
  #checkout-price { display: none; }
}
