/* ── Theme tokens ───────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f9f9fb;
  --surface-3: #f3f3f7;
  --border: #eaeaef;
  --text: #111111;
  --text-muted: #555555;
  --text-faint: #888888;
  --accent: #f7803c;
  --nav-bg: rgba(255, 255, 255, .7);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, .05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .08);
  /* Sticky topnav height — used by .hero / .hero-wall to slide under it.
     Overridden per breakpoint at the bottom of this file. */
  --topnav-h: 76px;
  /* Horizontal hero color band — overridden per theme */
  --hero-color-left:   #ffadb2;
  --hero-color-mid1:   #ffc8cc;
  --hero-color-mid:    #ecdde2;
  --hero-color-mid2:   #c8eaff;
  --hero-color-right:  #a6dfff;
  /* Vertical fade endpoint — usually equals --bg */
  --hero-fade-color:   #ffffff;
  --hero-fade-mid-1:   rgba(255, 255, 255, .55);
  --hero-fade-mid-2:   rgba(255, 255, 255, .95);

  --gradient-wall: var(--wall-fade), var(--wall-color), var(--bg);
  --wall-color:
    linear-gradient(90deg,
                    var(--hero-color-left)  0%,
                    var(--hero-color-mid1)  28%,
                    var(--hero-color-mid)   50%,
                    var(--hero-color-mid2)  72%,
                    var(--hero-color-right) 100%)
    top / 100% 780px no-repeat;
  --wall-fade:
    linear-gradient(180deg, transparent 0%,
                    var(--hero-fade-mid-1) 55%,
                    var(--hero-fade-mid-2) 80%,
                    var(--hero-fade-color) 100%)
    top / 100% 780px no-repeat;
  --gradient-tab: linear-gradient(135deg, #fff2e8 0%, #f0f7ff 100%);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d1015;
  --surface: #15181f;
  --surface-2: #1b1f27;
  --surface-3: #232831;
  --border: #2a2f3a;
  --text: #f0f2f6;
  --text-muted: #a3a8b3;
  --text-faint: #7b8090;
  --nav-bg: rgba(15, 18, 24, .75);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .45);
  /* Dark-family hero gradient: deep rose left → muted plum → deep navy right */
  --hero-color-left:   #5e2734;
  --hero-color-mid1:   #4a263d;
  --hero-color-mid:    #2a2440;
  --hero-color-mid2:   #1d3858;
  --hero-color-right:  #143350;
  --hero-fade-color:   #0d1015;
  --hero-fade-mid-1:   rgba(13, 16, 21, .55);
  --hero-fade-mid-2:   rgba(13, 16, 21, .95);
  --gradient-tab: linear-gradient(135deg, #221917 0%, #131a23 100%);
  color-scheme: dark;
}

