/* ==========================================================================
   webatla — design system
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f5f6f8;
  --c-bg-muted: #edeff3;
  --c-surface: #ffffff;
  --c-border: #e1e3ea;
  --c-border-strong: #c5c9d2;
  --c-text: #303642;
  --c-text-muted: #6b7280;
  --c-text-soft: #8a909d;
  --c-primary: #13715b;
  --c-primary-hover: #0e5a48;
  --c-primary-soft: #e3efeb;
  --c-link: #cc3366;
  --c-link-hover: #a8294f;
  --c-accent: #13715b;
  --c-warning: #d68a14;
  --c-danger: #cc3366;
  --c-dark: #1c2030;
  --c-dark-2: #2a3144;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 19, 48, 0.06);
  --shadow: 0 4px 18px rgba(14, 19, 48, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 19, 48, 0.14);

  --container: 1200px;
  --gap: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--c-link);
  text-decoration: none;
}
a:hover { color: var(--c-link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5 { margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.8rem; line-height: 1.2; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-bg { background: var(--c-bg-soft); }
.section-dark { background: var(--c-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.muted { color: var(--c-text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-3 { margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.btn-outline:hover { background: var(--c-primary-soft); color: var(--c-primary); border-color: var(--c-primary); }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--c-bg-muted); color: var(--c-text); }

.btn-dark {
  background: var(--c-dark);
  border-color: var(--c-dark);
}
.btn-dark:hover { background: var(--c-dark-2); border-color: var(--c-dark-2); }

.btn-light {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-light:hover { background: #dfece8; color: var(--c-primary); border-color: #dfece8; }

.btn-success {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.btn-success:hover { background: #088f6c; border-color: #088f6c; }

.btn-block { display: flex; width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--c-bg-muted);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.badge-primary { background: var(--c-primary-soft); color: var(--c-primary); border-color: transparent; }
.badge-success { background: #d6efe5; color: #0e5a48; border-color: transparent; }
.badge-warning { background: #fbe9c8; color: #95620a; border-color: transparent; }
.badge-danger  { background: #fae0ea; color: var(--c-link); border-color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-text);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px;
  background: url("/favicon.svg") center/contain no-repeat;
  display: inline-block;
  /* Hide the legacy "W" letter still present in the markup of older
     callsites — we keep the markup so the change is purely cosmetic. */
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}
.main-nav { display: flex; gap: 4px; }
/* Log in sits next to Get started on desktop (see .header-actions), so hide the
   in-nav copy there; the burger menu shows it on mobile (rule in the 700px query). */
.main-nav .nav-login { display: none; }
.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--c-text);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--c-bg-muted); text-decoration: none; }
.main-nav a.active { color: var(--c-primary); background: var(--c-primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 6px;
  cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-dark);
  color: #aab2c8;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer a { color: #d6dbeb; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer h2 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer__bottom {
  border-top: 1px solid #2a3144;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
}

/* Social icons in footer */
.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.site-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #d6dbeb;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.site-footer__social a:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 72px;
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(19,113,91,.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(204,51,102,.06), transparent 35%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--c-text-muted); margin-bottom: 28px; }
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}
.hero__stat .num { font-size: 2rem; font-weight: 800; color: var(--c-text); display: block; }
.hero__stat .lbl { color: var(--c-text-muted); font-size: .9rem; }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow); }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }

.card-tld {
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-tld__ext {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
  padding: 10px 14px;
  background: var(--c-primary-soft);
  border-radius: var(--radius);
  min-width: 72px;
  text-align: center;
}
.card-tld__meta { flex: 1; min-width: 0; }
.card-tld__title { font-weight: 600; margin-bottom: 2px; }
.card-tld__sub { color: var(--c-text-muted); font-size: .88rem; }

.card-stat {
  text-align: center;
  padding: 28px 20px;
}
.card-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--c-primary); display: block; }
.card-stat .lbl { color: var(--c-text-muted); font-size: .9rem; }

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { min-width: 100%; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}
table.data th {
  background: var(--c-bg-soft);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-muted);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--c-bg-soft); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .ext {
  font-family: var(--font-mono);
  color: var(--c-primary);
  font-weight: 600;
}

