/* =========================================================
   扫码验证登录 · 独立前台页面
   ========================================================= */

:root {
  --ink: #102a26;
  --ink-soft: #26413b;
  --muted: #637a73;
  --muted-light: #8aa098;
  --teal: #0f766e;
  --teal-deep: #0a4f49;
  --teal-bright: #17a394;
  --mint: #d9f3e9;
  --mint-soft: #eefaf5;
  --line: #dbe8e2;
  --line-strong: #c6d9d1;
  --paper: #fbfdfb;
  --bg: #f1f7f3;
  --danger: #b4432f;
  --danger-soft: #fbeee9;
  --warning: #9a6712;
  --shadow-lg: 0 30px 70px -38px rgba(10, 62, 55, 0.42), 0 4px 18px -10px rgba(10, 62, 55, 0.16);
  --shadow-sm: 0 8px 22px -16px rgba(10, 62, 55, 0.34);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(168, 228, 208, 0.55), transparent 64%),
    radial-gradient(900px 520px at 96% 8%, rgba(203, 235, 220, 0.6), transparent 60%),
    linear-gradient(180deg, #f5faf7 0%, #eef6f1 58%, #f2f8f4 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 35%, transparent 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.scan-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px clamp(20px, 4.2vw, 64px) 30px;
}

/* ---------- 顶部 ---------- */

.scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.scan-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #f5fffb;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal-deep));
  border-radius: 13px;
  box-shadow: 0 10px 24px -12px rgba(10, 79, 73, 0.7);
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.header-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.secure-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23, 163, 148, 0.13);
}

.secure-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(23, 163, 148, 0.35);
  border-radius: 50%;
  animation: pulse-ring 2.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- 主体 ---------- */

.scan-main {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.86fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: clamp(36px, 6vh, 68px) 0;
}

/* ---------- 左栏 ---------- */

.scan-hero {
  max-width: 590px;
  padding-top: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal-bright);
}

.scan-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.028em;
}

.scan-hero h1 em {
  color: var(--teal);
  font-style: normal;
  background: linear-gradient(105deg, var(--teal-deep) 0%, var(--teal-bright) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 500px;
  margin: 22px 0 34px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 15px 0;
}

.steps li + li {
  border-top: 1px solid rgba(198, 217, 209, 0.62);
}

.step-index {
  flex: 0 0 auto;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

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

.hero-foot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 9px 14px 9px 11px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(251, 253, 251, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-foot svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* ---------- 右栏卡片 ---------- */

.scan-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(251, 253, 251, 0.94);
  border: 1px solid rgba(219, 232, 226, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.scan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(23, 163, 148, 0.55), transparent);
  border-radius: 2px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.card-kicker {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-light);
  letter-spacing: 0.18em;
}

.card-top h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #f2f7f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.status-pill[data-tone="busy"] {
  color: var(--teal);
  background: var(--mint-soft);
  border-color: #bce7d9;
}

.status-pill[data-tone="busy"]::before {
  animation: blink-dot 1.2s ease-in-out infinite;
}

.status-pill[data-tone="success"] {
  color: #0c6b50;
  background: #e4f7ee;
  border-color: #b7e3d1;
}

.status-pill[data-tone="error"] {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #efd0c6;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- 表单 ---------- */

.scan-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-head label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-soft);
}

.field-head span {
  font-size: 10.5px;
  color: var(--muted-light);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--muted-light);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 44px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.16em;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-wrap input::placeholder {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: #a5b6b0;
  letter-spacing: 0;
}

.input-wrap input:focus {
  background: #fff;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(23, 163, 148, 0.13);
}

.field.has-error .input-wrap input {
  border-color: #d79a8a;
  box-shadow: 0 0 0 4px rgba(180, 67, 47, 0.08);
}

.clear-btn {
  position: absolute;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--muted-light);
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}

.clear-btn:hover {
  color: var(--ink);
  background: #f1f6f3;
}

.clear-btn svg {
  width: 15px;
  height: 15px;
}

.field-error {
  min-height: 0;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

/* ---------- 上传区 ---------- */

.dropzone {
  position: relative;
  display: grid;
  min-height: 154px;
  padding: 18px;
  overflow: hidden;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(238, 250, 245, 0.55), rgba(251, 253, 251, 0.4)),
    #fff;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: #8fcec0;
  background: var(--mint-soft);
}

.dropzone.is-dragover {
  border-color: var(--teal-bright);
  background: #e6f8f1;
  box-shadow: inset 0 0 0 3px rgba(23, 163, 148, 0.09);
}

.dropzone.is-busy {
  pointer-events: none;
}

.drop-idle {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
}

.drop-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
  place-items: center;
  color: var(--teal);
  background: var(--mint-soft);
  border: 1px solid #cceade;
  border-radius: 13px;
}

.drop-icon svg {
  width: 24px;
  height: 24px;
}

.drop-idle strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
}

.drop-idle > span:last-child {
  font-size: 11.5px;
  color: var(--muted-light);
}

.drop-preview {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
}

.drop-preview img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.preview-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.preview-meta strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-meta span {
  font-size: 11.5px;
  color: var(--teal);
}

.preview-meta span.is-error {
  color: var(--danger);
}

.link-btn {
  padding: 5px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
}

.link-btn:hover {
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}

.drop-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(23, 163, 148, 0.12);
}

.drop-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--teal-bright);
  animation: scan-slide 1.1s ease-in-out infinite;
}

@keyframes scan-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(290%); }
}

/* ---------- 提示与按钮 ---------- */

.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #efd5cb;
  border-radius: 11px;
}

.form-alert svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.form-alert[data-tone="warning"] {
  color: var(--warning);
  background: #fbf4e6;
  border-color: #eeddba;
}

