/* ==========================================================================
   SRCEF website styles
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #04258f;
  --navy-deep: #021650;
  --leaf: #3b7d12;
  --leaf-dark: #2f6410;
  --lime: #54ab1a;
  --lime-hover: #66c22a;
  --ivory: #f4f8f3;
  --ink: #122033;
  --muted: #5b677a;
  --white: #fff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --page: 1200px;
  --radius: 1rem;
  --mobile-bar: 3.5rem;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, blockquote, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.h-full { height: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 60; background: #fff; padding: .5rem 1rem; border-radius: .25rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--3xl { max-width: 48rem; }
.wrap--4xl { max-width: 56rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

main { padding-bottom: var(--mobile-bar); }
@media (min-width: 1024px) { main { padding-bottom: 0; } }

.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }
.section--tight { padding-block: 5rem; }
@media (min-width: 768px) { .section--tight { padding-block: 6rem; } }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--navy-deep); color: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.section--form { background: linear-gradient(to bottom, var(--navy), var(--navy-deep)); }
.section--legal { padding-block: 6rem; }

/* Responsive grids: combine .grid with one or more column modifiers */
.grid { display: grid; gap: 1.5rem; }
.grid--gap-4 { gap: 1rem; }
.grid--gap-8 { gap: 2rem; }
.grid--gap-12 { gap: 3rem; }
.grid--list { column-gap: 2.5rem; row-gap: 1.5rem; }
.grid--center { align-items: center; }
.grid--start { align-items: start; }
@media (min-width: 640px)  { .sm-2 { grid-template-columns: repeat(2, 1fr); } .sm-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .md-2 { grid-template-columns: repeat(2, 1fr); } .md-3 { grid-template-columns: repeat(3, 1fr); } .md-4 { grid-template-columns: repeat(4, 1fr); } .md-5 { grid-template-columns: repeat(5, 1fr); } .md-split { grid-template-columns: repeat(5, 1fr); } .md-split > :first-child { grid-column: span 2; } .md-split > :last-child { grid-column: span 3; } }
@media (min-width: 1024px) { .lg-2 { grid-template-columns: repeat(2, 1fr); } .lg-3 { grid-template-columns: repeat(3, 1fr); } .lg-4 { grid-template-columns: repeat(4, 1fr); } }

/* 4. Components ------------------------------------------------------------ */

/* Typography helpers */
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--leaf); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.h-2xl { font-size: 2.25rem; }
.h-xl  { font-size: 2.25rem; }
.h-md  { font-size: 1.875rem; }
.h-lg  { font-size: 1.875rem; }
.title { color: var(--navy); }
.text-muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); }
.center { text-align: center; }
@media (min-width: 768px) {
  .h-2xl { font-size: 3.75rem; }
  .h-xl { font-size: 3rem; }
  .h-md { font-size: 3rem; }
  .h-lg { font-size: 2.25rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .75rem 1.5rem;
  font-size: .875rem; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn .icon { width: 1rem; height: 1rem; transition: transform .3s; }
.btn:hover .icon { transform: translateX(.25rem); }
.btn--primary { background: var(--leaf); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn--primary:hover { background: var(--leaf-dark); box-shadow: 0 6px 24px -6px rgba(59,125,18,.5); }
.btn--lime { background: var(--lime); color: var(--navy-deep); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: .625rem 1.25rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Cards */
.card { border-radius: var(--radius); background: #fff; padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card--ivory { background: var(--ivory); box-shadow: none; }
.card--outline { border: 1px solid rgba(4,37,143,.1); box-shadow: none; }
.card--hover { transition: border-color .3s, box-shadow .3s, transform .3s; }
.card--hover:hover { border-color: var(--lime); box-shadow: 0 10px 30px -10px rgba(0,0,0,.2); }
.card h2, .card h3 { color: var(--navy); }
.card p { margin-top: .75rem; color: var(--muted); }
.card--sm { padding: 1.5rem; }
.card--sm p { margin-top: .5rem; font-size: .875rem; }

.link-card { display: flex; flex-direction: column; height: 100%; transition: transform .3s, box-shadow .3s; }
.link-card:hover { transform: translateY(-.25rem); box-shadow: 0 20px 40px -12px rgba(0,0,0,.25); }
.link-card h2, .link-card h3 { font-size: 1.5rem; }
.link-card .more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--leaf); }
.link-card .more .icon { width: 1rem; height: 1rem; transition: transform .3s; }
.link-card:hover .more .icon { transform: translateX(.25rem); }

.rule-list > li, .rule-item { border-bottom: 1px solid rgba(4,37,143,.1); padding-bottom: 1.25rem; }
.rule-list h3, .rule-item h3 { font-size: 1.5rem; color: var(--navy); }
.rule-list p, .rule-item p { margin-top: .25rem; color: var(--muted); }

.topline { border-top: 2px solid var(--leaf); padding-top: 1.25rem; }
.topline h2 { font-size: 1.5rem; color: var(--navy); }
.topline p { margin-top: .75rem; color: var(--muted); }

/* Section heading */
.section-heading { max-width: 48rem; }
.section-heading h2 { font-size: 1.875rem; color: var(--navy); }
.section-heading p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted); }
.section-heading--dark h2 { color: #fff; }
.section-heading--dark p { color: rgba(255,255,255,.75); }
@media (min-width: 768px) { .section-heading h2 { font-size: 3rem; } }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: #fff; padding-block: 1rem;
  transition: padding .3s, background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.9); padding-block: .5rem;
  box-shadow: 0 2px 24px -8px rgba(23,32,51,.25);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-cta { display: none; }
.menu-toggle { border-radius: .5rem; padding: .5rem; color: var(--navy); }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }

.logo { display: flex; align-items: center; gap: .75rem; }
.logo__mark { display: block; }
.logo--light .logo__mark { border-radius: .75rem; background: #fff; padding: .375rem; }
.logo__mark img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.logo__text { font-family: var(--font-display); font-size: 15px; line-height: 1.25; color: var(--navy); }
.logo--light .logo__text { color: #fff; }

.primary-nav { display: none; border-top: 1px solid rgba(4,37,143,.1); margin-top: 1rem; transition: margin .3s; }
.is-scrolled .primary-nav { margin-top: .5rem; }
.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: 2rem; padding-top: .625rem; }
.primary-nav a {
  position: relative; display: block; white-space: nowrap; padding-block: .25rem;
  font-size: .875rem; font-weight: 600; color: var(--ink);
}
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--leaf); transition: width .3s; }
.primary-nav a:hover { color: var(--navy); }
.primary-nav a:hover::after, .primary-nav a[aria-current='page']::after { width: 100%; }
.primary-nav a[aria-current='page'] { color: var(--navy); }

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .primary-nav { display: block; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: var(--navy-deep); color: #fff; padding: 1.25rem 1.5rem; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close { padding: .5rem; color: #fff; }
.mobile-menu__close .icon { width: 1.5rem; height: 1.5rem; }
.mobile-menu nav { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu nav a { border-bottom: 1px solid rgba(255,255,255,.1); padding-block: 1rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 1.15; }
.mobile-menu__cta { margin-top: auto; padding: 2rem 0 1rem; }

/* Mobile action bar */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex;
  border-top: 1px solid rgba(4,37,143,.1); background: rgba(255,255,255,.95);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .125rem; padding-block: .625rem; font-size: .75rem; font-weight: 600; line-height: 1.4; color: var(--navy); }
.mobile-bar a .icon { width: 1.125rem; height: 1.125rem; }
.mobile-bar a.is-primary { background: var(--leaf); color: #fff; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 4rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 24rem; font-size: .875rem; }
.footer-col h3 { font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: #fff; letter-spacing: 0; }
.footer-col ul { margin-top: 1rem; display: grid; gap: .5rem; font-size: .875rem; }
.site-footer a:hover { color: var(--lime); }
.footer-contact { font-size: .875rem; }
.footer-contact ul { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal .wrap { display: flex; flex-direction: column; gap: .75rem; padding-block: 1.5rem; font-size: .75rem; }
.footer-legal nav { display: flex; gap: 1.25rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-brand { grid-column: span 2; }
  .footer-contact { grid-column: 1 / -1; grid-row: 2; }
  .footer-legal .wrap { flex-direction: row; justify-content: space-between; }
}

/* Heroes ------------------------------------------------------------------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero__photo { position: absolute; inset: 0; z-index: -3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(to right, var(--navy-deep), rgba(2,22,80,.85), rgba(2,22,80,.4)); }
.deco { position: absolute; z-index: -1; border-radius: 1.5rem; transform: rotate(12deg); pointer-events: none; }
.deco--a { right: -6rem; top: 2.5rem; width: 20rem; height: 20rem; border: 1px solid rgba(84,171,26,.3); }
.deco--b { right: 10rem; top: 10rem; width: 10rem; height: 10rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; transform: none; animation-delay: -6s; }
.page-hero .deco--a { top: 1.5rem; width: 18rem; height: 18rem; }
.page-hero .deco--b { right: 12rem; top: 8rem; width: 8rem; height: 8rem; }

.hero .wrap { padding-block: 6rem; }
.hero h1 { margin-top: 1.25rem; max-width: 48rem; font-size: 3rem; }
.hero__lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.25rem; color: rgba(255,255,255,.85); }
.hero__sub { margin-top: 1rem; max-width: 42rem; color: rgba(255,255,255,.7); }
.hero .btn-row { margin-top: 2.25rem; }
.hero__more { display: inline-block; margin-top: 2rem; font-size: .875rem; font-weight: 600; color: var(--lime); }
.hero__more:hover { text-decoration: underline; }
@media (min-width: 768px) { .hero .wrap { padding-block: 9rem; } .hero h1 { font-size: 4.5rem; } }

.page-hero .wrap { padding-block: 5rem; }
.page-hero h1 { margin-top: 1.25rem; max-width: 48rem; font-size: 2.25rem; }
.page-hero__lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; color: rgba(255,255,255,.8); }
.page-hero .btn-row { margin-top: 2rem; }
.breadcrumb { font-size: .875rem; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: rgba(255,255,255,.9); }
@media (min-width: 768px) {
  .page-hero .wrap { padding-block: 7rem; }
  .page-hero h1 { font-size: 3.75rem; }
  .page-hero__lead { font-size: 1.25rem; }
}

/* Photo with graceful fallback (navy backdrop shows if the image is missing) */
.photo { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.model-card:hover .photo img { transform: scale(1.05); }
.photo--43 { aspect-ratio: 4 / 3; }

/* 5. Sections -------------------------------------------------------------- */

/* Trust strip */
.trust { border-bottom: 1px solid rgba(4,37,143,.1); background: var(--ivory); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; padding-block: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--navy); }

/* Stats */
.stats { border-block: 1px solid rgba(4,37,143,.1); background: var(--ivory); }
.stats dl { display: grid; gap: 2rem; padding-block: 3rem; text-align: center; }
.stats dt { font-family: var(--font-display); font-size: 3.75rem; line-height: 1.15; color: var(--leaf); }
.stats dd { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--navy); }
@media (min-width: 768px) { .stats dl { grid-template-columns: repeat(3, 1fr); } }

/* Approach / journey steps */
.step-num { display: block; font-family: var(--font-display); font-size: 1.875rem; line-height: 1.15; color: var(--lime); }
.steps--light .step-num { color: var(--leaf); }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: .5rem; font-size: .875rem; }
.steps--dark .step { border-top: 2px solid var(--lime); padding-top: 1.25rem; }
.steps--dark .step p { color: rgba(255,255,255,.75); }
.steps--light .step { position: relative; border-left: 2px solid var(--lime); padding-left: 1.25rem; }
.steps--light .step h3 { color: var(--navy); }
.steps--light .step p { color: var(--muted); }
@media (min-width: 768px) { .steps--light .step { border-left: 0; border-top: 2px solid var(--lime); padding-left: 0; padding-top: 1.25rem; } }

/* Master franchise / school logos */
.school-logo { display: flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border-radius: 1rem; background: var(--ivory); width: 6rem; height: 6rem; }
.school-logo img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.school-logo span { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.school-logo--sm { width: 4rem; height: 4rem; }
.school-card { border: 1px solid rgba(4,37,143,.1); border-radius: 1rem; background: #fff; padding: 1.75rem; transition: border-color .3s, box-shadow .3s; }
.school-card:hover { border-color: var(--lime); box-shadow: 0 10px 30px -10px rgba(0,0,0,.2); }
.school-card h3 { margin-top: 1.25rem; font-size: 1.5rem; color: var(--navy); }
.school-card .type { margin-top: .25rem; font-size: .875rem; font-weight: 600; color: var(--leaf); }
.school-card p:last-child { margin-top: .75rem; color: var(--muted); }
.school-chip { display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(4,37,143,.1); border-radius: .75rem; padding: 1rem; }
.school-chip h3 { font-size: 1.125rem; line-height: 1.35; color: var(--navy); }

/* Model cards */
.model-card { overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.model-card__body { padding: 1.5rem; }
.model-card .icon { width: 1.5rem; height: 1.5rem; color: var(--leaf); }
.model-card h3 { margin-top: .75rem; font-size: 1.5rem; color: var(--navy); }
.model-card p { margin-top: .5rem; color: var(--muted); }

/* Network list */
.net-item { border-radius: .75rem; background: #fff; padding: 1.25rem; }
.net-item h3 { font-size: 1.25rem; color: var(--navy); }
.net-item p { font-size: .875rem; color: var(--muted); }

/* Mentor */
.mentor-photo { position: relative; aspect-ratio: 4 / 5; width: 100%; overflow: hidden; border-radius: 1.5rem; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); box-shadow: 0 20px 40px -12px rgba(0,0,0,.3); }
.mentor-photo img { width: 100%; height: 100%; object-fit: cover; }
.mentor-photo__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 4.5rem; color: var(--lime); }
.quote-icon { width: 2rem; height: 2rem; margin-inline: auto; color: var(--lime); }
.quote-block { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 1.2; }
.quote-name { margin-top: 1rem; font-size: .875rem; color: rgba(255,255,255,.6); }
.quote-note { margin-top: .5rem; font-size: .75rem; color: rgba(255,255,255,.4); }
@media (min-width: 768px) { .quote-block { font-size: 2.25rem; } }

/* Articles */
.article-card { padding: 1.5rem; }
.article-card h2 { margin-top: .5rem; font-size: 1.25rem; color: var(--navy); }
.article-card .excerpt { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.article-card .meta { margin-top: auto; padding-top: 1rem; font-size: .75rem; color: var(--muted); }
.article-card .more { margin-top: .75rem; }
.article-body section { margin-bottom: 2.5rem; }
.article-body h2 { margin-bottom: 1rem; font-size: 1.5rem; color: var(--navy); }
.article-body p { margin-bottom: 1rem; font-size: 1.125rem; color: rgba(18,32,51,.85); }
.back-link { font-size: .875rem; font-weight: 600; color: var(--leaf); }
.back-link:hover { text-decoration: underline; }
@media (min-width: 768px) { .article-body h2 { font-size: 1.875rem; } }

.text-link { display: inline-block; margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--leaf); }
.note { max-width: 48rem; font-size: .875rem; color: var(--muted); }
.note--small { font-size: .75rem; }
.note strong { color: var(--navy); }

/* AI page */
.pill-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.pill-list li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.05); padding: .5rem 1rem; font-size: .875rem; }
.ai-flow { margin-top: 3rem; display: grid; gap: .75rem; }
.ai-flow li { border: 1px solid rgba(84,171,26,.3); border-radius: .75rem; background: rgba(255,255,255,.05); padding: 1rem; text-align: center; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 768px) { .ai-flow { grid-template-columns: repeat(5, 1fr); } }
.ai-statement { margin-top: 2.5rem; max-width: 42rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; color: var(--lime); }

.dash { margin-top: 3rem; border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; background: rgba(255,255,255,.05); padding: 1.25rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dash__tabs { display: flex; gap: .5rem; }
.dash__tab { border-radius: 999px; padding: .5rem 1.25rem; font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.7); transition: background-color .3s, color .3s; }
.dash__tab:hover { color: #fff; }
.dash__tab[aria-selected='true'] { background: var(--lime); color: var(--navy-deep); }
.dash__panel { margin-top: 1.5rem; display: grid; gap: .75rem; }
.dash__panel[hidden] { display: none; }
.dash__item { border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; background: rgba(255,255,255,.1); padding: 1rem; }
.dash__item p { font-size: .875rem; font-weight: 600; color: #fff; }
.dash__bar { margin-top: .75rem; height: .375rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.dash__bar i { display: block; height: 100%; border-radius: 999px; background: rgba(84,171,26,.8); }
.dash__note { margin-top: 1.25rem; font-size: .75rem; color: rgba(255,255,255,.6); }
@media (min-width: 640px) { .dash__panel { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .dash { padding: 2rem; } }
@media (min-width: 1024px) { .dash__panel { grid-template-columns: repeat(3, 1fr); } }

/* Ecosystem diagram */
.eco { position: relative; margin-inline: auto; aspect-ratio: 1; width: 100%; max-width: 640px; }
.eco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco__core {
  position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1.125rem;
  box-shadow: 0 20px 50px -12px rgba(4,37,143,.55), 0 0 0 8px rgba(84,171,26,.2);
}
.eco__node {
  position: absolute; width: 24%; border: 1px solid rgba(4,37,143,.1); border-radius: .75rem;
  background: rgba(255,255,255,.9); padding: .5rem; text-align: center;
  font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--navy);
  box-shadow: 0 4px 8px -2px rgba(0,0,0,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}
@media (min-width: 768px) { .eco__core { font-size: 1.5rem; } .eco__node { font-size: .875rem; } }

/* Lead form ---------------------------------------------------------------- */
.lead-form { display: grid; gap: 1.25rem; border-radius: 1rem; background: #fff; padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.lead-form label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.lead-form .field { display: block; margin-top: .375rem; width: 100%; border: 1px solid rgba(4,37,143,.2); border-radius: .5rem; background: #fff; padding: .75rem 1rem; font-weight: 400; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.lead-form .field:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 2px rgba(84,171,26,.6); }
.lead-form .field[aria-invalid='true'] { border-color: var(--leaf); }
.field-error { margin-top: .25rem; font-size: .875rem; font-weight: 400; color: var(--leaf); }
.form-error { font-size: .875rem; color: var(--leaf); }
.form-wide { grid-column: 1 / -1; }
.lead-form .btn { justify-self: start; padding: .875rem 1.75rem; font-size: 1rem; }
.lead-form .btn:disabled { opacity: .6; cursor: default; }
.spinner { width: 1rem; height: 1rem; animation: spin 1s linear infinite; }
.form-done { border-radius: 1rem; background: #fff; padding: 2.5rem; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.form-done .icon { width: 2.75rem; height: 2.75rem; margin-inline: auto; color: var(--leaf); }
.form-done h3 { margin-top: 1rem; font-size: 1.875rem; color: var(--navy); }
.form-done p { margin-top: .75rem; color: var(--muted); }
.form-disclaimer { margin-top: 1.5rem; font-size: .75rem; line-height: 1.6; color: rgba(255,255,255,.6); }
@media (min-width: 768px) { .lead-form { grid-template-columns: repeat(2, 1fr); padding: 2.25rem; } }

/* CTA band */
.cta-band h2 { font-size: 1.875rem; }
.cta-band p { margin: 1.25rem auto 0; max-width: 36rem; color: rgba(255,255,255,.8); }
.cta-band .btn-row { margin-top: 2rem; justify-content: center; }
@media (min-width: 768px) { .cta-band h2 { font-size: 3rem; } }

/* Not found / legal */
.legal h1, .not-found h1 { font-size: 3rem; color: var(--navy); }
.legal p { margin-top: 1.5rem; color: var(--muted); }
.not-found { padding-block: 8rem; text-align: center; }
.not-found p { margin-top: 1rem; color: var(--muted); }
.not-found .btn-row { margin-top: 2rem; justify-content: center; }

/* 6. Motion ---------------------------------------------------------------- */
/* Reveal is only hidden when JS is running, so content never depends on scripts */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.js .eco__node { opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.js .eco.in .eco__node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.js .eco-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s ease .3s; }
.js .eco.in .eco-line { stroke-dashoffset: 0; }

.drift { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(30px, -20px, 0) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .eco__node { opacity: 1; transform: none; transition: none; }
  .js .eco__node { transform: translate(-50%, -50%); }
  .js .eco-line { stroke-dashoffset: 0; transition: none; }
  .drift, .spinner { animation: none; }
}
