/* EDVIA marketing layer — unified SaaS tokens + layout fixes (loads after edvia.css) */

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;
  --ink-spec: #0F172A;
  --muted-spec: #475569;
  --canvas: #FFFFFF;
  --muted-section: #F1F5F9;
  --border-spec: #E2E8F0;
  --cyan: #06B6D4;
  --success: #10B981;
  --font-main: 'Bricolage Grotesque', sans-serif;
  --font-heading: var(--font-main);
  --font-body-spec: var(--font-main);
  --max: 1240px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --motion-fast: 0.08s;
  --motion-base: 0.1s;
  --motion-reveal: 0.25s;
  --motion-hero: 0.25s;
  --section-y: clamp(72px, 8vw, 96px);
  --section-y-after-hero: clamp(40px, 5vw, 56px);
  --section-y-before-footer: clamp(80px, 9vw, 104px);
  --section-stack-gap: clamp(36px, 4.5vw, 52px);
  --section-head-gap: clamp(48px, 5vw, 64px);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --text-body: 1rem;
  --text-lead: clamp(1.0625rem, 1.2vw, 1.125rem);
  --leading-body: 1.65;
  --leading-tight: 1.12;

  /* Bridge legacy edvia.css tokens */
  --navy: #0F172A;
  --navy-deep: #0F172A;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #93C5FD;
  --blue-soft: #EFF6FF;
  --blue-mist: #F1F5F9;
  --ink: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --font-display: var(--font-heading);
  --font-body: var(--font-body-spec);
}

html {
  scroll-behavior: auto;
  font-family: var(--font-main);
}

body {
  font-family: inherit;
  color: var(--ink-spec);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  background: var(--canvas);
}

.section-title,
.page-hero h1,
.hero h1,
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--ink-spec);
  letter-spacing: -0.025em;
}

.final-cta h2,
.final-cta h2.section-title,
.section--navy .section-title,
.section--navy h2 {
  color: #fff;
}

h2.section-title,
.section-title {
  font-size: clamp(1.75rem, 2.75vw, 2.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
}

.section-lead {
  font-size: var(--text-lead);
  line-height: var(--leading-body);
  max-width: 58ch;
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--section-head-gap);
}

.section-head .section-lead {
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  background: var(--canvas);
}

.section--soft {
  background: var(--muted-section);
}

.page .section--navy {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 52%, #334155 100%);
}

.section + .section--soft,
.section--soft + .section {
  border-top: 1px solid transparent;
}

a {
  cursor: pointer;
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

.container {
  width: min(100% - 2rem, var(--max));
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-spec);
  backdrop-filter: blur(12px);
}

.nav-links {
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-spec);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-links a,
.nav-mega-trigger {
  color: var(--muted-spec);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}

.nav-links a:hover,
.nav-mega-trigger:hover,
.nav-mega-trigger.is-active {
  color: var(--ink-spec);
  background: rgba(255, 255, 255, 0.9);
}

.nav-mega-trigger.is-active::after {
  border-top-color: var(--primary);
}

.btn--primary {
  background: var(--primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 8px 20px rgba(37, 99, 235, 0.22);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--secondary {
  border-color: var(--border-spec);
  color: var(--ink-spec);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.eyebrow {
  color: var(--primary);
}

.eyebrow::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.section-lead {
  color: var(--muted-spec);
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink-spec);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Homepage: soft canvas + showcase hero card —— */
.page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 60% at 50% -8%, rgba(37, 99, 235, 0.07), transparent 55%),
    linear-gradient(180deg, #EEF2FF 0%, #F8FAFC 22%, #F8FAFC 100%);
  color: var(--ink-spec);
}

.page--home {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(37, 99, 235, 0.09), transparent 52%),
    linear-gradient(180deg, #EEF2FF 0%, #F8FAFC 26%, #F8FAFC 100%);
}

.page:not(.page--home) .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-spec);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.page:not(.page--home) .site-header .container {
  width: min(100% - 2rem, calc(var(--max) + 48px));
}

.page--home .site-header {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.page--home .site-header .container {
  width: min(100% - 2rem, calc(var(--max) + 48px));
}

.btn--outline-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-spec);
  background: transparent;
  color: var(--ink-spec);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: none;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.btn--outline-nav:hover {
  background: var(--ink-spec);
  color: #fff;
  border-color: var(--ink-spec);
}

.hero--saas {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: clamp(8px, 2vw, 16px) 0 clamp(20px, 3vw, 32px);
  color: var(--ink-spec);
  background: transparent;
  align-items: stretch;
  display: block;
}

.hero--saas-showcase .hero-saas__shell {
  width: min(100% - 2rem, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) clamp(32px, 5vw, 56px);
  background: #fff;
  border-radius: clamp(24px, 3vw, 36px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.08);
}

.hero-saas__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero-saas__copy h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  max-width: 13ch;
  font-weight: 800;
}