.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  color: #f6fffb;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #12857b 0%, var(--teal-deep) 100%);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 28px -14px rgba(10, 79, 73, 0.65);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.submit-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.submit-btn:hover::after {
  transform: translateX(120%);
}

.submit-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 18px 34px -14px rgba(10, 79, 73, 0.7);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  cursor: wait;
  filter: saturate(0.72);
  opacity: 0.82;
}

.submit-btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.is-busy .spinner {
  display: inline-block;
}

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

.form-note {
  margin: -8px 0 0;
  font-size: 10.5px;
  color: var(--muted-light);
  text-align: center;
}

/* ---------- 处理进度 ---------- */

.progress {
  display: grid;
  gap: 16px;
  padding-top: 2px;
}

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.progress-head strong {
  font-size: 13px;
  font-weight: 650;
}

.progress-head span {
  font-size: 10.5px;
  color: var(--muted-light);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: #e7f0eb;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
  border-radius: inherit;
  transition: width 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.progress.is-indeterminate .progress-track span {
  width: 36%;
  animation: scan-slide 1.35s ease-in-out infinite;
}

.progress-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  color: var(--muted-light);
  transition: color 0.2s ease;
}

.progress-list .dot {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: #dce8e2;
  border-radius: 50%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.progress-list strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.progress-list small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted-light);
}

.progress-list li.is-active {
  color: var(--ink-soft);
}

.progress-list li.is-active .dot {
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(23, 163, 148, 0.14);
  animation: blink-dot 1.2s ease-in-out infinite;
}

.progress-list li.is-done {
  color: var(--ink-soft);
}

.progress-list li.is-done .dot {
  background: var(--teal);
}

.progress-list li.is-done .dot::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 3px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

.progress-list li.is-error .dot {
  background: var(--danger);
}

/* ---------- 成功结果 ---------- */

.result {
  display: grid;
  justify-items: center;
  padding: 8px 0 0;
  text-align: center;
  animation: result-in 0.42s ease both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1db49f, var(--teal-deep));
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(23, 163, 148, 0.1), 0 16px 30px -16px rgba(10, 79, 73, 0.6);
}

.result-icon svg {
  width: 30px;
  height: 30px;
}

.result h3 {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.result-sub {
  margin: 0 0 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin: 0 0 22px;
  overflow: hidden;
  text-align: left;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.result-grid > div {
  min-width: 0;
  padding: 11px 15px;
  background: #fff;
}

.result-grid dt {
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--muted-light);
  letter-spacing: 0.04em;
}

.result-grid dd {
  overflow: hidden;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-grid dd.is-good {
  color: var(--teal);
}

.result-grid dd.is-warn {
  color: var(--warning);
}

.ghost-btn {
  height: 44px;
  padding: 0 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-deep);
  background: #f2faf6;
  border: 1px solid #cfe7dd;
  border-radius: 11px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ghost-btn:hover {
  background: #e8f7f0;
  border-color: #aedccb;
}

/* ---------- 页脚与轻提示 ---------- */

.scan-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 10px;
  font-size: 10.5px;
  color: var(--muted-light);
}

.footer-sep {
  width: 3px;
  height: 3px;
  background: #b9cbc4;
  border-radius: 50%;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 20;
  max-width: min(92vw, 420px);
  padding: 10px 16px;
  font-size: 12px;
  color: #f4fffb;
  background: rgba(16, 42, 38, 0.94);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  animation: toast-in 0.24s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1020px) {
  .scan-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    max-width: 620px;
    padding: 40px 0;
  }

  .scan-hero {
    max-width: none;
  }

  .scan-hero h1 {
    font-size: clamp(31px, 6.4vw, 42px);
  }

  .hero-copy {
    margin: 18px 0 26px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(198, 217, 209, 0.62);
    border-bottom: 1px solid rgba(198, 217, 209, 0.62);
  }

  .steps li {
    flex-direction: column;
    gap: 8px;
    padding: 15px 14px;
  }

  .steps li + li {
    border-top: 0;
    border-left: 1px solid rgba(198, 217, 209, 0.62);
  }

  .steps p {
    font-size: 11.5px;
  }

  .hero-foot {
    margin-top: 22px;
  }
}

@media (max-width: 620px) {
  .scan-shell {
    padding: 18px 15px 24px;
  }

  .scan-header {
    gap: 12px;
  }

  .header-side {
    font-size: 10.5px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }

  .brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .scan-main {
    gap: 26px;
    padding: 28px 0 30px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .scan-hero h1 {
    font-size: clamp(28px, 8.6vw, 35px);
    line-height: 1.2;
  }

  .hero-copy {
    font-size: 12.5px;
    line-height: 1.8;
  }

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

  .steps li {
    flex-direction: row;
    gap: 14px;
    padding: 12px 0;
  }

  .steps li + li {
    border-top: 1px solid rgba(198, 217, 209, 0.62);
    border-left: 0;
  }

  .steps p {
    font-size: 11.5px;
  }

  .scan-card {
    padding: 22px 18px;
    border-radius: 21px;
  }

  .scan-card::before {
    left: 22px;
    right: 22px;
  }

  .card-top {
    margin-bottom: 22px;
  }

  .card-top h2 {
    font-size: 20px;
  }

  .input-wrap input {
    height: 50px;
  }

  .dropzone {
    min-height: 142px;
    padding: 15px;
  }

  .drop-preview {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .drop-preview img {
    width: 58px;
    height: 58px;
  }

  .drop-preview .link-btn {
    grid-column: 2;
    justify-self: start;
  }

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

  .scan-footer {
    font-size: 9.5px;
    line-height: 1.6;
    text-align: center;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 390px) {
  .scan-card {
    padding: 20px 15px;
  }

  .drop-idle strong {
    font-size: 12px;
  }

  .submit-btn {
    height: 50px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
