/* LookupMe – designsystem
   Mörkt tema som standard, ljust via prefers-color-scheme. Inga externa resurser. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-elev: #0d0f15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #11141b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f6;
  --text-2: #b4bacb;
  --muted: #8189a0;
  --accent: #8f80ff;
  --accent-2: #5fe3f0;
  --accent-ink: #0b0a1a;
  --accent-soft: rgba(143, 128, 255, 0.14);
  --grad: linear-gradient(120deg, #a594ff 0%, #7c6bff 40%, #4fd8ea 100%);

  --verified: #3ddc97;
  --likely: #63b3ff;
  --possible: #f5b547;
  --uncertain: #8b93a7;
  --danger: #ff6b7a;
  --warning: #f5b547;
  --ok: #3ddc97;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 10px 40px -10px rgba(124, 107, 255, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  --nav-h: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f6f9;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f1f6;
    --surface-solid: #ffffff;
    --border: rgba(15, 18, 30, 0.08);
    --border-strong: rgba(15, 18, 30, 0.16);
    --text: #0e1018;
    --text-2: #3d4356;
    --muted: #6a7187;
    --accent: #5b47ff;
    --accent-2: #0bb3c7;
    --accent-ink: #ffffff;
    --accent-soft: rgba(91, 71, 255, 0.1);
    --grad: linear-gradient(120deg, #6d5bff 0%, #5b47ff 45%, #0bb3c7 100%);
    --verified: #0f9f63;
    --likely: #1f7ae0;
    --possible: #b7790a;
    --uncertain: #6a7187;
    --danger: #d93a4e;
    --warning: #b7790a;
    --ok: #0f9f63;
    --shadow: 0 1px 2px rgba(15, 18, 30, 0.04), 0 12px 32px -16px rgba(15, 18, 30, 0.18);
    --glow: 0 10px 30px -12px rgba(91, 71, 255, 0.5);
  }
}

/* ---------- Bas ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(124, 107, 255, 0.18), transparent 70%),
    radial-gradient(40% 50% at 75% 20%, rgba(79, 216, 234, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
}
p {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent-soft);
}
[hidden] {
  display: none !important;
}
.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;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface-solid);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}
.skip-link:focus {
  top: 12px;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigering ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
  color: #fff;
}
.logo-mark .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* ---------- Knappar & fält ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  box-shadow: 0 14px 44px -10px rgba(124, 107, 255, 0.7);
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-color: var(--danger);
}
.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 1.02rem;
}
.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
}
.btn .spinner {
  display: none;
}
.btn.is-loading .spinner {
  display: block;
}
.btn.is-loading .btn-icon {
  display: none;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.field {
  display: grid;
  gap: 8px;
}
.field + .field {
  margin-top: 18px;
}
.label {
  font-weight: 600;
  font-size: 0.925rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.label .optional {
  font-weight: 450;
  color: var(--muted);
  font-size: 0.82rem;
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder {
  color: var(--muted);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input[aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
}
.code-input {
  font-family: var(--mono);
  font-size: 1.9rem;
  letter-spacing: 0.5em;
  text-align: center;
  padding-left: 0.5em;
  min-height: 66px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.check:hover {
  border-color: var(--border-strong);
}
.check input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-solid);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check input::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.2s var(--ease);
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}
.check:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--accent-soft);
}
.check-text {
  font-size: 0.925rem;
  color: var(--text-2);
}
.check-text strong {
  color: var(--text);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.segmented label {
  position: relative;
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.segmented span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
  text-align: center;
  transition: background 0.25s var(--ease), color 0.2s, box-shadow 0.25s;
}
.segmented input:checked + span {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.toggle + .toggle {
  margin-top: 10px;
}
.toggle-text {
  display: grid;
  gap: 2px;
}
.toggle-text strong {
  font-size: 0.95rem;
}
.toggle-text span {
  font-size: 0.84rem;
  color: var(--muted);
}
.switch {
  appearance: none;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease);
}
.switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.switch:checked::after {
  transform: translateX(18px);
}
.switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chips-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-solid);
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chips-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.chips-input input {
  flex: 1;
  min-width: 140px;
  border: 0;
  background: transparent;
  min-height: 34px;
  outline: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-weight: 600;
  font-size: 0.88rem;
  animation: pop 0.3s var(--ease);
}
.chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
}
.chip button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.chip .icon {
  width: 14px;
  height: 14px;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-2);
}
.notice .icon {
  margin-top: 2px;
  color: var(--accent);
}
.notice.warn .icon {
  color: var(--warning);
}
.notice.warn {
  border-color: color-mix(in srgb, var(--warning) 35%, transparent);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
}
.notice.danger {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}
.notice.danger .icon {
  color: var(--danger);
}
.notice strong {
  color: var(--text);
}

.badge {
  --c: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.no-dot::before {
  display: none;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.lvl-verified {
  --c: var(--verified);
}
.lvl-likely {
  --c: var(--likely);
}
.lvl-possible {
  --c: var(--possible);
}
.lvl-uncertain {
  --c: var(--uncertain);
}
.risk {
  --c: var(--danger);
}
.risk-medium {
  --c: var(--warning);
}

/* ---------- Landning ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  /* The rotating radar sweep must not widen the page on phones. */
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--text-2);
}
.eyebrow .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.eyebrow .dot .icon {
  width: 12px;
  height: 12px;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.hero-lead {
  margin-top: 20px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
}
.search-box {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  max-width: 560px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow);
}
.search-box .icon-wrap {
  padding-left: 12px;
  color: var(--muted);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 46px;
  font-size: 1.02rem;
  outline: none;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.search-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.search-meta .icon {
  color: var(--ok);
  width: 15px;
  height: 15px;
}
@media (max-width: 560px) {
  .search-box {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 8px;
  }
  .search-box .icon-wrap {
    display: none;
  }
  .search-box input {
    padding: 0 12px;
    flex-basis: 100%;
  }
  .search-box .btn {
    width: 100%;
  }
}

/* Radar */
.radar {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}
.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.radar-ring:nth-child(2) {
  inset: 16%;
}
.radar-ring:nth-child(3) {
  inset: 32%;
}
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(124, 107, 255, 0.28) 50deg, transparent 52deg);
  mask: radial-gradient(circle, #000 0 69%, transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 0 69%, transparent 70%);
  animation: spin 6s linear infinite;
}
.radar-core {
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 0 10px var(--accent-soft), var(--glow);
}
.radar-core .icon {
  width: 38%;
  height: 38%;
}
.radar-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 6s var(--ease) infinite;
  white-space: nowrap;
}
.radar-chip .mono {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
}
.radar-chip .brand-mark {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--surface-2);
  fill: var(--text);
}
.wordmark-mini {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.radar-chip .badge {
  padding: 2px 7px;
  font-size: 0.7rem;
}
.radar-chip:nth-of-type(1) {
  top: 8%;
  left: -4%;
}
.radar-chip:nth-of-type(2) {
  top: 30%;
  right: -6%;
  animation-delay: -2s;
}
.radar-chip:nth-of-type(3) {
  bottom: 22%;
  left: -8%;
  animation-delay: -4s;
}
.radar-chip:nth-of-type(4) {
  bottom: 4%;
  right: 6%;
  animation-delay: -1s;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .radar {
    max-width: 340px;
    margin: 8px auto 0;
  }
}
@media (max-width: 420px) {
  .radar-chip {
    font-size: 0.74rem;
  }
}

.section {
  padding: 72px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head .kicker {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.035em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon .icon {
  width: 22px;
  height: 22px;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.mono {
  --hue: 250;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: hsl(var(--hue) 90% 85%);
  background: hsl(var(--hue) 55% 30% / 0.55);
  border: 1px solid hsl(var(--hue) 60% 60% / 0.3);
}
@media (prefers-color-scheme: light) {
  .mono {
    color: hsl(var(--hue) 60% 32%);
    background: hsl(var(--hue) 80% 92%);
  }
}
.mono-lg {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  border-radius: 14px;
}

.limits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.limits li {
  display: flex;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.limits .icon {
  margin-top: 3px;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 780px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  transition: transform 0.3s var(--ease);
  color: var(--muted);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 20px 18px;
  color: var(--text-2);
}

.cta-band {
  text-align: center;
  padding: 56px 24px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.035em;
}
.cta-band p {
  margin: 12px auto 26px;
  max-width: 520px;
  color: var(--text-2);
}

/* ---------- Flöde ---------- */
.flow {
  padding: 40px 0 80px;
}
.flow-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) {
  .flow-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.stepper span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.stepper span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.stepper span.is-done::after,
.stepper span.is-active::after {
  transform: scaleX(1);
}
.flow-step h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
.flow-step > p.lead {
  margin-top: 8px;
  color: var(--text-2);
}
.flow-body {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.flow-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.flow-actions .btn-primary {
  flex: 1;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.back-link:hover {
  color: var(--text);
}
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--verified) 12%, transparent);
  color: var(--verified);
  font-weight: 600;
  font-size: 0.85rem;
}
.dev-code {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Skanning ---------- */
.scan {
  padding: 40px 0 80px;
}
.scan h2 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.scan-sub {
  margin-top: 8px;
  color: var(--text-2);
}
.source-list {
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
  list-style: none;
  padding: 0;
}
@media (max-width: 620px) {
  .source-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.source-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  animation: rise 0.45s var(--ease) both;
}
.source-item .name {
  flex: 1;
  font-weight: 550;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.status .icon {
  width: 15px;
  height: 15px;
}
.status.found {
  color: var(--verified);
}
.status.error {
  color: var(--warning);
}
.status.running .spinner {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.status.pending::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ---------- Rapport ---------- */
.report {
  padding: 32px 0 96px;
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.report-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}
.report-identity {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.report-identity span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-identity .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.report-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-2);
}
.timer-chip strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.timer-chip .icon {
  width: 15px;
  height: 15px;
}

.summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary .tile-exposure {
    grid-column: 1 / -1;
  }
}
.tile {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: rise 0.6s var(--ease) both;
}
.tile:nth-child(2) {
  animation-delay: 0.05s;
}
.tile:nth-child(3) {
  animation-delay: 0.1s;
}
.tile:nth-child(4) {
  animation-delay: 0.15s;
}
.tile-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tile-label .icon {
  width: 15px;
  height: 15px;
}
.tile-value {
  margin-top: 10px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tile-sub {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--text-2);
}
.tile-exposure {
  display: flex;
  gap: 18px;
  align-items: center;
}
.gauge {
  --p: 0;
  --c: var(--ok);
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid;
  place-items: center;
}
.gauge::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg-elev);
}
.gauge strong {
  position: relative;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.exposure-level {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.disclosure {
  margin-top: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.disclosure .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.disclosure[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}
.explain {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-2);
}
.explain ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.coverage {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.coverage > .icon {
  margin-top: 2px;
  color: var(--accent);
}
.coverage-body {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-2);
}
.coverage-body strong {
  color: var(--text);
}

.block {
  margin-top: 36px;
}
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.block-head h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.block-head p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.advice-list {
  display: grid;
  gap: 12px;
}
.advice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  animation: rise 0.5s var(--ease) both;
}
.advice-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  --c: var(--accent);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
}
.advice.high .advice-icon {
  --c: var(--danger);
}
.advice.medium .advice-icon {
  --c: var(--warning);
}
.advice h3 {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.advice p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.advice-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.link-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.link-pill .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--verified) 30%, var(--border));
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--verified) 10%, transparent), transparent 70%),
    var(--surface);
}
@media (max-width: 700px) {
  .proof {
    grid-template-columns: minmax(0, 1fr);
  }
}
.proof h3 {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proof h3 .icon {
  color: var(--verified);
}
.proof p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.token {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-solid);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.98rem;
}
.proof-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected='true'] {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.tab .count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.filters {
  margin: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--muted));
}
.filter[aria-pressed='true'] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--c, var(--muted)) 45%, transparent);
  background: color-mix(in srgb, var(--c, var(--muted)) 12%, transparent);
}
.filter[aria-pressed='false'] {
  opacity: 0.6;
}