.hero-saas__accent {
  color: var(--primary);
}

.hero-saas__lead {
  font-size: var(--text-lead);
  color: var(--muted-spec);
  max-width: 42ch;
  margin: 0 0 var(--space-5);
  line-height: var(--leading-body);
}

.hero-saas__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 0;
}

.hero-saas__actions .btn {
  width: auto;
}

.btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding-inline: 24px 20px;
}

.btn--with-icon svg {
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.btn--with-icon:hover svg {
  transform: translateX(3px);
}

.hero-saas__link {
  font-weight: 600;
  color: var(--muted-spec);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-saas__link:hover {
  color: var(--primary);
}

.hero-saas__visual {
  position: relative;
  min-width: 0;
}

.hero-saas__stage {
  position: relative;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background:
    linear-gradient(145deg, #f6f8fc 0%, #eef2f8 100%);
  padding: clamp(12px, 2vw, 20px);
}

.hero-saas__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 20%, transparent 100%);
}

.hero-saas__stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

.hero-saas__stage--product img {
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* —— Homepage sections —— */
.page--home .home-section {
  background: #fff;
  padding-block: var(--section-y);
}

.page--home .home-section--soft {
  background: var(--muted-section);
}

.page--home .home-section--cta {
  padding-bottom: var(--section-y-before-footer);
}

.home-trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.home-stat {
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.home-stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.home-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--muted-spec);
  line-height: 1.35;
}

.home-trust__logos-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-spec);
  margin: 0 0 16px;
}

.home-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 52px);
  padding: 0;
}

.home-logos li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-spec);
  background: var(--muted-section);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-spec);
}

.home-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-quote {
  margin: 0;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-spec);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-quote blockquote {
  margin: 0 0 18px;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--ink-spec);
}

.home-quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-spec);
}

.home-quote__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.home-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}

.home-bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--border-spec);
  background: #fff;
  color: inherit;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.home-bento__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  background: linear-gradient(145deg, var(--tile-accent, #eff6ff) 0%, #fff 70%);
}

.home-bento__tile > * {
  position: relative;
  z-index: 1;
}

.home-bento__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.home-bento__tile--hero {
  grid-row: span 2;
  padding: 28px 24px;
}

.home-bento__tile--wide {
  grid-column: span 2;
}

.tile-admit { --tile-accent: #dbeafe; }
.tile-academics { --tile-accent: #e0e7ff; }
.tile-learning { --tile-accent: #cffafe; }
.tile-finance { --tile-accent: #d1fae5; }
.tile-hr { --tile-accent: #fce7f3; }
.tile-comms { --tile-accent: #fef3c7; }

.home-bento__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.home-bento__tile h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}

.home-bento__tile p {
  margin: 0;
  flex: 1;
  font-size: 0.925rem;
  color: var(--muted-spec);
  line-height: 1.55;
  max-width: 42ch;
}

.home-bento__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.home-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-role {
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--border-spec);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-role__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.home-role__icon svg {
  width: 22px;
  height: 22px;
}

.home-role h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.home-role p {
  margin: 0 0 14px;
  font-size: 0.925rem;
  color: var(--muted-spec);
  line-height: 1.55;
}

.home-role ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-spec);
}

.home-role li {
  padding: 6px 0 6px 22px;
  position: relative;
}

.home-role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.85;
}

.home-steps {
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 56px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-spec);
  background: #fff;
}

.home-step__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--muted-section);
}

.home-step__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.home-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.home-step p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted-spec);
  line-height: 1.55;
}

.home-demo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 24px;
  border: 1px solid var(--border-spec);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-demo__poster {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.home-demo__poster img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-demo__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 31, 63, 0.35);
  color: #fff;
  transition: background 0.1s ease;
}

.home-demo__poster:hover .home-demo__play {
  background: rgba(8, 31, 63, 0.48);
}

