/* ─────────────────────────────────────────────────────────────
   DESIGN SYSTEM · shadcn/ui (Zinc + Green) + Magic UI flourishes
   Variables follow shadcn naming exactly. Aliases at the bottom
   preserve old class hooks used in reference.html / prednasky.html.
   ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

/* ─── shadcn TOKENS · Zinc + Green ─────────────────────────── */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 142.1 76.2% 36.3%;        /* green ring — accent through whole UI */

  /* Brand (emerald) — used for highlights, dots, gradient text */
  --brand: 142.1 76.2% 36.3%;
  --brand-foreground: 355.7 100% 97.3%;

  --radius: 0.5rem;
  --max: 1100px;

  --font-sans: 'Inter', 'Inter Variable', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"],
html[data-theme="dark"] :root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 142.4 71.8% 45.3%;

  --brand: 142.1 70.6% 45.3%;
  --brand-foreground: 144.9 80.4% 10%;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 142.4 71.8% 45.3%;
    --brand: 142.1 70.6% 45.3%;
    --brand-foreground: 144.9 80.4% 10%;
  }
}

/* ─── Backward-compat aliases (used by inline styles on other pages) */
:root,
html[data-theme="dark"],
html[data-theme="dark"] :root {
  --bg: hsl(var(--background));
  --surface: hsl(var(--background));
  --card-bg: hsl(var(--card));
  --text: hsl(var(--foreground));
  --text-strong: hsl(var(--foreground));
  --subtle: hsl(var(--muted-foreground));
  --border-soft: hsl(var(--border));
  --border-strong: hsl(var(--border));
  --accent-text: hsl(var(--primary-foreground));
  --pink: hsl(var(--brand));
  --pink-strong: hsl(var(--brand));
  --pink-soft: hsl(var(--brand) / 0.10);
  --pink-glow: hsl(var(--brand) / 0.22);
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-pill: 9999px;
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10);
  --shadow-card-hover: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: hsl(var(--background));
    --surface: hsl(var(--background));
    --card-bg: hsl(var(--card));
    --text: hsl(var(--foreground));
    --text-strong: hsl(var(--foreground));
    --subtle: hsl(var(--muted-foreground));
    --border-soft: hsl(var(--border));
    --border-strong: hsl(var(--border));
    --accent-text: hsl(var(--primary-foreground));
    --pink: hsl(var(--brand));
    --pink-strong: hsl(var(--brand));
    --pink-soft: hsl(var(--brand) / 0.10);
    --pink-glow: hsl(var(--brand) / 0.22);
  }
}

/* ─── BASE ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 15px;          /* shadcn text-sm baseline */
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection {
  background: hsl(var(--brand) / 0.15);
  color: hsl(var(--foreground));
}

/* ─── TYPOGRAPHY (shadcn scale, tracking-tight) ───────────── */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 64px 0; position: relative; }
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  section { padding: 44px 0; }
}

/* ─── HERO FACTS STRIP (subtle price + capacity line) ────── */
.hero-facts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}
.hero-facts strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}
.hero-facts .sep {
  color: hsl(var(--border));
  user-select: none;
}

/* ─── PRICE STATEMENT (after V ceně checklist) ────────────── */
.price-statement {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
}
.price-statement-amount {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}
.price-statement-amount strong {
  color: hsl(var(--foreground));
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.price-statement-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

/* ─── REGISTER FACTS STRIP (in register section above form) ─ */
.register-facts {
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 20px 24px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.register-facts-line {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  font-weight: 500;
}
.register-facts-line strong {
  font-weight: 600;
}
.register-facts-line .sep { color: hsl(var(--muted-foreground)); margin: 0 8px; }
.register-facts-note {
  margin-top: 8px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ─── HERO BULLETS (replaces meta block) ─────────────────── */
.hero-bullets {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-bullets li {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.hero-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: hsl(var(--brand));
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 8 7 11 12 5'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─── CHECKLIST CARD (V ceně section) ─────────────────────── */
.checklist-card {
  max-width: 560px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 32px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
  align-items: flex-start;
  color: hsl(var(--foreground));
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: hsl(var(--brand));
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 8 7 11 12 5'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─── TOOLS LIST (Nástroje section) ───────────────────────── */
.tools-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tools-list li {
  padding: 14px 20px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

/* ─── DATES LIST (Termíny section) ────────────────────────── */
.dates-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dates-list li {
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: hsl(var(--foreground));
  padding: 8px 12px;
  background: hsl(var(--secondary));
  border-radius: var(--radius);
}

/* ─── HERO PIXEL CANVAS (unlumen-style shimmer background) ── */
.hero-pixels {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Soft radial mask so the pattern fades out before meeting the next section */
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 35%, transparent 80%);
  opacity: 0.9;
}

/* ─── MAGIC UI · BACKGROUND PATTERNS (subtle) ─────────────── */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.6) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg-dot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(hsl(var(--border)) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 75%);
}

.glow-orb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.glow-orb.pink { background: hsl(var(--brand) / 0.18); width: 480px; height: 480px; }
.glow-orb.violet { background: hsl(240 70% 60% / 0.10); width: 380px; height: 380px; }

/* ─── NAV ─────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(var(--background) / 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;   /* logo width + free middle + controls width */
  align-items: center;
  gap: 16px;
}
.nav-logo-circle { justify-self: start; }
.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;                               /* shadcn NavigationMenu: tight gap, items have own padding */
  justify-self: center;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* shadcn NavigationMenu trigger pattern: h-9 pill with hover background */
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;                    /* h-9 — matches buttons + theme toggle */
  padding: 0 14px;                 /* px-3.5 */
  border-radius: calc(var(--radius) - 2px);   /* rounded-md */
  font-size: 0.875rem;             /* text-sm */
  font-weight: 500;                /* font-medium */
  color: hsl(var(--muted-foreground));
  background: transparent;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}
.nav-link.active {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

.nav-logo-circle {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s ease;
}
.nav-logo-circle:hover { color: hsl(var(--muted-foreground)); }

/* Icon button (theme toggle, nav-toggle) */
.theme-toggle, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.theme-toggle:hover, .nav-toggle:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    grid-template-columns: none;
  }
  .nav-center { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: hsl(var(--background));
  z-index: 99;
  padding: 84px 24px 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  padding: 14px 4px;
  border-bottom: 1px solid hsl(var(--border));
}
.mobile-menu .mobile-cta {
  margin-top: 20px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 10px 16px;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ─── BUTTONS (shadcn variants) ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  height: 36px;                  /* h-9 */
  padding: 0 16px;               /* px-4 */
  border-radius: calc(var(--radius) - 2px);  /* rounded-md (6px) */
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease, box-shadow .15s ease;
  outline: none;
  line-height: 1;
}

.btn:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

.btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

/* default = primary */
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

/* outline */
.btn-secondary {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.btn-secondary:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* ghost */
.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-ghost:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* brand (green) — used as secondary CTA where the registration sits */
.btn-pink {
  background: hsl(var(--brand));
  color: hsl(var(--brand-foreground));
}
.btn-pink:hover { background: hsl(var(--brand) / 0.9); }

/* larger variant for hero */
.btn-lg {
  height: 40px;
  padding: 0 24px;
  font-size: 0.875rem;             /* ui — consistent with .btn */
}

/* nav CTA — primary, matches nav row height */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
  font-size: 0.875rem;             /* text-sm — matches nav-link */
  height: 36px;                    /* h-9 — uniform row height */
  padding: 0 16px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--primary));
  transition: background-color .15s ease;
}
.nav-cta:hover { background: hsl(var(--primary) / 0.9); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 768px) { .hero { padding: 32px 0 48px; } }

.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: stretch;       /* image wrap stretches to text column height */
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

.hero-image-wrap {
  position: relative;
  max-width: 380px;
  /* Offset top so the photo starts at the title's top, skipping the
     eyebrow pill + its bottom margin (≈ pill 22px + margin 24px). */
  margin-top: 46px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
@media (max-width: 980px) {
  .hero-image-wrap {
    max-width: 240px;
    margin: 0 auto;
    order: 2;
    display: block;
  }
}
@media (max-width: 768px) {
  .hero-image-wrap { display: none; }
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-image-wrap img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
@media (max-width: 980px) {
  .hero-image-wrap img {
    width: 100%;
    height: auto;
    max-width: none;
  }
}

/* Badge — shadcn pattern */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
  font-weight: 500;
  font-size: 0.75rem;
  padding: 4px 10px 4px 8px;
  border-radius: 9999px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--brand));
  box-shadow: 0 0 0 3px hsl(var(--brand) / 0.18);
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);   /* text-4xl → text-6xl */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
}
.hero-title .accent {
  background: linear-gradient(90deg, hsl(var(--brand)) 0%, hsl(142 70% 50%) 50%, hsl(var(--brand)) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.32em;
  background: hsl(var(--brand) / 0.18);
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1rem;                 /* body-lg */
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-sub strong { color: hsl(var(--foreground)); font-weight: 500; }

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid hsl(var(--border));
}
@media (max-width: 720px) { .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-size: 0.75rem;              /* label */
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.meta-value {
  font-size: 0.875rem;             /* body */
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* hero rotating dates */
.date-switcher-wrap {
  height: 20px;
  overflow: hidden;
  position: relative;
  min-width: 160px;
  display: inline-block;
  vertical-align: -3px;
}
.date-switcher { position: absolute; top: 0; left: 0; animation: slideUpDate 18s cubic-bezier(0.76, 0, 0.24, 1) infinite; }
.date-switcher-item {
  height: 20px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  white-space: nowrap;
}
@keyframes slideUpDate {
  0%, 13.33% { transform: translateY(0); }
  16.66%, 30.00% { transform: translateY(-20px); }
  33.33%, 46.66% { transform: translateY(-40px); }
  50.00%, 63.33% { transform: translateY(-60px); }
  66.66%, 80.00% { transform: translateY(-80px); }
  83.33%, 96.66% { transform: translateY(-100px); }
  100% { transform: translateY(0); }
}

/* legacy hidden */
.rotating-badge, .lightbulb-decor, .hero-tag-wrap { display: none !important; }

/* ─── SECTION HEADERS ─────────────────────────────────────── */
.section-eyebrow {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  padding: 4px 10px 4px 8px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  text-transform: none;
  letter-spacing: 0;
}
.section-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(var(--brand));
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);     /* h2 */
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: hsl(var(--foreground));
  margin: 0 auto 14px;
  max-width: 720px;
  text-align: center;
}

.section-lead {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  line-height: 1.6;
  margin: 0 auto 48px;
  text-align: center;
}
.section-lead strong { color: hsl(var(--foreground)); font-weight: 500; }

/* ─── CARD (shadcn) ───────────────────────────────────────── */
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);    /* rounded-xl (12px) */
  padding: 24px;                                /* py-6 px-6 */
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
}

.card-title {
  font-size: 1.125rem;             /* h4 */
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: hsl(var(--foreground));
}

.card-eyebrow {
  font-size: 0.75rem;              /* label */
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body {
  font-size: 0.875rem;             /* body */
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}
.card-body strong { color: hsl(var(--foreground)); font-weight: 500; }

/* grid utilities — centered within container, medium max-width */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; max-width: 520px; }
  .grid-3 { grid-template-columns: 1fr; max-width: 520px; }
}

/* ─── TILT CARD ────────────────────────────────────────────
   Faithful reproduction of unlumen TiltCard
   (https://ui.unlumen.com/docs/ui/unlumen/tilt-card).
   - Outer .tilt-card: scale 1.05 + shadow on hover (CSS, 0.4s ease-out)
   - Inner .tilt-card-inner: 3D rotation driven by Motion-equivalent spring
     physics in JS (stiffness=100, damping=10, mass=1, rotationFactor=11)
   - Pseudo-element ::before mimics ClippedCircle static sheen
   ──────────────────────────────────────────────────────── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .agent-grid { grid-template-columns: 1fr; max-width: 520px; }
}

.tilt-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06),
              0 1px 2px -1px rgb(0 0 0 / 0.04);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  transform: scale(1);
}
.tilt-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.20),
              0 4px 12px -4px rgb(0 0 0 / 0.08);
}

.tilt-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 208px;                 /* matches Tailwind sm:h-52 */
  padding: 22px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: inherit;
  overflow: hidden;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  will-change: transform;
  /* No CSS transition on transform — JS spring drives the rotation */
}

/* Static sheen (ClippedCircle equivalent) — sits behind content,
   rotates with the card surface for parallax */
.tilt-card-inner::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    hsl(var(--brand) / 0.18) 0%,
    hsl(var(--brand) / 0.06) 35%,
    transparent 70%
  );
  filter: blur(6px);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.tilt-card:hover .tilt-card-inner::before { opacity: 1; }

.tilt-card-icon,
.tilt-card-title,
.tilt-card-description { position: relative; z-index: 1; }

.tilt-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  font-size: 1.25rem;
}

.tilt-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
  line-height: 1.3;
}

.tilt-card-description {
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card,
  .tilt-card:hover { transform: none !important; transition: box-shadow 0.3s ease; }
  .tilt-card-inner { transform: none !important; }
}

/* ─── ACCORDION (shadcn Card variant: bordered item) ──────── */
.templates-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.template-details {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.template-details:hover { border-color: hsl(var(--border) / 0.7); }
.template-details[open] {
  border-color: hsl(var(--border));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.template-summary {
  padding: 18px 22px;
  /* h4 — matches card titles */
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  user-select: none;
  outline: none;
  transition: color .15s ease;
}
.template-summary::-webkit-details-marker { display: none; }

.template-summary-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.template-icon {
  font-size: 1.125rem;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.template-arrow {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  transition: transform .25s ease;
}
.template-details[open] .template-arrow { transform: rotate(180deg); }

.template-body {
  padding: 0 22px 20px;
  /* body — matches card-body */
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* ─── ALERT (proper shadcn pattern) ───────────────────────── */
.alert {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
}
.alert > svg {
  width: 16px;
  height: 16px;
  color: hsl(var(--foreground));
  transform: translateY(3px);
}
.alert-title {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.alert-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  grid-column: 2;
}
.alert:not(:has(svg)) > * { grid-column: 1 / -1; }

/* legacy compat alias for old class name */
.templates-note { display: none; }

/* ─── TIMELINE ────────────────────────────────────────────── */
.timeline-list { list-style: none; padding: 0; position: relative; }
.timeline-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: hsl(var(--border));
}
.timeline-item {
  position: relative;
  padding-left: 26px;
  padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(var(--background));
  border: 2px solid hsl(var(--brand));
}
.timeline-time {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: hsl(var(--brand));
  margin-bottom: 4px;
}
.timeline-content {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}
.timeline-content strong { color: hsl(var(--foreground)); font-weight: 500; }

/* ─── PRICING CARD (shadcn Card + horizontal footer action) ─ */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 24px 28px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}
.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.price-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.price-amount {
  font-size: 1.875rem;                /* text-3xl */
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.price-note {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  max-width: 320px;
}
.price-row .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .price-row { flex-direction: column; align-items: flex-start; padding: 22px; }
  .price-row .btn { width: 100%; }
}

/* ─── SECTION-DIVIDER (visual rhythm in long sections) ────── */
.section-divider {
  margin: 48px auto;
  max-width: 720px;
  border: none;
  border-top: 1px solid hsl(var(--border));
}
.subsection-title {
  font-size: 1.125rem;             /* h4 */
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.subsection-description {
  font-size: 0.875rem;             /* body */
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
  line-height: 1.65;
}

/* ─── WHO-FOR (Card pair) ─────────────────────────────────── */
.who-box {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.who-box-title {
  font-size: 0.75rem;              /* label */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
}
.who-box-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.who-box.yes .who-box-title { color: hsl(var(--brand)); }
.who-box.yes .who-box-title::before { background: hsl(var(--brand)); }
.who-box.no .who-box-title { color: hsl(var(--destructive)); }
.who-box.no .who-box-title::before { background: hsl(var(--destructive)); }

.who-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.who-list li {
  font-size: 0.875rem;             /* body */
  color: hsl(var(--foreground));
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.who-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: hsl(var(--brand));
  font-size: 0.875rem;
}
.who-box.no .who-list li::before { color: hsl(var(--destructive)); }

/* ─── TRAINER ─────────────────────────────────────────────── */
.trainer-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .trainer-layout { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
}
.trainer-photo {
  width: 200px;
  height: 200px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--border));
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.1);
  display: block;
}
@media (max-width: 720px) {
  .trainer-photo { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; }
}
.trainer-name {
  font-size: 1.5rem;               /* h3 */
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.trainer-title {
  font-size: 0.75rem;              /* label */
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.trainer-bio {
  font-size: 0.875rem;             /* body */
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}
.trainer-bio strong { color: hsl(var(--foreground)); font-weight: 500; }

/* ─── FORM ────────────────────────────────────────────────── */
.form-card {
  position: relative;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* form section — composition primitive for grouping fields.
   Every section has a top divider (border + spacing); .is-first opts out.
   This works regardless of DOM nesting (sections inside form-fields-wrap
   still get the divider because the rule is per-element, not adjacent-sibling). */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
}
.form-section.is-first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.form-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 2px;
}
.form-section-title {
  font-size: 1rem;                        /* h5 */
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.form-section-title .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: hsl(var(--brand));
  color: hsl(var(--brand-foreground));
  font-size: 0.75rem;                     /* label */
  font-weight: 600;
  flex-shrink: 0;
}
.form-section-description {
  font-size: 0.8125rem;                   /* text-xs+ */
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  padding-left: 32px;                     /* aligned under title text */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* shadcn FormItem: grid gap-2 (label + control + description) */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-description {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

input,
textarea,
select {
  height: 36px;
  width: 100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}
textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}
input::placeholder, textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-submit {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-submit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.form-submit .btn { width: 100%; height: 40px; }

.form-note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}
.form-note a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── LOCATION MAP PICKER (interactive SVG of Czech Republic) ─ */
.location-picker {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.location-map {
  width: 100%;
  height: auto;
  display: block;
}
.map-country {
  fill: hsl(var(--secondary));
  stroke: hsl(var(--border));
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.map-marker {
  cursor: pointer;
  outline: none;
}
.map-marker:focus-visible .marker-dot {
  stroke: hsl(var(--ring));
  stroke-width: 3;
}
.marker-pulse {
  fill: hsl(var(--brand) / 0.22);
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;                   /* hidden until city is selected */
  pointer-events: none;
}
@keyframes markerPulse {
  0%, 100% { transform: scale(0.5); opacity: 0.85; }
  50%      { transform: scale(1.0); opacity: 0;    }
}
.marker-dot {
  fill: hsl(var(--foreground));   /* default: black (light) / white (dark) */
  stroke: hsl(var(--background));
  stroke-width: 2.5;
  transition: r .2s ease, fill .2s ease, stroke-width .2s ease;
}
.map-marker:hover .marker-dot { r: 13; }
.map-marker.selected .marker-dot {
  r: 20;                            /* 2× bigger when selected */
  fill: hsl(var(--brand));          /* selected: green */
  stroke-width: 4;
}
.map-marker.selected .marker-pulse {
  r: 34;                            /* larger halo to match bigger dot */
  opacity: 1;
  animation: markerPulse 2.4s ease-in-out infinite;
}
.map-marker.selected .marker-label {
  font-size: 30px;                  /* visibly bigger label */
  font-weight: 700;
}
.marker-label {
  transition: font-size .2s ease, font-weight .2s ease;
}
.marker-label {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: hsl(var(--foreground));
  text-anchor: middle;
  cursor: pointer;                  /* label is also tappable */
  transition: fill .2s ease;
}
/* Invisible hit area to enlarge the tap target — Apple HIG 44pt / MD 48dp */
.marker-hit {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}
@media (max-width: 768px) {
  .marker-hit { r: 56; }            /* even bigger hitbox on phones */
}
.map-marker:hover .marker-label,
.map-marker.selected .marker-label {
  fill: hsl(var(--foreground));
}
/* Visually-hidden radio inputs for form submission/validation */
.location-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── RADIO CHIPS (toggle-style RadioGroup) ────────────────── */
.radio-group-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-card {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  position: relative;
  white-space: nowrap;
}
.radio-card:hover {
  background: hsl(var(--accent));
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.radio-card:has(input:focus-visible) {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}
.radio-card:has(input:checked) {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.08);
}

/* capacity progress (shadcn Progress pattern) */
.capacity-indicator { margin-top: 0; max-width: 480px; }
.capacity-bar {
  position: relative;
  height: 8px;
  background: hsl(var(--secondary));
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.capacity-fill {
  width: 0%;
  height: 100%;
  background: hsl(var(--brand));
  border-radius: 9999px;
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.capacity-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.capacity-text strong { color: hsl(var(--foreground)); font-weight: 500; }

/* form confirmation */
#form-confirm {
  display: none;
  text-align: center;
  padding: 40px 0;
}
#form-confirm .confirm-icon { font-size: 2.5rem; margin-bottom: 16px; }
#form-confirm h3 {
  font-size: 1.5rem;                      /* h3 */
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
#form-confirm p {
  font-size: 0.875rem;                    /* body */
  color: hsl(var(--muted-foreground));
}

/* ─── FEATURE CARD (used on Reference) ────────────────────── */
.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease;
}
.feature-card:hover { box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.1); }
.feature-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid hsl(var(--border));
}
.feature-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.feature-card-tag {
  font-size: 0.75rem;                     /* label */
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}
.feature-card-title {
  font-size: 1.125rem;                    /* h4 */
  font-weight: 600;
  margin-bottom: 8px;
  color: hsl(var(--foreground));
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.feature-card-text { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; flex: 1; }

/* ─── ARTICLE ROW (used on lectures) ──────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 8px; }
.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--card));
  transition: background-color .15s ease, border-color .15s ease;
}
.article-row:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--border));
}
.article-row .article-title {
  font-size: 0.875rem;                    /* ui */
  font-weight: 500;
  color: hsl(var(--foreground));
}
.article-row .article-date {
  font-size: 0.75rem;                     /* label, mono */
  font-weight: 500;
  font-family: var(--font-mono);
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
@media (max-width: 600px) {
  .article-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ─── LEGAL PROSE ─────────────────────────────────────────── */
.legal-prose {
  max-width: 720px;
  margin: 0 auto;
  color: hsl(var(--foreground));
  font-size: 0.875rem;             /* body */
  line-height: 1.75;
}
.legal-prose h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);     /* h2 */
  font-weight: 600;
  margin-bottom: 24px;
  color: hsl(var(--foreground));
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.legal-prose h2 {
  font-size: 1.5rem;               /* h3 */
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.legal-prose h3 {
  font-size: 1.125rem;             /* h4 */
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: hsl(var(--foreground));
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.legal-prose p, .legal-prose ul, .legal-prose ol {
  color: hsl(var(--muted-foreground));
  margin-bottom: 14px;
}
.legal-prose ul, .legal-prose ol { padding-left: 22px; }
.legal-prose li { margin-bottom: 6px; }
.legal-prose a { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose strong { color: hsl(var(--foreground)); font-weight: 600; }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 32px 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
footer.site-footer a {
  color: hsl(var(--muted-foreground));
  transition: color .15s ease;
}
footer.site-footer a:hover { color: hsl(var(--foreground)); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── MAGIC UI · scroll-reveal (subtle) ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ─── UTILS ───────────────────────────────────────────────── */
.hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 48px 0;
}
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.no-shadow { box-shadow: none !important; }
