/* ==========================================================================
   Das Hundezertifikat – Design System
   Aligned with the exam platform (Nunito Sans, #011DFF, white cards)
   ========================================================================== */

/* --- Fonts (self-hosted, DSGVO) --- */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/nunito-sans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-sans-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens (from exam-app) --- */
:root {
  --background: #ffffff;
  --foreground: #09090b;
  --primary: #011dff;
  --primary-foreground: #fafafa;
  --primary-tint: #e6e8ff;
  --primary-soft: #eef1ff;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --input-background: #f4f4f5;
  --destructive: #ef4444;
  --success: #16a34a;
  --warning: #ca8a04;
  --radius: 0.5rem;
  --radius-md: 0.375rem;
  --app-gradient: linear-gradient(to bottom right, #eff6ff, #eef2ff, #faf5ff);
  --ring: 0 0 0 3px rgb(1 29 255 / 0.5);
  --font: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-2xl: 1.5rem;
  --max-w: 80rem;
  --nav-h: 4rem;
  --transition: 0.2s ease;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

@media (min-width: 1024px) {
  :root { --nav-h: 4.5rem; }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background-color: #eff6ff;
  background-image: var(--app-gradient);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.app-background {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2 {
  font-family: var(--font);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
  color: var(--foreground);
}
h3 {
  font-family: var(--font);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--foreground);
}
h4 {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--foreground);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Layout --- */
.max-w {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .max-w { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .max-w { padding: 0 2rem; } }

.max-w-md { max-width: 28rem; margin: 0 auto; }
.max-w-lg { max-width: 42rem; margin: 0 auto; }
.max-w-xl { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .max-w-xl { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .max-w-xl { padding: 0 2rem; } }

.section { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) {
  .section { padding-top: 4rem; padding-bottom: 4rem; }
}
.scroll-mt { scroll-margin-top: 6rem; }

/* --- Typography helpers --- */
.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}
.muted { color: var(--muted-foreground); }
.muted-s { color: var(--muted-foreground); }
.amber { color: var(--primary); }
.emerald { color: var(--success); }
.red { color: var(--destructive); }
.text-balance { text-wrap: balance; }
.lead {
  font-size: var(--fs-lg);
  color: var(--muted-foreground);
  max-width: 36rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.center-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.center-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.center-head .muted {
  font-size: var(--fs-base);
  margin-top: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: var(--fs-sm);
  font-family: var(--font);
  line-height: 1;
  transition: background-color var(--transition), opacity var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: rgb(1 29 255 / 0.9);
  text-decoration: none;
}
.btn:active { background: rgb(1 29 255 / 0.85); }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn svg { color: currentColor; }
.btn-secondary {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--muted);
}
.btn-secondary:active { background: var(--muted); }
.btn-block { width: 100%; }
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 480px) {
  .btn-group { flex-direction: row; flex-wrap: wrap; }
}

/* --- Grids --- */
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-lg-2 {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .grid-lg-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.grid-lg-2.align-stretch { align-items: stretch; }
.grid-lg-2.gap-sm { gap: 1.5rem; }
@media (min-width: 1024px) {
  .grid-lg-2.gap-sm { gap: 1.5rem; }
}

/* --- Cards --- */
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--foreground);
}

/* --- Icon containers (2 sizes) --- */
.ic,
.ic-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
}
.ic {
  width: 2.5rem;
  height: 2.5rem;
}
.ic-lg {
  width: 3rem;
  height: 3rem;
}
.ic--solid {
  background: var(--primary);
  color: var(--primary-foreground);
}
.ic--tint {
  background: var(--primary-tint);
  color: var(--primary);
}
.ic.mx-auto,
.ic-lg.mx-auto {
  margin-left: auto;
  margin-right: auto;
  display: flex;
}
.audience-card > .ic,
.how-card > .ic,
.step-card > .ic,
.center-head > .ic,
.center-head > .ic-lg {
  margin-bottom: 1rem;
}

/* Aliases for gradual markup migration / semantic contexts */
.feature-icon,
.step-icon,
.audience-icon,
.security-point-ic,
.badge-ic,
.contact-ic,
.exam-bullet-ic,
.ic-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
  width: 2.5rem;
  height: 2.5rem;
}
.feature-icon,
.ic-box,
.badge-ic {
  width: 3rem;
  height: 3rem;
}
.ic-box.lg { width: 3rem; height: 3rem; }
.ic-box.brand,
.step-icon.brand,
.feature-icon.brand-gradient,
.feature-icon.brand {
  background: var(--primary);
  color: var(--primary-foreground);
}
.ic-box.mx-auto { margin-left: auto; margin-right: auto; display: flex; }
.step-icon { margin-bottom: 1rem; }
.step-icon.sm,
.step-icon.md { margin: 0; width: 2.5rem; height: 2.5rem; }
.audience-icon { margin-bottom: 1rem; }
.feature-icon { margin: 0; }
.exam-bullet-ic { width: 1.75rem; height: 1.75rem; }
.contact-ic { width: 2.5rem; height: 2.5rem; }
.security-point-ic { width: 2.5rem; height: 2.5rem; }

