/* YT Streem 24 — public pages (match landing) */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #12131a;
  --ink-soft: #2a2d3a;
  --body: #5b6172;
  --muted: #81879a;
  --line: rgba(18, 19, 26, 0.08);
  --line-strong: rgba(18, 19, 26, 0.14);
  --bg: #f3f1ec;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --live: #d4192c;
  --live-2: #ff4d5a;
  --cyan: #1aa7b0;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 10px 40px rgba(18, 19, 26, 0.08);
  --shadow-lg: 0 30px 80px rgba(18, 19, 26, 0.14);
  --font: "Figtree", system-ui, sans-serif;
  --display: "Space Grotesk", "Figtree", system-ui, sans-serif;

  /* legacy aliases */
  --lh-primary: var(--live);
  --lh-primary-dark: #b31424;
  --lh-primary-soft: rgba(212, 25, 44, 0.12);
  --lh-ink: var(--ink);
  --lh-body: var(--body);
  --lh-muted: var(--muted);
  --lh-line: rgba(18, 19, 26, 0.1);
  --lh-bg: var(--bg);
  --lh-soft: rgba(255, 255, 255, 0.55);
  --lh-radius: var(--radius);
  --lh-radius-sm: var(--radius-sm);
  --lh-pill: 999px;
  --lh-shadow: var(--shadow);
  --lh-shadow-lg: var(--shadow-lg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }

html { overflow-x: clip; }
body.public-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Keep page scrollbar visible while menu is open (do not lock overflow). */

img, svg, video, iframe { max-width: 100%; height: auto; }

/* Animated background (same language as landing) */
.bg-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(212, 25, 44, 0.14), transparent 55%),
    radial-gradient(900px 600px at 95% 5%, rgba(26, 167, 176, 0.12), transparent 50%),
    radial-gradient(800px 500px at 70% 100%, rgba(201, 162, 39, 0.1), transparent 55%),
    linear-gradient(180deg, #f7f5f0 0%, #efebe3 48%, #f3f1ec 100%);
}
.bg-world .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  mix-blend-mode: multiply;
  animation: blobFloat 18s ease-in-out infinite;
}
.bg-world .blob-a {
  width: 42vw; height: 42vw; max-width: 480px; max-height: 480px;
  left: -8%; top: 8%;
  background: rgba(212, 25, 44, 0.26);
}
.bg-world .blob-b {
  width: 36vw; height: 36vw; max-width: 420px; max-height: 420px;
  right: -6%; top: 22%;
  background: rgba(26, 167, 176, 0.22);
  animation-delay: -6s;
}
.bg-world .blob-c {
  width: 40vw; height: 40vw; max-width: 440px; max-height: 440px;
  left: 35%; bottom: -14%;
  background: rgba(201, 162, 39, 0.16);
  animation-delay: -11s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}