.home-demo__play svg {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.home-demo__copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.home-demo__copy p {
  margin: 0 0 20px;
  color: var(--muted-spec);
  line-height: 1.6;
}

.home-pricing-foot {
  text-align: center;
  margin-top: 24px;
}

.home-faq {
  margin-top: clamp(48px, 6vw, 64px);
  max-width: 720px;
  margin-inline: auto;
}

.home-faq__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-align: center;
}

.home-faq__more {
  text-align: center;
  margin: 16px 0 0;
  font-weight: 600;
}

.final-cta,
.final-cta--home {
  color: #fff;
}

.final-cta p,
.final-cta--home p {
  color: #e2e8f0;
}

.final-cta--home {
  text-align: center;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 40px);
}

.final-cta--home h2 {
  color: #fff;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.final-cta__ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.final-cta__ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

/* —— About page —— */
.page--about .nav-links {
  border-color: var(--border-spec);
  background: rgba(255, 255, 255, 0.85);
}

.about-hero {
  padding: clamp(8px, 2vw, 16px) 0 clamp(32px, 5vw, 48px);
}

.about-hero__crumb {
  margin-bottom: 12px;
  color: var(--muted-spec);
}

.about-hero__shell {
  width: min(100% - 2rem, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  background: #fff;
  border-radius: clamp(24px, 3vw, 36px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.08);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.about-hero__copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  max-width: 14ch;
  font-weight: 800;
}

.about-hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-spec);
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 48ch;
  line-height: 1.55;
}

.about-hero__text {
  margin: 0 0 12px;
  color: var(--muted-spec);
  max-width: 52ch;
  line-height: 1.65;
  font-size: 1rem;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-hero__visual .hero-saas__stage img {
  object-fit: cover;
  border-radius: 12px;
}

.about-section {
  background: #fff;
  padding-block: var(--section-y);
}

.about-section--soft {
  background: var(--muted-section);
}

.about-section--platform {
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
}

.about-section--cta {
  background: #fff;
  padding-bottom: var(--section-y-before-footer);
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

.about-split__copy p {
  color: var(--muted-spec);
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 58ch;
}

.about-split__copy p:last-of-type {
  margin-bottom: 0;
}

.about-split__panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--border-spec);
  background: var(--muted-section);
  box-shadow: var(--shadow-soft);
}

.about-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--ink-spec);
  line-height: 1.45;
}

.about-checklist svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 1px;
}

.about-mv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-mv__card {
  padding: clamp(28px, 4vw, 36px);
  border-radius: 20px;
  border: 1px solid var(--border-spec);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.about-mv__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.about-mv__icon svg {
  width: 24px;
  height: 24px;
}

.about-mv__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  text-transform: capitalize;
}

.about-mv__card p {
  margin: 0;
  color: var(--muted-spec);
  line-height: 1.65;
  max-width: 48ch;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-value {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--border-spec);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.about-value:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
}

.about-value__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.about-value__icon svg {
  width: 22px;
  height: 22px;
}

.about-value h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.about-value p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted-spec);
  line-height: 1.55;
}

.about-platform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.about-platform__copy p {
  color: var(--muted-spec);
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 52ch;
}

.about-platform__copy .btn {
  margin-top: 8px;
}

.about-platform__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-spec);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-spec);
}

/* Trust / metrics strip */
.metrics {
  background: var(--muted-section);
  border-block: 1px solid var(--border-spec);
  padding: var(--section-stack-gap) 0;
}

.metrics-grid {
  gap: 16px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 20px 16px;
}

.metric-value {
  color: var(--primary);
  font-family: var(--font-heading);
}

.metric-label {
  color: var(--muted-spec);
  font-size: 0.9rem;
}

/* Unified showcase heroes (home + inner pages) */
.page-hero--showcase {
  padding: clamp(8px, 2vw, 16px) 0 clamp(20px, 3vw, 32px);
  background: transparent;
}

.page-hero__crumb-wrap {
  width: min(100% - 2rem, calc(var(--max) + 48px));
  margin: 0 auto 8px;
}

.page-hero__crumb-wrap .breadcrumb {
  margin-bottom: 0;
}

