/* Self-hosted (not Google Fonts CDN) — both are variable fonts, one file
   spans the whole weight range used on the site, so there's no external
   network dependency and no FOUT risk for visitors on restricted networks. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0d14;
  --bg-alt: #10141f;
  --surface: #161c2b;
  --surface-hover: #1d2537;
  --border: #262f45;
  --text: #edf0f7;
  --text-dim: #9ba6bc;
  --text-faint: #6c7690;
  /* Brand accents — warm/pink (Direction D) is now the site's primary
     interactive color throughout, not just the hero treatment. --accent-warm
     and --accent-pink are kept as their own names (used explicitly by the
     hero/spotlight/card-numbered components) but always mirror --accent /
     --accent-2 so there's one source of truth, not two color systems to
     keep in sync. --accent-violet is the 80s-sunset third stop for the
     logo mark and gradient text — used sparingly, not a general UI color. */
  --accent: #ff6fa5;
  --accent-2: #ff9d5c;
  --accent-warm: var(--accent-2);
  --accent-pink: var(--accent);
  --accent-violet: #b968ff;
  --danger: #ff6b6b;
  --radius: 14px;
  --max: 1160px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --shadow-glow: 0 12px 32px -12px rgba(255, 111, 165, 0.45);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255,111,165,0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,157,92,0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255,111,165,0.35); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hover); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em;
  font-weight: 700; letter-spacing: -0.015em;
}
p { margin: 0 0 1em; color: var(--text-dim); }
.text-strong { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- nav ---- */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--max); margin: 0 auto; }

/* ---- brand / logo: "80s elegant" chrome-badge sunset gradient + a
   playful two-tone wordmark, GenZ-bold rather than a plain letter tile ---- */
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--text); }
.brand-word-pop {
  background: linear-gradient(120deg, var(--accent-warm), var(--accent-pink) 60%, var(--accent-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-mark {
  position: relative; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(155deg, var(--accent-warm) 0%, var(--accent-pink) 55%, var(--accent-violet) 100%);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 18px; font-weight: 800; font-style: italic; color: #0b0714; letter-spacing: -0.03em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 22px -6px rgba(255,111,165,0.7);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
}
.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 0 0 1px rgba(255,255,255,0.12),
    0 10px 28px -4px rgba(255,111,165,0.9);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { position: relative; color: var(--text-dim); font-weight: 500; font-size: 0.95rem; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-pink)); transition: right 0.2s ease; border-radius: 2px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner.open .nav-links {
    display: flex; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-alt);
    flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 14px;
  }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.96; transform: translateY(-1px); }
.btn:active { transform: scale(0.98) translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061018; font-weight: 700; }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-dim); background: var(--surface-hover); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- hero ---- */
.hero { padding: 96px 0 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 560px;
  background: radial-gradient(620px 280px at 25% 20%, rgba(255,157,92,0.22), transparent 70%),
              radial-gradient(520px 240px at 82% 8%, rgba(255,111,165,0.16), transparent 70%),
              radial-gradient(400px 200px at 55% 60%, rgba(185,104,255,0.08), transparent 70%);
  pointer-events: none;
  animation: driftGlow 12s ease-out 1 both;
}
@keyframes driftGlow {
  0% { transform: translate(-1.5%, -1.5%) scale(0.97); opacity: 0.7; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-pink);
  background: rgba(255,111,165,0.1); border: 1px solid rgba(255,111,165,0.28);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hero-sub { font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--text); }
.hero-stat span { font-size: 0.85rem; color: var(--text-faint); }

/* ---- Direction D "Futurist" treatment — opt-in via extra classes, so it
   only touches the pages (home, services) that adopt it. ---- */
.hero-futurist::before {
  background: linear-gradient(var(--border) 1px, transparent 1px),
              linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 100%);
  animation: none;
  z-index: 0;
}
.hero-futurist::after {
  content: ""; position: absolute; z-index: 0; inset: -30% -20% auto -20%; height: 900px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,157,92,0.34), transparent 45%),
    radial-gradient(circle at 55% 15%, rgba(255,111,165,0.3), transparent 45%),
    radial-gradient(circle at 85% 45%, rgba(185,104,255,0.22), transparent 45%),
    radial-gradient(circle at 65% 65%, rgba(255,157,92,0.16), transparent 45%);
  filter: blur(70px);
  animation: futuristSwirl 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes futuristSwirl { from { transform: rotate(0deg) scale(1); } to { transform: rotate(8deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-futurist::after { animation: none; } }
.hero-futurist .hero-inner { position: relative; z-index: 1; }

.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 16px 6px 10px;
  border-radius: 999px; background: linear-gradient(120deg, rgba(255,157,92,0.16), rgba(255,111,165,0.14));
  border: 1px solid rgba(255,157,92,0.35); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-warm);
}
.eyebrow-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-warm); box-shadow: 0 0 10px var(--accent-warm); animation: eyebrowBlink 1.4s steps(2) infinite; }
@keyframes eyebrowBlink { 50% { opacity: 0.2; } }

