:root {
  --bg: #F2F2F2;
  --container: #E9EAEC;
  --line: #CBCDD1;
  --field-line: #A9ADB3;
  --ink: #000000;
  --accent: #0F4031;
  --accent-soft: #E7ECEA;
  --accent-line: #9FB3AC;
  --accent-bright: rgb(57, 208, 162);
  --panel: #63666D;
  --track: #27303A;
  --warn-bg: #FFF3E0;
  --warn-line: #F0C98E;
  --warn-ink: #6B3A00;
  --err-bg: #FBE9E7;
  --err-line: #E8B4AE;
  --err-ink: #7A1E15;
  --display: 'Libre Caslon Text', Georgia, serif;
  --body: 'Source Serif 4', Georgia, serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.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; }
.mono { font-family: var(--mono); }
.small { font-size: 14px; }
.strong { font-weight: 600; }

.topbar { max-width: 880px; margin: 0 auto; padding: 28px 24px 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 26px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 8px 24px 56px; display: flex; flex-direction: column; gap: 22px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 12px; }
.hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lede { font-size: 17.5px; line-height: 1.55; margin: 2px 0 6px; max-width: 640px; color: #1a1a1a; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.6vw, 40px); line-height: 1.12; letter-spacing: -0.005em; margin: 0; }
h2 { font-family: var(--display); font-size: 24px; margin: 0; }
.sub { margin: 4px 0 0; font-size: 15px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow.light { color: #E6E8EB; font-size: 12px; letter-spacing: 0.1em; }
.includes { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.checklist { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; background: var(--container); border: 1px solid var(--line); border-radius: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 10px; font-size: 15.5px; font-weight: 600; }
.checklist li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tick { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.4 11.3l3 3 6.2-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; display: inline-block; }

.price-col { flex: 1 1 220px; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 8px 0; }
.sample-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1.5px solid var(--accent); border-radius: 10px; color: var(--accent); font-weight: 600; font-size: 14.5px; text-decoration: none; box-shadow: 0 2px 6px rgba(15, 64, 49, 0.12); }
.sample-link:hover, .sample-link:focus-visible { background: var(--accent); color: #fff; }
.price-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.stamp { position: relative; background: var(--accent); color: #fff; border-radius: 18px; padding: 9px; box-shadow: 0 14px 28px rgba(15, 64, 49, 0.28); }
.seal { flex-shrink: 0; width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--accent); border: 3px solid var(--accent); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent), 0 8px 18px rgba(15, 64, 49, 0.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; transform: rotate(10deg); font-family: var(--display); font-weight: 700; line-height: 1; }
.seal-top { font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.seal-main { font-size: 14px; letter-spacing: 0.02em; white-space: nowrap; }
.stamp-inner { border: 2px dashed rgba(255, 255, 255, 0.6); border-radius: 12px; padding: 14px 30px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stamp-price { font-family: var(--display); font-weight: 700; font-size: 84px; line-height: 0.92; letter-spacing: -0.01em; display: flex; align-items: flex-start; }
.dollar { font-size: 38px; line-height: 1; margin-top: 8px; margin-right: 2px; }
.stamp-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.45; text-transform: uppercase; text-align: center; max-width: 210px; }
.tagline { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; }
.accent { color: var(--accent); }

/* Stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stepper .dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; border: 2px solid #A9ADB3; }
.stepper li.current .dot { border-color: var(--accent); color: var(--accent); background: #fff; }
.stepper li.current .lbl { font-weight: 700; }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.stepper li.done .lbl { font-weight: 600; }

/* Card */
.card { background: var(--container); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.chip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--container); border: 1px solid var(--line); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 16px; }
select, input[type=email] { font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; border-radius: 10px; border: 1px solid var(--field-line); background: #fff; color: var(--ink); max-width: 420px; width: 100%; }
select { max-width: 360px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 30px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.big { min-height: 56px; padding: 0 34px; font-size: 18px; font-weight: 700; border-radius: 12px; }
.btn-ghost { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: 0 20px; cursor: pointer; }
.link-btn { font: inherit; font-size: 14px; background: none; border: none; text-decoration: underline; min-height: 44px; padding: 0 8px; cursor: pointer; color: var(--ink); }
.link-btn.accent { color: var(--accent); font-weight: 600; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions.end { justify-content: flex-end; }
.actions.between { justify-content: space-between; }

.dropzone { position: relative; border: 2px dashed #A9ADB3; border-radius: 14px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--container); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dz-title { font-weight: 600; font-size: 17px; }
.dz-help { font-size: 14px; max-width: 460px; }
.status { font-size: 15px; }
.status.error, .error { color: var(--err-ink); background: var(--err-bg); border: 1px solid var(--err-line); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }
.confirmed { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.confirmed-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.confirmed-head .tick { width: 18px; height: 18px; }
.file-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-left: 26px; }
.file-row .mono { overflow-wrap: anywhere; }
.confirmed-note { font-size: 13px; padding-left: 26px; }

.ack { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.45; cursor: pointer; }
.ack input, .opt input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }

.discount-box { display: flex; flex-direction: column; gap: 8px; }
.discount-row { display: flex; gap: 10px; max-width: 420px; }
.discount-row input { font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; border-radius: 10px; border: 1px solid var(--field-line); background: #fff; color: var(--ink); flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.discount-row input:disabled { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.discount-msg { font-size: 14.5px; }
.discount-msg.ok { color: var(--accent); font-weight: 600; }
.discount-msg.bad { color: var(--err-ink); }
.totals { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.totals-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.totals-row.discount-line { color: var(--accent); }
.totals-row.total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 18px; }
.free-note { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.big { font-size: 22px; }
.delivery { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.delivery legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); background: #fff; }
.opt.selected { border: 2px solid var(--accent); background: var(--accent-soft); }
.opt > span { display: flex; flex-direction: column; gap: 2px; }
.opt-sub { font-size: 14px; }
.card-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--container); }
.card-box-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
#card-container { min-height: 90px; }
.test-note { font-size: 13px; color: #8A4A00; font-weight: 600; }

/* Run */
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.banner svg { flex-shrink: 0; }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.banner.ok { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.banner.err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); }
.panel { background: var(--panel); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.live { width: 10px; height: 10px; border-radius: 50%; background: #FF8A3D; animation: blink 1.1s ease-in-out infinite; }
.live.done { background: var(--accent-bright); animation: none; }
.dim { color: #F2F2F2; }
.main-progress { display: flex; flex-direction: column; gap: 10px; }
.main-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pct { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.track { height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; }
.track.big { height: 18px; border-radius: 9px; }
.fill { height: 100%; width: 0; border-radius: inherit; background-color: var(--accent-bright); transition: width 0.35s ease; }
.fill.running { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.24) 0 6px, rgba(255,255,255,0) 6px 12px); background-size: 17px 17px; animation: stripes 0.6s linear infinite; }
.panel-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.panel-side { flex: 1 1 210px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.doc { position: relative; width: 168px; height: 216px; border-radius: 8px; background: #F2F2F2; overflow: hidden; padding: 18px 16px; display: flex; flex-direction: column; gap: 9px; align-self: center; }
.doc i { display: block; height: 4px; border-radius: 2px; background: #C4C9CE; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 22px; margin-top: -11px; background: rgba(159, 179, 172, 0.55); border-top: 2px solid var(--accent); animation: scan 2.2s linear infinite; }
.stamp-done { position: absolute; right: 10px; bottom: 14px; transform: rotate(-12deg); border: 2.5px solid var(--accent); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.85); }
.advs { display: flex; flex-direction: column; gap: 10px; }
.adv { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 14px; flex-shrink: 0; background: #1F2A34; color: #E6E8EB; border: 2px solid #33404C; }
.badge.active { color: #fff; border-color: var(--accent-bright); animation: pulse 1.2s ease-in-out infinite; }
.badge.done { background: var(--accent-bright); color: #11161B; border-color: var(--accent-bright); }
.adv-name { font-size: 14px; font-weight: 600; }
.adv-status { font-size: 12.5px; color: #F2F2F2; }
.lanes { flex: 999 1 420px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lane-head { display: flex; align-items: center; gap: 10px; }
.lane-icon { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px dashed #2A2D33; }
.lane.active .lane-icon { border: 2.5px solid #33404C; border-top-color: var(--accent-bright); animation: spin 0.8s linear infinite; }
.lane.done .lane-icon { border: none; background: var(--accent-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.5 2.4 5-5' fill='none' stroke='%2311161B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.lane-name { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 600; }
.lane-status { font-family: var(--mono); font-size: 12.5px; color: #F2F2F2; white-space: nowrap; }
.lane .track { margin: 6px 0 0 28px; }
.log-wrap { border-top: 1px solid var(--track); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.log { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.log-line { display: flex; gap: 12px; }
.log-time { color: #E0E2E6; white-space: nowrap; }
.log-line.ok .log-text { color: #D9F7EA; }
.log-line.warn .log-text { color: #FFE3BF; }
.log-line.info .log-text { color: #fff; }
.report-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0 4px; text-align: center; }

.foot { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; padding: 4px 4px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--ink); }

@keyframes stripes { from { background-position: 0 0; } to { background-position: 17px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { top: 0; } to { top: 100%; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(57, 208, 162, 0.25); } 50% { box-shadow: 0 0 0 7px rgba(57, 208, 162, 0.35); } }
@media (prefers-reduced-motion: reduce) {
  .fill.running, .lane.active .lane-icon, .scan, .live, .badge.active { animation: none; }
}
@media (max-width: 560px) {
  .card { padding: 18px; }
  .stamp-price { font-size: 68px; }
  .seal { width: 92px; height: 92px; }
}
