/* =============================================================================
   Albert Ruiz de la Oliva — Medical Affairs × AI × Digital Innovation
   Design System — WHITE + DARK TEXT + PURPLE.
   Poppins everywhere. No dark mode as primary. No glassmorphism/neomorphism.
   ============================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Core palette (HSL channels, consumed as hsl(var(--x))) */
  --background: 0 0% 100%;
  --foreground: 270 15% 16%;

  --card: 0 0% 100%;
  --card-foreground: 270 15% 16%;

  --primary: 272 100% 45%;
  --primary-foreground: 0 0% 100%;

  --accent: 280 80% 55%;
  --accent-foreground: 0 0% 100%;

  --secondary: 270 20% 96%;
  --secondary-foreground: 270 15% 20%;

  --muted: 270 10% 95%;
  --muted-foreground: 270 5% 40%;

  --border: 270 15% 90%;
  --input: 270 15% 90%;
  --ring: 272 100% 45%;

  --section-alt: 270 10% 97%;
  --navy-light: 270 35% 98%; /* subtle purple-tinted wash used in hero background */

  --success: 150 45% 40%;

  /* Radius */
  --radius-sm: 0.5rem;   /* rounded-lg */
  --radius-md: 0.75rem;  /* rounded-xl */
  --radius-full: 999px;

  /* Type */
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container-max: 72rem; /* max-w-6xl */
  --container-narrow: 48rem; /* max-w-3xl */
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }

::selection { background: hsl(var(--primary) / 0.18); color: hsl(var(--foreground)); }

:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.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;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: hsl(var(--primary)); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 720px) { .container-narrow { padding-inline: 2rem; } }

.text-gradient {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--primary) / 0.16);
  padding: .4rem .85rem;
  border-radius: var(--radius-full);
}

.visually-divider {
  height: 1px; width: 100%;
  background: hsl(var(--border));
  border: 0;
}

/* =============================================================
   4. Sections & headings
   ============================================================= */
.section { padding: 4rem 1rem; }
@media (min-width: 960px) { .section { padding: 6rem 2rem; } }

.section-tight { padding: 3rem 1rem; }
@media (min-width: 960px) { .section-tight { padding: 4rem 2rem; } }

.bg-section-alt { background: hsl(var(--section-alt)); }
.bg-white { background: hsl(var(--background)); }

.section-header { max-width: 42rem; margin-bottom: 2.5rem; }
.section-header.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}
@media (min-width: 720px) { .section-title { font-size: 2.25rem; } }

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  font-weight: 400;
}

.section-header.center .section-subtitle { margin-inline: auto; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9375rem;
  padding: .75rem 1.5rem; /* px-6 py-3 */
  border-radius: var(--radius-sm);
  transition: opacity .2s var(--ease-out), background-color .2s var(--ease-out),
              color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 20px -8px hsl(var(--primary) / 0.35);
}
.btn-primary:hover { opacity: .9; }

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}
.btn-secondary:hover { background: hsl(var(--muted)); }

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}
.btn-outline:hover { background: hsl(var(--primary)); color: #fff; }

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

.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.btn-group.center { justify-content: center; }

/* =============================================================
   6. Cards
   ============================================================= */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px hsl(270 15% 20% / 0.04);
  transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.card:hover { box-shadow: 0 8px 24px -12px hsl(270 15% 20% / 0.14); }

.expertise-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
  height: 100%;
}
.expertise-card:hover {
  border-color: hsl(var(--accent) / 0.5);
  box-shadow: 0 16px 32px -18px hsl(var(--accent) / 0.25);
  transform: translateY(-2px);
}
.expertise-card .icon-tile { margin-bottom: 1.1rem; }
.expertise-card h3 { font-size: 1.125rem; margin-bottom: .6rem; }
.expertise-card p { color: hsl(var(--muted-foreground)); font-size: .9375rem; line-height: 1.6; }
.expertise-card ul { margin-top: .85rem; display: grid; gap: .4rem; }
.expertise-card ul li {
  font-size: .8125rem; color: hsl(var(--muted-foreground));
  display: flex; align-items: flex-start; gap: .45rem;
}
.expertise-card ul li svg { width: 14px; height: 14px; margin-top: .2rem; color: hsl(var(--primary)); flex: none; }