.page-hero--showcase .page-hero__title {
  max-width: none;
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-hero--showcase.page-hero--home .page-hero__title {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  max-width: 13ch;
}

.page-hero--showcase .page-hero__lead {
  max-width: 42ch;
}

.page-hero__after {
  margin-top: 20px;
}

.page-hero__body .about-hero__text {
  margin: 0 0 12px;
  color: var(--muted-spec);
  max-width: 52ch;
  line-height: 1.65;
  font-size: 1rem;
}

.page-hero__body .about-hero__text:first-child {
  color: var(--ink-spec);
  font-weight: 600;
}

.page-hero__meta--light {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-hero__meta--light li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-spec);
  background: var(--muted-section);
  border: 1px solid var(--border-spec);
  border-radius: 999px;
  padding: 8px 14px;
}

.page--about .page-hero--showcase,
.page--home .page-hero--showcase {
  padding-top: clamp(8px, 2vw, 16px);
}

/* Legacy plain hero (deprecated — prefer showcase) */
.page-hero--plain {
  padding: var(--section-y-after-hero) 0 var(--section-y-after-hero);
  background: linear-gradient(180deg, var(--muted-section) 0%, var(--canvas) 100%);
  color: var(--ink-spec);
}

.page-hero--plain .lead {
  color: var(--muted-spec);
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.page-hero--plain h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted-spec);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.site-header {
  z-index: 100;
}

.nav-links a.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.nav-links a.is-active:hover {
  color: #fff;
  background: var(--primary-hover);
}

.nav-links a.is-active::after {
  display: none;
}

/* Features directory — area grid (dedicated page, not header overlay) */
.features-area-intro {
  margin-bottom: 28px;
  max-width: 62ch;
}

.features-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.features-area {
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}

.features-area__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: inherit;
}

.features-area__head:hover .features-area__title {
  color: var(--primary);
}

.features-area__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.features-area__icon svg {
  width: 20px;
  height: 20px;
}

.features-area__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-spec);
  line-height: 1.25;
}

.features-area__desc {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-spec);
  line-height: 1.45;
  margin-top: 4px;
}

.features-area__links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-spec);
  padding-top: 12px;
}

.features-area__links li {
  margin: 0;
}

.features-area__links a {
  display: block;
  padding: 8px 0;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-spec);
}

.features-area__links a:hover {
  color: var(--primary);
}

/* Category hub cards (features index + homepage) */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.hub-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hub-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.hub-card__icon svg {
  width: 20px;
  height: 20px;
}

.hub-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-spec);
}

.hub-card__desc {
  font-size: 0.9rem;
  color: var(--muted-spec);
  line-height: 1.45;
  flex: 1;
}

.hub-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

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

.feature-card__title {
  margin: 0;
  font-size: 1.15rem;
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Features directory */
.features-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-search {
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-md);
  font: inherit;
  background: #fff;
}

.feature-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.features-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-spec);
  background: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--muted-spec);
  transition: border-color 0.1s ease, color 0.1s ease, background 0.1s ease;
}

.chip.is-active,
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.feature-card h3 a:hover {
  color: var(--primary);
}

.feature-card__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-spec);
  font-size: 0.9rem;
  flex: 1;
}

.feature-card__link {
  font-weight: 700;
  color: var(--primary);
}

.features-empty {
  text-align: center;
  color: var(--muted-spec);
  margin-top: 24px;
}

/* Feature detail */
.package-availability {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--muted-spec);
}

.product-visual__frame {
  border: 1px solid var(--border-spec);
  border-radius: 20px;
  overflow: hidden;
  background: var(--muted-section);
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.product-visual__chrome {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border-spec);
}

.product-visual__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-spec);
}

.product-visual__body {
  padding: 32px 28px;
  min-height: 200px;
}

.product-visual__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-spec);
  font-weight: 700;
}

.benefit-card__role {
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.capability-block {
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.capability-block h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.capability-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-spec);
  line-height: 1.55;
}

.workflow-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.workflow-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: 14px;
}

.workflow-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.related-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-features a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-spec);
  font-weight: 600;
}

.related-features a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.callout {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-spec);
  background: #fff;
}

.callout--warn {
  border-color: #fcd34d;
  background: #fffbeb;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.prose {
  max-width: 68ch;
  line-height: 1.65;
}

.prose h2 {
  margin-top: 2rem;
}

.card {
  border-color: var(--border-spec);
  box-shadow: var(--shadow-soft);
}

.final-cta {
  border-radius: 20px;
}