.bg-world .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18, 19, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 19, 26, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.bg-world .noise {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* No z-index here: fixed header/backdrop must compete in the root stacking context. */
.page-shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

/* Floating glass header */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 19, 26, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.nav-backdrop.is-on {
  opacity: 1;
  pointer-events: auto;
}
.nav-backdrop[hidden] { display: none !important; }
.nav-backdrop.is-on[hidden] { display: block !important; }

.site-header {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 1000;
  padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  pointer-events: none;
  max-width: 100vw;
  box-sizing: border-box;
}
.site-header-shell,
.site-header-inner,
.mobile-panel {
  pointer-events: auto;
}
/* One chrome card: closed + open menu share the exact same shell width. */
.site-header-shell {
  pointer-events: auto;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 40px rgba(18, 19, 26, 0.08), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.site-header.is-scrolled .site-header-shell {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 50px rgba(18, 19, 26, 0.12);
}
.site-header.menu-open .site-header-shell {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(18, 19, 26, 0.16);
}
.site-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 8px 10px 8px 14px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}
.site-header.menu-open .site-header-inner {
  border-bottom: 1px solid var(--line);
}
.site-header a,
.site-footer a {
  text-decoration: none !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 0;
  color: var(--ink) !important;
  overflow: hidden;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(168px, calc(100vw - 92px));
  object-fit: contain;
  object-position: left center;
}
.brand-logo-footer {
  height: 52px;
  max-width: min(240px, 70vw);
}
.nav-links {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0 0 0 auto;
  list-style: none;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.nav-links li {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft) !important;
  font-weight: 650;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(18,19,26,.06);
  color: var(--ink) !important;
  outline: none;
}
.nav-links a:active { background: rgba(18,19,26,.09); }
.nav-actions {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: 4px;
  flex: 0 0 auto;
}
.nav-actions .btn-pro {
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.nav-actions .btn-pro:hover {
  transform: translateY(-1px);
}
.footer-col a,
.footer-mail {
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-toggle {
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: #f7f7f8; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .22s ease, opacity .22s ease, top .22s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.site-header.menu-open .nav-toggle span { background: transparent; }
.site-header.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-panel {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  pointer-events: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 8px 10px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-height: min(68dvh, calc(100dvh - 92px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-panel.open,
.mobile-panel.open[hidden] { display: block !important; }
.mobile-panel[hidden]:not(.open) { display: none !important; }
.mobile-nav { display: grid; gap: 2px; }
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--ink) !important; font-weight: 650; font-size: .92rem;
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible { background: rgba(18,19,26,.045); outline: none; }
.mobile-nav-legal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mobile-nav-legal a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(18,19,26,.035);
  color: var(--ink-soft) !important;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-nav-legal a:hover,
.mobile-nav-legal a:focus-visible {
  background: rgba(212,25,44,.08);
  color: var(--live) !important;
  outline: none;
}
.mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mobile-actions .btn-pro {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: .88rem;
}
.mobile-actions .btn-pro:only-child { grid-column: 1 / -1; }

@media (max-width: 379.98px) {
  .brand-logo { max-width: min(142px, calc(100vw - 86px)); height: 36px; }
  .mobile-nav-legal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .mobile-nav-legal a { font-size: .7rem; min-height: 32px; }
  .mobile-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .nav-actions { display: flex; margin-left: 0; margin-right: 4px; }
  .nav-actions .btn-pro-ghost { display: none; }
  .nav-actions .btn-sm { min-height: 40px; padding: 0 14px; }
  .nav-toggle { margin-left: 0; }
  .brand { flex: 1 1 auto; }
  .mobile-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .brand { flex: 0 0 auto; overflow: visible; }
  .brand-logo { max-width: 180px; height: 42px; }
  .nav-links, .nav-actions { display: flex; }
  .nav-links { margin-left: auto; }
  .nav-toggle, .mobile-panel, .nav-backdrop { display: none !important; }
  body.nav-locked, html.nav-locked { overflow: auto; touch-action: auto; }
  .site-header.menu-open .site-header-shell { border-radius: 999px; }
  .site-header.menu-open .site-header-inner { border-bottom: 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-links a { padding: 0 10px; font-size: .86rem; }
  .nav-actions .btn-sm { min-height: 38px; padding: 0 12px; font-size: .84rem; }
}

/* Buttons */
.btn-pro,
.btn-primary,
.btn-outline-light,
.btn-outline-secondary,
.btn-light,
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px; font-weight: 750; font-size: .95rem;
  border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-pro-primary,
.btn-primary {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2030 55%, #5a1620 140%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(18, 19, 26, 0.18);
  border: none !important;
}
.btn-pro-primary:hover,
.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  color: #fff !important;
  background: linear-gradient(135deg, #1a1b24 0%, #321820 100%) !important;
}
.btn-pro-ghost,
.btn-outline-light,
.btn-outline-secondary,
.btn-light,
.btn-ghost {
  background: rgba(255,255,255,.7) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
  backdrop-filter: blur(8px);
}
.btn-pro-ghost:hover,
.btn-outline-light:hover,
.btn-light:hover {
  transform: translateY(-1px);
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.btn-pro-live {
  background: linear-gradient(135deg, var(--live), #ff4d5a) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(212, 25, 44, 0.28);
  border: none !important;
}
.btn-pro-live:hover { transform: translateY(-2px); color: #fff !important; }

/* Content */
.page-wrap {
  flex: 1;
  padding: calc(110px + env(safe-area-inset-top)) 0 40px;
}
.page-wrap > .container,
.page-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.page-wrap > .container.page-inner-wide,
.page-inner-wide { max-width: 1140px; }

.legal-card,
.glass-panel-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px) clamp(16px, 3vw, 32px);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal-card h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.2;
}
.legal-card .meta {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  margin-bottom: 18px;
}
.legal-card h2 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.2vw, 1.2rem);
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--ink);
}
.legal-card p,
.legal-card li {
  color: var(--body);
  line-height: 1.65;
  font-size: .96rem;
  font-weight: 500;
}
.legal-card ul { padding-left: 1.15rem; margin: 0 0 10px; }
.legal-card li { margin-bottom: 5px; }
.legal-card a:not(.btn):not(.btn-pro):not(.btn-primary) {
  color: var(--live);
  font-weight: 700;
}
.legal-card a:not(.btn):not(.btn-pro):not(.btn-primary):hover { color: #b31424; }

.contact-grid { display: grid; gap: 12px; margin-top: 8px; }
.contact-tile {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.contact-tile .lbl {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.contact-tile strong,
.contact-tile a { color: var(--ink); font-size: 1rem; font-weight: 750; }

/* Affiliate / marketing cards on public pages */
.pub-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
}
@media (min-width: 768px) {
  .pub-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
.pub-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}
.pub-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.12;
}
.pub-hero p {
  margin: 0 auto 20px;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
}
.pct-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.pct-pill {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  font-size: .92rem;
  color: var(--ink);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.pct-pill strong { color: var(--live); font-size: 1.1rem; }
.card-aff {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  padding: 24px 20px;
  height: 100%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow-wrap: anywhere;
}
.card-aff h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.card-aff p, .card-aff li { color: var(--body); line-height: 1.6; font-weight: 500; }
.card-aff ul { padding-left: 18px; margin: 0; }
.card-aff code {
  word-break: break-all;
  background: rgba(18,19,26,.05);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .85em;
  color: var(--ink);
}
.example-box {
  background: rgba(18,19,26,.04);
  border: 1px dashed rgba(18,19,26,.12);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}
.example-box strong { color: var(--live); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  padding: 14px 8px 14px 48px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 550;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 4px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--live), #ff4d5a);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(12px);
  padding: 44px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 28px;
}
.footer-brand .brand {
  display: inline-flex;
  margin-bottom: 12px;
  line-height: 0;
}
.footer-brand p {
  margin: 0 0 14px;
  max-width: 320px;
  color: var(--body);
  font-size: .92rem;
  line-height: 1.6;
  font-weight: 500;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(18,19,26,.08);
  color: var(--ink) !important;
  font-size: .82rem;
  font-weight: 700;
  word-break: break-all;
  box-shadow: 0 4px 14px rgba(18,19,26,.04);
}
.footer-mail:hover { color: var(--live) !important; border-color: rgba(212,25,44,.22); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 800;
}
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 2px 0;
  color: var(--body) !important;
  font-weight: 600;
  font-size: .9rem;
}
.footer-col a:hover { color: var(--live) !important; }
.footer-bottom {
  max-width: 1140px;
  margin: 26px auto 0;
  padding: 14px 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.footer-credit a {
  color: var(--ink) !important;
  font-weight: 800;
}
.footer-credit a:hover { color: var(--live) !important; }
/* legacy alias */
.footer-grid { display: contents; }

/* Legacy simple footer fallback (must NOT override .site-footer .footer-links) */
.footer {
  padding: 28px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  background: transparent;
}
.footer > .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.footer a { color: var(--body); font-weight: 600; }
.footer a:hover { color: var(--live); }

@media (min-width: 576px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .footer-inner {
    grid-template-columns: minmax(240px, 1.35fr) minmax(0, 2fr);
    gap: 40px;
    align-items: start;
  }
}
@media (max-width: 991.98px) {
  /* Match page content gutters so open menu = header = cards width */
  .site-header { top: 10px; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
  .site-header-inner { padding: 8px 10px 8px 12px; }
  .site-header.menu-open .site-header-shell { border-radius: 20px; }
  .mobile-panel { border-radius: 0; }
  .brand-logo { height: 38px; max-width: min(158px, calc(100vw - 96px)); }
  .page-wrap { padding-top: calc(100px + env(safe-area-inset-top)); }
  .site-footer { padding: 36px 0 20px; }
  .footer-inner {
    padding: 0 16px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-mail { justify-content: center; }
  .footer-links {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    justify-items: stretch;
  }
  .footer-col {
    text-align: center;
    min-width: 0;
  }
  .footer-col a {
    justify-content: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 16px 16px 0;
    width: 100%;
    box-sizing: border-box;
  }
  /* Simple link footer: equal cells, no uneven last row */
  .footer > .footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 12px;
    justify-items: center;
  }
  .footer > .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    min-height: 36px;
    padding: 4px 2px;
  }
}
@media (max-width: 767.98px) {
  .footer-inner { gap: 22px; }
  .footer-brand p { max-width: none; font-size: .88rem; }
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .footer-col h4 { margin-bottom: 8px; font-size: .72rem; }
  .footer-col a {
    min-height: 36px;
    font-size: .84rem;
    padding: 2px 0;
  }
  .pub-hero .btn-pro, .pub-hero .btn-primary { width: 100%; max-width: 360px; }
  .footer > .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 6px 10px;
  }
}
@media (max-width: 575.98px) {
  .site-header { top: 8px; padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right)); }
  .site-header-inner { padding: 7px 8px 7px 10px; }
  .site-header-shell { border-radius: 22px; }
  .site-header.menu-open .site-header-shell { border-radius: 18px; }
  .mobile-panel { border-radius: 0; padding: 6px 6px 8px; max-height: min(70dvh, calc(100dvh - 84px)); }
  .brand-logo { height: 34px; max-width: min(148px, calc(100vw - 88px)); }
  .brand-logo-footer { height: 40px; }
  .nav-toggle { width: 40px; height: 40px; }
  .page-wrap { padding: calc(92px + env(safe-area-inset-top)) 0 28px; }
  .page-wrap > .container, .page-inner { padding: 0 14px; }
  .legal-card { border-radius: 22px; padding: 18px 14px; }
  .card-aff { padding: 18px 14px; border-radius: 20px; }
  .site-footer { padding: 26px 0 14px; }
  .footer-inner { padding: 0 14px; gap: 16px; }
  .footer-brand p { margin-bottom: 10px; font-size: .84rem; line-height: 1.45; }
  .footer-mail {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    padding: 7px 11px;
    font-size: .74rem;
  }
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    padding-top: 14px;
  }
  .footer-col h4 { margin-bottom: 6px; font-size: .68rem; }
  .footer-col a { min-height: 30px; font-size: .78rem; line-height: 1.25; }
  .footer-bottom { padding: 12px 14px 0; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}