/* ── Reset / typography ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

@font-face {
  font-family: 'Inter';
  src: url("/static/Inter-Regular.latin-JLQMKCHE.e8e69f41b1da.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url("/static/Inter-Medium.latin-Y3IVPL46.f366e7b832c6.woff2") format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url("/static/Inter-SemiBold.latin-RDYY2AG2.6a7880ce1bd9.woff2") format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero {
  position: relative; padding: 120px 24px 64px;
  text-align: center; overflow: hidden;
  /* The header is fixed (overlay), so the gradient already reaches the very
     top; the top padding keeps content clear of the bar. */
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
                    transparent 0%,
                    transparent 55%,
                    var(--hero-fade-mid-1) 78%,
                    var(--hero-fade-mid-2) 94%,
                    var(--hero-fade-color) 100%),
    linear-gradient(90deg,
                    var(--hero-color-left)  0%,
                    var(--hero-color-mid1)  28%,
                    var(--hero-color-mid)   50%,
                    var(--hero-color-mid2)  72%,
                    var(--hero-color-right) 100%);
}
.hero .eyebrow { color: #f7803c; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; max-width: 760px; margin: 0 auto 24px; }
.hero p.lead { font-size: 1.125rem; color: #555; max-width: 560px; margin: 0 auto 24px; }
.section { padding-block: 64px; }
.section h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 700; text-align: center; margin-bottom: 12px; }
.section h2 + p.lead,
.section .lead { text-align: center; color: #555; max-width: 600px; margin: 0 auto 32px; }
.section-eyebrow { text-align: center; color: #f7803c; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease,
              border-color .25s ease;
}
.topnav.is-scrolled {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(0, 0, 0, .06);
}
[data-theme="dark"] .topnav.is-scrolled {
  background: rgba(15, 18, 24, .65);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.brand { font-weight: 700; font-size: 1.25rem;
  display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #333; font-size: .95rem; }
.nav-links a:hover { color: #000; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-mobile-cta { display: none; }
.nav-toggle {
  display: none;
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 1px;
  background: var(--text); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 0;
  transition: opacity .15s ease, transform .15s ease;
  text-decoration: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary { background: #f7803c; color: #fff; }
.btn-secondary { background: #fff; color: #111; border: 1px solid #ddd; }
.btn-ghost { background: transparent; color: #111; }

/* ── Stats banner ───────────────────────────────────────────────────── */
.stats-banner {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 24px; margin: 24px auto; max-width: 1100px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.stat { text-align: center; padding: 16px; }
.stat .num { font-size: 1.75rem; font-weight: 700; color: #1a1a1a; }
.stat .label { color: #555; font-size: .9rem; margin-top: 4px; }
.stat .sublabel { color: #999; font-size: .75rem; margin-top: 4px; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px 24px 24px; }
.card-body h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card-meta { color: #888; font-size: .85rem; margin-bottom: 8px; }

/* ── Feature grid (Why join) ────────────────────────────────────────── */
.feature {
  background: #f9f9fb; border-radius: 16px; padding: 32px 24px;
  border: 1px solid #efeff3;
}
.feature .icon { font-size: 2rem; margin-bottom: 16px; }
.feature .icon img { width: 48px; height: 48px; }
.feature h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature p { color: #555; font-size: .95rem; }

/* ── Why join — big illustrated cards (matches template) ─────────── */
.why-join { max-width: 1200px; }
.why-join h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px;
}
.why-card {
  background: #fafafa; border: 1px solid #eee; border-radius: 18px;
  padding: 32px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.why-card:hover {
  transform: translateY(-4px); background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}
.why-art {
  flex: 1; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.why-art img { width: 100%; max-width: 280px; height: 180px; object-fit: contain; }
.why-card h3 {
  font-size: 1.25rem; font-weight: 700; color: #111;
  line-height: 1.35; margin: 0;
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid #eee;
}
.step .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: #f7803c; color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1.125rem;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #555; }

/* ── Tabs ──────────────────────────────────────────────────────────── */
.tabs-wrap { max-width: 1200px; margin: 0 auto; }
.tabs-bar {
  display: flex; gap: 6px; padding: 8px;
  background: #f3f3f7; border-radius: 999px; margin-bottom: 32px;
  overflow-x: auto;
}
.tabs-bar button {
  flex: 1; padding: 14px 22px; border: 0; background: transparent;
  border-radius: 999px; cursor: pointer; font-weight: 500; color: #555;
  white-space: nowrap; font-family: inherit; font-size: 1rem;
}
.tabs-bar button.is-active { background: #fff; color: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,.07); font-weight: 600; }
.tabs-panel { display: none;
  background: linear-gradient(135deg, #fff2e8 0%, #f0f7ff 100%);
  border-radius: 28px; padding: 56px; gap: 48px;
  grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 420px;
}
.tabs-panel.is-active { display: grid; }
.tabs-panel h3 { font-size: 1.75rem; margin-bottom: 20px; }
.tabs-panel p { color: #444; margin-bottom: 12px; font-size: 1rem; }
.tabs-panel p strong { display: block; color: #111; margin-bottom: 4px; }
.tabs-panel .mockup {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  min-height: 320px;
}
.tabs-panel .mockup img { width: 100%; border-radius: 8px; }
.tabs-panel .mockup-checklist { width: 100%; }

/* Default placeholder mockup: prompt checklist */
.mockup-checklist .mc-head {
  font-weight: 600; color: #111; margin-bottom: 16px; font-size: 1rem;
}
.mockup-checklist .mc-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border: 1px solid #eef0f3; border-radius: 12px;
  margin-bottom: 10px; background: #fff;
}
.mockup-checklist .mc-item .check {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: #e6f4ea; color: #2e7d4f; display: flex;
  align-items: center; justify-content: center; font-size: .85rem;
  font-weight: 700;
}
.mockup-checklist .mc-item.is-pending .check { background: #f1f1f5; color: #888; }
.mockup-checklist .mc-item .mc-text { font-size: .9rem; color: #333; line-height: 1.4; }

/* ── Hero-wall combo (shared big gradient backdrop) ─────────────────── */
.hero-wall {
  position: relative; overflow: hidden;
  padding: 80px 0 64px;
  background:
    radial-gradient(1400px 800px at 10% -20%, #fbd2d3 0%, transparent 65%),
    radial-gradient(1400px 800px at 90% -20%, #c9efff 0%, transparent 65%),
    linear-gradient(180deg, #fbfbfb 70%, #fff 100%);
}
.hero-wall {
  /* Header is fixed (overlay); just pad content clear of it. */
  padding-top: calc(var(--topnav-h, 78px) + 80px);
}
/* Pages whose first block is a plain article (legal, etc.) have no hero to
   sit behind the fixed header, so clear it explicitly. */
main > .article:first-child { padding-top: calc(var(--topnav-h, 78px) + 48px); }
.hero-wall .hero {
  padding: 0 24px 48px; background: none;
  margin-top: 0; /* override the global hero rule — wall already slid up */
}
.hero-wall .hero::before { content: none; }
.hero-wall .wall-head { text-align: center; margin: 32px 0 24px; padding: 0 24px; }
.hero-wall .wall-head h2 { font-size: clamp(1.5rem,2.5vw,2.25rem); font-weight: 700; }

/* ── Expert wall (homepage masonry — auto-scrolling marquee) ────────── */
.wall-marquee {
  overflow: hidden; position: relative;
  padding: 8px 0 24px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.wall-track {
  display: flex; gap: 16px; width: max-content;
  animation: wall-marquee 60s linear infinite;
}
.wall-track:hover { animation-play-state: paused; }

@keyframes wall-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wall-col {
  flex: 0 0 220px; display: flex; flex-direction: column; gap: 16px;
}
.wall-col[data-shift="80"]  { margin-top: 80px; }
.wall-col[data-shift="140"] { margin-top: 140px; }

@media (prefers-reduced-motion: reduce) {
  .wall-track { animation: none; }
  .wall-marquee { overflow-x: auto; }
}

.wall-stat,
.wall-expert {
  border-radius: 20px; position: relative; overflow: hidden;
  color: #fff; padding: 20px; display: flex; flex-direction: column;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
}
.wall-stat {
  min-height: 160px; justify-content: space-between;
  background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
  color: var(--text, #fff);
}
.wall-stat .num   { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.wall-stat .label { font-size: .9rem; opacity: .9; margin-top: auto; padding-top: 24px; }

.wall-stat.theme-blue   { --c1:#cfe9ff; --c2:#8fc1e8; --text:#0e2c40; }
.wall-stat.theme-red    { --c1:#f7c0c2; --c2:#dc6a72; --text:#3b0c12; }
.wall-stat.theme-purple { --c1:#c8b2eb; --c2:#7a55c2; --text:#1c0a3a; }
.wall-stat.theme-green  { --c1:#a7d8b2; --c2:#3e8c70; --text:#0c2b1f; }
.wall-stat.theme-amber  { --c1:#fad9a1; --c2:#e2914a; --text:#3a2008; }
.wall-stat.theme-slate  { --c1:#dadfe8; --c2:#7d8794; --text:#0e1726; }

.wall-expert {
  min-height: 280px; background-size: cover; background-position: center;
  justify-content: flex-end;
}
.wall-expert.no-photo { background: linear-gradient(160deg, var(--bg), color-mix(in srgb, var(--bg) 60%, #000)); }
.wall-expert::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78) 100%);
}
.wall-expert .meta { position: relative; z-index: 2; }
.wall-expert .meta strong { display: block; font-size: 1.05rem; font-weight: 700; }
.wall-expert .meta span   { font-size: .85rem; opacity: .9; }

.wall-col-tall .wall-expert { min-height: 340px; }

/* ── Carousel (expert slider) ───────────────────────────────────────── */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 8px 4px 24px;
  scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.carousel-track > * { flex: 0 0 240px; scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  font-size: 1.25rem; cursor: pointer; z-index: 2; color: #111;
}
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
.carousel-btn:hover { background: #f7803c; color: #fff; }

/* ── Experts grid ───────────────────────────────────────────────────── */
.expert {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px;
  background: #f0f0f0 center / cover no-repeat; overflow: hidden; color: #fff;
}
.expert::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7) 100%); }
.expert .meta { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 2; }
.expert .meta strong { display: block; font-size: 1rem; }
.expert .meta span { font-size: .8rem; opacity: .9; }

/* ── Trustpilot pill ────────────────────────────────────────────────── */
.trustpilot {
  display: inline-flex; flex-direction: column; align-items: center;
  background: #f3f8fb; padding: 16px 24px; border-radius: 16px; gap: 4px;
}
.trustpilot .rating { font-weight: 700; }
.trustpilot .stars { color: #2e8a5e; letter-spacing: 2px; }
.trustpilot .count { color: #777; font-size: .85rem; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-section { margin-bottom: 32px; }
.faq-section h3 { font-size: 1.5rem; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-weight: 500; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '▾'; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .answer { padding: 0 0 18px; color: #555; }

/* ── Article ────────────────────────────────────────────────────────── */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.article h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.article .meta { color: #888; margin-bottom: 24px; font-size: .9rem; }
.article .cover { border-radius: 16px; margin-bottom: 32px; }
.article .content { font-size: 1.05rem; }
.article .content p { margin-bottom: 16px; }
.article .content h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.article .content h3 { font-size: 1.25rem; margin: 24px 0 8px; }
.article .content ul, .article .content ol { padding-left: 1.25rem; margin-bottom: 16px; }
.article .content a { color: #2a5cff; text-decoration: underline; }

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .85rem; font-weight: 500;
  color: #444; margin-bottom: 6px; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=password],
.form-row textarea,
.form-row select {
  width: 100%; padding: 12px 14px;
  border: 1px solid #d8d8df; border-radius: 8px; font-size: .95rem;
  font-family: inherit; background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid #f7803c; outline-offset: 1px;
}
.form-row .errors {
  color: #c63333; font-size: .85rem; margin-top: 6px;
}

.newsletter-card {
  background: linear-gradient(135deg, #fef2eb 0%, #fde2d4 50%, #f6e3ec 100%);
  color: var(--text); padding: 40px 32px; border-radius: 20px;
  display: grid; gap: 24px; grid-template-columns: 1fr auto;
  align-items: center; border: 1px solid #f3d8c6;
}
.newsletter-card h3 { font-size: 1.5rem; color: var(--text); }
.newsletter-card p { color: var(--text-muted); margin-top: 8px; max-width: 380px; }
.newsletter-card form { display: flex; gap: 8px; }
.newsletter-card input[type=email] {
  flex: 1; padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08); background: #fff; min-width: 240px;
  color: #111;
}
.newsletter-card button {
  padding: 12px 24px; border-radius: 999px; background: var(--accent);
  color: #fff; border: 0; cursor: pointer; font-weight: 600;
}
[data-theme="dark"] .newsletter-card {
  background: linear-gradient(135deg, #1a1c20, #2a2e36);
  color: #fff; border-color: transparent;
}
[data-theme="dark"] .newsletter-card h3 { color: #fff; }
[data-theme="dark"] .newsletter-card p { color: #b9bbc1; }
[data-theme="dark"] .newsletter-card input[type=email] {
  border-color: transparent;
}

/* ── Messages flash ─────────────────────────────────────────────────── */
.messages {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
}
.message {
  padding: 12px 18px; border-radius: 8px; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); font-size: .9rem;
  border-left: 3px solid #2e8a5e;
}
.message.error { border-left-color: #c63333; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #111; color: #ccc; padding: 64px 24px 32px;
  margin-top: 80px;
}
.site-footer .container { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .small { font-size: .8rem; color: #777; margin-top: 24px;
  padding-top: 24px; border-top: 1px solid #2a2a2a; }

/* ── Language picker (dropdown) ─────────────────────────────────────── */
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--surface-3, #ddd); background: var(--surface, #fff);
  font-size: .85rem; color: var(--text, #333); font-family: inherit;
}
.lang-dropdown > summary::-webkit-details-marker { display: none; }
.lang-dropdown > summary .globe { font-size: 1.05em; opacity: .85; line-height: 1; }
.lang-dropdown > summary .caret { font-size: .7em; opacity: .6; transition: transform .15s ease; }
.lang-dropdown[open] > summary .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60;
  min-width: 168px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface, #fff); border: 1px solid var(--surface-3, #e2e2e2);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}
.lang-menu form { margin: 0; }
.lang-menu button {
  width: 100%; text-align: start; background: transparent; border: 0;
  padding: 8px 10px; border-radius: 7px; font-size: .9rem; cursor: pointer;
  color: var(--text, #333); font-family: inherit;
}
.lang-menu button:hover { background: var(--surface-2, #f3f3f7); }
.lang-menu button.is-current {
  background: var(--surface-2, #f3f3f7); font-weight: 600; color: var(--text, #111);
}

/* ── Testimonials (mixed video + text carousel) ─────────────────────── */
.testimonials-section { padding-bottom: 32px; }
.testimonials-carousel .carousel-track { padding: 24px 4px 32px; gap: 24px; }
.testimonials-carousel .carousel-track > .t-card { flex: 0 0 320px; }

.t-card {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.t-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0, 0, 0, .1); }

/* Video poster cards */
.t-card--video {
  position: relative; aspect-ratio: 9 / 14; overflow: hidden;
  background: #15171c center / cover no-repeat;
  display: block; color: #fff; text-decoration: none;
}
.t-card--video::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7) 100%);
}
.t-card--video .t-play {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; padding-left: 2px;
}
.t-card--video .t-video-title {
  position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 2;
  font-weight: 700; font-size: 1rem; line-height: 1.25;
}
.t-card--video .t-duration {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-size: .85rem; opacity: .9;
}

/* Text quote cards */
.t-card--text {
  padding: 28px 24px; display: flex; flex-direction: column; gap: 20px;
  aspect-ratio: 9 / 14;
}
.t-quote { color: var(--text-muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.t-quote strong { color: var(--text); font-weight: 600; }
.t-attrib { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ddd center / cover no-repeat; flex-shrink: 0;
}
.t-avatar--fallback {
  background: linear-gradient(135deg, #c0a0a8, #6aa8c6);
}
.t-attrib strong { display: block; color: var(--text); font-size: .95rem; }
.t-attrib span { color: var(--text-faint); font-size: .85rem; }

[data-theme="dark"] .t-card { background: var(--surface-2); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
[data-theme="dark"] .testimonials-carousel .carousel-track::-webkit-scrollbar-thumb {
  background: var(--border);
}

/* ── Steps (interactive 2-col list) ─────────────────────────────────── */
.steps-section { padding-bottom: 64px; }
.steps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start; margin-top: 40px;
}
.steps-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.steps-nav li { border-top: 1px solid var(--border); }
.steps-nav li:last-child { border-bottom: 1px solid var(--border); }
.step-nav-item {
  width: 100%; background: transparent; border: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 24px 8px; text-align: left; cursor: pointer;
  color: var(--text-faint); font-family: inherit; font-size: 1rem;
  font-weight: 500; transition: color .15s ease;
}
.step-nav-item:hover { color: var(--text); }
.step-nav-item.is-active { color: var(--text); font-weight: 700; }
.step-nav-item .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  background: transparent; color: var(--text-faint);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.step-nav-item.is-active .step-num {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}

.steps-detail { position: relative; min-height: 320px; }
.step-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-sm);
}
.step-panel.is-active { display: block; }
.step-panel h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-panel p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

/* Inputs/rows rendered via detail_html */
.step-html .field-label { font-size: .8rem; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 18px 0 8px; font-weight: 600; }
.step-html .field-label:first-child { margin-top: 0; }
.step-html .field-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; background: var(--bg);
  font-size: .9rem; color: var(--text);
}
.step-html .field-row .field-icon {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--text-faint);
}
.step-html .field-row .field-name { flex: 1; }
.step-html .field-row .field-add {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; line-height: 1;
}
.step-html .step-action {
  display: inline-block; width: 100%; text-align: center;
  margin-top: 16px; padding: 14px;
  background: var(--accent); color: #fff; font-weight: 600;
  border-radius: 999px; border: 0; cursor: pointer; font-size: .95rem;
  font-family: inherit; text-decoration: none;
}
.step-html .step-action:hover { opacity: .9; }

/* ── Pricing page ───────────────────────────────────────────────────── */
.pricing-section { padding-top: 32px; }
.pricing-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch; max-width: 1200px; margin: 0 auto;
}
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.is-featured {
  /* Slightly larger + accent gradient border, no glow */
  padding: 44px 36px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), #6aa8c6) border-box;
  transform: translateY(-8px);
}
.pricing-card.is-featured:hover { transform: translateY(-12px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px;
}
.pricing-head h3 {
  font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; }
.pricing-price .amount {
  font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; color: var(--text); line-height: 1;
}
.pricing-price .period { color: var(--text-faint); font-size: .9rem; }

.pricing-items { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing-items li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-muted); font-size: .92rem; line-height: 1.45;
}
.pricing-items li .mark {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  background: rgba(247, 128, 60, .12); color: var(--accent);
}
.pricing-items li.is-excluded { color: var(--text-faint); text-decoration: line-through; }
.pricing-items li.is-excluded .mark { background: var(--surface-3); color: var(--text-faint); }

.pricing-cta { justify-content: center; padding: 14px 24px; }

/* ── Closing CTA banner ─────────────────────────────────────────────── */
.closing-cta-wrap { padding: 48px 24px; }
.closing-cta {
  border-radius: 28px;
  padding: 80px 32px;
  text-align: center;
  background: linear-gradient(90deg,
    #dff1fb 0%,
    #ecf0f4 35%,
    #f1eaec 65%,
    #fcdcdd 100%);
}
.closing-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; color: #111;
  max-width: 720px; margin: 0 auto 32px;
}
.closing-cta .btn-primary {
  padding: 16px 32px; font-size: 1rem;
}
[data-theme="dark"] .closing-cta {
  background: linear-gradient(90deg,
    rgba(70, 130, 170, .22) 0%,
    rgba(60, 70, 90, .22) 35%,
    rgba(150, 90, 100, .22) 65%,
    rgba(200, 100, 110, .25) 100%),
    var(--surface);
}
[data-theme="dark"] .closing-cta h2 { color: var(--text); }

/* ── Theme toggle button ────────────────────────────────────────────── */
.theme-toggle {
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); font-size: 1rem;
  font-family: inherit; padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.theme-toggle:hover { background: var(--surface-3); transform: translateY(-1px); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline; }
[data-theme="dark"] .theme-toggle .sun { display: inline; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ── Dark-mode overrides ────────────────────────────────────────────── */
[data-theme="dark"] .topnav.is-scrolled { border-bottom-color: var(--border); }
[data-theme="dark"] .nav-links a { color: var(--text-muted); }
[data-theme="dark"] .nav-links a:hover { color: var(--text); }

[data-theme="dark"] .btn-secondary {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .btn-ghost { color: var(--text); }

[data-theme="dark"] .stats-banner { background: var(--surface); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .stat .num { color: var(--text); }
[data-theme="dark"] .stat .label { color: var(--text-muted); }
[data-theme="dark"] .stat .sublabel { color: var(--text-faint); }

[data-theme="dark"] .card { background: var(--surface); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .card-meta { color: var(--text-faint); }
[data-theme="dark"] .card-body h3 { color: var(--text); }

.section .lead, .hero p.lead { color: var(--text-muted); }
.section h2, .hero h1 { color: var(--text); }

[data-theme="dark"] .feature { background: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .feature h3 { color: var(--text); }
[data-theme="dark"] .feature p { color: var(--text-muted); }

[data-theme="dark"] .why-card {
  background: var(--surface-2); border-color: var(--border);
}
[data-theme="dark"] .why-card:hover {
  background: var(--surface); box-shadow: var(--shadow-md);
}
[data-theme="dark"] .why-card h3 { color: var(--text); }
[data-theme="dark"] .why-art img { filter: invert(.92) hue-rotate(180deg); }

[data-theme="dark"] .tabs-bar { background: var(--surface-2); }
[data-theme="dark"] .tabs-bar button { color: var(--text-muted); }
[data-theme="dark"] .tabs-bar button.is-active {
  background: var(--surface); color: var(--text);
}
.tabs-panel { background: var(--gradient-tab); }
[data-theme="dark"] .tabs-panel h3 { color: var(--text); }
[data-theme="dark"] .tabs-panel p { color: var(--text-muted); }
[data-theme="dark"] .tabs-panel p strong { color: var(--text); }
[data-theme="dark"] .tabs-panel .mockup {
  background: var(--surface); box-shadow: var(--shadow-md);
}
[data-theme="dark"] .mockup-checklist .mc-head { color: var(--text); }
[data-theme="dark"] .mockup-checklist .mc-item {
  background: var(--surface-2); border-color: var(--border);
}
[data-theme="dark"] .mockup-checklist .mc-item .mc-text { color: var(--text-muted); }
[data-theme="dark"] .mockup-checklist .mc-item.is-pending .check {
  background: var(--surface-3); color: var(--text-faint);
}

.hero-wall { background: var(--gradient-wall); }

[data-theme="dark"] .step { border-bottom-color: var(--border); }
[data-theme="dark"] .step h3 { color: var(--text); }
[data-theme="dark"] .step p { color: var(--text-muted); }

[data-theme="dark"] .faq-item { border-bottom-color: var(--border); }
[data-theme="dark"] .faq-item summary { color: var(--text); }
[data-theme="dark"] .faq-item .answer { color: var(--text-muted); }

[data-theme="dark"] .carousel-btn {
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md);
}
[data-theme="dark"] .carousel-btn:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .carousel-track::-webkit-scrollbar-thumb { background: var(--border); }

[data-theme="dark"] .trustpilot { background: var(--surface-2); }
[data-theme="dark"] .trustpilot .count { color: var(--text-faint); }

[data-theme="dark"] .article h1, [data-theme="dark"] .article .content h2,
[data-theme="dark"] .article .content h3 { color: var(--text); }
[data-theme="dark"] .article .meta { color: var(--text-faint); }
[data-theme="dark"] .article .content { color: var(--text-muted); }
[data-theme="dark"] .article .content a { color: #6ea4ff; }

[data-theme="dark"] .form-row label { color: var(--text-muted); }
[data-theme="dark"] .form-row input[type=text],
[data-theme="dark"] .form-row input[type=email],
[data-theme="dark"] .form-row input[type=password],
[data-theme="dark"] .form-row textarea,
[data-theme="dark"] .form-row select {
  background: var(--surface-2); border-color: var(--border); color: var(--text);
}

[data-theme="dark"] .message { background: var(--surface); color: var(--text); }

[data-theme="dark"] .lang-picker button { color: var(--text-muted); }
[data-theme="dark"] .lang-picker button[aria-current="true"] {
  background: var(--surface-2); border-color: var(--border); color: var(--text);
}

[data-theme="dark"] .wall-stat,
[data-theme="dark"] .wall-expert { box-shadow: 0 4px 16px rgba(0,0,0,.4); }

/* ════════════════════════════════════════════════════════════════════════
   Responsive system
   ────────────────────────────────────────────────────────────────────────
   Breakpoint scale:
     mobile      < 768px       1-col, swipe carousels, drawer nav
     tablet      768–1023px    2-col grids, drawer nav, condensed padding
     desktop     ≥ 1024px      full layout (default rules above)

   Carousel utility (mobile only): any of .pricing-grid, .why-grid,
   .grid.grid-3, .grid.grid-2, .grid.grid-4, .stats-banner becomes a
   horizontal scroll-snap carousel with a peek of the next card.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Tablet & below (drawer nav, 2-col fallbacks) ────────────────────── */
@media (max-width: 1023px) {
  :root { --topnav-h: 68px; }

  .container { padding: 0 24px; }
  .section { padding-block: 56px; }
  .topnav { padding: 14px 20px; }

  /* Hide desktop-only nav bits; show hamburger */
  .nav-toggle { display: inline-flex; }
  .nav-desktop-only { display: none !important; }
  .nav-cta { gap: 8px; }

  /* Drawer */
  .nav-links {
    display: none; position: fixed; left: 0; right: 0;
    top: var(--topnav-h); bottom: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); padding: 16px 24px 32px;
    overflow-y: auto; z-index: 49;
    border-top: 1px solid var(--border);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 16px 4px; font-size: 1rem;
    border-bottom: 1px solid var(--border); color: var(--text);
  }
  .nav-mobile-cta {
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 24px; margin-top: 8px;
  }
  .nav-mobile-cta .btn { justify-content: center; width: 100%; }
  .nav-mobile-cta form { margin: 0; }
  .nav-mobile-cta form button { width: 100%; }
  .nav-mobile-lang { display: flex; justify-content: center; margin-top: 8px; }
  .nav-mobile-lang .lang-picker { display: inline-flex !important; gap: 4px;
    background: var(--surface-2); padding: 4px; border-radius: 999px; }
  .nav-mobile-lang .lang-picker button { padding: 6px 12px; font-size: .85rem; }
  body.nav-open { overflow: hidden; }

  /* Hero rhythm */
  .hero { padding: 72px 24px 48px; }
  .hero h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
  .hero p.lead { font-size: 1rem; }

  /* Two-col panels collapse to one */
  .tabs-panel { grid-template-columns: 1fr; padding: 40px 32px;
                gap: 32px; min-height: 0; }
  .tabs-panel h3 { font-size: 1.4rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Why cards stay 2x2 on tablet, tighter */
  .why-card { min-height: 240px; padding: 28px; }
  .why-art img { height: 150px; }

  /* Footer: 2 columns on tablet, brand row spans both */
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .container > *:first-child { grid-column: 1 / -1; }

  /* Marquee tiles slightly smaller */
  .wall-col { flex-basis: 200px; }
  .wall-col[data-shift="80"]  { margin-top: 60px; }
  .wall-col[data-shift="140"] { margin-top: 110px; }
}

/* ── Mobile (carousels, single-column rhythm) ────────────────────────── */
@media (max-width: 767px) {
  :root { --topnav-h: 60px; }

  /* Rhythm */
  .container { padding: 0 16px; }
  .section { padding-block: 40px; }
  .topnav { padding: 10px 16px; }
  .lang-picker { display: none; }

  /* Hero */
  .hero { padding: 56px 16px 32px; }
  .hero .eyebrow { font-size: .72rem; }
  .hero h1 { font-size: clamp(1.65rem, 6.5vw, 2.1rem); margin-bottom: 14px;
             overflow-wrap: anywhere; max-width: 100%; }
  .hero p.lead { font-size: .95rem; margin-bottom: 20px;
                 overflow-wrap: anywhere; }
  .hero-wall { padding: 0 0 32px;
               padding-top: calc(var(--topnav-h) + 40px); }

  /* Section headings */
  .section h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .section h2 + p.lead, .section .lead { font-size: .95rem; }

  /* ── Mobile carousel utility ──
     Cards become horizontal scroll-snap with a peek of the next card.
     Margin trick lets them bleed to the viewport edge inside .container. */
  .pricing-grid,
  .why-grid,
  .grid.grid-3,
  .grid.grid-2,
  .grid.grid-4,
  .stats-banner {
    display: flex; flex-wrap: nowrap; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin-left: -16px; margin-right: -16px;
    /* Extra top padding so absolutely-positioned badges (e.g. pricing
       "MOST POPULAR") aren't clipped by the carousel's overflow box. */
    padding: 24px 16px 18px;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,
  .grid::-webkit-scrollbar,
  .stats-banner::-webkit-scrollbar { display: none; }
  .pricing-grid > *,
  .why-grid > *,
  .grid.grid-3 > *,
  .grid.grid-2 > *,
  .grid.grid-4 > *,
  .stats-banner > * {
    flex: 0 0 calc(86% - 8px);
    scroll-snap-align: start;
    min-width: 0; max-width: none;
  }

  /* Why card: vertical layout inside the carousel slot */
  .why-card {
    flex-direction: column; align-items: stretch;
    padding: 24px; min-height: 280px; gap: 0;
  }
  .why-art { flex: 1; width: 100%; height: auto; margin-bottom: 16px; }
  .why-art img { width: 100%; max-width: 220px; height: 130px;
                  max-height: 140px; }
  .why-card h3 { font-size: 1.05rem; flex: 0; }

  /* Pricing tweaks inside the carousel */
  .pricing-card { padding: 32px 26px; }
  .pricing-card.is-featured { padding: 32px 26px; transform: none; }
  .pricing-card.is-featured:hover { transform: translateY(-3px); }
  .pricing-badge { font-size: .68rem; padding: 5px 12px; }

  /* Stats banner: behave as carousel of light cards */
  .stats-banner { background: transparent; box-shadow: none; }
  .stats-banner > .stat {
    flex-basis: calc(64% - 8px);
    background: var(--surface); border-radius: 14px;
    box-shadow: var(--shadow-sm); padding: 18px 16px;
  }
  [data-theme="dark"] .stats-banner > .stat { background: var(--surface); }

  /* Tabs */
  .tabs-bar { padding: 4px; gap: 2px; margin-bottom: 24px; }
  .tabs-bar button { padding: 10px 14px; font-size: .85rem; }
  .tabs-panel { padding: 28px 22px; gap: 22px; border-radius: 20px; }
  .tabs-panel h3 { font-size: 1.2rem; margin-bottom: 12px; }
  .tabs-panel p { font-size: .92rem; }
  .tabs-panel .mockup { padding: 18px; min-height: 0; }
  .mockup-checklist .mc-head { font-size: .95rem; margin-bottom: 12px; }
  .mockup-checklist .mc-item { padding: 10px; margin-bottom: 8px; }
  .mockup-checklist .mc-item .mc-text { font-size: .82rem; }

  /* Testimonials: stay a horizontal swipe carousel on mobile */
  .testimonials-carousel .carousel-track {
    display: flex; flex-direction: row; gap: 14px;
    overflow-x: auto; padding: 16px 16px 24px;
    margin: 0 -16px; scroll-padding-left: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .testimonials-carousel .carousel-track::-webkit-scrollbar { display: none; }
  .testimonials-carousel .carousel-track > .t-card {
    flex: 0 0 80%; width: auto; aspect-ratio: 9 / 14;
    scroll-snap-align: start;
  }
  .t-card--text { padding: 24px 20px; aspect-ratio: 9 / 14; }
  .t-card--video { min-height: 0; aspect-ratio: 9 / 14; }
  .carousel-btn { display: none !important; }

  /* Steps: panels become a horizontal scroll-snap carousel;
     nav becomes a pill row above. */
  .steps-grid { display: block; gap: 0; }
  .steps-nav {
    display: flex; flex-direction: row; gap: 8px;
    overflow-x: auto; padding: 0 16px 8px; margin: 0 -16px 14px;
    scrollbar-width: none;
  }
  .steps-nav::-webkit-scrollbar { display: none; }
  .steps-nav li { border: 0; flex: 0 0 auto; }
  .steps-nav li:last-child { border: 0; }
  .step-nav-item {
    padding: 10px 16px; gap: 8px;
    border: 1px solid var(--border); border-radius: 999px;
    font-size: .85rem; white-space: nowrap;
  }
  .step-nav-item.is-active {
    background: var(--text); color: var(--bg);
    border-color: var(--text);
  }
  .step-nav-item .step-num {
    width: 22px; height: 22px; font-size: .7rem;
    background: rgba(0,0,0,.06); border: 0;
  }
  .step-nav-item.is-active .step-num {
    background: rgba(255,255,255,.18); color: var(--bg);
  }
  /* Keep the desktop pattern on mobile: only the active panel is shown.
     The pill row above stays in sync with the click handler in site.js. */
  .steps-detail { min-height: 0; }
  .step-panel { padding: 24px 22px; }
  .step-panel h3 { font-size: 1.1rem; }

  /* Experts carousel (about, experts pages) */
  .carousel-track { padding: 8px 16px 20px; gap: 12px; margin: 0 -16px; }
  .carousel-track > * { flex: 0 0 180px; }

  /* Wall marquee */
  .wall-col { flex-basis: 150px; gap: 12px; }
  .wall-track { gap: 12px; animation-duration: 50s; }
  .wall-stat { min-height: 120px; padding: 12px; }
  .wall-stat .num { font-size: 1.25rem; }
  .wall-stat .label { font-size: .8rem; padding-top: 12px; }
  .wall-expert { min-height: 200px; }
  .wall-col-tall .wall-expert { min-height: 240px; }
  .wall-col[data-shift="80"]  { margin-top: 30px; }
  .wall-col[data-shift="140"] { margin-top: 60px; }

  /* Trustpilot pill */
  .trustpilot { padding: 14px 20px; }

  /* FAQ */
  .faq-section { margin-bottom: 20px; }
  .faq-section h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .faq-item summary { font-size: .95rem; padding: 14px 0; gap: 12px; }
  .faq-item .answer { font-size: .9rem; }

  /* Article */
  .article { padding: 32px 16px; }
  .article h1 { font-size: 1.6rem; }
  .article .content { font-size: .98rem; }

  /* Closing CTA */
  .closing-cta-wrap { padding: 24px 16px; }
  .closing-cta { padding: 48px 22px; border-radius: 22px; }
  .closing-cta h2 { font-size: 1.35rem; margin-bottom: 20px; }
  .closing-cta .btn-primary { padding: 14px 26px; }

  /* Newsletter */
  .newsletter-card {
    grid-template-columns: 1fr; text-align: center;
    padding: 28px 22px; gap: 18px;
  }
  .newsletter-card h3 { font-size: 1.2rem; }
  .newsletter-card p { margin: 0 auto; }
  .newsletter-card form { flex-direction: column; gap: 10px; }
  .newsletter-card input { min-width: 0; }

  /* Footer */
  .site-footer { padding: 48px 16px 24px; margin-top: 48px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 24px;
                             padding: 0; }
  .site-footer .container > *:first-child { grid-column: 1 / -1; }
  .site-footer ul li { margin: 8px 0; font-size: .9rem; }

  /* Theme toggle */
  .theme-toggle { width: 34px; height: 34px; }

  /* Messages */
  .messages { top: 12px; right: 12px; left: 12px; }
  .message { font-size: .85rem; }
}

/* ── Very small phones ───────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.55rem; }
  .nav-links a { font-size: .95rem; padding: 14px 4px; }
  .closing-cta h2 { font-size: 1.2rem; }
  .pricing-grid > *,
  .why-grid > *,
  .grid.grid-3 > *,
  .grid.grid-2 > *,
  .grid.grid-4 > *,
  .testimonials-carousel .carousel-track > .t-card { flex-basis: 90%; }
  .pricing-card { padding: 26px 20px; }
  .why-card { padding: 20px 18px; min-height: 240px; }
  .site-footer .container { grid-template-columns: 1fr; }
}