.text-grad { background: linear-gradient(120deg, var(--accent-warm), var(--accent-pink) 55%, var(--accent-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-stats-lines { display: flex; gap: 0; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 0; }
.hero-stats-lines .hero-stat { flex: 1; padding: 20px 0; border-right: 1px solid var(--border); }
.hero-stats-lines .hero-stat:last-child { border-right: none; }
@media (max-width: 700px) { .hero-stats-lines { flex-direction: column; } .hero-stats-lines .hero-stat { border-right: none; border-bottom: 1px solid var(--border); } }

.mono-label { font-family: "Courier New", ui-monospace, monospace; font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.section-head-row h2 { margin: 0; }

.card-numbered { position: relative; overflow: hidden; }
.card-numbered::before {
  content: ""; position: absolute; top: -40%; right: -30%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,157,92,0.16), transparent 70%); pointer-events: none;
}
.card-numbered:hover { border-color: rgba(255,157,92,0.5); }
.card-idx {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 16px; font-size: 0.78rem; font-weight: 800; border-radius: 8px;
  color: #06101f; background: linear-gradient(120deg, var(--accent-warm), var(--accent-pink));
  font-family: "Courier New", ui-monospace, monospace;
}

/* ---- spotlight band: for surfacing the sandbox-access product as a
   standout "hero service" wherever it appears, not just buried in a list ---- */
.spotlight-band, .spotlight-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid rgba(255,157,92,0.32);
  background: linear-gradient(135deg, rgba(255,157,92,0.08), rgba(255,111,165,0.04));
  box-shadow: 0 30px 60px -40px rgba(255,111,165,0.4);
}
.spotlight-band::before, .spotlight-wrap::before {
  content: ""; position: absolute; top: -50%; right: -10%; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,157,92,0.2), transparent 70%); pointer-events: none;
}
.spotlight-band {
  padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.spotlight-wrap { padding: 36px; }
@media (max-width: 760px) { .spotlight-band { padding: 32px 24px; } }
.spotlight-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-warm), var(--accent-pink)); color: #06101f;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px;
}
.spotlight-band-copy { position: relative; z-index: 1; max-width: 560px; }
.spotlight-band-copy h2 { margin-bottom: 10px; }
.spotlight-band-copy p { margin-bottom: 0; }
.spotlight-band-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.spotlight-stats { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }
.spotlight-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; min-width: 140px; }
.spotlight-stat strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.spotlight-stat span { font-size: 0.78rem; color: var(--text-faint); }

/* ---- sections ---- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- grids & cards ---- */
.grid { display: grid; gap: 22px; }
/* Sized-content grid: fixed column count looks broken when a section has
   fewer items than columns (e.g. a tool group with just 1-2 courses sits
   stuck in the left column with empty space beside it) — auto-fill sizes
   columns to content instead, so sparse sections stay evenly laid out. */
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: rgba(255,111,165,0.45); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.6); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: linear-gradient(135deg, rgba(255,157,92,0.18), rgba(255,111,165,0.12)); margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card p { flex: 1; }
.service-card-link { display: inline-block; margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.service-card-link:hover { color: var(--accent-2); }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: var(--surface-hover);
  color: var(--text-dim); border: 1px solid var(--border);
}
/* Free/Pro/Team badges need three visually distinct colors to stay
   scannable — Free keeps its original teal (never part of the blue→pink
   swap; teal reads as "free/basic" independently of the brand accent) so
   it doesn't collide with Team, which sits on --accent-warm (orange). */
.badge-free { color: #2ee6c5; border-color: rgba(46,230,197,0.35); }
.badge-pro { color: var(--accent); border-color: rgba(255,111,165,0.35); }
.badge-team { color: var(--accent-warm); border-color: rgba(255,157,92,0.35); }

/* ---- course cards ---- */
.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card .meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.course-card h3 { margin-bottom: 10px; }
.course-card .spacer { flex: 1; }
.course-card .cta-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-group { margin-bottom: 48px; }
.tool-group h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }

/* ---- pricing ---- */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -28px rgba(255,111,165,0.55); }
.pricing-card.featured:hover { transform: translateY(-3px); }
.pricing-card .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin: 10px 0 4px; }
.pricing-card .price small { font-size: 0.95rem; color: var(--text-faint); font-weight: 500; }
/* Value-anchor treatment for Pro/Team: the $/mo figure supports the pitch
   instead of leading it — a self-checkout price tag undersells a plan
   that's actually sold through a real conversation with our team. */