/* Mobile nav + mega menu */
@media (max-width: 960px) {
  .page--home .site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-spec);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
  }

  .nav-links a.is-active {
    box-shadow: none;
  }

  .page-hero__grid,
  .about-split,
  .about-mv,
  .about-values,
  .about-platform {
    grid-template-columns: 1fr;
  }

  .page-hero--showcase .page-hero__title,
  .page-hero--showcase.page-hero--home .page-hero__title {
    max-width: none;
  }

  .page-hero__visual {
    order: -1;
  }

  .page-hero__actions {
    flex-direction: column;
  }

  .page-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero--saas-showcase .hero-saas__shell {
    padding: clamp(24px, 5vw, 32px) clamp(20px, 4vw, 24px);
    border-radius: 24px;
  }

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

  .hero-saas__copy h1 {
    max-width: none;
  }

  .hero-saas__visual {
    order: -1;
  }

  .hero-saas__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-saas__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-saas__link {
    justify-content: center;
  }

  .home-trust__stats,
  .home-quotes,
  .home-bento,
  .home-roles,
  .home-steps,
  .home-demo {
    grid-template-columns: 1fr;
  }

  .home-bento__tile--hero,
  .home-bento__tile--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .nav.is-open .nav-item--mega {
    width: 100%;
  }

  .nav.is-open .nav-mega-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav.is-open .nav-mega-trigger:hover {
    background: var(--primary-soft);
  }

  .features-area-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .features-area-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .hub-cards,
  .features-grid,
  .features-grid--hub {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .feature-card:hover {
    transform: none;
  }

  .chip,
  .feature-card {
    transition: none;
  }
}

/* Package ↔ feature interlink */
.plan-tier-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted-spec);
  line-height: 1.5;
}

.plan-tier-note a {
  color: var(--primary);
  font-weight: 600;
}

.package-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.package-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-spec);
  background: #fff;
  color: var(--ink-spec);
  transition: background 0.1s ease, border-color 0.1s ease;
}

.package-badge:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.package-badge--free {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.package-badge--growth {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.package-badge--complete {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.package-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.package-availability__label {
  font-weight: 600;
  color: var(--ink-spec);
}

.package-availability__compare {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.feature-card__compare {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-spec);
}

.feature-card__compare:hover {
  color: var(--primary);
}

.features-filter--packages {
  margin-top: 12px;
  align-items: center;
}

.features-filter__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-spec);
  margin-right: 4px;
}

.package-bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.package-bridge-card {
  background: #fff;
  border: 1px solid var(--border-spec);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.package-bridge-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.package-bridge-card__stat {
  margin: 12px 0 16px;
  color: var(--muted-spec);
}

.compare-feature-link {
  color: var(--ink-spec);
  font-weight: 600;
  text-decoration: none;
}

.compare-feature-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.compare-footnote {
  margin-top: 20px;
  text-align: center;
  color: var(--muted-spec);
}

.compare-footnote a {
  font-weight: 600;
}

.price-features a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
}

.price-features a:hover {
  color: var(--primary);
}

.price-features__more {
  list-style: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .package-bridge-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Features directory (modern showcase) —— */
.page--features {
  --hub-operations: #2563eb;
  --hub-teaching: #0891b2;
  --hub-administration: #7c3aed;
  --hub-intelligence: #0ea5e9;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #EEF2FF 0%, #F8FAFC 18%, #F8FAFC 100%);
}

.features-spotlight {
  padding: var(--section-y-after-hero) 0 var(--space-6);
}

.features-spotlight__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-spec);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.features-spotlight__stat {
  text-align: center;
  padding: 8px 4px;
}

.features-spotlight__value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.1;
}

.features-spotlight__label {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-spec);
}

.features-mosaic-band {
  width: min(100% - 2rem, calc(var(--max) + 48px));
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-spec);
  box-shadow: var(--shadow-soft);
  max-height: 220px;
}

.features-mosaic-band img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.features-mosaic-band + .section.features-hubs {
  padding-top: var(--section-y);
}

.features-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.features-hub-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--border-spec);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    transform var(--motion-reveal) cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow var(--motion-reveal) ease,
    border-color var(--motion-fast) ease;
}

.features-hub-card:hover {
  border-color: color-mix(in srgb, var(--hub-accent, var(--primary)) 40%, transparent);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.features-hub-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.features-hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.features-hub-card:hover .features-hub-card__media img {
  transform: scale(1.06);
}

.features-hub-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(15, 23, 42, 0.55) 100%
  );
  pointer-events: none;
}

.features-hub-card__body {
  padding: 22px 22px 24px;
  position: relative;
}

