:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f9f6;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --ink: #111512;
  --ink-2: #2f3631;
  --muted: #66706a;
  --muted-2: #8b948e;
  --line: #e4e8e4;
  --line-strong: #d3d9d3;
  --black: #0b0d0c;
  --safe: #15803d;
  --safe-soft: #f0fdf4;
  --safe-line: #bbf7d0;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --warn-line: #fde68a;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-line: #fecaca;
  --info: #2563eb;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 50px rgba(17, 21, 18, 0.07);
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #dff3e5;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

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

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 36% at 50% -8%, rgba(187, 247, 208, 0.3), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fbfcfb 100%);
}

/* Header: the logo and name are always centered as one lockup. */

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px 6px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.brand-name {
  color: var(--black);
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

/* Hero */

.page {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0 34px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.08);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 730;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.hero-stop {
  color: #a7b0a9;
}

/* Scanner */

.scanner-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.scanner-card.is-scanning {
  border-color: var(--safe-line);
  box-shadow: 0 18px 50px rgba(17, 21, 18, 0.07), 0 0 0 4px rgba(21, 128, 61, 0.04);
}

.scanner-head {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}

.scanner-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.scanner-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.82fr);
  gap: 16px;
}

.field,
.qr-zone {
  border: 1px solid #e6e6e6;
  border-radius: var(--radius-md);
  background: #eeeeee;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.field {
  padding: 16px;
}

.field:focus-within {
  border-color: #b8b8b8;
  background: #eaeaea;
  box-shadow: 0 0 0 4px rgba(17, 21, 18, 0.035);
}

.text-drop {
  min-height: 210px;
  padding: 14px;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  background: #ffffff;
}

.text-drop:focus-within {
  border-color: #cfcfcf;
}

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

.field-head label,
.field-label {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.extract-info {
  color: var(--muted-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.extract-info.has-links {
  color: var(--safe);
}

textarea {
  display: block;
  width: 100%;
  min-height: 174px;
  padding: 0;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
  outline: none;
}

textarea::placeholder {
  color: #7f8882;
  opacity: 1;
}

.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

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

.qr-zone {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.qr-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10px;
}

.qr-secure svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-drop {
  flex: 1;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border: 1.5px dashed #d6ddd7;
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.qr-zone.is-dragging .qr-drop {
  border-color: var(--safe);
  background: var(--safe-soft);
  transform: scale(0.995);
}

.qr-glyph {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 14px;
  background: #f1f4f1;
  color: var(--ink);
}

.qr-glyph svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-drop strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 660;
}

.qr-drop > span:last-of-type {
  color: var(--muted-2);
  font-size: 11px;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.soft-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soft-button:hover {
  border-color: #aeb8b0;
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.qr-preview {
  flex: 1;
  min-height: 178px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--safe-line);
  border-radius: 14px;
  background: var(--safe-soft);
}

.qr-preview img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  flex: 0 0 auto;
}

.qr-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-preview-copy strong {
  font-size: 12.5px;
  font-weight: 650;
}

.qr-preview-copy span {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.icon-button.tiny {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}

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

.url-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.url-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--safe);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.url-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-chip.more {
  color: var(--muted-2);
  font-family: var(--font-sans);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--black);
  color: #ffffff;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(11, 13, 12, 0.13);
  transition: background 170ms ease, transform 170ms ease, opacity 170ms ease;
}

.primary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover {
  background: #232724;
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.primary-button.compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.button-arrow {
  font-size: 18px;
  font-weight: 500;
  transition: transform 170ms ease;
}

.primary-button:hover .button-arrow {
  transform: translateX(3px);
}

.privacy-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.privacy-line svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid var(--safe-line);
  border-radius: 11px;
  background: var(--safe-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

.status-spinner {
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(21, 128, 61, 0.2);
  border-top-color: var(--safe);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  flex: 0 0 auto;
}

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

.status-steps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-steps i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c8d0c9;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--safe);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Results */

.results-section {
  max-width: 960px;
  margin: 52px auto 0;
  padding-bottom: 40px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.results-kicker {
  margin: 0 0 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.results-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ghost-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.results-list {
  display: grid;
  gap: 14px;
}

.result-card {
  --tone: var(--muted);
  --tone-soft: var(--surface-soft);
  --tone-line: var(--line);
  --tone-bg: #ffffff;
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--tone-bg);
  box-shadow: 0 10px 32px rgba(17, 21, 18, 0.045);
  overflow: hidden;
  animation: card-rise 380ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tone);
}

.result-card[data-verdict="high"] {
  --tone: var(--danger);
  --tone-soft: var(--danger-soft);
  --tone-line: var(--danger-line);
  --tone-bg: #fff3f3;
  border-color: #f2c7c7;
}

.result-card[data-verdict="suspicious"] {
  --tone: var(--warn);
  --tone-soft: var(--warn-soft);
  --tone-line: var(--warn-line);
  --tone-bg: #fff9e8;
  border-color: #f0dfb4;
}

.result-card[data-verdict="safe"] {
  --tone: var(--safe);
  --tone-soft: var(--safe-soft);
  --tone-line: var(--safe-line);
  --tone-bg: #f0fbf3;
  border-color: #ccebd6;
}

.result-signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.result-signal-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tone-line);
  border-radius: 15px;
  background: var(--tone-soft);
  color: var(--tone);
}

.result-signal-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-signal-stem {
  flex: 1;
  width: 1px;
  min-height: 24px;
  background: linear-gradient(180deg, var(--tone-line), transparent);
}

.result-body {
  min-width: 0;
}

.result-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--tone-line);
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.result-source {
  color: var(--muted-2);
  font-size: 10.5px;
}

