:root {
  color-scheme: light;
  --bg-base: #f0f7ff;
  --bg-raised: #f8fbff;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #dbeafe;
  --line-subtle: #eff6ff;
  --line-strong: #bfdbfe;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --orange: #e2603f;
  --orange-deep: #c84e32;
  --success: #16805b;
  --success-soft: #ecfdf5;
  --danger: #c43d3d;
  --danger-soft: #fbefed;
  --shadow: 0 24px 64px rgba(30, 64, 175, 0.1);
  --shadow-soft: 0 10px 28px rgba(30, 64, 175, 0.08);
  --radius: 8px;
  --font-display-cn: "STZhongsong", "Songti SC", "SimSun", serif;
  --font-body-cn: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      ellipse 62% 46% at 6% 0%,
      rgba(37, 99, 235, 0.08),
      transparent 68%
    ),
    radial-gradient(
      ellipse 42% 34% at 100% 18%,
      rgba(226, 96, 63, 0.035),
      transparent 70%
    ),
    linear-gradient(180deg, #f8fbff 0%, var(--bg-base) 58%, #ebf4ff 100%);
  font-family: var(--font-body-cn);
  font-size: 15px;
  line-height: 1.65;
  text-spacing-trim: trim-start allow-end;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a,
label,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

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

.announcement {
  min-height: 34px;
  padding: 7px 20px;
  color: #eff6ff;
  background: var(--ink);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 10px clamp(20px, 5vw, 64px);
  background: rgba(248, 251, 255, 0.9);
  border-bottom: 1px solid rgba(219, 234, 254, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  width: clamp(172px, 18vw, 210px);
  flex: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.nav-active {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  font-weight: 500;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

main {
  position: relative;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  gap: clamp(32px, 4.6vw, 62px);
  align-items: start;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 62px) 0 clamp(54px, 7vw, 84px);
}

.intro {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding-top: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.intro h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(38px, 3.8vw, 50px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
}

.intro-title-sub {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 0.68em;
  line-height: 1.28;
}

.intro-lede {
  max-width: 42ch;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.78;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.intro-fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

.intro-fact svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.method-list {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
}

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

.method-index {
  padding-top: 1px;
  color: var(--orange);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.method-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.method-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.rail-rule {
  width: 100%;
  height: 1px;
  margin: 22px 0 15px;
  background: var(--line);
}

.rail-kicker {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.rail-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  justify-items: center;
  min-height: 57px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
}

.rail-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 1px;
  background: var(--line);
}

.rail-step-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 10px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.rail-step.current {
  color: var(--ink);
  font-weight: 600;
}

.rail-step.current .rail-step-node {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.rail-step.done {
  color: var(--blue);
}

.rail-step.done .rail-step-node {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.24);
}

.rail-step.done:not(:last-child)::after {
  background: rgba(37, 99, 235, 0.42);
}

.rail-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.rail-selection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.rail-selection-label svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.rail-selection strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
}

.tool {
  position: relative;
  min-width: 0;
  min-height: 680px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 82%, var(--orange) 82% 100%);
}

.state {
  padding: clamp(28px, 4vw, 42px);
}

.state-heading {
  margin-bottom: 24px;
}

.state-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.state-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0;
}

.state-subtitle {
  max-width: 50ch;
  margin: 7px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}

.platform-badge svg {
  width: 14px;
  height: 14px;
}

.platform-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.field-label svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
}

.field-rate {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.field-rate strong {
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.field-rate b,
.field-min b {
  font-weight: 600;
}

.field-min {
  margin-left: 4px;
  color: #7c8ba1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.choice:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.choice:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice.selected {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.platform-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(37, 99, 235, 0.035);
  border: 1px solid var(--line-subtle);
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1.6;
}

.platform-note svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--orange);
  flex: none;
}

.platform-note strong {
  color: var(--text);
  font-weight: 500;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 26px 24px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.035), transparent 52%),
    var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragging {
  outline: none;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 58%),
    var(--surface);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.045);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 15px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
}

.upload-mark svg {
  width: 24px;
  height: 24px;
}

.dropzone h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.dropzone p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 19px;
  color: #ffffff;
  background: var(--orange);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 5px 16px rgba(226, 96, 63, 0.22);
}

.upload-action svg {
  width: 17px;
  height: 17px;
}

.upload-error {
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.selected-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.file-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
}

.file-symbol svg {
  width: 21px;
  height: 21px;
}

.file-detail {
  min-width: 0;
}

.file-detail strong,
.file-detail span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.file-detail span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  color: var(--danger);
  border-color: rgba(196, 61, 61, 0.42);
}

.icon-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.quote-block {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-subtle);
}

.quote-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.quote-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.quote-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line-subtle);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.metric strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  white-space: nowrap;
}

.metric strong b {
  font-weight: 600;
}

.metric-emphasis strong {
  color: var(--orange-deep);
}

