/* RefDeal — graphical static theme (portable, no CDN) */
:root {
  --ink: #0c1222;
  --ink-soft: #1e293b;
  --muted: #5b6b81;
  --line: #e2e8f0;
  --bg: #f3f6fb;
  --white: #ffffff;
  --brand: #0d9488;
  --brand2: #0f766e;
  --brand-deep: #115e59;
  --accent: #f59e0b;
  --accent-soft: #fff7ed;
  --soft: #ccfbf1;
  --hh: 72px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --c: var(--brand);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --stack-gap: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 148, 136, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(245, 158, 11, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(37, 99, 235, 0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, select { font: inherit; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/*
 * Stack rhythm — bordered boxes (article / card / notice / grid) must NEVER sit flush.
 * Flex gap on main.wrap / .stack avoids margin-collapse (article + grid on category pages).
 */
main.wrap,
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}
main.wrap > .crumbs,
main.wrap > .hero,
main.wrap > .article,
main.wrap > .notice,
main.wrap > .grid,
.stack > .article,
.stack > .notice,
.stack > .grid {
  margin-block: 0;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.rise { animation: rise 0.7s ease both; }
.rise-d1 { animation-delay: 0.08s; }
.rise-d2 { animation-delay: 0.16s; }
.rise-d3 { animation-delay: 0.24s; }
.rise-d4 { animation-delay: 0.32s; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--hh);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.header__in {
  min-height: var(--hh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding-block: 0.55rem;
}
.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex-wrap: nowrap;
}
.brand-sep {
  color: var(--muted);
  font-weight: 600;
  opacity: 0.55;
  user-select: none;
  flex-shrink: 0;
}
.brand--offer {
  font-weight: 750;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: min(12rem, 42vw);
}
.brand--hub span {
  white-space: nowrap;
  min-width: 0;
}
.brand--hub:hover,
.brand:hover {
  color: var(--brand-deep);
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}
.brand small {
  display: block;
  font-weight: 600;
  color: var(--brand2);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lang {
  min-width: 12.5rem;
}
.lang select {
  width: 12.5rem;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0.85rem;
  font-weight: 600;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
/* Select2 language switch (parity with honeygain-referral) */
.lang .select2-container {
  width: 12.5rem !important;
  vertical-align: middle;
}
.lang .select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.lang .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.2;
  height: 100%;
  padding-inline: 0.75rem 1.75rem;
  padding-block: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.92rem;
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
}
.lang .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 6px;
}
.lang .select2-container--default.select2-container--open .select2-selection--single,
.lang .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: color-mix(in srgb, var(--c, var(--brand)) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 18%, transparent);
}
.select2-dropdown {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: color-mix(in srgb, var(--c, var(--brand)) 88%, #0f172a);
}
.select2-results__option {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}
/* Select2 language option: SVG flag + label (vertically centered) */
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
  vertical-align: middle;
  max-width: 100%;
}
.lang-opt__flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.lang-opt__flag-img {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  max-width: none;
}
.lang-opt__label {
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
}
.lang .select2-container--default .select2-selection--single .select2-selection__rendered .lang-opt {
  max-width: 100%;
}
.select2-results__option .lang-opt {
  min-height: 1.25em;
}
.select2-results__option {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav a {
  margin-inline: 0.55rem;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
}
.nav a:hover { color: var(--brand-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  font-weight: 750;
  padding: 0.82rem 1.2rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 70%, #0f172a));
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--c, var(--brand)) 35%, transparent);
}
.btn-ghost {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }

/* Hero */
.hero-band {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2rem;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 30%, color-mix(in srgb, var(--c, var(--brand)) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 2.5rem; }
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}
.hero h1 span {
  background: linear-gradient(120deg, var(--c, var(--brand)), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}
.notice {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 1.1rem 0 1.75rem;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}
.notice__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0;
  display: block;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--c, var(--brand)) 18%, #fff), #fff 45%, color-mix(in srgb, var(--accent) 12%, #fff));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.hero-visual__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  animation: pulse-soft 5s ease-in-out infinite;
  z-index: 0;
}
.hero-visual__glow--a { top: -40px; right: -20px; background: var(--c, var(--brand)); }
.hero-visual__glow--b { bottom: -50px; left: -30px; background: var(--accent); animation-delay: 1.2s; }
.hero-visual__art {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  animation: floaty 6s ease-in-out infinite;
}

/* Chips / related */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  max-width: 100%;
}
.related a {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  max-width: 100%;
}
.related a:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Sections */
.section { padding: 2.4rem 0; }
.section__head { margin-bottom: 1.25rem; }
.section h2 {
  margin: 0 0 0.35rem;
  letter-spacing: -0.025em;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.section .muted { margin: 0; }

.grid {
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent, var(--brand)) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--card-accent, var(--brand)) 35%, var(--line));
}
.card h2, .card h3 { margin: 0; letter-spacing: -0.02em; }
/* Full-width CTAs inside cards (hub, category, compare, offer why-cards with buttons) */
.card .btn,
.card a.btn {
  width: 100%;
  align-self: stretch;
  margin-top: auto; /* pin single/first button to card bottom */
  box-sizing: border-box;
}
/* Multiple buttons (e.g. compare): stack full-width; only first keeps margin-top:auto */
.card .btn + .btn,
.card a.btn + a.btn {
  margin-top: 0;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent, var(--brand)) 18%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--brand)) 22%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.card__icon svg { width: 28px; height: 28px; }

