/* QRGen visual quadruple: #4F46E5 × Geist × analytics-card-hero × Phosphor */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-soft: #EEF2FF;
  --accent: #1F2A44;
  --accent-2: #FFB45A;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F2F1EC;
  --ink: #14182A;
  --ink-soft: #4B5168;
  --ink-muted: #8388A0;
  --line: #E5E3DC;
  --success: #16A34A;
  --warn: #D97706;
  --danger: #DC2626;
  --shadow-sm: 0 2px 6px rgba(20,24,42,.06);
  --shadow-md: 0 12px 32px rgba(20,24,42,.10);
  --shadow-lg: 0 24px 60px rgba(20,24,42,.16);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-heading: 'Geist', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --duration: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  /* Defensive: any single overhang (rotated card decoration, hreflang
     anchors, etc.) must never widen the layout beyond the viewport. */
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
  /* Long unbreakable words (e.g. "Yandex Metrica" path strings,
     URLs in body copy, German compound nouns) must wrap rather than
     escape the column. */
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
h1 { font-size: clamp(1.7rem, 4vw + .8rem, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2vw + .55rem, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.2rem; line-height: 1.25; }
p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  word-break: normal;
}
strong { color: var(--ink); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; top: -40px; left: 12px; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 999;
}
.skip-link:focus { top: 12px; }

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0; z-index: 30;
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--ink);
}
.brand__mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--primary); color: #fff;
  border-radius: 10px;
}
.brand__name { letter-spacing: -0.02em; }
.primary-nav__list {
  display: flex; flex-wrap: wrap; gap: .25rem 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav__list a {
  display: inline-block; padding: .55rem .25rem;
  color: var(--ink-soft); font-weight: 500;
}
.primary-nav__list a:hover, .primary-nav__list a:focus { color: var(--primary-dark); }
.primary-nav__toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: .35rem .65rem; font-size: 1.4rem; line-height: 1;
}
.header-cta {
  display: inline-flex; align-items: center; gap: .55rem;
}
.lang-switcher select {
  appearance: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .45rem 1.6rem .45rem .9rem;
  color: var(--ink); font-weight: 500;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314182A' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right .55rem center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  padding: .75rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .95rem;
  text-decoration: none;
  min-height: 44px; min-width: 44px;
  max-width: 100%;
  transition: transform var(--duration), box-shadow var(--duration), background-color var(--duration), color var(--duration);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.2;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #0F1530; color: #fff; }

/* ---------- Hero (analytics-card-hero) ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(60% 60% at 12% 10%, rgba(79,70,229,.18), transparent 70%),
    radial-gradient(40% 40% at 92% 100%, rgba(31,42,68,.12), transparent 70%),
    linear-gradient(180deg, #FFFCFA 0%, var(--bg) 100%);
}
.hero--analytics-card .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__visual { min-width: 0; }
.hero__sub { overflow-wrap: anywhere; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .85rem;
  border: 1px solid rgba(67,56,202,.18);
}
.hero h1 { margin-top: 1rem; }
.hero__sub {
  font-size: clamp(1.05rem, 1vw + .6rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 36ch;
  margin-block: 1.1rem 1.6rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__bullets { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .55rem; }
.hero__bullets li {
  display: flex; align-items: flex-start; gap: .55rem; color: var(--ink); font-weight: 500;
}
.hero__bullets svg { flex-shrink: 0; margin-top: 3px; }

.dashboard-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  display: grid; gap: 1rem;
  transform: rotate(-1.2deg);
  /* clip the decorative ::after so it can't widen mobile layout */
  isolation: isolate;
  max-width: 100%;
}
.dashboard-card::after {
  content: '';
  position: absolute; right: -28px; top: -22px;
  width: 92px; height: 92px;
  background: var(--accent-2);
  border-radius: 28px;
  z-index: -1;
  pointer-events: none;
}
.dashboard-card__title {
  display: flex; justify-content: space-between; align-items: center;
}
.dashboard-card__title strong { font-family: var(--font-heading); font-size: 1.05rem; }
.dashboard-card__title small { color: var(--ink-muted); font-size: .8rem; }
.dashboard-card__metric {
  font-family: var(--font-heading);
  font-size: 2.6rem; line-height: 1; font-weight: 700;
  color: var(--ink);
}
.dashboard-card__metric span { color: var(--success); font-size: 1rem; margin-left: .35rem; }
.dashboard-card__chart {
  display: flex; align-items: flex-end; gap: 6px; height: 120px;
}
.dashboard-card__chart span {
  flex: 1; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%);
  border-radius: 6px 6px 0 0;
  min-height: 12px;
}
.dashboard-card__platforms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem;
}
.dashboard-card__platforms span {
  background: var(--surface-2); border-radius: 12px;
  padding: .55rem .6rem; font-size: .8rem; color: var(--ink-soft);
  text-align: center; font-weight: 500;
}
.dashboard-card__platforms span strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }

/* ---------- Common section + cards ---------- */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--accent { background: var(--accent); color: #FAFAF7; }
.section--accent h1, .section--accent h2, .section--accent h3, .section--accent strong { color: #fff; }
.section--accent p { color: rgba(250,250,247,.78); }
.section__head { max-width: 64ch; margin: 0 auto 2.4rem; text-align: center; }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--primary-dark); font-weight: 600; font-size: .8rem;
  margin: 0 0 .9rem;
}
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem;
  display: grid; gap: .9rem;
  transition: transform var(--duration), box-shadow var(--duration), border-color var(--duration);
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.32); }
.card h3 { margin: 0; }
.card__icon {
  width: 48px; height: 48px;
  display: inline-grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 14px;
}

/* ---------- Logos / platforms strip ---------- */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem;
  align-items: center; opacity: .85;
}
.logos img { width: 100%; max-height: 38px; object-fit: contain; }

/* ---------- Social-proof logo row ---------- */
.section--logos {
  padding: clamp(28px, 4vw, 56px) 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.logos-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin: 0 0 1.4rem;
}
.logos-row {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.6rem; align-items: center; justify-items: center;
}
.logos-row img {
  width: 100%; max-width: 130px; height: 36px;
  object-fit: contain;
  filter: grayscale(1) opacity(.62);
  transition: filter var(--duration);
}
.logos-row li:hover img { filter: grayscale(0) opacity(1); }
@media (max-width: 880px) {
  .logos-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
}
@media (max-width: 480px) {
  .logos-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Region brand chips (country-grouped integrations) ---------- */
.brand-chips {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .8rem;
  justify-content: center; align-items: stretch;
}
.brand-chip {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .7rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration), border-color var(--duration), box-shadow var(--duration);
}
.brand-chip:hover { transform: translateY(-2px); border-color: rgba(79,70,229,.32); box-shadow: var(--shadow-md); }
.brand-chip img { width: auto; height: 22px; max-width: 96px; object-fit: contain; }
.brand-chip span { white-space: nowrap; }
.brand-chips__caption {
  text-align: center;
  font-size: .92rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Pricing toggle ---------- */
.pricing-toggle {
  display: inline-flex; padding: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  margin-top: 1.4rem;
  gap: 4px;
}
.pricing-toggle__btn {
  background: transparent; border: 0;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .92rem;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
}
.pricing-toggle__btn.is-active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pricing-toggle__save {
  font-size: .72rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: .15rem .5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: .04em;
}
.pricing-card__yearly-note {
  font-size: .82rem;
  color: var(--ink-muted);
  margin: -.5rem 0 0;
  min-height: 1.2em;
}
.pricing-card__amount { font-family: var(--font-heading); }
.pricing-card__per { font-size: 1rem; color: var(--ink-muted); margin-left: .35rem; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(100% - 32px, 880px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  z-index: 60;
  font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: grid;
  gap: .9rem;
}
.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  display: block;
  margin-bottom: .25rem;
}
.cookie-banner__copy p {
  margin: 0;
  color: var(--ink-soft);
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}
.cookie-banner__form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 .75rem;
  display: grid;
  gap: .55rem;
}
.cookie-banner__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: start;
  font-size: .9rem;
  color: var(--ink-soft);
}
.cookie-banner__row strong { color: var(--ink); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; min-height: 38px; }
@media (min-width: 720px) {
  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; }
  .cookie-banner__form { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .cookie-banner { bottom: 8px; padding: 1rem; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
}
/* When the consent banner is visible the page-level sticky CTA hides so
   the two don't overlap on mobile. */
body.has-consent-banner .sticky-cta { display: none; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}
.sticky-cta:hover { background: var(--primary-dark); color: #fff; }
@media (max-width: 720px) {
  .sticky-cta { display: inline-flex; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.6rem;
  display: grid; align-content: start; gap: 1rem;
  position: relative;
  height: 100%;
}
.pricing-card--highlight {
  border-color: var(--primary); box-shadow: var(--shadow-md);
}
.pricing-card--highlight::before {
  content: 'Most popular'; position: absolute; right: 16px; top: -14px;
  background: var(--primary); color: #fff;
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 600;
}
.pricing-card__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.pricing-card__price {
  font-family: var(--font-heading); font-size: 2.4rem; line-height: 1; font-weight: 700;
}
.pricing-card__price span { font-size: 1rem; color: var(--ink-muted); margin-left: .35rem; }
.pricing-card__price em { display: block; font-style: normal; font-size: .9rem; color: var(--ink-muted); margin-top: .35rem; }
.pricing-card ul { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .55rem; }
.pricing-card li::before {
  content: '✓'; color: var(--primary); margin-right: .55rem; font-weight: 700;
}
.pricing-card .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem;
  display: grid; gap: .9rem;
  height: 100%;
}
.testimonial blockquote { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.5; }
.testimonial__author { display: flex; gap: .8rem; align-items: center; margin-top: auto; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.testimonial__rating { color: var(--accent-2); letter-spacing: 1px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .9rem;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; color: var(--primary);
  transition: transform var(--duration);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: rgba(79,70,229,.32); }

/* ---------- Generator UI ---------- */
.generator-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 2rem; align-items: start;
}
.generator-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem;
  display: grid; gap: 1rem;
}
.generator-tabs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px;
}
.generator-tabs button {
  background: transparent; border: 0; padding: .55rem .9rem;
  border-radius: var(--radius-pill); color: var(--ink-soft); font-weight: 500;
}
.generator-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; color: var(--ink); font-size: .9rem; }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: .7rem .85rem;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  min-height: 44px;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.color-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.color-row label { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 120px; }
.color-row input[type=color] { padding: 0; border: 1px solid var(--line); width: 100%; height: 44px; border-radius: 10px; background: transparent; }
.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; display: grid; gap: 1rem; position: sticky; top: 88px;
}
.preview img, .preview svg { width: 100%; max-width: 320px; margin-inline: auto; background: #fff; border-radius: 12px; }
.preview-actions { display: flex; gap: .55rem; flex-wrap: wrap; }

/* ---------- Empty / loading / error states ---------- */
.empty-state, .loading-state, .error-state {
  text-align: center; padding: 2.4rem 1.4rem;
  border: 1px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--surface); display: grid; gap: .7rem; justify-items: center;
}
.empty-state__icon, .loading-state__icon, .error-state__icon {
  width: 56px; height: 56px; display: inline-grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 16px;
}
.error-state__icon { background: rgba(220,38,38,.12); color: var(--danger); }
.loading-state__spinner {
  width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tables (account dashboard) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .85rem; }