.card-elevated {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -24px hsl(var(--primary) / 0.18);
  padding: 2.5rem 1.75rem;
}
@media (min-width: 720px) { .card-elevated { padding: 3rem; } }

.icon-tile {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--accent) / 0.12));
  color: hsl(var(--primary));
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.icon-tile.sm { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); }
.icon-tile.sm svg { width: 1.15rem; height: 1.15rem; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600;
  padding: .3rem .65rem;
  border-radius: var(--radius-full);
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.tag.tag-primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.tag.tag-accent { background: hsl(var(--accent) / 0.1); color: hsl(var(--accent)); }

/* Grids */
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   7. Navigation
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.9rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 720px) { .nav-inner { padding: 1rem 2rem; } }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; }
.brand-mark {
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; letter-spacing: -0.02em;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: .9375rem; }
.brand-text span { font-size: .6875rem; color: hsl(var(--muted-foreground)); font-weight: 500; }

.nav-links {
  display: none;
  align-items: center; gap: 1.75rem;
  font-size: .9rem; font-weight: 500;
}
.nav-links a { color: hsl(var(--foreground) / 0.8); transition: color .2s var(--ease-out); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: hsl(var(--primary)); }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
}
.nav-toggle:hover { background: hsl(var(--muted)); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.icon-close { display: none; }
.nav.is-open .icon-menu { display: none; }
.nav.is-open .icon-close { display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.nav.is-open .nav-mobile { display: block; }
.nav-mobile-inner { padding: 1rem; display: grid; gap: .25rem; }
.nav-mobile a {
  display: block; padding: .8rem .6rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 1rem; color: hsl(var(--foreground));
}
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { background: hsl(var(--muted)); color: hsl(var(--primary)); }
.nav-mobile .btn { margin-top: .5rem; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--background)) 55%, hsl(var(--navy-light)));
  padding: 5.5rem 1rem 4.5rem;
  text-align: center;
}
@media (min-width: 960px) { .hero { padding: 8rem 2rem 6rem; } }

.hero-glow-top {
  position: absolute; top: -12%; right: -10%;
  width: 42rem; height: 42rem;
  background: radial-gradient(circle, hsl(var(--primary) / 0.08), transparent 70%);
  pointer-events: none;
}
.hero-glow-bottom {
  position: absolute; bottom: -18%; left: -12%;
  width: 34rem; height: 34rem;
  background: hsl(var(--accent) / 0.05);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.hero-eyebrow { margin-bottom: 1.5rem; }

.hero-title {
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title .line-2 { display: block; margin-top: .2em; }

.hero-copy {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: .85rem;
}

.hero-roles {
  font-size: .9375rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 2.25rem;
}

.hero-actions { justify-content: center; margin-bottom: 0; }

/* =============================================================
   9. Timeline (career journey)
   ============================================================= */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 2px;
  background: hsl(var(--border));
}
.timeline-item { position: relative; padding-bottom: 2.25rem; padding-left: 1.5rem; border-left: 2px solid transparent; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: calc(-1.75rem + -1px); top: 0.35rem;
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.15);
}
.timeline-item .role { font-weight: 700; font-size: 1.0625rem; margin-bottom: .2rem; }
.timeline-item .org { font-weight: 600; color: hsl(var(--primary)); font-size: .9375rem; margin-bottom: .35rem; }
.timeline-item .period { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin-bottom: .5rem; display: block; }
.timeline-item p { color: hsl(var(--muted-foreground)); font-size: .9375rem; max-width: 42rem; }

/* =============================================================
   10. Stats band
   ============================================================= */