.card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.card__head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}
.card__head-text h3 {
  margin: 0;
  line-height: 1.2;
}
.card__head .card__icon {
  flex-shrink: 0;
}


.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--soft);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge--soon {
  background: #f1f5f9;
  color: #475569;
}
.badge--live {
  background: #ecfdf5;
  color: #047857;
}

.muted { color: var(--muted); }

/* Hero CTA row */
.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
@media (min-width: 480px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}
.stat {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--c, var(--brand)), var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Steps */
.steps { display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.step:hover { transform: translateY(-3px); }
.step .n {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 60%, #0f172a));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c, var(--brand)) 30%, transparent);
}

/* FAQ / article / CTA */
.faq details {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  margin: 0.6rem 0;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 55%, #0f172a));
  color: #fff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.cta::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta .btn {
  background: #fff;
  color: var(--c, var(--brand));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.cta p:has(> .btn) {
  display: flex;
  justify-content: center;
}
.footer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin: 0 0 var(--stack-gap);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.article p { color: var(--muted); }
/* Flex stacks own the vertical rhythm — don't double with margin */
main.wrap > .article,
.stack > .article {
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55));
}
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 1rem 0; }
.crumbs a { color: var(--brand2); font-weight: 650; }

/* Offer-specific top banner strip — centered icon+text, spaced from hero */
.offer-strip {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, #fff), color-mix(in srgb, var(--accent) 10%, #fff));
  border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, var(--line));
  padding: 0.9rem 0;
  margin-bottom: 1.15rem;
}
.offer-strip .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.offer-strip__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  max-width: min(42rem, 100%);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}
.offer-strip .notice__icon {
  flex-shrink: 0;
  margin-top: 0;
  width: 22px;
  height: 22px;
}
.offer-strip__text {
  text-align: center;
  overflow-wrap: anywhere;
  min-width: 0;
}

[dir=rtl] .header__in { flex-direction: row-reverse; }
[dir=rtl] .brand-row { flex-direction: row-reverse; }
[dir=rtl] .hero-grid { direction: rtl; }

/* Sibling fallbacks when parent is not a flex stack (gap wins inside main.wrap / .stack) */
.article + .grid,
.article + .article,
.notice + .grid,
.grid + .article,
.hero + .notice,
.hero + .article,
.hero + .grid {
  margin-top: var(--stack-gap);
}
main.wrap > .article + .grid,
main.wrap > .article + .article,
main.wrap > .notice + .grid,
main.wrap > .grid + .article,
main.wrap > .hero + .notice,
main.wrap > .hero + .article,
main.wrap > .hero + .grid,
.stack > .article + .grid,
.stack > .article + .article {
  margin-top: 0; /* flex gap already separates */
}