.table tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block; padding: .2rem .55rem; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary-dark);
}
.badge--ok { background: rgba(22,163,74,.15); color: var(--success); }
.badge--warn { background: rgba(217,119,6,.18); color: var(--warn); }
.badge--err { background: rgba(220,38,38,.15); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent); color: #FAFAF7;
  padding-block: 56px 28px; margin-top: 80px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.site-footer a { color: rgba(250,250,247,.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col--brand .brand { color: #fff; }
.footer-col--brand .brand__mark { background: #fff; color: var(--accent); }
.footer-tagline { color: rgba(250,250,247,.82); margin: 1rem 0; max-width: 36ch; }
.footer-contact { color: rgba(250,250,247,.82); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(250,250,247,.18);
  color: rgba(250,250,247,.7); font-size: .85rem;
}

/* ---------- Programmatic SEO + legal ---------- */
.legal-prose, .seo-prose {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2vw, 2.4rem);
  margin-block: 2rem;
}
.legal-prose h2, .seo-prose h2 { margin-top: 1.6rem; }
.legal-prose ul, .seo-prose ul { padding-left: 1.4rem; }
.legal-prose dl, .seo-prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.4rem; margin-block: 1rem; }
.legal-prose dt, .seo-prose dt { font-weight: 600; color: var(--ink); }

/* ---------- Forms ---------- */
.auth-card {
  max-width: 460px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hero--analytics-card .hero__inner { gap: clamp(24px, 4vw, 48px); }
}
@media (max-width: 980px) {
  .hero--analytics-card .hero__inner { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .generator-wrap { grid-template-columns: 1fr; }
  .preview { position: static; }
  /* Drop the desktop dashboard-card overlap so nothing extends past the
     viewport on tablet / mobile. */
  .hero__visual .dashboard-card {
    margin-top: 1.6rem !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    transform: none;
  }
  .dashboard-card::after { display: none; }
}
@media (max-width: 720px) {
  .primary-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav__list {
    position: absolute; right: var(--gutter); top: 64px;
    flex-direction: column; gap: 0;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: .5rem; min-width: 240px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav__list a { padding: .8rem 1rem; border-radius: 10px; min-height: 44px; display: flex; align-items: center; }
  .primary-nav__list a:hover { background: var(--primary-soft); }
  .primary-nav.is-open .primary-nav__list { display: flex; }
  .header-cta .btn--ghost { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: .55rem; }
  .hero__cta .btn { width: 100%; }
  .btn { font-size: .9rem; padding: .65rem 1rem; }
  .btn--lg { font-size: .95rem; padding: .8rem 1.1rem; }
  .header-cta .btn { padding: .55rem .9rem; }
  .brand__name { font-size: 1rem; }
  .lang-switcher select { padding: .4rem 1.4rem .4rem .7rem; font-size: .85rem; }
  .site-header__inner { gap: .5rem; }
  .container { padding-inline: 14px; }
  .pricing-card__price { font-size: 2rem; }
  .pricing-card { padding: 1.6rem 1.2rem; }
  .dashboard-card { padding: 1.1rem; }
  .dashboard-card__metric { font-size: 2.1rem; }
  .dashboard-card__chart { height: 96px; }
}
@media (max-width: 360px) {
  /* Smallest target — everything must still fit + wrap. */
  h1 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.01em; }
  .hero__eyebrow { font-size: .78rem; padding: .3rem .6rem; }
  .container { padding-inline: 12px; }
  .header-cta { gap: .35rem; }
}