.stats-band { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 720px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat .num { font-size: 2rem; font-weight: 800; color: hsl(var(--primary)); }
.stat .label { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }

/* =============================================================
   11. Content / insight cards, list rows
   ============================================================= */
.content-card {
  display: flex; flex-direction: column; gap: .85rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  height: 100%;
}
.content-card:hover { border-color: hsl(var(--accent) / 0.5); box-shadow: 0 20px 40px -22px hsl(var(--accent) / 0.2); }
.content-card .meta { display: flex; align-items: center; gap: .6rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.content-card h3 { font-size: 1.0625rem; line-height: 1.35; }
.content-card p { color: hsl(var(--muted-foreground)); font-size: .875rem; line-height: 1.55; }
.content-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: hsl(var(--muted-foreground)); padding-top: .5rem; border-top: 1px solid hsl(var(--border)); }
.content-card .foot a { color: hsl(var(--primary)); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }

.list-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.list-row:last-child { border-bottom: 0; }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer { background: hsl(var(--section-alt)); border-top: 1px solid hsl(var(--border)); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding: 3.5rem 1rem 2.5rem;
  max-width: var(--container-max); margin-inline: auto;
}
@media (min-width: 720px) { .footer-grid { padding: 4rem 2rem 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-grid h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--foreground)); margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .65rem; }
.footer-grid a { color: hsl(var(--muted-foreground)); font-size: .9rem; transition: color .2s var(--ease-out); }
.footer-grid a:hover { color: hsl(var(--primary)); }
.footer-about p { color: hsl(var(--muted-foreground)); font-size: .9rem; max-width: 26rem; margin: .85rem 0 1.25rem; }

.social-row { display: flex; gap: .6rem; }
.social-link {
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  transition: all .2s var(--ease-out);
}
.social-link:hover { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }
.social-link svg { width: 1rem; height: 1rem; }

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding: 1.5rem 1rem;
}
.footer-bottom-inner {
  max-width: var(--container-max); margin-inline: auto;
  display: flex; flex-direction: column; gap: .75rem;
  font-size: .8125rem; color: hsl(var(--muted-foreground));
}
@media (min-width: 720px) { .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal-links a:hover { color: hsl(var(--primary)); }

.footer-disclaimer {
  font-size: .75rem; color: hsl(var(--muted-foreground) / 0.85);
  max-width: 60rem; margin: 0 auto 1.5rem; padding: 0 1rem;
  line-height: 1.6; text-align: center;
}
@media (min-width: 720px) { .footer-disclaimer { padding: 0 2rem; } }

/* =============================================================
   13. Newsletter block
   ============================================================= */
.newsletter { max-width: 42rem; margin-inline: auto; text-align: center; }
.newsletter h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.newsletter p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .75rem; max-width: 28rem; margin-inline: auto; }
@media (min-width: 540px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input[type="email"] {
  flex: 1; padding: .75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border)); font: inherit; font-size: .9375rem;
  background: hsl(var(--background));
}
.newsletter-form input:focus { border-color: hsl(var(--primary)); outline: none; box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12); }
.newsletter-note { font-size: .75rem; color: hsl(var(--muted-foreground)); margin-top: 1rem; }
.newsletter-success { display: none; color: hsl(var(--primary)); font-weight: 600; font-size: .9375rem; margin-top: 1rem; }
.newsletter-success.is-visible { display: block; }

/* =============================================================
   14. Forms (general — contact, work-with-me)
   ============================================================= */
.form-field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.form-field label { font-size: .875rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border)); font: inherit; font-size: .9375rem;
  background: hsl(var(--background)); width: 100%;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: hsl(var(--primary)); outline: none; box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

/* =============================================================
   15. Breadcrumb
   ============================================================= */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; color: hsl(var(--muted-foreground)); flex-wrap: wrap; }
.breadcrumb a:hover { color: hsl(var(--primary)); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb-bar { border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--section-alt)); }
.breadcrumb-bar .container { padding-block: .85rem; }

/* =============================================================
   16. Page hero (subpages — narrower, left-aligned option)
   ============================================================= */