/* ========== Responsive / devices ========== */
html { -webkit-text-size-adjust: 100%; }

.lang {
  flex: 0 0 auto;
  min-width: 0;
}
.lang select,
.lang .select2-container {
  width: min(12.5rem, 100%) !important;
  max-width: 100%;
}
.lang .select2-container--default .select2-selection--single {
  min-height: 44px;
  height: 44px;
}
.lang .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}
.select2-container--open .select2-dropdown.lang-select2-dropdown,
.select2-dropdown.lang-select2-dropdown {
  min-width: min(16rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1rem);
  box-sizing: border-box;
}
.select2-container--default .select2-results > .select2-results__options {
  max-height: min(50vh, 320px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}
.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.35rem;
}

.hero-visual {
  width: 100%;
  max-width: 100%;
  min-height: 200px;
}
.hero-visual__art svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.card .btn,
.hero-actions .btn {
  min-height: 44px;
}

@media (max-width: 899px) {
  .header__in {
    gap: 0.65rem;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
  }
  .brand-row {
    flex: 1 1 auto;
    gap: 0.35rem;
    min-width: 0;
  }
  .brand--hub span,
  .brand--offer span {
    font-size: 0.92rem;
  }
  .lang {
    margin-inline-start: auto;
  }
  .hero-band {
    padding: 1.5rem 0 1.25rem;
  }
  .hero-visual {
    min-height: 180px;
    border-radius: 22px;
  }
  .hero-visual__art {
    padding: 1rem;
  }
  .section {
    padding: 1.75rem 0;
  }
  .offer-strip {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
  }
  .offer-strip__inner {
    font-size: 0.88rem;
    padding-inline: 0.15rem;
  }
}