.result-headline {
  max-width: 820px;
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 25px);
  font-weight: 690;
  line-height: 1.45;
  letter-spacing: -0.022em;
}

.result-url {
  max-width: 820px;
  margin: 0;
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reason-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.reason-list li[data-level="danger"] .reason-icon { color: var(--danger); }
.reason-list li[data-level="warn"] .reason-icon { color: var(--warn); }
.reason-list li[data-level="info"] .reason-icon { color: var(--info); }
.reason-list li[data-level="safe"] .reason-icon { color: var(--safe); }

.reason-icon {
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: var(--muted);
}

.reason-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(17, 21, 18, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-2);
  font-size: 10px;
}

.meta-chip strong {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-advice {
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(17, 21, 18, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.result-advice summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.result-advice summary::-webkit-details-marker {
  display: none;
}

.result-advice summary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 170ms ease;
}

.result-advice[open] summary svg {
  transform: rotate(180deg);
}

.result-advice ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0 0 0 15px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.result-advice li::marker {
  color: var(--tone);
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.copy-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.result-time {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Skeleton */

.skeleton-card {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 190px;
  box-shadow: none;
  animation: none;
}

.skeleton-card::before {
  display: none;
}

.skeleton-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(100deg, #f1f4f1 20%, #e8ece8 40%, #f1f4f1 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-body {
  display: grid;
  gap: 11px;
  align-content: start;
}

.skeleton-line {
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(100deg, #f1f4f1 20%, #e8ece8 40%, #f1f4f1 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-line.line-a { width: 30%; height: 18px; }
.skeleton-line.line-b { width: 78%; height: 21px; margin-top: 5px; }
.skeleton-line.line-c { width: 57%; }
.skeleton-line.line-d { width: 42%; }

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.disclaimer {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.8;
  text-align: center;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: center;
}

.footer-mark img {
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
}

/* Camera */

.camera-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(11, 13, 12, 0.24);
}

.camera-dialog::backdrop {
  background: rgba(11, 13, 12, 0.45);
  backdrop-filter: blur(5px);
}

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

.camera-kicker {
  margin: 0 0 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.camera-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.camera-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0d0c;
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-frame {
  position: absolute;
  inset: 15%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.camera-state {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.camera-state[data-state="error"] {
  color: var(--danger);
}

.camera-hint {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
}

.camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 28px));
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 16px 46px rgba(17, 21, 18, 0.16);
  transform: translate(-50%, 0);
  animation: toast-in 200ms ease both;
}

.toast[data-tone="error"] {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: #991b1b;
}

.toast[data-tone="ok"] {
  border-color: var(--safe-line);
  background: var(--safe-soft);
  color: #166534;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.copy-helper {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

/* Responsive */

@media (max-width: 900px) {
  .page {
    padding: 0 20px;
  }

  .hero {
    padding: 26px 0 30px;
  }

  .hero h1 {
    font-size: clamp(34px, 6vw, 46px);
  }

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

  .text-drop {
    min-height: 180px;
  }

  .qr-drop,
  .qr-preview {
    min-height: 180px;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .primary-button {
    width: 100%;
  }

  .privacy-line {
    justify-content: center;
    text-align: center;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px 16px 4px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-name {
    font-size: 22px;
  }

  .page {
    padding: 0 14px;
  }

  .hero {
    padding: 22px 0 24px;
  }

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

  .hero h1 {
    font-size: clamp(29px, 8.6vw, 37px);
    line-height: 1.24;
  }

  .scanner-card {
    padding: 17px;
    border-radius: 20px;
  }

  .scanner-head {
    margin-bottom: 18px;
  }

  .scanner-head h2 {
    font-size: 21px;
  }

  .scanner-head p {
    font-size: 12px;
  }

  .field {
    padding: 14px 14px 10px;
  }

  .qr-zone {
    padding: 14px;
  }

  textarea {
    min-height: 148px;
    font-size: 14px;
  }

  .text-drop {
    min-height: 168px;
    padding: 12px;
  }

  .qr-drop,
  .qr-preview {
    min-height: 168px;
  }

  .soft-button {
    min-height: 33px;
    padding: 0 10px;
    font-size: 11px;
  }

  .action-row {
    margin-top: 16px;
  }

  .primary-button {
    min-height: 48px;
    font-size: 14px;
  }

  .scan-status {
    align-items: flex-start;
    font-size: 12px;
  }

  .status-steps {
    display: none;
  }

  .trust-row {
    gap: 10px 14px;
    margin-top: 18px;
    padding-top: 15px;
    font-size: 10px;
  }

  .results-section {
    margin-top: 38px;
  }

  .results-head h2 {
    font-size: 24px;
  }

  .result-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
    border-radius: 17px;
  }

  .result-signal {
    flex-direction: row;
  }

  .result-signal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

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

  .result-signal-stem {
    width: auto;
    height: 1px;
    min-height: 0;
    flex: 1;
    background: linear-gradient(90deg, var(--tone-line), transparent);
  }

  .result-headline {
    font-size: 19px;
    line-height: 1.5;
  }

  .result-url {
    white-space: normal;
    word-break: break-all;
  }

  .result-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .camera-dialog {
    padding: 17px;
    border-radius: 18px;
  }

  .camera-head h2 {
    font-size: 21px;
  }

  .camera-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .camera-actions .primary-button {
    width: 100%;
  }

  .camera-actions .text-button {
    align-self: center;
  }

  .site-footer {
    padding-bottom: 26px;
  }
}

@media (max-width: 370px) {
  .brand-name {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .scanner-card {
    padding: 14px;
  }

  .qr-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .soft-button {
    width: 100%;
  }
}

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