/* ---------- Filters / search bar ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  font-size: .95rem;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(19,113,91,.15); }
.search-box svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--c-text-muted);
}
.select {
  padding: 11px 32px 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6379' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center / 14px;
  font-size: .9rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--c-bg-soft);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--c-border);
}
.breadcrumbs {
  font-size: .87rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.plan {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured {
  border-color: var(--c-primary);
  box-shadow: 0 16px 40px rgba(19,113,91,.18);
  transform: translateY(-8px);
}
.plan--featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.plan h3 { margin-bottom: 8px; }
.plan .price {
  font-size: 2.6rem; font-weight: 800; margin-bottom: 4px;
  display: flex; align-items: baseline; gap: 6px;
}
.plan .price small { font-size: 1rem; color: var(--c-text-muted); font-weight: 500; }
.plan .desc { color: var(--c-text-muted); margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: .95rem;
}
.plan ul li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230aaf83' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center/contain;
}

/* ---------- Auth state UI ---------- */
.dl-card {
  background: linear-gradient(135deg, #1c2030 0%, #13715b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dl-card h3 { color: #fff; margin-bottom: 4px; }
.dl-card p { color: #c7cce0; margin: 0; }
.dl-card__meta { display: flex; gap: 24px; margin-top: 12px; font-size: .85rem; color: #a4abc4; }
.dl-card__meta span strong { color: #fff; }

.gate {
  background: var(--c-bg-soft);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.gate .lock {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.gate .lock svg { width: 24px; height: 24px; }

/* ---------- Account / Cabinet ---------- */
.cabinet {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.cab-side {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.cab-side__user {
  display: flex; gap: 12px; align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;           /* never squish into an oval when the name/email is long */
  border-radius: 50%;
  background: linear-gradient(135deg, #13715b, #1d9c7d);
  color: #fff;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Text column beside the avatar: allow it to shrink in the flex row and wrap a
   long unbreakable email (sarimo9940@dyleris.com) instead of overflowing. */
.cab-side__user > div { min-width: 0; overflow-wrap: anywhere; }
.cab-side ul { list-style: none; padding: 0; margin: 0; }
.cab-side ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--c-text);
  font-weight: 500;
  border-radius: 8px;
  font-size: .95rem;
}
.cab-side ul li a:hover { background: var(--c-bg-muted); text-decoration: none; }
.cab-side ul li a.active { background: var(--c-primary-soft); color: var(--c-primary); }
.cab-side ul li a svg { width: 18px; height: 18px; opacity: .8; }

/* min-width:0 — grid items default to min-width:auto, so a wide <pre>
   (.endpoint code samples) would blow the 1fr track past the viewport and
   give the whole PAGE a horizontal scrollbar; this keeps the scrollbar
   inside the code block instead. */
.cab-main { min-width: 0; }
.cab-main h2 { font-size: 1.5rem; margin-bottom: 4px; }
.cab-main .sub { color: var(--c-text-muted); margin-bottom: 24px; }
.cab-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }
.form-row label {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-row input, .form-row select, .form-row textarea {
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(19,113,91,.15);
}
.form-row .hint { color: var(--c-text-muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Tabs (inside cabinet pages) ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
}
.tabs a {
  padding: 12px 16px;
  color: var(--c-text-muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--c-text); text-decoration: none; }
.tabs a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ---------- Blog ---------- */
/* Featured blog post (top of /blog) — large 2-column on desktop, stacked on mobile */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 0;
  overflow: hidden;
}
.blog-featured__cover {
  background: linear-gradient(135deg, #13715b, #1d9c7d);
  color: #fff;
  padding: 48px;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
}
.blog-featured__title {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.blog-featured__badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 0;
  margin-bottom: 12px;
}
.blog-featured__body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 800px) {
  .blog-featured { grid-template-columns: 1fr; gap: 0; }
  .blog-featured__cover { padding: 28px; min-height: 200px; }
  .blog-featured__title { font-size: 1.35rem; }
  .blog-featured__body { padding: 24px; }
}

.post-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.65,.3,1), box-shadow .25s, border-color .25s;
  position: relative;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary);
}

.post-card__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #13715b 0%, #1d9c7d 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.post-card__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(0,0,0,.18), transparent 60%);
  pointer-events: none;
}
.post-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .35;
  transition: transform .5s cubic-bezier(.2,.65,.3,1);
}
.post-card:hover .post-card__cover::after {
  transform: scale(1.08);
}
.post-card__cover.alt1 { background: linear-gradient(135deg, #cc3366, #8a2447); }
.post-card__cover.alt2 { background: linear-gradient(135deg, #d68a14, #b85c2e); }
.post-card__cover.alt3 { background: linear-gradient(135deg, #2a3144, #1c2030); }
.post-card__cover-text { position: relative; z-index: 1; max-width: 90%; }

.post-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.9);
  color: var(--c-text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.post-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card__meta {
  font-size: .82rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-card__meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.post-card h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.post-card h3 a {
  color: var(--c-text);
  display: inline-block;
}
.post-card:hover h3 a { color: var(--c-primary); }

.post-card__excerpt {
  color: var(--c-text-muted);
  font-size: .92rem;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  margin-top: 4px;
}
.post-card__author {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.post-card__author .avatar {
  width: 28px;
  height: 28px;
  font-size: .72rem;
  flex-shrink: 0;
}
.post-card__author-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-primary);
  flex-shrink: 0;
}
.post-card__read-more svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.post-card:hover .post-card__read-more svg { transform: translateX(3px); }

.post {
  max-width: 760px;
  margin: 0 auto;
}
.post__hero {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #13715b, #1d9c7d);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.post h1 { font-size: 2.4rem; }
.post__meta { color: var(--c-text-muted); font-size: .9rem; margin-bottom: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.post-body { font-size: 1.05rem; line-height: 1.75; color: var(--c-text); }
.post-body h2 { margin-top: 36px; }
.post-body blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 6px 18px;
  margin: 24px 0;
  color: var(--c-text-muted);
  font-style: italic;
}

/* ---------- Dev auth toggle ---------- */
.dev-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  background: var(--c-dark);
  color: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem;
  box-shadow: var(--shadow-lg);
}
.dev-toggle__label { color: #bcc1d8; }
.dev-toggle button {
  background: #fff;
  color: var(--c-dark);
  border: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
}
.dev-toggle button.active { background: var(--c-accent); color: #fff; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #13715b 0%, #1d9c7d 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin: 0 0 8px; }
.cta-banner p { color: #d6ebe4; margin: 0; }
.cta-banner .btn-light {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.cta-banner .btn-light:hover { background: #dfece8; color: var(--c-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .cabinet { grid-template-columns: 1fr; }
  .cab-side { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .main-nav, .header-actions .desktop-only { display: none; }
  .main-nav .nav-login { display: block; } /* Log in returns to the burger menu on mobile */
  .menu-toggle { display: inline-flex; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Animations & motion
   ========================================================================== */

/* Reveal-on-scroll is PROGRESSIVE ENHANCEMENT.
   `.reveal` is fully VISIBLE by default — so server-rendered HTML is complete
   and readable for users without JS AND for search-engine / AI crawlers that
   don't execute JS or fire scroll/IntersectionObserver. The hidden→animate
   state applies ONLY when JS is active: an inline <head> script adds
   `js-anim` to <html> before first paint (no flash for JS users), and
   page-animations.js then adds `.is-visible` on scroll.
   (Previously `.reveal` was opacity:0 unconditionally — pages looked blank
   to no-JS clients and on client-side navigation.) */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}
html.js-anim .reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }
.reveal.delay-6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal, html.js-anim .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

.counter { font-variant-numeric: tabular-nums; }

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(29,156,125,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(29,156,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,156,125,0); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1d9c7d;
  animation: pulse-dot 2s ease-out infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 16px 0;
}
.marquee__track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: .95rem;
}
.marquee__track > * { display: inline-flex; align-items: center; gap: 10px; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes hero-orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(20px, -20px, 0) scale(1.05); }
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: hero-orb 10s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   Modern home & landing components
   ========================================================================== */

.gradient-text {
  background: linear-gradient(120deg, #13715b 0%, #1d9c7d 45%, #cc3366 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Prevent right-edge clipping of italic-ish glyphs (V, Y, …) when the
     gradient ends mid-letter. The padding gives the last glyph room; the
     negative margin keeps the layout width identical. */
  display: inline-block;
  padding-right: 0.08em;
  margin-right: -0.08em;
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: var(--c-primary-soft);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 24px;
}

.hero-modern {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}

/* ===== 3D animated hero stage ===== */
.hero-3d {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 40%;
  pointer-events: none;
  z-index: 0;
}
.hero-3d__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.65,.3,1);
  will-change: transform;
}

/* Receding perspective grid floor */
.hero-3d__grid {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 200%;
  height: 360px;
  transform: translateX(-50%) rotateX(70deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(19,113,91,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,113,91,.18) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 75%);
  opacity: .55;
}

/* Floating data chips */
.hero-3d__chips { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero-3d__chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-text);
  box-shadow:
    0 12px 32px rgba(19,113,91,.14),
    0 2px 6px rgba(14,19,32,.08);
  white-space: nowrap;
  transform: translate3d(-50%, -50%, var(--z, 0));
  animation: chip-float var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.hero-3d__chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(19,113,91,.18);
}
.hero-3d__chip-dot--rose { background: var(--c-link); box-shadow: 0 0 0 3px rgba(204,51,102,.18); }
.hero-3d__chip-dot--gold { background: #d68a14; box-shadow: 0 0 0 3px rgba(214,138,20,.18); }
.hero-3d__chip-meta {
  font-size: .68rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: 4px;
}

@keyframes chip-float {
  0%, 100% { transform: translate3d(-50%, -50%, var(--z, 0)) translateY(0) rotateY(-3deg); }
  50%      { transform: translate3d(-50%, -50%, var(--z, 0)) translateY(-12px) rotateY(3deg); }
}

/* Bigger card silhouette in the background — a "data card" floating */
.hero-3d__card {
  position: absolute;
  width: 220px; height: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(19,113,91,.92), rgba(29,156,125,.92));
  box-shadow: 0 30px 80px rgba(19,113,91,.35);
  transform: translate3d(-50%, -50%, var(--z, 0)) rotateY(var(--ry, 0)) rotateX(var(--rx, 0));
  animation: card-drift 12s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  overflow: hidden;
}
.hero-3d__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 20px 20px;
}
.hero-3d__card::after {
  content: 'webatla';
  position: absolute;
  bottom: 12px; left: 14px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-3d__card--rose {
  background: linear-gradient(135deg, rgba(204,51,102,.92), rgba(168,41,79,.92));
  box-shadow: 0 30px 80px rgba(204,51,102,.3);
}
.hero-3d__card--dark {
  background: linear-gradient(135deg, #1c2030, #2a3144);
  box-shadow: 0 30px 80px rgba(28,32,48,.45);
}

@keyframes card-drift {
  0%, 100% { transform: translate3d(-50%, -50%, var(--z, 0)) rotateY(var(--ry, 0)) rotateX(var(--rx, 0)); }
  50%      { transform: translate3d(-50%, calc(-50% - 14px), calc(var(--z, 0) + 30px)) rotateY(calc(var(--ry, 0) + 6deg)) rotateX(calc(var(--rx, 0) - 3deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d__chip,
  .hero-3d__card { animation: none; }
  .hero-3d__stage { transition: none; }
}

@media (max-width: 800px) {
  /* On mobile/tablet the chips and cards overlap the centered headline and
     CTAs. Hide the entire 3D layer — the gradient orbs still provide
     atmosphere. The receding grid floor would also conflict, so it's gone. */
  .hero-3d { display: none; }
}
.hero-modern h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 920px;
  margin: 0 auto 18px;
}
.hero-modern .lead {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--c-text-muted);
  font-size: 1.1rem;
}
.hero-modern__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-modern__note {
  margin-top: 22px;
  font-size: .85rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stat-strip__item { padding: 32px 24px; text-align: center; border-right: 1px solid var(--c-border); }
.stat-strip__item:last-child { border-right: 0; }
.stat-strip__num {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.stat-strip__lbl { font-size: .88rem; color: var(--c-text-muted); }
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip__item { border-bottom: 1px solid var(--c-border); }
  .stat-strip__item:nth-child(2) { border-right: 0; }
}

.section-headline {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-headline h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
}
.section-headline p {
  font-size: 1.08rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* Step / how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--c-text-muted); margin: 0; font-size: .95rem; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* Promise pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.pillar__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.pillar h4 { font-size: 1rem; margin-bottom: 4px; }
.pillar p { font-size: .9rem; color: var(--c-text-muted); margin: 0; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* CSV / sample preview */
.csv-preview {
  background: #0f1422;
  color: #d6dbeb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .82rem;
  border: 1px solid #1a2030;
}
.csv-preview__head {
  background: #1a2030;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #99aab5;
  font-size: .78rem;
}
.csv-preview__head .file { color: #5fc7a7; }
.csv-preview__scroll { overflow-x: auto; }
.csv-preview table { width: 100%; border-collapse: collapse; min-width: 620px; }
.csv-preview th, .csv-preview td { padding: 11px 16px; text-align: left; white-space: nowrap; }
.csv-preview th {
  color: #6b7a8a;
  font-weight: 500;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #1f2940;
  background: #131826;
}
.csv-preview td { border-bottom: 1px solid #161c2e; }
.csv-preview .col-domain { color: #5fc7a7; }
.csv-preview .col-meta { color: #b8bdcb; }
.csv-preview .col-mono { color: #cc7faa; }
/* Detected version after a tech name in the Technologies cell / row modal
   ("WordPress 6.9.4"). opacity (not a fixed colour) so it dims correctly on
   both the dark preview table and the light row-detail modal. */
.tech-ver { opacity: .7; font-size: .9em; }

/* Dataset card */
.datasets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
/* 3 cards per row; an incomplete last row (e.g. a 7th card) centres instead of
   hugging the left, so an odd dataset count stays visually balanced. */
.datasets > .dataset { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; }
@media (max-width: 900px) { .datasets > .dataset { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .datasets > .dataset { flex-basis: 100%; } }
.dataset {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.dataset:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--c-border-strong);
}
.dataset__head {
  display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px;
}
.dataset__name { font-size: 1.18rem; font-weight: 700; margin: 0; }
.dataset__size {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--c-text-muted);
  margin-top: 4px;
}
.dataset__desc {
  color: var(--c-text-muted);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 14px;
  /* Clamp to a uniform 3-line height so the chips / price / buttons line up
     across every card in the row (alignment). Full text stays in the DOM. */
  min-height: 4.35em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.dataset__cols {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.dataset__cols span {
  font-family: var(--font-mono);
  font-size: .72rem;
  background: var(--c-bg-muted);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--c-text);
}
/* Collapsible chip block — JS adds .is-clamped (+ measures one-row height into
   --cols-row-h) only when the chips wrap past a single line, then inserts the
   .dataset__cols-toggle button. Removing .is-clamped expands to full height. */
.dataset__cols.is-clamped {
  max-height: var(--cols-row-h, 1.7rem);
  overflow: hidden;
  margin-bottom: 8px;
}
.dataset__cols-toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
}
.dataset__cols-toggle:hover { text-decoration: underline; }
.dataset--full .dataset__cols-toggle { color: #fff; }
.dataset__inc {
  font-size: .82rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--c-primary-soft);
  border-radius: 8px;
  border-left: 2px solid var(--c-primary);
}
.dataset__inc strong { color: var(--c-primary); }
.dataset__price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 4px 0 18px;
}
.dataset__price .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dataset__price small { color: var(--c-text-muted); font-size: .82rem; }
.dataset__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.dataset__actions .btn { flex: 1 1 auto; min-width: 0; }
.dataset__note { margin: 0; font-size: .8rem; color: var(--c-text-muted); }
.dataset__note:not(:empty) { margin-top: 8px; }
.dataset__more {
  display: block;
  text-align: center;
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  padding: 6px;
  border-radius: 6px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.dataset__more:hover { color: var(--c-primary); background: var(--c-bg-soft); text-decoration: none; }
.dataset--full .dataset__more { color: rgba(255,255,255,.78); }
.dataset--full .dataset__more:hover { color: #fff; background: rgba(255,255,255,.1); }
.dataset--featured {
  border-color: var(--c-primary);
  box-shadow: 0 16px 40px rgba(19,113,91,.16);
}
.dataset--full {
  background: linear-gradient(135deg, #13715b 0%, #1d9c7d 100%);
  color: #fff;
  border: 0;
}
.dataset--full .dataset__name,
.dataset--full .dataset__price .amount { color: #fff; }
.dataset--full .dataset__desc,
.dataset--full .dataset__size,
.dataset--full .dataset__price small { color: rgba(255,255,255,.78); }
.dataset--full .dataset__cols span { background: rgba(255,255,255,.14); color: #fff; }
.dataset--full .dataset__inc { background: rgba(255,255,255,.12); border-left-color: #fff; color: #fff; }
.dataset--full .dataset__inc strong { color: #fff; }
.dataset--full .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.dataset--full .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.dataset__badge {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.dataset__badge--rose { background: var(--c-link); }
.dataset__badge--gold { background: #d68a14; }

/* Special offer card */
.special {
  background: linear-gradient(135deg, #fdf1e2, #fae0ea);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.special h3 { font-size: 1.5rem; margin-bottom: 8px; }
.special__price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.special__lines { display: grid; gap: 8px; margin-bottom: 16px; }
.special__line {
  display: flex; justify-content: space-between;
  font-size: .92rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(204,51,102,.25);
}
.special__line strong { color: var(--c-text); }
@media (max-width: 800px) { .special { grid-template-columns: 1fr; } }

/* Comparison matrix */
.matrix th, .matrix td { text-align: center; vertical-align: middle; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix .yes { color: #10b981; font-weight: 800; font-size: 1.15rem; }
.matrix .no  { color: var(--c-text-soft); }
.matrix__buy td { border-top: 2px solid var(--c-border); padding-top: 14px; }
.matrix__buy .btn { padding: 6px 16px; font-size: .82rem; }
.matrix__buy .matrix__price { font-weight: 800; font-size: 1rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.matrix__group td {
  background: var(--c-bg-soft);
  font-weight: 700;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-primary);
}

/* Use cases */
.usecase {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.usecase__role { font-family: var(--font-mono); font-size: .78rem; color: var(--c-primary); text-transform: uppercase; letter-spacing: .08em; }
.usecase__quote {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--c-text);
  margin: 0;
}
.usecase__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.usecase__metric {
  display: inline-block;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: .82rem;
  font-family: var(--font-mono);
}

/* Sticky bottom CTA bar (final sell) */
.final-bar {
  position: relative;
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
}
.final-bar::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(19,113,91,.5), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.final-bar h2 { color: #fff; font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.final-bar p { color: #c5cad6; margin: 0; }
.final-bar__price { font-family: var(--font-mono); color: #5fc7a7; }
.final-bar__cta { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
@media (max-width: 800px) { .final-bar { grid-template-columns: 1fr; padding: 32px; } }

/* ==========================================================================
   Dataset switcher (used on TLD detail pages)
   ========================================================================== */

.dataset-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .dataset-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dataset-tabs { grid-template-columns: 1fr; } }

.dataset-tab {
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.dataset-tab:hover {
  border-color: var(--c-primary);
  transform: translateY(-1px);
}
.dataset-tab.active {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 4px 14px rgba(19,113,91,.12);
}
.dataset-tab__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.dataset-tab__name {
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
}
.dataset-tab__price {
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  font-size: 1rem;
}
.dataset-tab__price small {
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: .78rem;
  margin-left: 2px;
}
.dataset-tab.active .dataset-tab__price { color: var(--c-primary); }
.dataset-tab__rows {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-text-muted);
}
.dataset-tab__rows strong { color: var(--c-text); }
.dataset-tab.active .dataset-tab__rows strong { color: var(--c-primary); }
.dataset-tab__cols {
  font-size: .82rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* CSV preview: one <table> per dataset, swapped via data-active on .preview */
.preview .ds-table { display: none; width: 100%; border-collapse: collapse; min-width: 100%; }
.preview[data-active="d1"] .ds-table[data-d="d1"],
.preview[data-active="d2"] .ds-table[data-d="d2"],
.preview[data-active="d3"] .ds-table[data-d="d3"],
.preview[data-active="d4"] .ds-table[data-d="d4"],
.preview[data-active="d5"] .ds-table[data-d="d5"],
.preview[data-active="d6"] .ds-table[data-d="d6"],
.preview[data-active="d7"] .ds-table[data-d="d7"],
.preview[data-active="d8"] .ds-table[data-d="d8"],
.preview[data-active="d9"] .ds-table[data-d="d9"],
.preview[data-active="d10"] .ds-table[data-d="d10"] { display: table; }
.preview .ds-table th,
.preview .ds-table td { padding: 11px 16px; text-align: left; white-space: nowrap; }
.preview .ds-table th {
  color: #6b7a8a;
  font-weight: 500;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #1f2940;
  background: #131826;
}
.preview .ds-table td { border-bottom: 1px solid #161c2e; }

/* Compact dataset pills (used above the preview table) */
.dataset-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
}
.dataset-pills::-webkit-scrollbar { height: 6px; }
.dataset-pills::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 999px; }
.dataset-pills::-webkit-scrollbar-track { background: transparent; }

.dataset-pill {
  flex: 0 0 auto;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.dataset-pill:hover {
  border-color: var(--c-primary);
  transform: translateY(-1px);
}
.dataset-pill.active {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 3px 12px rgba(19,113,91,.12);
}
.dataset-pill__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dataset-pill__name {
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
}
.dataset-pill__price {
  background: var(--c-bg-muted);
  color: var(--c-text);
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.dataset-pill.active .dataset-pill__price {
  background: var(--c-primary);
  color: #fff;
}
.dataset-pill__rows {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--c-text-muted);
}
.dataset-pill.active .dataset-pill__rows { color: var(--c-text); }

/* Action strip under the preview — Download preview + Buy CTA */
.preview-actions {
  margin-top: 16px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.preview-actions__info {
  color: var(--c-text-muted);
  font-size: .92rem;
}
.preview-actions__info strong { color: var(--c-text); }
.preview-actions__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Dataset landing pages (/datasets/*) — SEO + sales-optimized
   ========================================================================== */

.ds-landing-hero {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 100%);
}
.ds-landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(19,113,91,.08), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(204,51,102,.06), transparent 35%);
  pointer-events: none;
}
.ds-landing-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .ds-landing-hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
.ds-landing-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.ds-landing-hero .lead {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}
.ds-landing-hero__price-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 16px 40px rgba(14,19,32,.08);
}
.ds-landing-hero__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.ds-landing-hero__price strong {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ds-landing-hero__price small { color: var(--c-text-muted); font-size: .92rem; }
.ds-landing-hero__price-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  font-size: .9rem;
}
.ds-landing-hero__price-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--c-text);
}
.ds-landing-hero__price-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  color: var(--c-primary);
  font-weight: 700;
}

/* Quick stat strip below hero */
.ds-landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
@media (max-width: 800px) { .ds-landing-stats { grid-template-columns: 1fr 1fr; } }
.ds-landing-stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--c-border);
}
.ds-landing-stat:last-child { border-right: 0; }
.ds-landing-stat__num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.ds-landing-stat__lbl {
  font-size: .82rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  display: block;
}

/* Use-case grid */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .use-case-grid { grid-template-columns: 1fr; } }
.use-case-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, transform .15s;
}
.use-case-card:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.use-case-card__role {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.use-case-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.use-case-card p { font-size: .92rem; color: var(--c-text-muted); margin: 0; }
.use-case-card__sql {
  background: #0f1422;
  color: #d6dbeb;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  overflow-x: auto;
  margin-top: 4px;
}
.use-case-card__sql .k { color: #cc7faa; font-weight: 600; }
.use-case-card__sql .s { color: #5fc7a7; }

/* "What you get" 2-column with column chips */
.ds-includes {
  background: var(--c-bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .ds-includes { grid-template-columns: 1fr; padding: 24px; } }
.ds-includes h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.ds-includes__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.ds-includes__cols span {
  font-family: var(--font-mono);
  font-size: .78rem;
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--c-text);
}
.ds-includes__visual {
  background: linear-gradient(135deg, #13715b 0%, #1d9c7d 100%);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: #fff;
  text-align: center;
}
.ds-includes__visual strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ds-includes__visual span { color: rgba(255,255,255,.78); font-size: .92rem; }

/* Comparison vs alternatives */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.compare-col--us {
  border: 2px solid var(--c-primary);
  position: relative;
}
.compare-col--us::before {
  content: 'webatla';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--c-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.compare-col h3 { font-size: 1.1rem; margin: 0 0 14px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  padding: 6px 0;
  color: var(--c-text-muted);
}
.compare-col li::before {
  content: '✗';
  color: var(--c-text-soft);
  font-weight: 700;
  flex-shrink: 0;
  width: 18px;
}
.compare-col--us li { color: var(--c-text); }
.compare-col--us li::before { content: '✓'; color: var(--c-primary); }

/* Bottom sticky-ish CTA bar */
.ds-final-cta {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .ds-final-cta { grid-template-columns: 1fr; padding: 28px; } }
.ds-final-cta h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.ds-final-cta p { color: #c5cad6; margin: 0; }
.ds-final-cta__buttons { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   Checkout flow (pre-payment, success, cancelled)
   ========================================================================== */

/* Slim checkout header — replaces the normal site header on /checkout/* */
.checkout-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.checkout-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.checkout-header__back {
  font-size: .9rem;
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkout-header__back:hover { color: var(--c-text); text-decoration: none; }
.checkout-header__lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--c-text-muted);
  background: var(--c-bg-soft);
  border-radius: 999px;
  padding: 6px 12px;
}
.checkout-header__lock svg { width: 14px; height: 14px; color: var(--c-primary); }

/* Layout */
.checkout-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-wrap { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 48px; }
  .checkout-summary { position: static !important; }
}

.checkout-step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.checkout-step__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.checkout-step__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Only the FIRST span is the numbered green circle — a later span (e.g. the
   "optional" tag on step 3) must not inherit the circle styling. */
.checkout-step__num > span:first-child {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.checkout-step__edit {
  font-size: .85rem;
  color: var(--c-text-muted);
}

/* Period toggle (Monthly / Yearly) inside checkout */
.period-toggle {
  display: flex;
  gap: 8px;
  background: var(--c-bg-soft);
  border-radius: 12px;
  padding: 4px;
}
.period-toggle label {
  flex: 1;
  cursor: pointer;
  position: relative;
}
.period-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.period-toggle .pill {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-text-muted);
  transition: background .15s, color .15s;
}
.period-toggle input:checked + .pill {
  background: #fff;
  color: var(--c-text);
  box-shadow: 0 1px 4px rgba(14,19,32,.08);
}
.period-toggle .pill small {
  display: block;
  font-weight: 500;
  font-size: .78rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.period-toggle .pill small.save {
  color: var(--c-primary);
}

/* Add-on row */
.addon {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
}
.addon:last-child { border-bottom: 0; }
.addon input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--c-primary); }
.addon__title {
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.addon__price {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--c-text);
  font-weight: 700;
  white-space: nowrap;
}
.addon__desc {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* Delivery option (radio cards) */
.delivery-opt {
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 8px;
}
.delivery-opt:hover { border-color: var(--c-primary); }
.delivery-opt input {
  margin-top: 3px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.delivery-opt input:checked ~ * { color: var(--c-text); }
.delivery-opt:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.delivery-opt__title { font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.delivery-opt__desc { font-size: .82rem; color: var(--c-text-muted); margin: 0; }

/* Order summary sidebar */
.checkout-summary {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.checkout-summary h3 {
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: .92rem;
  border-bottom: 1px solid var(--c-border);
}
.summary-line:last-of-type { border-bottom: 0; }
.summary-line__label { color: var(--c-text); }
.summary-line__sub { color: var(--c-text-muted); font-size: .82rem; display: block; margin-top: 2px; }
.summary-line__amount {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.summary-line.muted .summary-line__amount { color: var(--c-text-muted); font-weight: 500; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 4px;
  border-top: 2px solid var(--c-text);
  margin-top: 8px;
}
.summary-total__label {
  font-weight: 700;
  font-size: 1rem;
}
.summary-total__amount {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* Confirm checkboxes — sit between the total and the pay button */
.summary-confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 14px;
}
.summary-confirm__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .15s ease, background .15s ease;
}
.summary-confirm__row:hover { border-color: var(--c-primary); }
.summary-confirm__row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.summary-confirm__row strong { color: var(--c-text); }
.summary-confirm__row a { color: var(--c-link); text-decoration: underline; }

/* "Pay with Stripe" CTA */
.btn-stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--c-text);
  color: #fff;
  border: 0;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  transition: background .15s, transform .15s;
  font-family: inherit;
}
.btn-stripe:hover { background: #1c2030; transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-stripe:active { transform: translateY(0); }
.btn-stripe:disabled { opacity: .8; cursor: wait; transform: none; }
.btn-stripe__lock {
  width: 14px; height: 14px;
}
/* Stripe wordmark embedded inside the pay button */
.btn-stripe__wordmark {
  font-family: 'Inter', sans-serif;
  color: #a5a0ff;             /* light Stripe-purple, legible on dark btn */
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-left: 2px;
}
.btn-stripe:hover .btn-stripe__wordmark { color: #c4c0ff; }

/* Divider between the two pay buttons */
.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--c-text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pay-divider::before,
.pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* Trust signals strip */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: .75rem;
  color: var(--c-text-muted);
}
.trust-row__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-row svg { width: 14px; height: 14px; color: var(--c-primary); flex-shrink: 0; }

/* Discount line */
.discount-row {
  margin-top: 14px;
  font-size: .85rem;
}
.discount-row a { color: var(--c-text-muted); }

/* Stripe redirect overlay */
.stripe-redirect {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.96);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  padding: 24px;
}
.stripe-redirect.show { display: flex; }
.stripe-redirect__spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--c-bg-muted);
  border-top-color: var(--c-text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success / cancelled hero */
.checkout-result {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 60px;
}
.checkout-result__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.checkout-result__icon--success {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  animation: pop-in .4s cubic-bezier(.2,.65,.3,1.4) both;
}
.checkout-result__icon--cancel {
  background: var(--c-bg-soft);
  color: var(--c-text-muted);
}
@keyframes pop-in {
  0%   { transform: scale(.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.checkout-result h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.checkout-result p.lead {
  color: var(--c-text-muted);
  font-size: 1.08rem;
  margin: 0 auto 28px;
  max-width: 520px;
}

.checkout-receipt {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: left;
  margin-top: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.checkout-receipt__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: .92rem;
  border-bottom: 1px solid var(--c-border);
  gap: 12px;
}
.checkout-receipt__row:last-child { border-bottom: 0; }
.checkout-receipt__row strong { color: var(--c-text); text-align: right; }
.checkout-receipt__row span { color: var(--c-text-muted); }

/* Next-steps grid on success page */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}
@media (max-width: 700px) {
  .next-steps { grid-template-columns: 1fr; }
}
.next-step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.next-step:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.next-step__title {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.next-step__title svg { width: 14px; height: 14px; color: var(--c-text-muted); }
.next-step__desc {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* ==========================================================================
   API showcase block (home page)
   ========================================================================== */

.api-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .api-showcase { grid-template-columns: 1fr; gap: 32px; }
}

.api-showcase__pillars {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 18px;
}
.api-showcase__pillars li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.api-showcase__pillars .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.api-showcase__pillars strong { display: block; margin-bottom: 2px; font-size: .98rem; }
.api-showcase__pillars small { color: var(--c-text-muted); font-size: .9rem; line-height: 1.5; display: block; }

/* Language-tabbed code block */
.code-tabs {
  background: #0f1422;
  border-radius: var(--radius-lg);
  border: 1px solid #1a2030;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(14,19,32,.18);
}
.code-tabs__head {
  display: flex;
  background: #1a2030;
  padding: 10px 12px;
  gap: 4px;
  border-bottom: 1px solid #131826;
  align-items: center;
}
.code-tabs__head .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #2a3144;
  margin-right: 4px;
}
.code-tabs__head .dot.r { background: #cc3366; }
.code-tabs__head .dot.y { background: #d68a14; }
.code-tabs__head .dot.g { background: #5fc7a7; }
.code-tabs__lang {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.code-tabs__lang button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: #99aab5;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.code-tabs__lang button:hover { color: #fff; background: rgba(255,255,255,.05); }
.code-tabs__lang button.active {
  background: var(--c-primary);
  color: #fff;
}
.code-tabs__body {
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: #d6dbeb;
  line-height: 1.7;
  overflow-x: auto;
  /* Sized to the tallest snippet (~10 lines) so the panel doesn't jump height
     when switching language tabs. em → scales with the mobile font-size too. */
  min-height: 17.5em;
}
/* white-space:pre lives on .pane, NOT the body: otherwise the whitespace text
   nodes BETWEEN panes (source newlines/indent) render as stray blank lines and
   indentation under `pre`, which is what broke when switching languages. */
.code-tabs__body .pane { display: none; white-space: pre; }
.code-tabs__body .pane.active { display: block; }
.code-tabs__body .c { color: #6b7a8a; font-style: italic; } /* comment */
.code-tabs__body .k { color: #cc7faa; font-weight: 600; }   /* keyword */
.code-tabs__body .s { color: #5fc7a7; }                     /* string */
.code-tabs__body .n { color: #d68a14; }                     /* number */
.code-tabs__body .v { color: #b8bdcb; }                     /* variable */
.code-tabs__body .h { color: #9eb5cb; }                     /* http method */

.code-tabs__resp {
  border-top: 1px solid #131826;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: #99aab5;
  background: #0a0e18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.code-tabs__resp .ok {
  color: #5fc7a7;
  font-weight: 600;
}

/* ==========================================================================
   Shared toggle slider (used in account/settings + cookie modal)
   ========================================================================== */

.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--c-border-strong);
  border-radius: 999px;
  transition: background .2s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .slider { background: var(--c-primary); }
.toggle input:checked + .slider::before { transform: translateX(18px); }
.toggle input:disabled + .slider { background: var(--c-primary); opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Long-form legal pages — sticky TOC layout (shared with FAQ)
   ========================================================================== */

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static !important; }
}

.legal-toc {
  position: sticky;
  top: 90px;
  font-size: .92rem;
}
.legal-toc h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: legal;
}
.legal-toc li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--c-text);
  font-weight: 500;
  counter-increment: legal;
}
.legal-toc li a::before {
  content: counter(legal, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--c-text-soft);
  flex-shrink: 0;
}
.legal-toc li a:hover { background: var(--c-bg-muted); text-decoration: none; }
.legal-toc li a.active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.legal-toc li a.active::before { color: var(--c-primary); }

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}
.legal-section h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section h2::before {
  content: counter(legalbody, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: .04em;
}
.legal-body { counter-reset: legalbody; }
.legal-section { counter-increment: legalbody; }

.legal-section h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}
.legal-section p,
.legal-section li {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-section ul,
.legal-section ol { padding-left: 22px; margin: 0 0 16px; }
.legal-section li { margin-bottom: 6px; }
.legal-section a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(204,51,102,.4); text-underline-offset: 2px; }
.legal-section a:not(.btn):hover { text-decoration-color: currentColor; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: .92rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.legal-table th {
  background: var(--c-bg-soft);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-muted);
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .82rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

/* ==========================================================================
   Cookie consent — banner + modal
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 96px; /* leave room for the dev-toggle bottom-right pill */
  z-index: 90;
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  animation: cookie-slide-in .3s cubic-bezier(.2,.65,.3,1) both;
}
@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
}
.cookie-banner__copy {
  flex: 1;
  min-width: 240px;
  font-size: .92rem;
  line-height: 1.5;
  color: #c5cad6;
}
.cookie-banner__copy strong { color: #fff; }
.cookie-banner__copy a {
  color: #5fc7a7;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__copy a:hover { color: #fff; }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn { font-size: .88rem; padding: 9px 14px; }
.cookie-banner__actions .btn-ghost { color: #c5cad6; border-color: transparent; }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.cookie-banner__actions .btn-light { background: #fff; color: var(--c-primary); border-color: #fff; }
.cookie-banner__actions .btn-light:hover { background: #dfece8; color: var(--c-primary); }

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,19,32,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: cookie-slide-in .25s cubic-bezier(.2,.65,.3,1) both;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.cookie-modal__lede {
  color: var(--c-text-muted);
  font-size: .92rem;
  margin: 0 0 20px;
}
.cookie-cat {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.cookie-cat__title {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-cat__pill {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--c-bg-muted);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cookie-cat__pill--required {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.cookie-cat__desc {
  font-size: .82rem;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.45;
}
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg-muted);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
}
.cookie-modal__close:hover { background: var(--c-border-strong); color: var(--c-text); }

/* ==========================================================================
   Language picker (in footer)
   ========================================================================== */

.lang-picker {
  position: relative;
  display: inline-block;
}
.lang-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #d6dbeb;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-picker__btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.lang-picker__btn svg { width: 12px; height: 12px; opacity: .7; transition: transform .15s; }
.lang-picker.is-open .lang-picker__btn svg { transform: rotate(180deg); }
.lang-picker__flag { font-size: 1rem; line-height: 1; }

.lang-picker__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #fff;
  color: var(--c-text);
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 100;
  width: 360px;
  max-width: calc(100vw - 32px);
}
.lang-picker.is-open .lang-picker__menu { display: block; }
.lang-picker__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 6px;
}
.lang-picker__head strong { font-size: .82rem; color: var(--c-text); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.lang-picker__close {
  background: transparent;
  border: 0;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 4px;
}
.lang-picker__close:hover { background: var(--c-bg-muted); color: var(--c-text); }
.lang-picker__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-height: 60vh;
  overflow-y: auto;
}
/* `.lang-picker__menu .lang-picker__item` (specificity 0,2,0) beats
   `.site-footer a` (0,1,1) which otherwise paints these light-grey for
   a dark footer background. */
.lang-picker__menu .lang-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 500;
  color: #1a2332;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.lang-picker__menu .lang-picker__item:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  text-decoration: none;
}
.lang-picker__menu .lang-picker__item.is-current {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 700;
}
.lang-picker__menu .lang-picker__item.is-current::after {
  content: '✓';
  margin-left: auto;
  color: var(--c-primary);
  font-weight: 700;
}
.lang-picker__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 700px) {
  .lang-picker__menu { width: calc(100vw - 32px); left: 0; }
  .lang-picker__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Checkout — payment-method picker + crypto invoice
   ========================================================================== */

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) { .pay-methods { grid-template-columns: 1fr; } }

.pay-method {
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-method:hover { border-color: var(--c-primary); }
.pay-method:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: .95rem;
}
.pay-method__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--c-border-strong);
  flex-shrink: 0;
  position: relative;
}
.pay-method:has(input:checked) .pay-method__check {
  border-color: var(--c-primary);
  background: var(--c-primary);
}
.pay-method:has(input:checked) .pay-method__check::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  margin: 5px;
}
.pay-method__brands {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--c-text-muted);
}
.pay-method__brands .chip {
  background: var(--c-bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.pay-method__desc { font-size: .8rem; color: var(--c-text-muted); margin: 4px 0 0; }

/* Stripe brand button (was already defined) is reused for Stripe payment */
/* Crypto button — equivalent dark CTA */
.btn-crypto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #f7931a 0%, #e2761b 100%); /* bitcoin orange */
  color: #fff;
  border: 0;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  transition: filter .15s, transform .15s;
  font-family: inherit;
}
.btn-crypto:hover { filter: brightness(1.05); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-crypto:disabled { opacity: .8; cursor: wait; transform: none; }

/* Upgrade banner */
.upgrade-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--c-primary-soft), #fff);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.upgrade-banner__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upgrade-banner strong { color: var(--c-primary); display: block; font-size: .95rem; }
.upgrade-banner small { color: var(--c-text-muted); font-size: .82rem; }

/* Crypto invoice page */
.crypto-invoice {
  max-width: 560px;
  margin: 32px auto;
  padding: 0 16px;
}
.crypto-invoice__card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.crypto-invoice__amount {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.crypto-invoice__sub {
  text-align: center;
  font-size: .9rem;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.crypto-invoice__tabs {
  display: flex;
  gap: 4px;
  background: var(--c-bg-soft);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.crypto-invoice__tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 7px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--c-text-muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
}
.crypto-invoice__tab.active {
  background: #fff;
  color: var(--c-text);
  box-shadow: 0 1px 4px rgba(14,19,32,.08);
}
.crypto-invoice__qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  background:
    repeating-linear-gradient(45deg, var(--c-text) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(-45deg, var(--c-text) 0 4px, transparent 4px 8px),
    #fff;
  border: 8px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--c-border);
  position: relative;
}
.crypto-invoice__qr::after {
  content: 'QR';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.6);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-text-muted);
  border-radius: 6px;
}
.crypto-invoice__addr {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: .8rem;
  word-break: break-all;
  position: relative;
  margin-bottom: 14px;
}
.crypto-invoice__copy {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .75rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
}
.crypto-invoice__copy:hover { background: var(--c-bg-muted); }
.crypto-invoice__expiry {
  text-align: center;
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-top: 12px;
}
.crypto-invoice__expiry strong { color: var(--c-text); font-family: var(--font-mono); }

/* ==========================================================================
   MOBILE-FRIENDLY FIXES — global audit
   ==========================================================================
   Applied to fix overflow, sticky-header overlap, narrow-screen layout
   issues, inline grid overrides, and cramped tabs/tables.
*/

/* In-page tab nav (.tabs) — let it scroll horizontally on mobile so long
   tab lists stay on one line and remain tappable.
   NOTE: `overflow-y: hidden` is required because spec says setting `overflow-x: auto`
   forces `overflow-y` to compute as `auto` (cannot stay `visible`), which would
   otherwise produce a phantom vertical scrollbar when the active link's
   `border-bottom: 2px; margin-bottom: -1px` overlap creates 1 px of vertical bleed. */
.tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* hide thin scrollbar on Firefox when nothing overflows */
}
.tabs::-webkit-scrollbar { height: 0; }
.tabs:hover::-webkit-scrollbar { height: 4px; }     /* show only on hover when actually scrolling */
.tabs::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 999px; }
.tabs::-webkit-scrollbar-track { background: transparent; }
.tabs a { white-space: nowrap; flex-shrink: 0; }

/* Tap-target sizing for primary buttons on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
}

/* ===== Tablet (≤ 900px) ===== */
@media (max-width: 900px) {
  /* Inline 2-column grids in detail pages (About / Top tech / Top countries)
     stack vertically — overrides inline grid-template-columns. */
  .grid.grid-2[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero stat tile rows shrink to 2-up */
  .page-hero .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* TLD card 6-metric grid: 3-up → 2-up */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* Hero orbs scale down so they don't push the layout wide */
  .hero-orb { transform: scale(.7); }
}

/* ===== Phone (≤ 700px) ===== */
@media (max-width: 700px) {
  /* Headings shrink */
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  /* Section padding tightens */
  .hero-modern { padding: 64px 0 56px; }
  .page-hero  { padding: 36px 0 28px; }
  .section-sm { padding: 28px 0; }

  /* Container side padding tightens */
  .container { padding: 0 16px; }

  /* Page-hero stats: 1 col on phone */
  .page-hero .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-stat { padding: 18px 14px; }
  .card-stat .num { font-size: 1.8rem; }

  /* TLD-detail 6-metric grid stacks fully */
  .grid-3 { grid-template-columns: 1fr; }

  /* Page-hero CTA button column behaves nicely */
  .page-hero .btn-lg { padding: 12px 18px; font-size: .98rem; }

  /* Breadcrumbs may overflow on long paths */
  .breadcrumbs { white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .breadcrumbs::-webkit-scrollbar { display: none; }

  /* Hero orbs much smaller (avoid horizontal overflow) */
  .hero-orb { transform: scale(.5); }

  /* Toolbar (search + filter selects) stacks */
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .search-box,
  .toolbar .select { width: 100%; min-width: 0; }

  /* Plan / pricing card — slightly tighter padding */
  .plan { padding: 24px 20px; }
  .plan .price { font-size: 2.2rem; }

  /* Cabinet sidebar on mobile: condense + behave like a horizontal pill row */
  .cab-side { padding: 12px; }
  .cab-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .cab-side ul li { flex: 1 1 calc(50% - 4px); }
  .cab-side ul li a {
    justify-content: center;
    padding: 10px 8px;
    font-size: .85rem;
    text-align: center;
  }
  .cab-side ul li a svg { display: none; }
  .cab-side__user { padding: 8px; margin-bottom: 8px; }

  /* Sticky TOC on legal pages — collapse to top, not sticky on phone */
  .legal-toc { position: static !important; margin-bottom: 24px; }
  .legal-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

  /* FAQ TOC — same treatment */
  .faq-toc { position: static !important; margin-bottom: 24px; }
  .faq-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

  /* Dataset preview header text wraps */
  .csv-preview__head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 14px; font-size: .76rem; }

  /* CTA banner gets vertical layout */
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 24px; }

  /* Final dark CTA bar stacks */
  .final-bar { padding: 24px; }
  .final-bar h2 { font-size: 1.5rem; }

  /* Preview action strip stacks vertically */
  .preview-actions { flex-direction: column; align-items: stretch; }
  .preview-actions__buttons { width: 100%; }
  .preview-actions__buttons .btn { flex: 1; justify-content: center; }

  /* Cookie banner — single column with stacked buttons */
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; }

  /* Code-tabs (API showcase) — smaller padding, scroll horizontal */
  .code-tabs__body { padding: 14px 16px; font-size: .76rem; }
  .code-tabs__head .dot { display: none; }

  /* Pricing comparison matrix — keep table inside scrollable wrapper
     (already covered by .table-wrap overflow-x: auto). Reduce font slightly. */
  .compare-table, .matrix { font-size: .85rem; }
  .compare-table th, .compare-table td,
  .matrix th, .matrix td { padding: 10px 12px; }

  /* Channel cards (contact page) and 3-column blog grid → 1 col */
  .channel { padding: 20px; }

  /* Site header — shrink title spacing */
  .site-header__inner { height: 60px; gap: 12px; }
  .brand { font-size: 1rem; }
  .brand__mark { width: 28px; height: 28px; }

  /* Mobile menu when open — full-width dropdown panel below the sticky header. */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg, #fff);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
    padding: 8px 16px 14px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 50;
  }
  .main-nav.open a { padding: 12px; border-radius: 8px; }

  /* Search box width fix on tiny screens */
  .search-box input { font-size: 16px; } /* prevents iOS zoom-on-focus */
  .form-row input,
  .form-row select,
  .form-row textarea { font-size: 16px; } /* same — prevents iOS zoom */
}

/* ===== Very small phone (≤ 420px) ===== */
@media (max-width: 420px) {
  /* Stat strip on home: 4-up → 2-up already, here go to 1-up if needed */
  .stat-strip__num { font-size: 1.6rem; }
  .stat-strip__item { padding: 18px 12px; }

  /* Cabinet sidebar — full-width vertical list (instead of 2-up grid) */
  .cab-side ul li { flex: 1 1 100%; }

  /* Hero h1 even smaller */
  .hero-modern h1 { font-size: 1.9rem; line-height: 1.1; }
  .hero-modern .lead { font-size: .98rem; }

  /* Cookie banner trims more */
  .cookie-banner { padding: 14px; }
  .cookie-banner__copy { font-size: .85rem; }

  /* Avatars in cabinet user block — smaller */
  .cab-side__user .avatar { width: 32px; height: 32px; font-size: .75rem; }
}

/* ============================================================
   IMPRESSUM
   Two-card layout for PL + PT entities, then stacked sections.
============================================================ */
.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.impressum-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}
.impressum-card__flag {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 1.6rem;
  line-height: 1;
}
.impressum-card h2 {
  font-size: 1.4rem;
  margin: 8px 0 18px;
  letter-spacing: -0.01em;
}
.impressum-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}
.impressum-dl dt {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 600;
}
.impressum-dl dd {
  margin: 4px 0 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--c-text);
}
.impressum-dl dd code {
  background: var(--c-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .85rem;
}
.impressum-section {
  margin-top: 32px;
}
.impressum-section h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.impressum-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 14px;
}
.impressum-contact-grid h4 {
  margin: 0 0 4px;
  font-size: .9rem;
  font-weight: 600;
}
.impressum-contact-grid p {
  margin: 0;
  font-size: .92rem;
}

@media (max-width: 720px) {
  .impressum-grid,
  .impressum-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PREVIEW EMAIL-GATE — modal that captures email before
   delivering the free 10K-row dataset preview.
============================================================ */
.preview-gate {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s ease;
}
.preview-gate[hidden] { display: none !important; }
.preview-gate.show { opacity: 1; }

.preview-gate__overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 32, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.preview-gate__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  padding: 32px 30px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  transform: translateY(8px);
  transition: transform .25s ease;
}
.preview-gate.show .preview-gate__card { transform: translateY(0); }

.preview-gate__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.preview-gate__close:hover { background: var(--c-bg-soft); color: var(--c-text); }

.preview-gate__eyebrow {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-primary);
  font-weight: 700;
  background: var(--c-primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.preview-gate__card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.2;
}
.preview-gate__card h3 #preview-gate-dataset { color: var(--c-primary); }

.preview-gate__form {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 4px;
}
.preview-gate__label {
  display: flex; flex-direction: column; gap: 6px;
}
.preview-gate__label > span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text);
}
.preview-gate__label input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.preview-gate__label input:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.preview-gate__check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem;
  line-height: 1.4;
  cursor: pointer;
  color: var(--c-text-muted);
  margin: 4px 0 6px;
}
.preview-gate__check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}

/* Thank-you state */
.preview-gate__check-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 14px;
  animation: pop .35s ease both;
}
@keyframes pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.preview-gate__state[data-state="thanks"] {
  text-align: center;
}
.preview-gate__state[data-state="thanks"] h3 {
  text-align: center;
}

@media (max-width: 480px) {
  .preview-gate__card { padding: 28px 22px 24px; }
  .preview-gate__card h3 { font-size: 1.2rem; }
}

/* ============================================================
   ROI / Build-vs-buy CALCULATOR
============================================================ */
.roi-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 32px;
  margin-top: 28px;
  box-shadow: 0 4px 20px rgba(15, 30, 50, .04);
}

.roi-inputs {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--c-border);
}
.roi-input label {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.roi-output {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--c-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.roi-input input[type="range"] {
  width: 100%;
  accent-color: var(--c-primary);
}
.roi-input__scale {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}
.roi-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  cursor: pointer;
}
.roi-select:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.roi-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.roi-col {
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.roi-col header { margin-bottom: 16px; }
.roi-col__tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.roi-col h3 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  margin: 4px 0 4px;
  letter-spacing: -0.02em;
}
.roi-col--diy {
  background: rgba(204, 51, 102, 0.04);
  border: 1px solid rgba(204, 51, 102, 0.2);
}
.roi-col--diy .roi-col__tag {
  background: rgba(204, 51, 102, 0.12);
  color: var(--c-link);
}
.roi-col--us {
  background: var(--c-primary-soft);
  border: 1px solid rgba(19, 113, 91, 0.3);
}
.roi-col--us .roi-col__tag {
  background: var(--c-primary);
  color: #fff;
}
.roi-breakdown {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .92rem;
}
.roi-breakdown li:last-child { border-bottom: 0; }
.roi-breakdown li span { color: var(--c-text-muted); }
.roi-breakdown li strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-text);
}

@media (max-width: 900px) {
  .roi-inputs { grid-template-columns: 1fr; gap: 18px; }
  .roi-compare { grid-template-columns: 1fr; }
  .roi-card { padding: 24px 20px; }
  .roi-col h3 { font-size: 1.6rem; }
}

/* ============================================================
   STATUS PAGE
============================================================ */
.status-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.status-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 113, 91, 0.12);
  color: var(--c-primary);
}
.status-hero__metrics {
  display: flex;
  gap: 28px;
  text-align: right;
}
.status-hero__metrics > div { display: flex; flex-direction: column; }
.status-hero__metrics strong {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.status-hero__metrics span {
  font-size: .78rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}

@media (max-width: 800px) {
  .status-hero { grid-template-columns: 1fr; gap: 18px; }
  .status-hero__metrics { justify-content: flex-start; flex-wrap: wrap; gap: 18px; text-align: left; }
}

/* Dot */
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1d9c7d;
  box-shadow: 0 0 0 3px rgba(29, 156, 125, 0.18);
}
.status-dot--ok   { background: #1d9c7d; box-shadow: 0 0 0 3px rgba(29, 156, 125, 0.18); }
.status-dot--warn { background: #d49323; box-shadow: 0 0 0 3px rgba(212, 147, 35, 0.18); }
.status-dot--down { background: #c93851; box-shadow: 0 0 0 3px rgba(201, 56, 81, 0.18); }

/* Component rows */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 6px;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
  transition: background .15s;
}
.status-row:hover { background: var(--c-bg-soft); }
.status-row__name strong { display: block; font-size: .98rem; }
.status-row__name .muted { font-size: .8rem; }
.status-row__bars {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  height: 24px;
}
.status-bar {
  background: #1d9c7d;
  border-radius: 2px;
  opacity: .35;
  transition: opacity .15s;
}
.status-bar:hover { opacity: 1; }
.status-bar--warn { background: #d49323; opacity: .9; }
.status-bar--down { background: #c93851; opacity: .9; }
.status-row__pill {
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.status-row__pill--warn { color: #a4630c; }

@media (max-width: 800px) {
  .status-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .status-row__bars { height: 20px; }
}

/* Datasets table */
.status-datasets { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 8px; overflow-x: auto; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table th,
.status-table td { text-align: left; padding: 14px 16px; font-size: .92rem; }
.status-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); border-bottom: 1px solid var(--c-border); font-weight: 600; }
.status-table tbody tr { border-bottom: 1px solid var(--c-border); }
.status-table tbody tr:last-child { border-bottom: 0; }
.status-table tbody tr:hover { background: var(--c-bg-soft); }
.status-table .mono { font-family: var(--font-mono); font-size: .85rem; }
.status-table a { color: var(--c-text); font-weight: 600; }
.status-table a:hover { color: var(--c-primary); }

/* Incidents */
.status-incidents { display: flex; flex-direction: column; gap: 14px; }
.status-incident {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-border);
  border-radius: 10px;
  padding: 18px 22px;
}
.status-incident--investigating { border-left-color: #d49323; background: #fffbf2; }
.status-incident--resolved      { border-left-color: #1d9c7d; }
.status-incident header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.status-incident__date {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-text-muted);
}
.status-incident__sev {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.status-incident__sev--minor { background: rgba(212, 147, 35, 0.14); color: #a4630c; }
.status-incident__sev--major { background: rgba(201, 56, 81, 0.12); color: #a21d44; }
.status-incident h3 { font-size: 1.05rem; margin: 4px 0 6px; letter-spacing: -0.01em; }
.status-incident__updates {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-border);
  font-size: .85rem;
}
.status-incident__updates strong { color: var(--c-text); font-family: var(--font-mono); font-weight: 600; }
.status-incident details {
  margin-top: 10px;
  font-size: .85rem;
}
.status-incident summary {
  cursor: pointer;
  color: var(--c-primary);
  font-weight: 600;
}

/* Subscribe strip */
.status-subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 22px 26px;
}
.status-subscribe form {
  display: flex;
  gap: 8px;
}
.status-subscribe input {
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: .92rem;
  width: 240px;
  font-family: inherit;
}
.status-subscribe input:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
@media (max-width: 700px) {
  .status-subscribe { grid-template-columns: 1fr; }
  .status-subscribe form { flex-direction: column; align-items: stretch; }
  .status-subscribe input { width: 100%; }
}

/* ============================================================
   EMAIL FUNNEL OVERVIEW PAGE
============================================================ */
.funnel-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.funnel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.funnel-header h1 {
  margin: 8px 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}
.funnel-header__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.funnel-lane {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 26px 28px 30px;
  margin-bottom: 24px;
  border-left: 4px solid var(--c-border);
}
.funnel-lane--prepurchase    { border-left-color: #13715b; }
.funnel-lane--lifecycle      { border-left-color: #1d9c7d; }
.funnel-lane--expiry         { border-left-color: #d49323; }
.funnel-lane--transactional  { border-left-color: #cc3366; }

.funnel-lane__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.funnel-lane__head h2 {
  margin: 6px 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.funnel-lane__head p {
  margin: 0;
  font-size: .88rem;
  max-width: 460px;
  text-align: right;
}
.funnel-lane__tag {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.funnel-lane__tag--prepurchase    { background: rgba(19, 113, 91, 0.12);  color: #13715b; }
.funnel-lane__tag--lifecycle      { background: rgba(29, 156, 125, 0.14); color: #0e5c4a; }
.funnel-lane__tag--expiry         { background: rgba(212, 147, 35, 0.14); color: #a4630c; }
.funnel-lane__tag--transactional  { background: rgba(204, 51, 102, 0.12); color: #cc3366; }

.funnel-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.funnel-track::-webkit-scrollbar      { height: 8px; }
.funnel-track::-webkit-scrollbar-track{ background: var(--c-bg-soft); border-radius: 4px; }
.funnel-track::-webkit-scrollbar-thumb{ background: var(--c-border);  border-radius: 4px; }

.funnel-node {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  scroll-snap-align: start;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.funnel-node:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 30, 50, .08);
}
.funnel-node--exit { opacity: .92; }
.funnel-node__time {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.funnel-node h3 {
  font-size: .98rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.funnel-node__sl,
.funnel-node__goal {
  margin: 0 0 6px;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--c-text-muted);
}
.funnel-node__sl strong,
.funnel-node__goal strong { color: var(--c-text); font-weight: 600; }
.funnel-node__preview {
  width: 100%;
  height: 200px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  margin: 10px 0;
  pointer-events: none;
}
.funnel-node__open {
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: auto;
}

.funnel-arrow {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: var(--c-text-muted);
  font-weight: 300;
  user-select: none;
}

/* Operations table */
.funnel-ops {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 36px;
}
.funnel-ops h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.funnel-ops__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.funnel-ops__table th,
.funnel-ops__table td {
  text-align: left;
  padding: 12px 14px;
  font-size: .85rem;
  border-bottom: 1px solid var(--c-border);
}
.funnel-ops__table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--c-text-muted);
  background: var(--c-bg-soft);
}
.funnel-ops__table tr:hover td:not([colspan]) { background: var(--c-bg-soft); }
.funnel-ops__table code {
  background: var(--c-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .78rem;
}
.funnel-ops__divider td {
  text-align: center;
  color: var(--c-border);
  padding: 4px 0;
  background: transparent !important;
  border-bottom: 0;
}

@media (max-width: 800px) {
  .funnel-shell { padding: 24px 14px 60px; }
  .funnel-header h1 { font-size: 1.5rem; }
  .funnel-lane { padding: 20px 18px 22px; }
  .funnel-lane__head p { text-align: left; }
  .funnel-node { flex-basis: 260px; }
}

/* ============================================================
   DOMAIN LOOKUP / CARD
   The per-domain analysis page (/domain/<example>.html).
   BuiltWith-style detail page combining all dataset facets:
   technologies, DNS, WHOIS, ranking, similar domains.
============================================================ */

/* ===== Lookup-landing hero with big search ===== */
.lookup-hero {
  padding: 80px 0 50px;
  background:
    radial-gradient(circle at 15% 0%, rgba(29,156,125,.12), transparent 50%),
    radial-gradient(circle at 85% 100%, rgba(204,51,102,.10), transparent 55%),
    var(--c-bg);
  text-align: center;
}
.lookup-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.lookup-hero p.lead { max-width: 640px; margin: 0 auto 30px; }

.lookup-search {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(15, 30, 50, .06);
  transition: border-color .15s, box-shadow .15s;
}
.lookup-search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 16px 40px rgba(19, 113, 91, .14);
}
.lookup-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  color: var(--c-text);
  min-width: 0;
}
.lookup-search input:focus { outline: 0; }
.lookup-search button {
  padding: 0 26px;
  border: 0;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background .15s;
}
.lookup-search button:hover { background: #0e5c4a; }

.lookup-examples {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--c-text-muted);
}
.lookup-examples a {
  font-family: var(--font-mono);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--c-text);
  transition: background .15s, color .15s, border-color .15s;
}
.lookup-examples a:hover {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
  text-decoration: none;
}

/* ===== Domain card — header ===== */
.domain-hero {
  background:
    linear-gradient(180deg, var(--c-bg-soft) 0%, var(--c-bg) 100%);
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--c-border);
}
.domain-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
.domain-favicon {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(15,30,50,.10);
}
.domain-name h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.domain-name__pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.domain-name__pill {
  font-size: .76rem;
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--c-text-muted);
  font-weight: 500;
}
.domain-name__pill--live { background: rgba(29,156,125,.12); color: #0d5c47; border-color: rgba(29,156,125,.3); }
.domain-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Stat strip under hero ===== */
.domain-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px 22px;
}
.domain-stat { text-align: left; }
.domain-stat__lbl {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.domain-stat__val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: block;
}

/* ===== Section primitives ===== */
.domain-section {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.domain-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.domain-section__head h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.domain-section__count {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-text-muted);
  font-weight: 500;
  background: var(--c-bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
}
.domain-section__last-checked {
  font-size: .8rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}

/* ===== Tech categories ===== */
.tech-categories { display: flex; flex-direction: column; gap: 18px; }
.tech-cat__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.tech-cat__name {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--c-text);
}
.tech-cat__count { font-size: .78rem; color: var(--c-text-muted); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.tech-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.tech-item:hover { border-color: var(--c-primary); }
.tech-item__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .82rem;
}
.tech-item__body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tech-item__name {
  font-weight: 600; font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tech-item__meta {
  font-size: .72rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}

/* ===== DNS table ===== */
.dns-table { width: 100%; border-collapse: collapse; }
.dns-table th, .dns-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  font-size: .9rem;
  vertical-align: top;
}
.dns-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 700;
  background: var(--c-bg-soft);
}
.dns-table tbody tr:last-child td { border-bottom: 0; }
.dns-table .dns-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .8rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.dns-table .dns-value {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--c-text);
  word-break: break-all;
}
.dns-table .dns-value > div { padding: 2px 0; }

/* ===== WHOIS grid ===== */
.whois-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
  margin-bottom: 18px;
}
.whois-row { border-bottom: 1px dashed var(--c-border); padding-bottom: 12px; }
.whois-row__lbl {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.whois-row__val {
  font-size: .95rem;
  color: var(--c-text);
}
.whois-row__val .mono { font-family: var(--font-mono); }

/* Raw record collapsible */
.whois-raw {
  background: #0f172a;
  color: #a8d4c4;
  padding: 16px 18px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre;
  margin-top: 10px;
}

/* ===== Ranking tiles ===== */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.rank-tile {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 16px;
}
.rank-tile__lbl {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.rank-tile__val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.rank-tile__delta {
  font-size: .78rem;
  color: var(--c-primary);
  font-weight: 600;
  margin-top: 4px;
}
.rank-tile__delta--down { color: var(--c-link); }

/* Tiny sparkline */
.spark {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 18px;
  margin-left: 6px;
}
.spark span {
  width: 3px;
  background: var(--c-primary);
  border-radius: 1px;
  opacity: .55;
}

/* ===== Upsell strip (when dataset locked) ===== */
.lookup-locked {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(204,51,102,.06), rgba(204,51,102,.02));
  border: 1px dashed var(--c-link);
  border-radius: 10px;
  margin-top: 8px;
}
.lookup-locked__ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(204,51,102,.14);
  color: var(--c-link);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lookup-locked__body { flex: 1; }
.lookup-locked__body strong { color: var(--c-text); font-size: .92rem; }
.lookup-locked__body small { display: block; color: var(--c-text-muted); font-size: .82rem; margin-top: 2px; }

/* ===== Similar domains ===== */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.similar-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s, transform .15s;
}
.similar-card:hover { border-color: var(--c-primary); transform: translateY(-1px); text-decoration: none; }
.similar-card__name { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--c-text); }
.similar-card__meta { font-size: .76rem; color: var(--c-text-muted); margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .domain-stats { grid-template-columns: repeat(3, 1fr); }
  .whois-grid { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .domain-head { grid-template-columns: 1fr; gap: 14px; }
  .domain-favicon { width: 56px; height: 56px; font-size: 1.5rem; }
  .domain-name h1 { font-size: 1.5rem; }
  .domain-stats { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .domain-section { padding: 20px; }
  .lookup-search { flex-direction: column; padding: 10px; }
  .lookup-search button { padding: 12px; }
}

/* ===== Domain card · API block tabs ===== */
.api-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-border);
}
.api-tab {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.api-tab:hover { color: var(--c-text); }
.api-tab.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.api-snippet {
  background: #0f172a;
  color: #a8d4c4;
  border-radius: 0 10px 10px 10px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0 0 0;
  white-space: pre;
}
.api-snippet[hidden] { display: none; }
.api-snippet a { color: #a5e6d2; }

/* ============================================================
   DOMAIN CARD · HTTP STATUS
============================================================ */
.http-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--c-primary-soft);
  border: 1px solid rgba(19,113,91,.25);
  border-radius: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.http-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 2rem;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.http-summary { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.http-summary strong { font-size: 1rem; color: var(--c-text); }
.http-summary small { font-size: .82rem; color: var(--c-text-muted); font-family: var(--font-mono); }

.http-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.http-tile {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.http-tile__lbl {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  font-weight: 700;
}
.http-tile__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--c-text);
  font-family: var(--font-mono);
}
.http-tile__row .ok    { color: #0d5c47; font-weight: 700; }
.http-tile__row .warn  { color: #a4630c; font-weight: 700; }
.http-tile__row .none  { color: var(--c-text-muted); }

/* Redirect chain bullets */
.redirect-chain {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-text);
}
.redirect-chain li {
  padding: 4px 0;
  border-left: 2px solid var(--c-border);
  padding-left: 10px;
  margin-left: 4px;
}
.redirect-chain li + li { margin-top: -4px; }
.redirect-chain .code {
  display: inline-block;
  background: var(--c-bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 6px;
  color: var(--c-text);
}
.redirect-chain .code--301 { background: rgba(212,147,35,.14); color: #a4630c; }
.redirect-chain .code--200 { background: rgba(29,156,125,.14); color: #0d5c47; }

/* ============================================================
   DOMAIN CARD · SOCIAL PAGES
============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: border-color .15s, transform .15s, background .15s;
}
.social-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-1px);
  text-decoration: none;
}
.social-card__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.social-card__icon svg { width: 18px; height: 18px; }
.social-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.social-card__handle {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.social-card__meta {
  font-size: .76rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.social-card__arrow {
  color: var(--c-text-muted);
  font-size: .9rem;
  margin-left: auto;
  flex-shrink: 0;
}
.social-card:hover .social-card__arrow { color: var(--c-primary); }

@media (max-width: 960px) {
  .http-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .http-grid { grid-template-columns: 1fr; }
  .http-code { font-size: 1.6rem; }
}

/* ============================================================
   DOMAIN CARD · REFRESH BUTTON STATES
============================================================ */
#btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-refresh__ico {
  display: inline-flex;
  transition: transform .2s ease;
}
#btn-refresh.is-loading { cursor: wait; opacity: .85; }
#btn-refresh.is-loading .btn-refresh__ico { animation: spin-ccw 1s linear infinite; }
#btn-refresh.is-done {
  background: #0d5c47;
  border-color: #0d5c47;
}
#btn-refresh.is-done .btn-refresh__ico svg {
  /* Swap to checkmark via CSS won't work; JS handles label only. Stay subtle. */
}
@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* ============================================================
   CHECKOUT · "agree" rows — invalid state + shake attention
============================================================ */
.summary-confirm__row--invalid {
  border-color: var(--c-link);
  background: rgba(204, 51, 102, 0.06);
  box-shadow: 0 0 0 3px rgba(204, 51, 102, 0.12);
}
.summary-confirm__row--invalid span {
  color: var(--c-link);
}
.summary-confirm__row--invalid span strong { color: var(--c-link); }
.summary-confirm__row--invalid input[type="checkbox"] { accent-color: var(--c-link); }

.summary-confirm__row--shake {
  animation: confirm-shake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes confirm-shake {
  0%, 100%  { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90%  { transform: translateX(-7px); }
  20%, 40%, 60%, 80%       { transform: translateX(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .summary-confirm__row--shake { animation: none; }
}

/* ─────────────── Account settings: preference rows ─────────────────────── */
/* Lifted from mockups/account/settings.html — was inline there.            */

.cab-card .pref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
}
.cab-card .pref:last-child { border-bottom: 0; }
.cab-card .pref small {
  color: var(--c-text-muted);
  display: block;
  margin-top: 2px;
}

/* Danger-zone card variant (Settings → Advanced).                          */
.cab-card.danger {
  border-color: var(--c-danger);
  background: #fff7f7;
}

/* Header — plain text link variant for "Log in" (sits next to the primary
   "Get started" button without competing for visual weight). */
.header-actions__link {
  color: var(--c-text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 10px;
}
.header-actions__link:hover { color: var(--c-primary); }

/* ─────────────── Pricing page extras ───────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 4px;
  margin: 28px 0 14px;
  gap: 4px;
}
.billing-toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.billing-toggle button.active {
  background: var(--c-primary);
  color: #fff;
}
.save-pill {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.faq-item {
  border-top: 1px solid var(--c-border);
  padding: 16px 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--c-border); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--c-text-muted);
  margin-left: 12px;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-item > p {
  margin: 10px 0 0;
  color: var(--c-text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ─────────────── Account: API keys page ──────────────────────────────── */
/* Lifted from mockups/account/api.html — was inline there.                */

/* Key card */
.key-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.key-card:hover { border-color: var(--c-primary); }
.key-card--revoked { opacity: .55; background: var(--c-bg-soft); }
.key-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.key-card__title { display: flex; align-items: center; gap: 10px; }
.key-card__title strong { font-size: 1.02rem; }
.key-card__meta {
  font-size: .8rem;
  color: var(--c-text-muted);
  margin-top: 3px;
  font-family: var(--font-jetbrains-mono), monospace;
}
.key-card__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Masked / revealable key field */
.key-field {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 16px;
}
.key-field input {
  flex: 1;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: .82rem;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-bg-soft);
  color: var(--c-text);
}
.key-field input:focus { outline: 0; border-color: var(--c-primary); }
.key-field button {
  padding: 0 14px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  color: var(--c-text);
  transition: border-color .15s, color .15s;
}
.key-field button:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* A <form> wrapper around a server-action button (e.g. Done in the new-key
 * callout) shouldn't break the flex row — collapse it from the layout. */
.key-field form { display: contents; }

/* IP whitelist */
.ip-whitelist__head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.ip-whitelist__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--c-text-muted);
}
.ip-whitelist__add {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.ip-whitelist__add input {
  flex: 1;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: .82rem;
  padding: 7px 10px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.ip-whitelist__add input:focus { outline: 0; border-color: var(--c-primary); }
.ip-whitelist__add button {
  padding: 0 14px;
  background: var(--c-text);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
/* Inline IP add-form: input + button shows red border on aria-invalid */
.ip-whitelist__add input[aria-invalid="true"] {
  border-color: var(--c-danger, #cc3366);
}
.ip-whitelist__add button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Live feedback row under the IP add-form */
.ip-feedback {
  margin: 6px 0 10px;
  min-height: 1.2em;
  font-size: .82rem;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.ip-feedback__ok { color: #1f7f5d; }
.ip-feedback__warn { color: #a86508; }
.ip-feedback__err { color: var(--c-danger, #cc3366); }
.ip-feedback__norm {
  color: var(--c-text-muted);
  font-family: var(--font-jetbrains-mono), monospace;
}
.ip-feedback__suggest,
.ip-feedback__current {
  background: transparent;
  border: 1px dashed var(--c-border);
  color: var(--c-text);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.ip-feedback__suggest:hover,
.ip-feedback__current:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-soft, #f0f8f5);
}
.ip-feedback__current strong {
  font-family: var(--font-jetbrains-mono), monospace;
  font-weight: 600;
}

.ip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: .8rem;
  color: var(--c-text);
}
.ip-chip__remove {
  background: transparent;
  border: 0;
  color: var(--c-text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  transition: color .15s;
}
.ip-chip__remove:hover { color: var(--c-danger); }
.ip-empty {
  font-size: .82rem;
  color: var(--c-text-muted);
  padding: 8px 12px;
  background: var(--c-bg-soft);
  border-radius: 6px;
}

/* New-key inline form */
.new-key-form {
  background: var(--c-primary-soft);
  border: 1px dashed var(--c-primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.new-key-form[hidden] { display: none; }
.new-key-form h4 { margin: 0 0 4px; font-size: 1rem; color: var(--c-primary); }
.new-key-form__hint {
  margin: 0 0 12px;
  font-size: .86rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}
.new-key-form__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0;
}
.new-key-form__row input[type="text"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: .94rem;
  font-family: inherit;
  background: #fff;
  color: var(--c-text);
}
.new-key-form__row input[type="text"]:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(19, 113, 91, .15);
}
.new-key-form__row .btn { white-space: nowrap; padding: 0 22px; }

/* Newly-created key one-time callout */
.key-new-callout {
  background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  border: 1px solid #d49323;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.key-new-callout[hidden] { display: none; }
.key-new-callout strong { color: #a4630c; }

/* Quickstart endpoint code blocks (dark + green verb) */
.endpoint {
  background: var(--c-dark);
  color: #c5cad6;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: .88rem;
  overflow-x: auto;
  white-space: pre;
}
.endpoint .verb { color: #00d39a; font-weight: 700; margin-right: 8px; }

/* ─────────────── Account: 2FA panels ────────────────────────────────── */

/* Status pill at the top of the 2FA section. */
.twofa-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.twofa-status--on {
  background: #e7f5ef;
  color: #0a6f4f;
  border: 1px solid #b3dfca;
}
.twofa-status--off {
  background: var(--c-bg-soft);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.twofa-status--pending {
  background: #fff7e6;
  color: #a4630c;
  border: 1px solid #f0c989;
}
.twofa-status__dot { font-size: 1em; line-height: 1; }
.twofa-status__since {
  font-weight: 400;
  color: inherit;
  opacity: .8;
}

/* Compatibility chips ("Google Authenticator", "1Password", …) */
.twofa-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}
.twofa-apps span {
  padding: 4px 10px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--c-text-muted);
}

/* Step indicator for the setup flow */
.twofa-step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.twofa-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  margin-right: 8px;
  vertical-align: middle;
}
.twofa-step h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
}
.twofa-step__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .twofa-step__body { grid-template-columns: 1fr; }
}
.twofa-qr {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  display: block;
}
.twofa-secret {
  display: block;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: .92rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 12px 14px;
  word-break: break-all;
  color: var(--c-text);
  margin: 6px 0 10px;
}
.twofa-code-input {
  font-size: 1.3rem;
  letter-spacing: 6px;
  text-align: center;
  font-family: var(--font-jetbrains-mono), monospace;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  width: 200px;
  max-width: 100%;
}
.twofa-code-input:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(19, 113, 91, .15);
}

/* Sub-card under the "enabled" state — backup codes status, disable form */
.twofa-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 14px;
  background: #fff;
}
.twofa-card--danger {
  border-color: #f1c5d2;
  background: #fff8f9;
}
.twofa-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.twofa-card__title { font-weight: 700; font-size: .98rem; }
.twofa-card__hint {
  margin: 4px 0 0;
  font-size: .85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.twofa-card__hint--warn { color: #a4630c; }
.twofa-card__hint--err { color: #cc3366; }

/* The "save these codes" callout shown once after enrol */
.twofa-codes-callout {
  background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  border: 1px solid #d49323;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.twofa-codes-callout__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.twofa-codes-callout__icon {
  font-size: 1.4rem;
  line-height: 1;
  color: #a4630c;
  flex-shrink: 0;
}
.twofa-codes-callout__head strong {
  display: block;
  font-size: 1.02rem;
  color: #a4630c;
  margin-bottom: 4px;
}
.twofa-codes-callout__hint {
  font-size: .88rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.twofa-codes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  padding: 14px 16px;
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid #f0c989;
  border-radius: 10px;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: .95rem;
}
@media (max-width: 500px) {
  .twofa-codes { grid-template-columns: 1fr; }
}
.twofa-codes li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
}
.twofa-codes__num {
  width: 22px;
  font-size: .82rem;
  color: var(--c-text-muted);
  text-align: right;
  flex-shrink: 0;
}
.twofa-codes__val {
  letter-spacing: 1px;
  user-select: all;
}
.twofa-codes-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── Client-side table pager (TLD / suffix detail sub-tables) ── */
.table-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.table-pager__label { font-size: .85rem; }
.table-pager .btn[disabled] { opacity: .45; pointer-events: none; }

/* ── Database-preview row modal ── */
.wbtl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wbtl-modal[hidden] { display: none; }
.wbtl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.wbtl-modal__card {
  position: relative;
  z-index: 1;
  background: var(--c-bg, #fff);
  border: 1px solid var(--c-border);
  border-radius: var(--radius, 12px);
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow: auto;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.wbtl-modal__x {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text-muted);
}
.wbtl-modal__title {
  margin: 0 28px 16px 0;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: 1.15rem;
  word-break: break-all;
}
.wbtl-modal__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}
.wbtl-modal__list dt { color: var(--c-text-muted); font-size: .85rem; }
.wbtl-modal__list dd { margin: 0; font-size: .9rem; word-break: break-word; min-width: 0; }
.wbtl-modal__foot { margin-top: 18px; display: flex; justify-content: flex-end; }
body.wbtl-modal-open { overflow: hidden; }
/* Pretty-printed JSON values (DNS records / social / raw record) inside the modal. */
.wbtl-modal__json {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  background: var(--c-bg-muted, #f5f6f8);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-jetbrains-mono), ui-monospace, monospace;
  font-size: .78rem;
  line-height: 1.5;
  white-space: pre;
}
/* Long JSON values (RDAP/WHOIS record, DNS records, social) break onto their
   own full-width row — label on its own line above the block — so the full
   record is readable instead of squeezed into the narrow value column. */
.wbtl-modal__list dt.wbtl-modal__k--wide,
.wbtl-modal__list dd.wbtl-modal__v--wide { grid-column: 1 / -1; }
.wbtl-modal__list dt.wbtl-modal__k--wide { margin-top: 6px; font-weight: 600; color: var(--c-text); }

/* ── Database-preview cells: clamp content so wide JSON/text can't blow out the
   table. Full values are available by clicking the domain (row modal). ── */
.ds-table td {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-table td.col-domain {
  max-width: 240px;
  cursor: pointer;
}
.ds-table td.col-domain a { text-decoration: none; }
.ds-table td.col-domain:hover a { text-decoration: underline; }
