@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0d10;
  --surface: rgba(22, 24, 29, 0.78);
  --surface-solid: #16181d;
  --inset: rgba(14, 15, 19, 0.72);
  --border: rgba(242, 243, 245, 0.08);
  --border-top: rgba(242, 243, 245, 0.14);
  --border-hover: rgba(242, 243, 245, 0.24);
  --text: #f2f3f5;
  --dim: #a1a7b3;
  --muted: #6c727f;
  --btn-bg: #f2f3f5;
  --btn-fg: #0c0d10;
  --ok-bg: rgba(34, 197, 94, 0.14);
  --ok-border: rgba(34, 197, 94, 0.45);
  --ok-text: #86efac;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --max: 1020px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
p,
ul,
dl,
dd,
dt {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 13, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border-top);
  color: var(--text);
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a {
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 160ms var(--ease-out);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
  outline: none;
}

/* Hero */
.hero {
  padding: 36px 0 24px;
}

.hero-context {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.hero-lead {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.55;
}

/* Segmented Tabs (single row on 360px+) */
.filter-bar {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.tab-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.tab-btn:hover,
.tab-btn:focus-visible {
  color: var(--text);
  outline: none;
}

.tab-btn:active {
  transform: scale(0.97);
}

.tab-btn.is-active {
  background: rgba(242, 243, 245, 0.1);
  border-color: var(--border-top);
  color: var(--text);
}

/* Cards */
.methods {
  padding: 4px 0 28px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
}

.card.is-hidden {
  display: none;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon,
.card-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--inset);
  border: 1px solid var(--border);
  color: var(--dim);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.card-titles {
  min-width: 0;
}

.card-titles h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.card-titles p {
  margin-top: 2px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}

.region-tag {
  margin-left: auto;
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--inset);
  border: 1px solid var(--border);
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
}

.copy-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--inset);
  border: 1px solid var(--border);
}

.copy-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.copy-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.copy-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-action {
  flex: none;
  min-height: 36px;
  min-width: 76px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-top);
  background: rgba(242, 243, 245, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.copy-action:hover,
.copy-action:focus-visible {
  background: rgba(242, 243, 245, 0.12);
  border-color: var(--border-hover);
  outline: none;
}

.copy-action:active {
  transform: scale(0.97);
}

.copy-action.is-copied {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-text);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffffff;
  outline: none;
}

.btn-secondary {
  background: rgba(242, 243, 245, 0.06);
  border: 1px solid var(--border-top);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(242, 243, 245, 0.11);
  border-color: var(--border-hover);
  outline: none;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

.card-note {
  margin-top: auto;
  color: var(--dim);
  font-size: 13px;
}

/* Details section */
.details {
  padding: 8px 0 36px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.details-block {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

.details-block h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.facts dd {
  margin-top: 2px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
}

.link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.link-list li + li {
  border-top: 1px solid var(--border);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms var(--ease-out);
}

.link-list a:hover,
.link-list a:focus-visible {
  color: #ffffff;
  outline: none;
}

.link-sub {
  color: var(--dim);
  font-size: 13px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  .hero {
    padding: 48px 0 28px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .details-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 920px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Free ad support & non-intrusive ad slots */
.support-free {
  padding: 0 0 18px;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
}

.support-copy h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.support-copy p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.45;
}

.support-btn {
  width: 100%;
}

@media (min-width: 720px) {
  .support-card {
    flex-direction: row;
    align-items: center;
  }

  .support-btn {
    width: auto;
    flex: none;
  }
}

.ad-band {
  padding: 0 0 18px;
}

.ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ad-label {
  font-size: 11px;
  color: var(--muted);
}

.ad-slot {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-728 {
  min-height: 90px;
}

.ad-slot-320 {
  min-height: 50px;
}

.ad-slot-native {
  min-height: 96px;
}

.ad-slot-300 {
  min-height: 250px;
}

.ad-band-320 {
  display: none;
}

@media (max-width: 780px) {
  .ad-band-728 {
    display: none;
  }
  .ad-band-320 {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