.quote-hint {
  margin: 0;
  padding: 9px 16px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.045);
  border-top: 1px solid var(--line-subtle);
  font-size: 11.5px;
  line-height: 1.55;
}

.payment-field {
  min-width: 0;
  margin-top: 18px;
}

.payment-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 15px;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.payment-choice:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.payment-choice.selected {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.38);
}

.payment-choice:disabled,
.payment-choice.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.payment-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.payment-mark.wechat {
  color: #176b48;
  background: #e3f3e8;
}

.payment-mark.alipay {
  color: #1768b0;
  background: #e5f0fa;
}

.payment-mark svg {
  width: 18px;
  height: 18px;
}

.payment-choice strong,
.payment-choice small {
  display: block;
  min-width: 0;
}

.payment-choice strong {
  color: inherit;
  font-size: 12px;
  font-weight: 500;
}

.payment-choice small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.payment-choice.selected .radio-dot {
  background: var(--blue);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--blue);
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease,
    transform 150ms ease, opacity 150ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  color: #ffffff;
  background: var(--orange);
  border: 1px solid var(--orange);
  box-shadow: 0 5px 16px rgba(226, 96, 63, 0.2);
}

.primary-button:hover:not(:disabled) {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.secondary-button:hover:not(:disabled) {
  background: var(--bg-raised);
  border-color: var(--line-strong);
}

.compact-button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.text-button {
  display: flex;
  margin: 10px auto 0;
  padding: 4px 8px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 500;
}

.text-button:hover {
  color: var(--ink);
}

.service-alert {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(196, 61, 61, 0.2);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.payment-footnote {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.feature-item svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
  flex: none;
}

.order-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto clamp(54px, 7vw, 84px);
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-number-row h2 {
  margin: 0;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  line-height: 1.4;
}

.status-badge {
  flex: none;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.warning {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(196, 61, 61, 0.18);
}

.status-badge.success {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(22, 128, 91, 0.18);
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
}

.order-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #8494aa;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.order-progress-step::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.order-progress-step:first-child::before {
  display: none;
}

.order-progress-step svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #8798ad;
  background: var(--bg-raised);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.order-progress-step.done {
  color: var(--success);
}

.order-progress-step.done svg {
  color: #ffffff;
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.order-progress-step.done::before,
.order-progress-step.active::before {
  background: var(--blue);
}

.order-progress-step.active {
  color: var(--blue);
  font-weight: 600;
}

.order-progress-step.active svg {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
}

.order-main {
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.order-message {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.payment-stage {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-wrap {
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.qr-canvas img,
.qr-canvas canvas {
  display: block;
  width: 154px !important;
  height: 154px !important;
}

#payQrImage {
  width: 154px;
  height: 154px;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8a9bb2;
}

.qr-placeholder svg {
  width: 50px;
  height: 50px;
}

.payment-copy > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.payment-copy > strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 19px;
}

.payment-copy > strong b {
  color: var(--orange-deep);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.payment-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.action-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
}

.stage-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 7px;
}

.stage-icon svg {
  width: 22px;
  height: 22px;
}

.action-stage h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.action-stage p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.65;
}

.action-warning {
  background: var(--danger-soft);
  border-color: rgba(196, 61, 61, 0.18);
}

.action-warning .stage-icon {
  color: var(--danger);
  border-color: rgba(196, 61, 61, 0.18);
}

.action-success {
  background: var(--success-soft);
  border-color: rgba(22, 128, 91, 0.18);
}

.action-success .stage-icon {
  color: var(--success);
  border-color: rgba(22, 128, 91, 0.18);
}

.evidence-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.evidence-block strong {
  color: var(--ink);
  font-size: 12px;
}

.evidence-block p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.evidence-block #evidenceStatus {
  grid-column: 1 / -1;
  color: var(--success);
  font-size: 11px;
}

.order-summary {
  min-width: 0;
  align-self: start;
}

.order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.order-summary span {
  color: var(--muted);
  font-size: 11px;
}

.order-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.order-summary .summary-contact {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.order-summary .secondary-button {
  width: 100%;
  margin-top: 18px;
}

.notes-section,
.questions-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 64px) 0;
}

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

.notes-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(400px, 1.2fr);
  gap: 8px 50px;
  align-items: end;
  margin-bottom: 28px;
}

.notes-heading .section-kicker {
  grid-column: 1 / -1;
}

.notes-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.3;
}

.notes-heading p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.notes-heading.compact {
  display: block;
  margin-bottom: 18px;
}

.notes-heading.compact h2 {
  margin-top: 4px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.notes-grid article {
  position: relative;
  min-height: 210px;
  padding: 24px 20px 18px 0;
  border-right: 1px solid var(--line);
}

.notes-grid article:not(:first-child) {
  padding-left: 20px;
}

.notes-grid article:last-child {
  border-right: 0;
}

.notes-grid article > span {
  position: absolute;
  top: 21px;
  right: 16px;
  color: #c2cee0;
  font-family: Georgia, serif;
  font-size: 24px;
}

.notes-grid svg {
  width: 27px;
  height: 27px;
  margin-bottom: 28px;
  color: var(--blue);
}

.notes-grid h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.notes-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.question-list details {
  border-top: 1px solid var(--line);
}

.question-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.question-list summary {
  position: relative;
  padding: 15px 34px 15px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.question-list summary::-webkit-details-marker {
  display: none;
}

.question-list summary::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 5px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 400;
}

.question-list details[open] summary::after {
  content: "−";
}

.question-list p {
  margin: -4px 34px 17px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: #9fb4ce;
  background: var(--ink);
  font-size: 12px;
}

footer > div {
  min-width: 0;
}

footer img {
  width: 154px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

footer p {
  margin: 7px 0 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 7px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.24);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.spinning {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: min(760px, calc(100% - 40px));
    padding-top: 38px;
  }

  .intro {
    position: static;
    order: 2;
    padding-inline: 4px;
  }

  .tool {
    order: 1;
    width: 100%;
    min-height: 0;
  }

  .intro h1 {
    font-size: clamp(38px, 5.8vw, 48px);
  }

  .intro-lede {
    max-width: 58ch;
  }

  .order-panel,
  .notes-section,
  .questions-section {
    width: min(760px, calc(100% - 40px));
  }

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

  .notes-grid article:nth-child(2) {
    border-right: 0;
  }

  .notes-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .notes-heading {
    grid-template-columns: 1fr;
  }

  .notes-heading .section-kicker {
    grid-column: auto;
  }

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

  .order-main {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .order-summary .secondary-button {
    grid-column: 1 / -1;
  }
}

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

  .brand {
    width: 160px;
  }

  .site-nav {
    font-size: 12px;
  }

  .nav-active {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .nav-link {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0 4px;
    font-size: 12px;
  }

  .workspace {
    width: calc(100% - 24px);
    gap: 24px;
    padding: 24px 0 44px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .intro h1 {
    margin-bottom: 13px;
    font-size: 34px;
    line-height: 1.24;
  }

  .intro-title-sub {
    margin-top: 5px;
    font-size: 0.68em;
  }

  .intro-lede {
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
  }

  .intro-progress {
    margin-top: 22px;
  }

  .rail-step {
    min-width: 0;
    font-size: 10px;
  }

  .rail-selection {
    margin-top: 15px;
    padding-top: 13px;
  }

  .state {
    padding: 24px 16px;
  }

  .state-heading {
    margin-bottom: 22px;
  }

  .state-heading-row {
    display: block;
  }

  .state-title {
    font-size: 27px;
  }

  .state-subtitle {
    font-size: 13px;
  }

  .platform-badge {
    margin-top: 10px;
  }

  .field-label-row {
    display: block;
  }

  .field-rate {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .choice {
    min-height: 50px;
    padding-inline: 10px;
  }

  .dropzone {
    min-height: 220px;
    padding: 24px 14px;
  }

  .dropzone h3 {
    font-size: 16px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .selected-file {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    gap: 10px;
    padding-inline: 12px;
  }

  .file-symbol {
    width: 42px;
    height: 42px;
  }

  .quote-head {
    align-items: flex-start;
    padding-inline: 13px;
  }

  .quote-head span {
    max-width: 16ch;
  }

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

  .metric {
    border-bottom: 1px solid var(--line-subtle);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .payment-choice {
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    min-height: 58px;
    padding-inline: 8px;
  }

  .primary-button,
  .secondary-button {
    min-height: 48px;
  }

  .order-panel,
  .notes-section,
  .questions-section {
    width: calc(100% - 24px);
  }

  .order-panel {
    padding: 20px 16px;
  }

  .order-heading {
    display: grid;
  }

  .status-badge {
    justify-self: start;
  }

  .order-progress-step {
    font-size: 10px;
  }

  .payment-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-copy p {
    max-width: 34ch;
    margin-inline: auto;
  }

  .action-stage {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .action-stage .primary-button,
  .action-stage .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .evidence-block {
    grid-template-columns: 1fr;
  }

  .evidence-block .secondary-button {
    width: 100%;
  }

  .order-summary {
    grid-template-columns: 1fr;
  }

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

  .notes-grid article,
  .notes-grid article:not(:first-child) {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-grid article:last-child {
    border-bottom: 0;
  }

  .notes-grid svg {
    margin-bottom: 14px;
  }

  .notes-grid article > span {
    top: 18px;
  }

  footer {
    display: grid;
    padding: 22px 18px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

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

  .intro h1 {
    font-size: 31px;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .quote-head {
    display: grid;
    gap: 3px;
  }

  .quote-head span {
    max-width: none;
    text-align: left;
  }

  .rail-selection {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

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

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