.page-hero { padding: 3.5rem 1rem 3rem; text-align: center; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); }
@media (min-width: 960px) { .page-hero { padding: 5rem 2rem 4rem; } }
.page-hero .container-narrow { max-width: 46rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.0625rem; color: hsl(var(--muted-foreground)); }

/* =============================================================
   17. Responsible-AI / callout box
   ============================================================= */
.callout {
  border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--primary));
  background: hsl(var(--section-alt));
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}
.callout h3 { font-size: 1.0625rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.callout p { color: hsl(var(--muted-foreground)); font-size: .9375rem; }

.disclaimer-box {
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: .8125rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.5);
}

/* =============================================================
   18. AI assistant preview (Ask Albert AI)
   ============================================================= */
.ai-panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -24px hsl(var(--primary) / 0.2);
  overflow: hidden;
  max-width: 36rem; margin-inline: auto;
}
.ai-panel-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid hsl(var(--border));
}
.ai-panel-body { padding: 1.25rem; display: grid; gap: .85rem; }
.ai-bubble {
  max-width: 85%; padding: .75rem 1rem; border-radius: var(--radius-md);
  font-size: .9rem; line-height: 1.5;
}
.ai-bubble.user { margin-left: auto; background: hsl(var(--primary)); color: #fff; border-bottom-right-radius: .25rem; }
.ai-bubble.assistant { background: hsl(var(--muted)); color: hsl(var(--foreground)); border-bottom-left-radius: .25rem; }
.ai-panel-foot { padding: 1rem 1.25rem; border-top: 1px solid hsl(var(--border)); }
.ai-input-row { display: flex; gap: .6rem; }
.ai-input-row input {
  flex: 1; padding: .65rem .9rem; border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border)); font: inherit; font-size: .875rem;
}
.ai-disclaimer { font-size: .6875rem; color: hsl(var(--muted-foreground)); margin-top: .6rem; text-align: center; }

/* =============================================================
   19. Effects / animations
   ============================================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-visible { animation: fadeUp .6s var(--ease-out) forwards; }

.reveal-fade { opacity: 0; }
.reveal-fade.is-visible { animation: fadeIn .6s var(--ease-out) forwards; }

.reveal-scale { opacity: 0; transform: scale(.95); }
.reveal-scale.is-visible { animation: scaleIn .5s var(--ease-out) forwards; }

.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .reveal-scale { opacity: 1 !important; transform: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   20. Misc page furniture
   ============================================================= */
.pill-nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill-nav a, .pill-nav button {
  padding: .5rem 1rem; border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border)); font-size: .8125rem; font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.pill-nav a[aria-current="true"], .pill-nav button[aria-current="true"], .pill-nav a.is-active {
  background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary));
}

.two-col { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col.narrow-right { grid-template-columns: 1fr; }
@media (min-width: 960px) { .two-col.narrow-right { grid-template-columns: 1.4fr 1fr; } }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .85rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.prose p { margin-bottom: 1rem; color: hsl(var(--foreground) / 0.9); }
.prose ul { margin: 0 0 1rem; display: grid; gap: .5rem; }
.prose li { padding-left: 1.4rem; position: relative; color: hsl(var(--foreground) / 0.9); }
.prose li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--primary)); }
.prose a { color: hsl(var(--primary)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.avatar-initials {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex: none;
}
.avatar-initials.lg { width: 7rem; height: 7rem; font-size: 2.1rem; border-radius: var(--radius-md); }

table.compare { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.compare th, table.compare td { padding: .75rem 1rem; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
table.compare th { color: hsl(var(--muted-foreground)); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }

.faq-item { border-bottom: 1px solid hsl(var(--border)); padding: 1.25rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 1.1rem; height: 1.1rem; color: hsl(var(--primary)); flex: none; transition: transform .2s var(--ease-out); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin-top: .75rem; color: hsl(var(--muted-foreground)); font-size: .9rem; }

/* Responsive helpers */
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
.show-mobile { display: initial; }
@media (min-width: 720px) { .show-mobile { display: none; } }