.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-row h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-row p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.note-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid transparent;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-md);
}

/* --- Step cards --- */
.step-card { position: relative; overflow: hidden; }
.step-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border);
  pointer-events: none;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* --- Navbar --- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(1, 29, 255, 0.16));
}
.wordmark {
  font-family: var(--font);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  line-height: 1.1;
}
.wordmark-sub {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  text-transform: uppercase;
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--transition), background-color var(--transition);
  color: var(--muted-foreground);
  min-height: 2.5rem;
}
.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
}
.nav-link.active {
  color: var(--foreground);
  background: var(--muted);
}
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .nav-actions { display: flex; } }
.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-btn:hover { background: var(--muted); color: var(--foreground); }
@media (min-width: 1024px) { .mobile-btn { display: none; } }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-menu.open { display: block; }
.mobile-menu .inner { padding: 1rem; }
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 2.5rem;
  color: var(--foreground);
}
.mobile-link:hover { background: var(--muted); }
.mobile-menu .btn-stack {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.menu-open { overflow: hidden; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 1rem;
}
@media (min-width: 1024px) {
  .hero { padding-top: 3rem; padding-bottom: 2rem; }
}
.hero-circles { display: none; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}
.in-use {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.in-use h2 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.in-use img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}
.hero-img-wrap { position: relative; }
.hero-img-frame {
  padding: 0;
  overflow: hidden;
}
.hero-img {
  border-radius: var(--radius);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-height: 32rem;
}
.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-badge-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--foreground);
}
.hero-badge-sub {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
}

/* --- Process steps list --- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.process-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.process-item-body { flex: 1; }
.process-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.process-num {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary);
}
.process-item h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--foreground);
}
.process-item p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* --- Video --- */
.media-frame {
  padding: 0;
  overflow: hidden;
}
.media-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
}
.media-wrap picture {
  display: block;
}
.media-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 1rem;
  pointer-events: none;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* --- Audience / how cards --- */
.audience-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.audience-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.how-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.how-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* --- Security --- */
.security-glow { position: relative; }
.security-glow::before { display: none; }
.security-img-frame { padding: 0; overflow: hidden; }
.security-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  max-height: 30rem;
}
@media (min-width: 1024px) {
  .security-order-img { order: 2; }
  .security-order-text { order: 1; }
}
.security-lead {
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.security-points { gap: 1rem; }
.security-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.security-point h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.security-point p {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* --- CTA --- */
.cta-card {
  padding: 3rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.cta-inner { max-width: 42rem; margin: 0 auto; }
.cta-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  margin: 0 auto 0.5rem;
}
.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin: 1rem 0;
}
.cta-card .muted {
  font-size: var(--fs-base);
  margin-bottom: 1.5rem;
}

/* --- Perspectives --- */
.persp {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .persp { grid-template-columns: repeat(3, 1fr); }
}
.persp-item {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.persp-item h4 {
  font-size: var(--fs-base);
  margin-bottom: 0.25rem;
}
.persp-item p {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
}
.persp-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-head-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-head-row h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

/* --- Use-case carousel --- */
.carousel-sub {
  font-size: var(--fs-sm);
  margin-bottom: 1.5rem;
  margin-top: -0.75rem;
}
.use-case-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.use-case-pill {
  padding: 0.375rem 1rem;
  min-height: 2.25rem;
  border-radius: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.use-case-pill:hover {
  background: var(--muted);
  color: var(--foreground);
}
.use-case-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.use-case-frame {
  padding: 1.5rem;
}
.carousel {
  position: relative;
}
.slide {
  display: none;
}
.slide.active {
  display: block;
}
.use-case-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.use-case-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}
.use-case-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--foreground);
}
.use-case-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.use-case-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--foreground);
}
.use-case-list .ic {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.car-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.car-btn:hover { background: var(--muted); }
.dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}
.dot::before {
  content: '';
  position: absolute;
  inset: -14px;
}
.dot.active {
  background: var(--primary);
  width: 1.5rem;
  transition: all var(--transition);
}

/* --- FAQ --- */
.faq-toggle {
  display: inline-flex;
  border-radius: 0.75rem;
  padding: 0.1875rem;
  background: #e5e7eb;
  margin-bottom: 1.5rem;
}
.faq-toggle button {
  padding: 0.375rem 1rem;
  min-height: 2.25rem;
  border-radius: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-family: var(--font);
}
.faq-toggle button.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.faq-panel[hidden] { display: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  min-height: 2.5rem;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--foreground);
}
.faq-q .chev { transition: transform var(--transition); flex-shrink: 0; color: var(--muted-foreground); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  color: var(--muted-foreground);
  font-size: var(--fs-sm);
  line-height: 1.6;
  padding-bottom: 1.25rem;
}
.faq-a[hidden] { display: none; }