.pricing-card .price-anchor { font-size: 0.95rem; color: var(--text-dim); margin: 10px 0 4px; line-height: 1.5; }
.pricing-card .price-anchor strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); font-weight: 700; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.pricing-card li { padding: 7px 0; color: var(--text-dim); font-size: 0.92rem; border-bottom: 1px dashed var(--border); }
.pricing-card li:last-child { border-bottom: none; }
.pill-featured { position: absolute; top: -12px; right: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101f; font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 16px -4px rgba(255,111,165,0.6); }
.billing-note { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px 22px; font-size: 0.88rem; color: var(--text-dim); margin-top: 28px; }

/* ---- forms ---- */
.form-card { max-width: 420px; margin: 60px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -36px rgba(0,0,0,0.7); }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
input, textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,111,165,0.16); }
textarea { resize: vertical; min-height: 110px; }
.form-error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.35); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; }
.form-note { font-size: 0.85rem; color: var(--text-faint); text-align: center; margin-top: 16px; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }

/* ---- dashboard / lesson layout ---- */
.dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.progress-bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.lesson-layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; }
.lesson-nav h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin: 18px 0 8px; }
.lesson-nav h4:first-child { margin-top: 0; }
.lesson-nav a { display: block; padding: 7px 8px; border-radius: 6px; font-size: 0.88rem; color: var(--text-dim); transition: background 0.15s ease, color 0.15s ease; }
.lesson-nav a:hover { background: var(--surface-hover); color: var(--text); }
.lesson-nav a.active { background: rgba(255,111,165,0.16); color: var(--text); font-weight: 600; }
.lesson-nav a.done::before { content: "✓ "; color: var(--accent-2); }
.lesson-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.lesson-content p, .lesson-content li { color: var(--text); font-size: 1rem; }
.lesson-content ul { padding-left: 22px; margin: 0 0 1em; }
.lesson-content strong { color: var(--text); }
.lesson-content h3, .lesson-content h4 { margin-top: 1.4em; }
.lesson-content .citation { color: var(--accent); font-size: 0.75em; margin-left: 1px; }
.lesson-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; flex-wrap: wrap; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-faint); font-size: 0.85rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-faint); }
.footer-legal { margin-top: 14px; font-size: 0.74rem; line-height: 1.55; opacity: 0.85; max-width: 980px; }
.footer-legal strong { color: var(--text-faint); font-weight: 700; }

/* ---- consent banner ---- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 16px 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
/* The class rule above sets display:flex unconditionally, which (at equal
   specificity) beats the browser's default `[hidden] { display: none }` —
   so JS setting banner.hidden = true left it visually on screen. This
   [hidden] override has higher specificity and actually hides it. */
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; max-width: 640px; font-size: 0.85rem; color: var(--text-dim); }
.consent-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Both are fixed to the same bottom-right corner — without this, the round
   chat toggle visually sits on top of the banner's Approve/Decline buttons
   on desktop-width viewports, cluttering the exact spot someone is trying
   to click. Hide the toggle outright while the banner is up. */
body:has(#consentBanner:not([hidden])) .chat-widget { display: none; }

/* ---- chat widget ---- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 100; }
.chat-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 1.5rem;
  box-shadow: 0 10px 30px -8px rgba(255,111,165,0.65); transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.chat-toggle:hover { transform: scale(1.07); box-shadow: 0 14px 36px -8px rgba(255,111,165,0.8); }
.chat-panel {
  position: absolute; right: 0; bottom: 70px; width: 340px; max-width: calc(100vw - 44px);
  height: 460px; max-height: 70vh; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.chat-panel[hidden] { display: none; }
.chat-panel:not([hidden]) { display: flex; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.92rem;
}
.chat-close { background: none; border: none; color: var(--text-faint); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-close:hover { color: var(--text); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { padding: 9px 13px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; max-width: 85%; white-space: pre-wrap; }
.chat-bubble-bot { background: var(--surface-hover); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble-user { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101f; font-weight: 500; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble-typing { opacity: 0.6; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; }

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 32px); right: -6px; }
}

/* ---- misc ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
/* Kept on the original teal rather than --accent-2 (now orange) — a
   success/confirmation state should read as distinct from the brand's
   interactive pink/orange, not identical to it. */
.alert-success { background: rgba(46,230,197,0.1); border: 1px solid rgba(46,230,197,0.35); color: #2ee6c5; padding: 14px 18px; border-radius: var(--radius); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }
