:root {
  font-family: "DM Sans", sans-serif;
  color: #0d1b2a;
  background: #faf7f2;
  font-size: 16px;
  --navy: #0d1b2a;
  --navy-mid: #162032;
  --orange: #f16136;
  --orange-dark: #d94e28;
  --orange-soft: #fff0e9;
  --cream-light: #faf7f2;
  --ink-mid: #3a4a5c;
  --ink-light: #71849a;
  --line: #dce1e4;
  --danger: #a73636;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--cream-light); }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(24px, 6vw); background: var(--navy); border-bottom: 3px solid var(--orange); }
.brand { display: flex; gap: 18px; align-items: center; color: #f8f5f0; text-decoration: none; }
.brand img { width: 88px; height: 62px; object-fit: contain; display: block; }
.brand span { display: grid; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); }
.brand strong { font-family: "Poppins", sans-serif; font-size: .96rem; font-weight: 600; }
.brand small { color: #b8c1cb; font-size: .74rem; margin-top: 3px; }
.test-badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #ffe3d8; background: rgba(241,97,54,.16); border: 1px solid rgba(241,97,54,.4); padding: 8px 12px; border-radius: 999px; }

.shell { width: min(1160px, calc(100% - 36px)); margin: clamp(32px, 6vw, 72px) auto; display: grid; grid-template-columns: minmax(280px,.82fr) minmax(420px,1.18fr); gap: clamp(40px, 7vw, 88px); align-items: start; }
.intro { padding: 24px 0; position: sticky; top: 24px; }
.eyebrow, .step-label { font-size: .7rem; letter-spacing: .17em; font-weight: 700; color: var(--orange); margin: 0 0 12px; }
.intro h1 { font-family: "Poppins", sans-serif; color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 24px; max-width: 620px; }
.intro > p:not(.eyebrow) { font-size: 1.04rem; line-height: 1.75; color: var(--ink-mid); max-width: 520px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 20px; }
.steps li { display: flex; align-items: center; gap: 14px; color: #8695a4; }
.steps li > span { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ccd3d9; display: grid; place-items: center; font-weight: 700; }
.steps div { display: grid; }
.steps strong { font-family: "Poppins", sans-serif; font-size: .92rem; }
.steps small { margin-top: 3px; }
.steps .active { color: var(--navy); }
.steps .active > span { background: var(--orange); border-color: var(--orange); color: #fffaf6; }

.card { background: #fffefd; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 64px rgba(13,27,42,.1); overflow: hidden; position: relative; }
.card::before { content: ""; display: block; height: 5px; background: var(--orange); }
.panel { padding: 38px; display: grid; gap: 16px; }
.panel-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 4px; }
.panel-heading .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-size: 1.35rem; font-weight: 700; }
.panel h2 { font-family: "Poppins", sans-serif; color: var(--navy); font-size: 1.65rem; margin: 0; line-height: 1.25; letter-spacing: -.02em; }
.hint, .field-help { color: var(--ink-light); margin: 0; font-size: .88rem; line-height: 1.55; }
.link-button { border: 0; background: none; color: var(--orange-dark); padding: 0; text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
label { font-size: .84rem; font-weight: 700; color: var(--navy-mid); margin-top: 4px; }
input, select { width: 100%; border: 1px solid #cbd3da; border-radius: 10px; background: #fff; color: var(--navy); padding: 14px 15px; outline: none; }
input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,97,54,.12); }
.primary { border: 0; background: var(--orange); color: #fffaf6; font-weight: 700; border-radius: 10px; padding: 15px 18px; margin-top: 7px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: transform .18s ease, background .18s ease; }
.primary:hover:not(:disabled) { background: var(--orange-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { border: 1px solid #cbd3da; background: transparent; color: var(--navy); font-weight: 700; border-radius: 9px; padding: 10px 14px; cursor: pointer; }
.secondary:hover { border-color: var(--navy); }
.compact { padding: 8px 11px; font-size: .8rem; }
.company-row { display: flex; justify-content: space-between; align-items: center; background: var(--cream-light); border: 1px solid #ebe4da; border-radius: 12px; padding: 14px 16px; margin-bottom: 4px; }
.company-row div { display: grid; gap: 2px; }
.company-row small, .receipt small { font-size: .66rem; letter-spacing: .12em; color: var(--orange-dark); font-weight: 700; }
.company-row span { font-size: .8rem; color: var(--ink-light); }
.dropzone { border: 1.5px dashed #aeb8c2; border-radius: 14px; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 20px; cursor: pointer; background: #fcfbf9; transition: border-color .2s ease, background .2s ease; }
.dropzone:hover { border-color: var(--orange); background: var(--orange-soft); }
.dropzone span { font-size: .8rem; color: var(--ink-light); }
.dropzone .upload-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); font-size: 1.3rem; }
.dropzone em { font-size: .78rem; color: var(--navy); font-style: normal; margin-top: 5px; max-width: 100%; overflow-wrap: anywhere; }
.recognition { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #edf3f8; color: #294b68; font-size: .87rem; line-height: 1.45; }
.spinner { width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid #99afc2; border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.recognition.done .spinner { animation: none; border: 0; }
.recognition.done .spinner::after { content: "✓"; font-weight: 900; color: var(--orange-dark); }
.recognition.warning { background: #fff6e7; color: #72501e; }
.error { background: #fff0f0; color: var(--danger); padding: 11px 13px; border-radius: 9px; margin: 0; font-size: .88rem; }
.success { text-align: center; justify-items: center; padding: 50px 38px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); font-size: 2rem; font-weight: 900; }
.success > p:not(.step-label) { color: var(--ink-mid); margin: 0; }
.receipt { width: 100%; text-align: left; background: var(--cream-light); border: 1px solid #ebe4da; padding: 14px; border-radius: 10px; display: grid; gap: 6px; }
.receipt code { font-family: inherit; font-size: .82rem; overflow-wrap: anywhere; color: var(--ink-mid); }
footer { width: min(1160px, calc(100% - 36px)); margin: 0 auto 30px; padding-top: 18px; border-top: 1px solid #e2ddd5; display: flex; justify-content: space-between; gap: 18px; color: var(--ink-light); font-size: .78rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 22px; margin: 28px auto; }
  .intro { padding: 10px 4px; position: static; }
  .intro h1 { font-size: 2.75rem; }
  .steps { grid-template-columns: repeat(3,1fr); margin-top: 28px; gap: 8px; }
  .steps li { align-items: flex-start; }
  .steps li div { display: none; }
  .card { border-radius: 16px; }
  .panel { padding: 26px 21px; }
  .topbar { padding: 8px 18px; }
  .brand img { width: 72px; height: 52px; }
  .test-badge { font-size: .64rem; }
  footer { display: grid; gap: 8px; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .intro h1 { font-size: 2.3rem; }
  .company-row { align-items: flex-start; gap: 10px; }
  .company-row strong { font-size: .88rem; }
  .test-badge { letter-spacing: 0; }
}