/* --- Tutorials --- */
.tut-card {
  cursor: pointer;
  transition: box-shadow var(--transition);
  overflow: hidden;
  padding: 0;
}
.tut-card:hover { box-shadow: var(--shadow-md); }
.tut-thumb {
  height: 9rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--primary-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tut-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.dur-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--background);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  color: var(--foreground);
  z-index: 1;
}
.tut-body { padding: 1.5rem; }
.tut-body h3 { font-size: var(--fs-base); margin-bottom: 0.25rem; }
.tut-body p { font-size: var(--fs-sm); }
.docs-link {
  margin-top: 1.5rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
}
.docs-link:hover { background: var(--muted); }
.docs-link h3 { font-size: var(--fs-base); margin-bottom: 0.25rem; }
.docs-link p { font-size: var(--fs-sm); }

/* --- Forms --- */
.field-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: block;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-stack-lg { gap: 1.25rem; }
.glass-input,
.form-input {
  background: var(--input-background);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--foreground);
  outline: none;
  width: 100%;
  font-family: var(--font);
  font-size: var(--fs-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.glass-input:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}
.glass-input::placeholder,
.form-input::placeholder { color: var(--muted-foreground); }
.glass-input.input-h,
.form-input.input-h {
  height: 2.5rem;
  padding: 0 0.75rem;
}
.glass-input.textarea,
.form-input.textarea {
  padding: 0.5rem 0.75rem;
  resize: vertical;
  min-height: 6rem;
}
.input-ic { position: relative; }
.input-ic .ic-l {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.input-ic input {
  height: 2.5rem;
  padding-left: 2.5rem;
  padding-right: 0.75rem;
}
.input-ic .ic-r {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  line-height: 1.5;
}
.consent input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  border-radius: 4px;
}
.consent a {
  color: var(--primary);
  text-decoration: underline;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.alert {
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  border: 1px solid;
  margin-bottom: 0.75rem;
}
.alert.ok {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}
.alert.err {
  color: var(--destructive);
  background: #fef2f2;
  border-color: #fecaca;
}
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: var(--fs-xs);
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sec-note {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  margin-top: 1.5rem;
}

/* --- Calendar --- */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cal-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.cal-nav button:hover { background: var(--muted); color: var(--foreground); }
.cal-month {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--foreground);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 0.25rem;
}
.cal-head {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  font-weight: 600;
  padding: 0.25rem 0;
}
.cal-day {
  position: relative;
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--foreground);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.cal-day::before {
  content: '';
  position: absolute;
  inset: -6px;
}
.cal-day:not(:disabled):hover {
  background: var(--muted);
}
.cal-day.today {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
}
.cal-day.selected {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
}
.cal-day:disabled {
  color: var(--border);
  cursor: not-allowed;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.slot {
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  background: var(--input-background);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font);
}
.slot:hover { background: var(--muted); }
.slot.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}
.slot-area { margin-top: 1.25rem; }
.slot-area[hidden] { display: none; }
.slot-label {
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

/* --- Contact card --- */
.white-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.white-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--foreground);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}
.contact-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}
.contact-val {
  font-size: var(--fs-sm);
  color: var(--foreground);
  line-height: 1.6;
}
.contact-val a { color: var(--primary); }
.contact-val a:hover { text-decoration: underline; }

/* --- Auth / platform pages --- */
.auth-wrap {
  min-height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-head img, .auth-logo {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(1, 29, 255, 0.16));
}
.auth-head h1 {
  font-size: var(--fs-lg);
  font-weight: 700;
}
.auth-head .muted {
  font-size: var(--fs-xs);
  margin-top: 0.25rem;
}
.auth-card {
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.auth-footer-link {
  text-align: center;
  font-size: var(--fs-sm);
  margin-top: 1.5rem;
}
.auth-footer-link a {
  color: var(--primary);
  font-weight: 600;
}
.auth-footer-link a:hover { text-decoration: underline; }
.exam-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exam-bullet {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.exam-bullet p {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  line-height: 1.6;
  padding-top: 0.15rem;
}
.exam-note-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.auth-divider {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- Legal pages --- */
.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.legal h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.legal .updated {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: var(--fs-lg);
  margin: 2rem 0 0.75rem;
}
.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
}
.legal-doc + .legal-doc {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2.5rem;
}
.legal-doc > h2:first-child {
  margin-top: 0;
}
.legal p, .legal li {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.legal ul,
.legal ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal ul {
  list-style: disc;
}
.legal ol {
  list-style: decimal;
}
.legal ol ol {
  list-style: lower-alpha;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.legal-note {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal-note h3 {
  margin-top: 0;
}
.legal a {
  color: var(--primary);
  text-decoration: underline;
}
.placeholder-warn {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  color: #854d0e;
  margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--background);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
}
.footer-tagline {
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 16rem;
}
.footer-grid h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-family: var(--font);
}
.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-grid a {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
}
.footer-grid a:hover { color: var(--foreground); }
.security-bar {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .security-bar {
    flex-direction: row;
    align-items: center;
  }
}
.sec-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.sec-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: var(--fs-xs);
}
.copyright {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
}

/* --- Animations --- */
.fade-in {
  animation: fadeUp 0.5s ease-out forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-section { margin-bottom: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.form-card-title {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font);
}
.form-card-title-cal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
}
.form-card-title-cal svg { color: var(--primary); }
.page-intro-icon {
  padding-top: 2rem;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