.results {
  display: grid;
  gap: 12px;
}
.result {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s, opacity 0.3s, transform 0.3s var(--ease);
  animation: rise 0.45s var(--ease) both;
}
.result:hover {
  border-color: var(--border-strong);
}
.result.is-not-me {
  opacity: 0.45;
}
.result.is-me {
  border-color: color-mix(in srgb, var(--verified) 40%, var(--border));
}
.result-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.result-main {
  flex: 1;
  min-width: 0;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.result-meta strong {
  color: var(--text-2);
  font-weight: 600;
}
.result-title {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.result-url {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-text {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.result-text.hidden-note {
  display: flex;
  gap: 8px;
  font-style: italic;
  color: var(--muted);
}
.result-text.hidden-note .icon {
  margin-top: 3px;
}
.risk-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.confidence {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar {
  --p: 0;
  --c: var(--accent);
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  border-radius: inherit;
  background: var(--c);
  transform-origin: left;
  animation: grow 0.9s var(--ease) both;
}
.confidence .pct {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  min-width: 3.4em;
  text-align: right;
}
.reasons {
  margin: 10px 0 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}
.reasons li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-2);
}
.reasons .w {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.reasons .w.pos {
  color: var(--verified);
}
.reasons .w.neg {
  color: var(--danger);
}
.reasons .w.w-proof {
  color: var(--verified);
}
.tip {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 0.88rem;
  color: var(--text-2);
}
.tip .icon {
  color: var(--accent);
  margin-top: 2px;
}
.tip a {
  font-weight: 600;
  color: var(--text);
}
.result-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.result-actions .source {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}
.toggle-btn[aria-pressed='true'] {
  background: color-mix(in srgb, var(--verified) 14%, transparent);
  border-color: color-mix(in srgb, var(--verified) 45%, transparent);
  color: var(--verified);
}
.toggle-btn.not-me[aria-pressed='true'] {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.thumb {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.empty {
  padding: 40px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
}
.empty .icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.manual-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.manual-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.manual-link .txt {
  flex: 1;
  min-width: 0;
}
.manual-link .txt strong {
  display: block;
  font-size: 0.92rem;
}
.manual-link .txt span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-link > .icon {
  color: var(--muted);
}
.subhead {
  margin: 26px 0 12px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.banner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  font-size: 0.88rem;
  color: var(--text);
}
.banner .icon {
  color: var(--warning);
}

.end-card {
  margin-top: 48px;
  text-align: center;
  padding: 36px 24px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.end-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.end-card p {
  margin: 8px auto 20px;
  max-width: 480px;
  color: var(--text-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 550;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Textsidor ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 96px;
}
.prose h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  letter-spacing: -0.04em;
}
.prose .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.prose h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.prose h3 {
  margin-top: 24px;
  font-size: 1.08rem;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose p {
  margin-top: 12px;
}
.prose ul,
.prose ol {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.prose table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th {
  color: var(--text);
  font-weight: 600;
}
.prose td {
  color: var(--text-2);
}
.table-wrap {
  overflow-x: auto;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}
.prose .notice {
  margin-top: 18px;
}

/* ---------- Sidfot ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
}

/* ---------- Vyer & animationer ---------- */
.view {
  animation: view-in 0.5s var(--ease) both;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes pulse {
  0% {
    transform: scale(0.94);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Tillägg ---------- */
.flow-step .verified-pill + h2 {
  margin-top: 18px;
}
.chips-wrap {
  display: grid;
  gap: 8px;
}
.scan-card > .spinner {
  width: 28px;
  height: 28px;
  margin: 40px auto 14px;
  color: var(--accent);
}
.page-head {
  padding-top: 8px;
}

/* Single-column grids must not grow past their container (long URLs, nowrap text). */
.results,
.advice-list,
.flow-body,
.field,
.faq,
.limits,
.chips-wrap,
.proof-actions {
  grid-template-columns: minmax(0, 1fr);
}
.result-meta {
  overflow-wrap: anywhere;
}
.result-top > .badge {
  flex: none;
}

/* The "Vi hittar inte allt" list is also a card on the landing page – keep the card padding. */
.limits.card {
  padding: 24px;
}
.summary-explain {
  grid-column: 1 / -1;
  margin-top: 0;
  animation: rise 0.35s var(--ease) both;
}
.summary-explain ul {
  columns: 2 280px;
  column-gap: 32px;
}
.summary-explain li {
  break-inside: avoid;
  margin-bottom: 4px;
}@media (max-width: 520px) {
  .summary > .tile:nth-child(4) {
    grid-column: 1 / -1;
  }
}

/* ===================== Betalning, priser, upsell ===================== */
.center { text-align: center; justify-content: center; }

/* Prissektion på startsidan */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 920px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}
.plan.featured {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: radial-gradient(90% 120% at 50% 0%, var(--accent-soft), transparent 60%), var(--surface);
}
.plan-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; }
.plan .plan-price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.price-big { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan .plan-price .per { color: var(--muted); font-size: 0.9rem; }
.plan > p { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.plan li .icon { color: var(--ok); margin-top: 2px; flex: none; }
.plan li.muted-feature { color: var(--muted); }
.plan li.muted-feature .icon { color: var(--muted); }
.plan .btn { margin-top: 22px; }
.plan .guarantee-line { margin-top: 14px; font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; }
.plan .guarantee-line .icon { color: var(--verified); flex: none; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 8, 0.62);
  backdrop-filter: blur(4px);
  animation: fade 0.2s var(--ease);
  overflow-y: auto;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  animation: rise 0.3s var(--ease) both;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-2);
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-head { text-align: center; margin-bottom: 18px; }
.modal-head .card-icon { margin: 0 auto 12px; }
.modal-head h2 { font-size: 1.4rem; letter-spacing: -0.03em; }
.modal-head .price-big { margin-top: 8px; color: var(--accent); }
.feature-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.feature-list li .icon { color: var(--ok); flex: none; margin-top: 2px; }
.consent-group { display: grid; gap: 10px; margin: 18px 0; }
.guarantee {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--verified) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--verified) 28%, transparent);
  font-size: 0.9rem;
  color: var(--text-2);
}
.guarantee .icon { color: var(--verified); flex: none; margin-top: 2px; }
.guarantee strong { color: var(--text); }

/* Upsell i rapporten */
.upsell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: radial-gradient(70% 130% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
@media (max-width: 820px) { .upsell { grid-template-columns: 1fr; } }
.upsell h2 { margin-top: 12px; font-size: 1.6rem; letter-spacing: -0.03em; }
.upsell > .upsell-main > p { margin-top: 10px; color: var(--text-2); }
.upsell .eyebrow .dot { background: var(--accent); color: #fff; }
.upsell-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.upsell-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.upsell-list li .icon { color: var(--ok); flex: none; margin-top: 2px; }
.upsell-cta { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upsell-cta .small { max-width: 220px; }
.upsell-aside { display: flex; flex-direction: column; gap: 16px; }
.price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}
.upsell-expert {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}
.upsell-expert p { margin: 6px 0 12px; color: var(--text-2); }

/* Låsta rutor i sammanfattningen */
.tile-locked .tile-value.locked { display: flex; }
.tile-value.locked .icon { width: 28px; height: 28px; color: var(--muted); }
.tile-locked { border-style: dashed; }

.btn-row { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Betalningens returvy */
.pay-card { text-align: center; }
.pay-spinner { width: 42px; height: 42px; margin: 10px auto 22px; color: var(--accent); }
.pay-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; }
.pay-icon .icon { width: 36px; height: 36px; }
.pay-icon.done { background: color-mix(in srgb, var(--verified) 14%, transparent); color: var(--verified); }
.pay-icon.error { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.pay-icon.working { background: var(--surface-2); color: var(--accent); }
.pay-card .flow-actions { justify-content: center; margin-top: 24px; }

textarea.input { padding: 12px 16px; min-height: unset; line-height: 1.55; font-family: inherit; }

@keyframes fade { from { opacity: 0; } }
.pricing-note { margin-top: 18px; }
.admin-tag { font-weight: 500; }

/* Testmiljö */
.staging-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--text);
  background: color-mix(in srgb, var(--warning) 16%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
}
.staging-strip .icon { flex: none; color: var(--warning); }
.gate-form .field { margin-top: 4px; }
.gate-form .btn { margin-top: 14px; }

/* ============ Startsidan: Så fungerar det ============ */
.journey {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.journey li {
  display: flex;
  gap: 16px;
  padding: 24px;
}
.journey li + li { border-left: 1px solid var(--border); }
.journey h3 { font-size: 1.02rem; letter-spacing: -0.02em; }
.journey p { margin-top: 6px; color: var(--text-2); font-size: 0.93rem; }
.journey-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-ink);
  background: var(--grad);
}
@media (max-width: 860px) {
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey li + li { border-left: 0; border-top: 1px solid var(--border); }
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.tiers.is-single { grid-template-columns: minmax(0, 460px); }
.tiers.is-pair { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tier.featured {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 55%), var(--surface);
}
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.tier .plan-tag { position: static; transform: none; }
.tier-step {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier h3 { margin-top: 10px; font-size: 1.2rem; letter-spacing: -0.02em; }
.tier .plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.tier .plan-price .per { color: var(--muted); font-size: 0.9rem; }
.tier-blurb { margin-top: 10px; color: var(--text-2); font-size: 0.95rem; }
.tier-checks { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); flex: 1; }
.tier-checks-label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tier-checks ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.tier-checks li { display: flex; gap: 11px; font-size: 0.93rem; color: var(--text-2); }
.tier-checks li .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.tier-refund {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
  font-size: 0.88rem;
  font-weight: 550;
}
.tier-refund .icon { flex: none; color: var(--ok); margin-top: 1px; }
.tier .btn-block { margin-top: 18px; }
@media (max-width: 960px) {
  .tiers, .tiers.is-pair, .tiers.is-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

.guarantee-band {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--ok) 12%, transparent), transparent 70%), var(--surface);
}
.guarantee-band[hidden] { display: none; }
.guarantee-seal {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 16%, transparent);
}
.guarantee-seal .icon { width: 26px; height: 26px; }
.guarantee-band h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.guarantee-band p { margin-top: 6px; color: var(--text-2); font-size: 0.95rem; max-width: 760px; }
.guarantee-band a { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 560px) { .guarantee-band { flex-direction: column; gap: 14px; } }

/* ============ Startsidan: integritet och källor ============ */
.legal-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legal-links a { font-weight: 600; font-size: 0.95rem; }
.legal-links a::after { content: ' \2192'; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sources-section { overflow: hidden; }
.marquee {
  display: grid;
  gap: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee-track.is-reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 14px; padding-right: 14px; }
.source-tile {
  flex: none;
  width: 132px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.source-tile:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.source-tile .brand-mark { width: 30px; height: 30px; fill: currentColor; }
.source-tile .wordmark { font-weight: 780; font-size: 1.05rem; letter-spacing: -0.035em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 620px) {
  .source-tile { width: 104px; height: 60px; }
  .source-tile .brand-mark { width: 26px; height: 26px; }
  .source-tile .wordmark { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee-group[aria-hidden='true'] { display: none; }
}

/* ============ Rapport: arbetsyta med navigering ============ */
.report-shell { max-width: 1240px; }
.report-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.report-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.report-nav {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: grid;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.report-nav-group { display: grid; gap: 2px; }
.report-nav-label {
  padding: 0 10px 6px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.report-nav-item > .icon { width: 17px; height: 17px; flex: none; color: var(--muted); }
.report-nav-item:hover { background: var(--surface-2); color: var(--text); }
.report-nav-item[aria-current='page'] { background: var(--accent-soft); color: var(--text); }
.report-nav-item[aria-current='page'] > .icon { color: var(--accent); }
.report-nav-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-nav-item .count,
.finding-group-head .count {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.76rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.report-nav-lock .icon { width: 14px; height: 14px; color: var(--muted); }
.report-main { min-width: 0; outline: none; display: grid; gap: 20px; align-content: start; }
.report-main > div { display: grid; gap: 18px; align-content: start; min-width: 0; }

.section-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.section-top h2 { font-size: 1.5rem; letter-spacing: -0.03em; }
.section-top p { margin-top: 4px; color: var(--text-2); font-size: 0.95rem; max-width: 620px; }
.section-top .filters { margin: 0; }

.overview { display: grid; gap: 18px; }
.overview .summary { margin: 0; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.overview .gauge { width: 88px; height: 88px; }
.overview .gauge strong { font-size: 1.6rem; }
.overview .tile-exposure { gap: 16px; }
.overview .tile-exposure .disclosure { white-space: nowrap; }
@media (max-width: 1080px) {
  .overview .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
button.tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tile-link { transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.tile-link:hover, button.tile-locked:hover { border-color: var(--border-strong); background: var(--surface-2); }
.panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.panel-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.panel-head p { margin-top: 3px; color: var(--text-2); font-size: 0.9rem; }
.panel .advice-list { gap: 10px; }
.small-empty { padding: 24px; }

/* Träffrader */
.finding-group { display: grid; gap: 10px; }
.finding-group + .finding-group { margin-top: 10px; }
.finding-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.finding-group-help { margin-left: auto; color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.lvl-dot-verified { --c: var(--verified); }
.lvl-dot-likely { --c: var(--likely); }
.lvl-dot-possible { --c: var(--possible); }
.lvl-dot-uncertain { --c: var(--uncertain); }
.finding-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.finding + .finding,
.finding-compact + .finding-compact { border-top: 1px solid var(--border); }
.finding { transition: background 0.2s var(--ease), opacity 0.25s; }
.finding.is-open { background: var(--surface-2); }
.finding.is-not-me { opacity: 0.55; }
.finding.is-me .finding-title::after { content: ' · Du'; color: var(--verified); font-weight: 600; }
.finding-head,
.finding-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.finding-head:hover, .finding-compact:hover { background: var(--surface-2); }
.finding-head:focus-visible, .finding-compact:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.finding-lead {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.finding-lead .mono { width: 40px; height: 40px; border-radius: 12px; }
.finding-lead.brand { background: var(--surface-2); border: 1px solid var(--border); }
.finding-lead.brand .brand-mark { width: 20px; height: 20px; fill: var(--text); }
.finding-lead.thumb { background: var(--surface-2); object-fit: cover; }
.finding-lead.thumb .icon { color: var(--muted); }
.finding-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.finding-title {
  font-weight: 650;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finding-meta { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finding-flags { display: flex; gap: 6px; flex: none; }
.finding-flags .badge { padding: 3px 8px; font-size: 0.74rem; }
.finding-conf { display: flex; align-items: center; gap: 8px; flex: none; width: 112px; }
.finding-conf .bar { height: 5px; }
.finding-conf .pct { font-size: 0.78rem; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 2.8em; text-align: right; }
.finding-head > .badge, .finding-compact > .badge { flex: none; min-width: 86px; justify-content: center; }
.finding-chevron { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease); }
.finding.is-open .finding-chevron { transform: rotate(180deg); }
.finding-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px 70px;
  animation: rise 0.3s var(--ease) both;
}
.finding-body[hidden] { display: none; }
.finding-url { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.finding-body .result-text { margin: 0; }
.finding-body .risk-row { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.finding-body .tip { margin: 0; }
.finding-body .result-actions { margin: 0; }
.signals { display: grid; gap: 8px; }
.signals-label { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.signals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.signals li { display: flex; gap: 9px; font-size: 0.9rem; color: var(--text-2); }
.signals li .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.sig-proof .icon { color: var(--verified); }
.sig-for .icon { color: var(--likely); }
.sig-against .icon { color: var(--danger); }
.sig-info .icon { color: var(--muted); }

.finding-list.compact .finding-compact { padding: 12px 14px; }
.finding-list.compact .finding-lead, .finding-list.compact .finding-lead .mono { width: 36px; height: 36px; }

.hint-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.hint-card > span { flex: 1; }
.hint-card strong { color: var(--text); }
.hint-card > .icon:first-child { color: var(--accent); }
.hint-card:hover { border-color: var(--accent); }
.not-found { margin-top: 2px; }


.manual-link .finding-lead { width: 30px; height: 30px; border-radius: 50%; }
.manual-link .finding-lead.brand .brand-mark { width: 16px; height: 16px; }

@media (max-width: 1080px) {
  .finding-conf { display: none; }
}
@media (max-width: 900px) {
  .report-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .report-nav {
    position: sticky;
    top: var(--nav-h);
    z-index: 20;
    display: flex;
    gap: 6px;
    margin: 0 -16px;
    padding: 10px 16px;
    border-radius: 0;
    border-width: 1px 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .report-nav::-webkit-scrollbar { display: none; }
  .report-nav-group { display: contents; }
  .report-nav-label { display: none; }
  .report-nav-item { width: auto; flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); }
  .report-nav-item[aria-current='page'] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
  .finding-group-help { display: none; }
}
@media (max-width: 620px) {
  .finding-head, .finding-compact {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: 'lead main badge' 'lead flags flags';
    gap: 6px 12px;
    padding: 13px 14px;
  }
  .finding-head > .finding-lead, .finding-compact > .finding-lead { grid-area: lead; align-self: start; }
  .finding-head > .finding-main, .finding-compact > .finding-main { grid-area: main; }
  .finding-head > .badge, .finding-compact > .badge { grid-area: badge; min-width: 0; align-self: start; }
  .finding-flags { grid-area: flags; flex-wrap: wrap; }
  .finding-chevron, .finding-conf { display: none; }
  .finding-body { padding: 0 14px 16px; }
  .panel { padding: 16px; }
  .panel-head { flex-direction: column; }
  .section-top h2 { font-size: 1.3rem; }
  .overview .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview .tile-exposure { grid-column: 1 / -1; }
}


/* ---------- Sökprofil (formulär) ---------- */
.meter {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.meter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
.meter-top span { display: inline-flex; align-items: center; gap: 6px; }
.meter-top .icon { width: 15px; height: 15px; color: var(--accent); }
.meter-top strong { font-size: 1rem; color: var(--text); }
.meter-track {
  margin-top: 10px;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.meter-fill {
  --w: 0%;
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.5s var(--ease);
}
.meter-hint { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-row .field + .field { margin-top: 0; }
@media (max-width: 520px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Skanning: radar, konsol och räknare ---------- */
.scan-shell { max-width: 1040px; }
.scan-head { text-align: center; max-width: 720px; margin: 0 auto; }
.scan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  color: var(--accent-2);
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scan-kicker.is-done,
.scan.is-done .scan-kicker {
  border-color: color-mix(in srgb, var(--verified) 35%, transparent);
  background: color-mix(in srgb, var(--verified) 10%, transparent);
  color: var(--verified);
}
.scan-kicker .icon { width: 14px; height: 14px; }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: live 1.6s ease-out infinite;
}
.scan.is-done .live-dot { animation: none; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  100% { box-shadow: 0 0 0 9px transparent; }
}
.scan-head h2 { margin-top: 14px; }
.scan-bar {
  margin: 22px auto 0;
  max-width: 560px;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.scan-bar-fill {
  --w: 0%;
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--grad);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.scan-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s linear infinite;
}
.scan.is-done .scan-bar-fill::after { animation: none; }
@keyframes shimmer { to { transform: translateX(100%); } }
.scan-meta {
  margin: 10px auto 0;
  max-width: 560px;
  display: flex;
  justify-content: space-between;
  font: 500 0.8rem/1 var(--mono);
  color: var(--muted);
}
.scan-meta span { display: inline-flex; align-items: center; gap: 6px; }
.scan-meta .icon { width: 13px; height: 13px; }

.scan-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .scan-grid { grid-template-columns: minmax(0, 1fr); }
}
.scan-radar-wrap {
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  justify-items: center;
}
.scan-radar {
  width: 100%;
  max-width: 340px;
  height: auto;
  color: var(--accent-2);
  overflow: visible;
}
.radar-rings circle,
.radar-rings line {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
}
.radar-rings circle:nth-child(2) { stroke-dasharray: 2 5; }
.radar-sweep-g {
  transform-origin: 180px 180px;
  animation: spin 3.6s linear infinite;
  color: var(--accent-2);
}
.scan.is-done .radar-sweep-g { animation-duration: 12s; opacity: 0.35; }
.radar-core-g { color: var(--accent); }
.radar-core-disc { fill: var(--surface-solid); stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1.5; }
.radar-core-pct { fill: var(--text); font: 700 20px var(--font); letter-spacing: -0.03em; }
.beam {
  stroke: var(--accent-2);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  opacity: 0.7;
  animation: beam 0.7s linear infinite;
}
@keyframes beam { to { stroke-dashoffset: -16; } }
.node .node-dot { fill: var(--muted); opacity: 0.45; transition: fill 0.3s, opacity 0.3s; }
.node .node-halo { fill: none; stroke: transparent; stroke-width: 1.5; }
.node .node-label { fill: var(--muted); font: 500 10px var(--font); opacity: 0; transition: opacity 0.3s; }
.node.is-running .node-dot { fill: var(--accent-2); opacity: 1; }
.node.is-running .node-halo { stroke: var(--accent-2); animation: halo 1.1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.node.is-running .node-label { opacity: 0.9; fill: var(--text-2); }
.node.is-found .node-dot { fill: var(--verified); opacity: 1; }
.node.is-found .node-halo { fill: color-mix(in srgb, var(--verified) 22%, transparent); stroke: var(--verified); }
.node.is-found .node-label { opacity: 1; fill: var(--text); font-weight: 650; }
.node.is-not_found .node-dot,
.node.is-not_applicable .node-dot,
.node.is-skipped .node-dot { fill: var(--text-2); opacity: 0.6; }
.node.is-error .node-dot { fill: var(--warning); opacity: 1; }
.node.is-locked .node-dot { fill: none; stroke: var(--muted); stroke-dasharray: 2 2; opacity: 0.6; }
@keyframes halo {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.scan-phases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.phase {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.phase-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
}
.phase-mark .icon { width: 10px; height: 10px; }
.phase.is-active { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.phase.is-active .phase-mark { border-top-color: transparent; animation: spin 0.8s linear infinite; }
.phase.is-done { color: var(--text-2); }
.phase.is-done .phase-mark { background: var(--verified); border-color: var(--verified); color: var(--accent-ink); }
.phase-hits {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--verified) 18%, transparent);
  color: var(--verified);
  font-weight: 700;
  font-size: 0.72rem;
  text-align: center;
}

.console {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  max-height: 470px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #05060a;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font: 500 0.74rem/1 var(--mono);
  color: #8189a0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f3c; }
.console-title { flex: 1; }
.console-live { display: inline-flex; align-items: center; gap: 7px; color: #ff6b7a; }
.scan.is-done .console-live { color: #3ddc97; }
.console-body {
  flex: 1;
  margin: 0;
  padding: 12px 14px 16px;
  list-style: none;
  overflow-y: auto;
  font: 0.78rem/1.6 var(--mono);
  color: #b4bacb;
  scrollbar-width: thin;
}
.console-body .line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  animation: type-in 0.32s steps(14, end) both;
}
.console-body .ts { color: #545c70; }
.console-body .txt { overflow-wrap: anywhere; }
.console-body .line.is-hit .txt { color: #3ddc97; }
.console-body .line.is-warn .txt { color: #f5b547; }
.console-body .line:last-child .txt::after {
  content: '▍';
  margin-left: 2px;
  color: #5fe3f0;
  animation: blink 1s steps(1) infinite;
}
.scan.is-done .console-body .line:last-child .txt::after { content: none; }
@keyframes type-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes blink { 50% { opacity: 0; } }

.scan-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.scan-stat {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.scan-stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.scan-stat-label .icon { width: 14px; height: 14px; }
.scan-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .scan-stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .scan-stat { padding: 11px 12px; }
  .scan-stat-label { font-size: 0.72rem; }
  .scan-stat strong { font-size: 1.25rem; }
  .node .node-label { display: none; }
}
.scan-details {
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 16px;
}
.scan-details summary {
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
}
.scan-details .source-list { margin: 4px 0 14px; }
.scan-actions { justify-content: center; }
.scan-actions .btn-primary { flex: 0 1 auto; }
@media (prefers-reduced-motion: reduce) {
  .radar-sweep-g,
  .beam,
  .node.is-running .node-halo,
  .scan-bar-fill::after,
  .live-dot,
  .console-body .line { animation: none; }
}

/* ---------- Förhandsvisning och betalvägg ---------- */
.preview { padding: 36px 0 90px; }
.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 920px) {
  .preview-layout { grid-template-columns: minmax(0, 1fr); }
}
.preview-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.preview-hero .lead { margin-top: 12px; color: var(--text-2); max-width: 640px; }
.tiles {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.preview-block { margin-top: 34px; }
.preview-block .section-head { margin-bottom: 14px; }
.preview-block .section-head h2 { font-size: 1.3rem; }
.locked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.locked-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.locked-row:first-child { border-top: 0; }
.locked-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.locked-mark .brand-mark,
.locked-mark .icon { width: 18px; height: 18px; fill: currentColor; }
.locked-text { display: grid; gap: 7px; min-width: 0; }
.locked-text strong { font-size: 0.95rem; }
.skeleton {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--text) 12%, transparent) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: sheen 2.4s linear infinite;
  filter: blur(0.6px);
}
.skeleton.w1 { width: 72%; }
.skeleton.w2 { width: 54%; }
.skeleton.w3 { width: 64%; }
@keyframes sheen { to { background-position: -200% 0; } }
.locked-lock { width: 16px; height: 16px; color: var(--muted); }
.locked-more { padding: 12px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.level-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--c, var(--muted));
  background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent);
}
.level-pill.verified { --c: var(--verified); }
.level-pill.likely { --c: var(--likely); }
.level-pill.possible { --c: var(--possible); }
.level-pill.uncertain { --c: var(--uncertain); }
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan-list > li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.plan-list > li > .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.plan-list p { margin-top: 4px; }
.chip-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip.chip-soft { padding: 5px 10px; font-size: 0.78rem; font-weight: 500; }
.pay-panel {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface-solid);
  box-shadow: var(--glow), var(--shadow);
}
.pay-panel .price-tag { margin: 0; }
.pay-panel .eyebrow { justify-self: start; }
.preview-inline-cta { display: none; margin-top: 18px; }
@media (max-width: 920px) {
  .preview-inline-cta { display: flex; }
}
.pay-timer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-timer .icon { width: 14px; height: 14px; }
@media (max-width: 920px) {
  .pay-panel { position: static; }
}

/* ---------- Lösenordskoll ---------- */
.pw-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.pw-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-row .input { flex: 1 1 220px; min-width: 0; }
.pw-result:empty { display: none; }
.pw-card + .notice { margin-top: 14px; }