.features-hub-card__icon {
  position: absolute;
  top: -22px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--hub-accent, var(--primary));
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--hub-accent, var(--primary)) 45%, transparent);
}

.features-hub-card__icon svg {
  width: 22px;
  height: 22px;
}

.features-hub-card__count {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-accent, var(--primary));
}

.features-hub-card__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
}

.features-hub-card__title a {
  color: var(--ink-spec);
}

.features-hub-card__title a:hover {
  color: var(--primary);
}

.features-hub-card__desc {
  margin: 0 0 16px;
  font-size: 0.925rem;
  color: var(--muted-spec);
  line-height: 1.55;
  max-width: 42ch;
}

.features-hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.features-hub-card__filter {
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  text-underline-offset: 3px;
}

.features-hub-card__filter:hover {
  color: var(--primary-hover);
}

.features-catalog {
  position: relative;
}

.features-catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.06), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.06), transparent 40%);
  pointer-events: none;
}

.features-toolbar--sticky {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-spec);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.features-grid--showcase {
  gap: clamp(18px, 2.5vw, 24px);
}

.feature-card--showcase {
  padding: 0;
  overflow: hidden;
  gap: 0;
  transition:
    opacity var(--motion-reveal) ease,
    transform var(--motion-reveal) cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-reveal) ease;
}

.feature-card--showcase.is-filtered-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.feature-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary-soft) 0%, #fff 70%);
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card--showcase:hover .feature-card__media img {
  transform: scale(1.05);
}

.feature-card__media-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.04) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--motion-fast) ease;
}

.feature-card--showcase:hover .feature-card__media-glow {
  opacity: 1;
}

.feature-card--showcase > :not(.feature-card__media) {
  margin-left: 24px;
  margin-right: 24px;
}

.feature-card--showcase > h3 {
  margin-top: 20px;
}

.feature-card--showcase > .package-badges,
.feature-card--showcase > p,
.feature-card--showcase > .feature-card__list {
  margin-bottom: 0;
}

.feature-card--showcase > .feature-card__link {
  margin-top: 4px;
  margin-bottom: 8px;
}

.feature-card--showcase > .feature-card__compare {
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .features-hub-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .features-toolbar--sticky {
    top: 64px;
  }

  .features-spotlight__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-hub-card,
  .feature-card--showcase,
  .features-hub-card__media img,
  .feature-card__media img {
    transition: none;
    transform: none !important;
  }
}

/* —— Global UX rhythm (typography, footer, cards) —— */
.site-footer {
  background: var(--ink-spec);
  color: #94a3b8;
  padding: var(--space-8) 0 var(--space-5);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom-color: rgba(248, 250, 252, 0.1);
  align-items: start;
}

@media (min-width: 641px) and (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-col--contact ul {
  gap: 12px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: var(--leading-body);
}

.footer-col h4 {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-col a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  color: #64748b;
  padding-top: var(--space-5);
}

.btn {
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.module-card,
.module-tile,
.ai-tile,
.card {
  border-color: var(--border-spec);
}

.page-hero--showcase .page-hero__title {
  color: var(--ink-spec);
}

.page-hero--showcase .page-hero__lead {
  color: var(--muted-spec);
}

.page .prose {
  color: var(--muted-spec);
  font-size: var(--text-body);
}

.page .prose h2,
.page .prose h3 {
  color: var(--ink-spec);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.page .prose h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 var(--space-3);
  line-height: 1.25;
}

.page .prose p {
  margin: 0 0 var(--space-4);
}

.page .prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page .prose a:hover {
  color: var(--primary-hover);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

main#main-content > .section,
main#main-content > .home-section,
main#main-content > .about-section {
  scroll-margin-top: 88px;
}

/* ===== Section spacing (all pages) ===== */
.home-section,
.about-section {
  padding-block: var(--section-y);
}

.page-hero--showcase + .section,
.page-hero--showcase + .home-section,
.page-hero--showcase + .about-section {
  padding-top: var(--section-y-after-hero);
}

.section--soft + .section.section--soft,
.home-section--soft + .home-section.home-section--soft,
.about-section--soft + .about-section.about-section--soft {
  padding-top: var(--section-stack-gap);
}

main#main-content > .section:last-child,
main#main-content > .home-section:last-child,
main#main-content > .about-section:last-child {
  padding-bottom: var(--section-y-before-footer);
}
