:root {
  --bg-0: #060a12;
  --bg-1: #0b111a;
  --bg-2: #131c2a;
  --panel: rgba(13, 19, 28, 0.72);
  --panel-inner: rgba(6, 10, 18, 0.6);
  --panel-border: rgba(0, 154, 168, 0.28);
  --panel-border-strong: rgba(0, 184, 199, 0.6);
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --text: #f1f6fc;
  --text-dim: #a8b8cc;
  --text-faint: #6f8094;
  --teal: #009aa8;
  --teal-bright: #00b8c7;
  --teal-glow: rgba(0, 154, 168, 0.5);
  --teal-glow-soft: rgba(0, 154, 168, 0.18);
  --green: #4ade80;
  --green-glow: rgba(74, 222, 128, 0.32);
  --amber: #fbbf24;
  --amber-glow: rgba(251, 191, 36, 0.28);
  --red: #f87171;
  --red-glow: rgba(248, 113, 113, 0.28);
  --slate: #94a3b8;
  --slate-glow: rgba(148, 163, 184, 0.22);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-w: 720px;
  --ease-out: cubic-bezier(0.32, 0.72, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
[hidden] { display: none !important; }

::selection { background: rgba(0, 154, 168, 0.45); color: #fff; }
::-moz-selection { background: rgba(0, 154, 168, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 154, 168, 0.25); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 154, 168, 0.5); border: 2px solid transparent; background-clip: padding-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 154, 168, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(0, 154, 168, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.vanta-bg { position: fixed; inset: 0; z-index: 0; opacity: 0.5; }
.vanta-bg canvas { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 22px 32px;
}

.ft-logo { width: 100%; height: auto; display: block; }

.header-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.header-link:hover {
  color: var(--text);
  border-color: var(--panel-border-strong);
  background: rgba(0, 154, 168, 0.06);
}
.header-link:active { transform: scale(0.98); }

/* ---------- Layout ---------- */
.site-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.view {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  animation: fadeUp 480ms var(--ease-out);
}
.view--center {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-logo {
  width: clamp(280px, 44vw, 440px);
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 24px rgba(0, 154, 168, 0.32)) drop-shadow(0 0 60px rgba(0, 154, 168, 0.12));
}

.tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 38px;
  text-shadow: 0 0 24px rgba(0, 184, 199, 0.35);
}

/* ---------- Search ---------- */
.search-form {
  margin: 0 auto;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(11, 17, 26, 0.78);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 4px 22px;
  gap: 12px;
  transition: border-color 200ms var(--ease-out), box-shadow 240ms var(--ease-out), background 200ms var(--ease-out);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.search-bar:hover {
  border-color: rgba(0, 184, 199, 0.45);
  background: rgba(15, 22, 32, 0.85);
}
.search-bar:focus-within {
  border-color: var(--panel-border-strong);
  box-shadow: 0 0 0 4px rgba(0, 184, 199, 0.14), 0 14px 44px rgba(0, 154, 168, 0.22);
  background: rgba(15, 22, 32, 0.92);
}

.search-bar.is-invalid {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(28, 14, 14, 0.7);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1), 0 6px 22px rgba(248, 113, 113, 0.16);
}
.search-bar.is-invalid:focus-within {
  border-color: rgba(248, 113, 113, 0.78);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16), 0 14px 36px rgba(248, 113, 113, 0.22);
}
.search-bar.is-invalid .search-icon { color: var(--red); }

.search-bar.shake {
  animation: shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

.search-icon { color: var(--text-faint); flex-shrink: 0; transition: color 200ms var(--ease-out); }
.search-bar:focus-within .search-icon { color: var(--teal-bright); }

#urlInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 16px 0;
  min-width: 0;
  text-align: center;
  caret-color: var(--teal-bright);
}
#urlInput::placeholder { color: var(--text-faint); text-align: center; transition: color 200ms var(--ease-out); }
#urlInput:focus { text-align: left; }
#urlInput:focus::placeholder { text-align: left; color: rgba(111, 128, 148, 0.6); }

.form-error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--red);
  font-size: 13px;
  margin: 14px 0 0;
  min-height: 22px;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms var(--ease-out), transform 240ms var(--ease-out);
  pointer-events: none;
}
.form-error.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.form-error-icon { flex-shrink: 0; }
.form-error-text { line-height: 1.4; }
.form-error-suggest {
  background: rgba(0, 184, 199, 0.1);
  border: 1px solid rgba(0, 184, 199, 0.3);
  color: var(--teal-bright);
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 160ms var(--ease-out), color 180ms var(--ease-out);
}
.form-error-suggest:hover {
  background: rgba(0, 184, 199, 0.2);
  border-color: rgba(0, 184, 199, 0.6);
  color: #ffffff;
}
.form-error-suggest:active { transform: scale(0.97); }
.form-error-suggest:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }

/* ---------- Action buttons ---------- */
.action-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out), background 200ms var(--ease-out), border-color 200ms var(--ease-out), filter 200ms var(--ease-out), color 200ms var(--ease-out);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  min-width: 130px;
  position: relative;
}
.action-btn:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.action-btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 154, 168, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.action-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 154, 168, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.08);
}
.action-btn--primary:active { transform: translateY(0); filter: brightness(0.98); }

.action-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border-color: var(--hairline-strong);
}
.action-btn--ghost:hover {
  color: var(--text);
  border-color: var(--panel-border-strong);
  background: rgba(0, 154, 168, 0.1);
  transform: translateY(-1px);
}
.action-btn--ghost:active { transform: translateY(0); background: rgba(0, 154, 168, 0.06); }

.hero-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 56px auto 0;
  max-width: 520px;
  line-height: 1.55;
  text-align: center;
}

/* ---------- Loader ---------- */
.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}
.hex-loader {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.hex-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 184, 199, 0.5);
  animation: ringPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hex-ring--2 { animation-delay: 1.1s; }
@keyframes ringPulse {
  0%   { transform: scale(0.6); opacity: 0.95; border-width: 2px; }
  100% { transform: scale(1.4); opacity: 0; border-width: 1px; }
}
.hex-icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 22px var(--teal-glow));
  animation: hexSpin 3.5s linear infinite;
}
@keyframes hexSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-status {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.loader-url {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
  word-break: break-all;
  max-width: 460px;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

/* ---------- Result ---------- */
.result-card {
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.result-status { text-align: center; margin-bottom: 30px; }

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}
.result-badge::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.25;
}
.result-card[data-status="full"]    .result-badge { color: var(--green); box-shadow: 0 0 50px var(--green-glow), inset 0 0 24px rgba(74, 222, 128, 0.15); }
.result-card[data-status="native"]  .result-badge { color: var(--teal-bright); box-shadow: 0 0 50px var(--teal-glow), inset 0 0 24px rgba(0, 184, 199, 0.18); }
.result-card[data-status="broken"]  .result-badge { color: var(--amber); box-shadow: 0 0 40px var(--amber-glow), inset 0 0 22px rgba(251, 191, 36, 0.14); }
.result-card[data-status="legacy"]  .result-badge { color: var(--amber); box-shadow: 0 0 40px var(--amber-glow), inset 0 0 22px rgba(251, 191, 36, 0.14); }
.result-card[data-status="none"]    .result-badge { color: var(--slate); box-shadow: 0 0 30px var(--slate-glow); }

.result-url {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  margin: 0 0 12px;
  word-break: break-all;
}

.result-headline {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
  color: var(--text);
}
.result-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 480px;
}

.signals {
  background: var(--panel-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.signals-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.signal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.signal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  color: var(--text-dim);
  opacity: 0;
  animation: signalIn 380ms var(--ease-out) forwards;
  min-width: 0;
}
.signal-domain { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signal-source {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  cursor: help;
}
.signal-source--live {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
}
.signal-source--configured {
  background: rgba(148, 163, 184, 0.1);
  color: var(--slate);
  border-color: rgba(148, 163, 184, 0.25);
}
.signal-source--gtm {
  background: rgba(0, 184, 199, 0.12);
  color: var(--teal-bright);
  border-color: rgba(0, 184, 199, 0.3);
}
.signal-id {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 184, 199, 0.1);
  border: 1px solid rgba(0, 184, 199, 0.25);
  color: var(--teal-bright);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  max-width: 200px;
}
.signal-id-key {
  text-transform: lowercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-size: 10.5px;
  font-weight: 600;
}
.signal-id-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .signal-id { max-width: 110px; }
}
.signal-list li:nth-child(1) { animation-delay: 60ms; }
.signal-list li:nth-child(2) { animation-delay: 140ms; }
.signal-list li:nth-child(3) { animation-delay: 220ms; }
@keyframes signalIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.signal-list li .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  transition: transform 200ms var(--ease-spring);
}
.signal-list li.found .check { background: rgba(74, 222, 128, 0.2); color: var(--green); box-shadow: 0 0 12px rgba(74, 222, 128, 0.25); }
.signal-list li.missing .check { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); }
.signal-list li.found { color: var(--text); }

/* Legacy signal: read as less important than current signals.
   Darker than --text-faint to push it visually behind modern rows. */
.signal-list li.signal-legacy { color: #4a5666; }
.signal-list li.signal-legacy.found { color: #5d6b7c; }
.signal-list li.signal-legacy .check { opacity: 0.6; }
.signal-list li.signal-legacy .signal-domain { color: inherit; }
.signal-legacy-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ---------- Scan details ---------- */
.scan-details {
  margin-bottom: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--panel-inner);
  overflow: hidden;
  transition: border-color 200ms var(--ease-out);
}
.scan-details[open] { border-color: var(--hairline-strong); }
.scan-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  list-style: none;
  user-select: none;
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.scan-details summary::-webkit-details-marker { display: none; }
.scan-details summary:hover { color: var(--text-dim); background: rgba(255, 255, 255, 0.02); }
.scan-details summary svg { transition: transform 220ms var(--ease-out); flex-shrink: 0; }
.scan-details[open] summary svg { transform: rotate(180deg); }
.scan-details summary:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: -2px; }

.scan-details-body {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--hairline);
}
.scan-stats {
  display: grid;
  grid-template-columns: minmax(0, max-content) 1fr;
  column-gap: 16px;
  row-gap: 6px;
  margin: 14px 0 18px;
  font-size: 12.5px;
}
.scan-stats dt {
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.scan-stats dd {
  margin: 0;
  color: var(--text-dim);
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.scan-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 14px 0 6px;
}
.scan-section-label:first-child { margin-top: 6px; }
.scan-section-note {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.45;
  margin: 0 0 10px;
}
.downstream-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.downstream-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  color: var(--text-dim);
  padding: 7px 11px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 5px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.downstream-list li.found {
  border-left-color: var(--green);
  color: var(--text);
}
.downstream-status {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.downstream-list li.found .downstream-status { color: var(--green); }
.downstream-list li.not-observed .downstream-status { color: var(--text-faint); }
.downstream-domain { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.downstream-tag {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 999px;
}
.candidate-url-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}
.candidate-url-list li {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  word-break: break-all;
  border-left: 2px solid rgba(0, 184, 199, 0.4);
}

/* ---------- Result CTAs ---------- */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 540px) { .cta-row { grid-template-columns: 1fr; } }

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  position: relative;
  transition: transform 180ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 200ms var(--ease-out), background 200ms var(--ease-out), filter 200ms var(--ease-out);
  border: 1px solid transparent;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.cta:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}
.cta svg {
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0.65;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.cta:hover svg { opacity: 1; transform: translate(2px, -2px); }

.cta-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
.cta-main { font-size: 15px; font-weight: 600; }

.cta--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 154, 168, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 154, 168, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.06);
}
.cta--primary:active { transform: translateY(-1px); filter: brightness(0.98); }

.cta--secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--hairline-strong);
}
.cta--secondary:hover {
  border-color: var(--panel-border-strong);
  background: rgba(0, 154, 168, 0.1);
  transform: translateY(-2px);
}
.cta--secondary:active { transform: translateY(-1px); background: rgba(0, 154, 168, 0.06); }

/* ---------- Reset button ---------- */
.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 14px;
  margin: 0 auto;
  border-radius: 999px;
  font-family: inherit;
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.reset-btn:hover {
  color: var(--teal-bright);
  background: rgba(0, 184, 199, 0.08);
  border-color: var(--panel-border);
}
.reset-btn:active { transform: scale(0.97); }
.reset-btn:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.reset-btn svg { transition: transform 220ms var(--ease-out); }
.reset-btn:hover svg { transform: translateX(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .site-header { padding: 18px 20px; }
  .hero-logo { width: clamp(220px, 70vw, 320px); margin-bottom: 10px; }
  .tagline { margin-bottom: 28px; font-size: 12px; letter-spacing: 0.28em; }
  .result-card { padding: 26px 20px; }
  .action-btn { min-width: 0; padding: 11px 18px; }
  .hero-meta { margin-top: 36px; }
  .result-headline { font-size: 24px; }
}

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