/* ═══════════════════════════════════════════════════════════════
   CaLotto — Canada Lottery Results
   Modern Professional Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Inter", system-ui, sans-serif;

  /* Primary palette — Canadian red + navy */
  --red: #d4282c;
  --red-deep: #a61c20;
  --red-bright: #e63946;
  --navy: #0b1d3a;
  --navy-soft: #132a4f;
  --navy-light: #1e3a6b;
  --gold: #c9a15d;
  --gold-soft: #f0e2c8;

  /* Neutrals */
  --bg: #f8f7f4;
  --bg-warm: #faf9f6;
  --bg-card: #ffffff;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --muted: #8a8a9a;
  --line: rgba(10, 20, 40, 0.08);
  --line-strong: rgba(10, 20, 40, 0.14);

  /* Accents */
  --success: #2b7a63;
  --danger: #b44c39;
  --info: #3a7ec8;

  /* Shadows */
  --shadow-xl: 0 24px 80px rgba(10, 20, 40, 0.10);
  --shadow-lg: 0 16px 48px rgba(10, 20, 40, 0.08);
  --shadow-md: 0 8px 28px rgba(10, 20, 40, 0.06);
  --shadow-sm: 0 4px 12px rgba(10, 20, 40, 0.04);
  --shadow-card: 0 1px 3px rgba(10, 20, 40, 0.04), 0 6px 20px rgba(10, 20, 40, 0.05);

  /* Radii */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Layout */
  --max-width: 1180px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 5%, rgba(212, 40, 44, 0.04), transparent),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(11, 29, 58, 0.04), transparent),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(201, 161, 93, 0.04), transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font: inherit;
}

/* ── Layout Shell ─────────────────────────────────────────── */
.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.page-main {
  padding: 40px 0 80px;
}

.page-main.compact {
  padding: 24px 0 60px;
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(250, 249, 246, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  letter-spacing: -1px;
  font-family: var(--font-display);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  font-family: var(--font-display);
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all var(--transition);
}

.nav-link:hover {
  background: rgba(10, 20, 40, 0.05);
  color: var(--navy);
}

.nav-link.active {
  background: var(--navy);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
}

/* App Banner */
.header-app-banner-wrap {
  border-top: 1px solid var(--line);
  background: var(--navy);
}

.header-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.header-app-banner-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-app-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
}

.header-app-title {
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.header-app-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  max-width: 400px;
}

.header-app-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.store-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.store-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.store-link strong {
  display: block;
  font-size: 13px;
}

.store-link small {
  opacity: 0.7;
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
  margin-top: 60px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .brand-mark {
  background: var(--red);
}

.site-footer .brand-name {
  color: white;
}

.site-footer .brand-tag {
  color: rgba(255, 255, 255, 0.6);
}

.footer-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 16px;
}

.footer-title {
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-panel {
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}

.lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 32px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-copy {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 480px;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.h-seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.data-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.data-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.data-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.data-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ── Feature Cards ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  gap: 20px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--red);
  color: white;
  white-space: nowrap;
}

.button:hover {
  background: var(--red-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--navy);
  white-space: nowrap;
}

.button-secondary:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ── Stats ─────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  background: rgba(10, 20, 40, 0.03);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

/* ── Balls ─────────────────────────────────────────────────── */
.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}

.ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(212, 40, 44, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.ball.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.ball.special {
  background: linear-gradient(135deg, var(--gold) 0%, #b8912e 100%);
  color: var(--navy);
  box-shadow: 0 3px 8px rgba(201, 161, 93, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.ball.special.bonus {
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
  color: white;
  box-shadow: 0 3px 8px rgba(11, 29, 58, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.plus-mark {
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  margin: 0 2px;
}

/* ── Pills / Tags / Chips ──────────────────────────────────── */
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.06);
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 40, 44, 0.08);
  color: var(--red);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.06);
  color: var(--ink-soft);
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
}

.data-table thead {
  background: rgba(10, 20, 40, 0.03);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(212, 40, 44, 0.03);
}

/* ── Forms ─────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input, .select {
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg-card);
  color: var(--ink);
  transition: all var(--transition);
  min-width: 160px;
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 40, 44, 0.1);
}

.control-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}

/* ── Strategy / Tool Cards ─────────────────────────────────── */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.strategy-card, .tool-card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
}

.strategy-card:hover, .tool-card:hover {
  border-color: var(--line-strong);
}

.strategy-card.active, .tool-card.active {
  border-color: var(--red);
  background: rgba(212, 40, 44, 0.04);
}

.strategy-card h3, .tool-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.strategy-card p, .tool-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Result Grid ───────────────────────────────────────────── */
.result-grid {
  display: grid;
  gap: 20px;
}

.result-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 15px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
}

.pick-set {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.pick-set-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pick-set-title h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.pick-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Game Strip ────────────────────────────────────────────── */
.game-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-strip a {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
  flex: 1;
}

.game-strip a:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.game-strip a span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── SEO Links ─────────────────────────────────────────────── */
.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.seo-link {
  display: block;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.seo-link:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}

.seo-link h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.seo-link p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.faq-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── Policy / Content Blocks ───────────────────────────────── */
.policy-grid {
  display: grid;
  gap: 20px;
}

.policy-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.policy-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.policy-block h2, .policy-block h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 12px;
}

.policy-block p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.policy-block a {
  color: var(--red);
  text-decoration: underline;
}

.legal-list {
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-list li {
  margin-bottom: 4px;
}

/* ── Summary / Analysis Cards ──────────────────────────────── */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.summary-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ── Mini Bars ─────────────────────────────────────────────── */
.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  min-width: 160px;
  font-size: 13px;
  color: var(--ink-soft);
}

.bar-meta strong {
  color: var(--navy);
}

.bar-track {
  flex: 1;
  height: 8px;
  background: rgba(10, 20, 40, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 100%);
  width: var(--fill);
  transition: width 400ms ease;
}

/* ── Charts ────────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  gap: 20px;
}

.chart-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.chart-card h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.chart-card canvas {
  max-height: 280px;
}

/* ── Two Column ────────────────────────────────────────────── */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* ── Generator Panel ───────────────────────────────────────── */
.generator-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

/* ── Inline Split ──────────────────────────────────────────── */
.inline-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.microcopy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.support-copy {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-grid.two,
  .feature-grid.three,
  .seo-link-grid,
  .faq-grid.three,
  .result-grid.three,
  .strategy-grid,
  .tool-grid,
  .chart-grid.two,
  .two-column,
  .policy-grid.two {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .header-app-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .display {
    font-size: 24px;
  }

  .control-row, .filter-bar {
    flex-direction: column;
  }
}