@media (max-width: 599px) {
  .wrap {
    width: min(1120px, calc(100% - 1.25rem));
  }
  :root { --hh: 64px; }
  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .brand-row {
    flex-wrap: wrap; /* offer: hub + product stays one cluster; wrap only if needed */
  }
  .brand--hub small {
    display: none; /* hub landing: keep title only on narrow screens */
  }
  .nav a {
    margin-inline: 0.25rem;
    font-size: 0.84rem;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }
  .lead {
    font-size: 0.98rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cta {
    padding: 1.5rem 1rem;
  }
  .cta .btn {
    width: 100%;
    max-width: 22rem;
  }
  .cta p:has(> .btn) {
    width: 100%;
  }
  .brand--offer {
    max-width: min(10rem, 38vw);
  }
  .lang select,
  .lang .select2-container {
    width: min(10.75rem, calc(100vw - 7.5rem)) !important;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 0.85rem 0.7rem;
  }
  .related a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .notice {
    align-items: flex-start;
    padding: 0.8rem 0.85rem;
    font-size: 0.88rem;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat b {
    font-size: 1.05rem;
  }
  .stat .muted,
  .stat span {
    font-size: 0.78rem;
  }
}

@media (min-width: 900px) {
  .header__in {
    flex-wrap: nowrap;
  }
  .nav {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Share bar — lightweight, no third-party widgets */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  max-width: 100%;
}
.share-bar__label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin-right: 0.15rem;
}
.share-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1;
  min-height: 34px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.share-btn:hover {
  border-color: color-mix(in srgb, var(--brand, #0f766e) 40%, var(--line, #e2e8f0));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: #0f172a;
}
.share-btn.is-copied {
  border-color: color-mix(in srgb, var(--brand, #0f766e) 55%, #e2e8f0);
  background: color-mix(in srgb, var(--brand, #0f766e) 8%, #fff);
}
.share-btn svg { flex: 0 0 auto; opacity: 0.9; }
@media (max-width: 520px) {
  .share-btn span:not([data-share-copy-label]) { display: none; }
  .share-btn--copy span,
  .share-btn--native span { display: inline; }
}

/* Consent banner (GA4) */
.rd-consent {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  pointer-events: none;
}
.rd-consent__card {
  pointer-events: auto;
  max-width: 560px;
  margin: 0 auto;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
}
.rd-consent__card p { color: #cbd5e1; font-size: 0.92rem; margin: 0.45rem 0; }
.rd-consent__hint { font-size: 0.78rem !important; opacity: 0.85; }
.rd-consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rd-consent .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }

/* Guides hub grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.guide-card strong { font-size: 1.02rem; line-height: 1.35; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  background: var(--card-bg, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.checklist label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.45;
}
.checklist input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.tool-article .input,
#rd-planner input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font: inherit;
}
.related-guides { margin-top: 1.5rem; }
@media print {
  .header, .footer, .share-bar, .rd-consent, .notice, .lang { display: none !important; }
  .checklist li { break-inside: avoid; }
}
.guide-offers { margin: 1rem 0 1.5rem; }
.guide-offers__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guide-article h2 { margin-top: 1.35rem; }
.guide-page .hero { margin-bottom: 0.5rem; }

/* Ads landings + newsletter teaser */
.rd-landing__hero { padding: 1.25rem 0 0.5rem; }
.rd-landing__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0 0.5rem; }
.rd-landing__soft { font-size: 0.9rem; max-width: 42rem; }
.rd-landing__proof { margin: 0.75rem 0 1.25rem; padding-left: 1.2rem; }
.rd-landing__proof li { margin: 0.4rem 0; }
.rd-landing__offers { margin: 1rem 0 1.5rem; }
.rd-newsletter {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(14, 165, 233, 0.06));
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.rd-newsletter__inner {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 800px) {
  .rd-newsletter__inner { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}
.rd-newsletter__teaser { margin-top: 0.75rem; }
.rd-newsletter__form { background: #fff; border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
[data-theme="dark"] .rd-newsletter__form,
.dark .rd-newsletter__form { background: rgba(15, 23, 42, 0.55); }
.rd-newsletter__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rd-newsletter__row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  font: inherit;
}
.rd-newsletter__privacy { font-size: 0.8rem; margin-top: 0.65rem; }
.rd-newsletter__msg { margin-top: 0.5rem; color: var(--brand, #0f766e); font-weight: 600; }
.rd-newsletter__hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
@media (max-width: 640px) {
  .rd-landing__actions .btn { width: 100%; justify-content: center; }
  .rd-newsletter__row .btn { width: 100%; }
}

/* Promo / invite codes (expiry-gated) — equal-height cards, CTA pinned bottom */
.rd-promo-section .rd-promo-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 720px) {
  .rd-promo-section .rd-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .rd-promo-section .rd-promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rd-promo {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: 1.15rem 1.2rem 1.05rem;
}
.rd-promo__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}
.rd-promo__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.rd-promo__title,
.rd-promo__head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.rd-promo__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.rd-promo__nocode {
  margin: 0;
  font-size: 0.88rem;
}
.rd-promo__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.rd-promo__code-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rd-promo__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px dashed rgba(15, 23, 42, 0.22);
  letter-spacing: 0.05em;
}
[data-theme="dark"] .rd-promo__code,
.dark .rd-promo__code {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.rd-promo__copy {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  width: auto;
  align-self: auto;
  margin-top: 0;
}
.rd-promo__dates {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}
.rd-promo__dates time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.rd-promo__verified {
  font-size: 0.8rem;
}
.rd-promo__aff,
.rd-promo__terms {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}
/* Pin CTA row to same bottom edge on every equal-height card */
.rd-promo__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.95rem;
}
.rd-promo__actions .btn,
.rd-promo__actions a.btn,
.rd-promo .rd-promo__cta {
  width: 100%;
  margin-top: 0;
  justify-content: center;
  box-sizing: border-box;
}
.rd-promo-footnote {
  margin-top: 0.85rem;
  font-size: 0.85rem;
}

