/* =========================================================
   Bulaal Finance website — site stylesheet
   Rules: docs/website/DESIGN.md · Brand values: docs/website/brand-kit-README.md
   ========================================================= */

/* ---------- fonts (Inter / Inter Display, SIL OFL, Latin subset) ---------- */
@font-face { font-family: 'Inter Display'; font-weight: 600; font-display: swap; src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url('../fonts/InterDisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  /* colour (brand kit) */
  --forest: #1B4C36;
  --forest-dark: #12382A;
  --forest-mid: #2E6B4F;
  --sage: #ADC78A;
  --sage-tint: #EEF4E6;
  --paper: #F7F8F3;
  --white: #FFFFFF;
  --ink: #14231C;
  --muted: #4E5D55;
  --line: #D9E2D4;
  --line-strong: #C9D6C1;
  --on-dark: #FFFFFF;
  --on-dark-muted: #CFDCC7;
  --on-dark-soft: #E3ECDD;
  --error: #B42318;
  --error-tint: #FEF3F2;

  /* type */
  --font-head: 'Inter Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fs-h1: clamp(2.4rem, 5.2vw, 4rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.1rem, 1.5vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-eyebrow: .8125rem;

  /* space, radius, elevation */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-btn: 10px;
  --shadow: 0 10px 30px rgba(20, 35, 28, .08);
  --shadow-lift: 0 24px 48px -16px rgba(20, 35, 28, .18);
  --shadow-float: 0 40px 80px -20px rgba(0, 0, 0, .45);

  /* motion (GSAP mirrors these in static/core/js/motion.js) */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
  --dur-hero: 900ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --rise: 28px;
  --stagger: 80ms;
  /* hero build (CSS keyframes, compositor-friendly); --d0 waits for the first-visit loader */
  --d0: 0ms;
  --dur-build: 1100ms;
  --dur-draw: 1200ms;
  --hero-step: 90ms;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-draw: cubic-bezier(.65, 0, .35, 1);
  --dur-drift: 3400ms;
  --dur-bg: 1400ms;
  /* hero choreography: start offsets */
  --t-bg: 100ms; --bg-step: 120ms;
  --t-chart: 150ms;
  --t-bars: 450ms;
  --t-draw: 850ms;
  --t-pop: 1000ms; --pop-step: 120ms;
  --t-card: 1450ms;
  --t-chips: 1550ms;
  --t-fill: 1750ms;
  --t-tick: 1950ms;
  --t-drift: 2600ms; --drift-step: 300ms;
  --t-done: 100ms;
  --t-done-tick: 450ms;
}
.bf-first {
  --d0: 750ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--forest-mid) var(--paper); }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; color: inherit; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--on-dark); padding: .75rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* scrollbar (desktop browsers; phones keep native overlay bars) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--forest-mid); border-radius: 999px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }
::selection { background: var(--sage); color: var(--forest-dark); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); --bg: var(--paper); }
.section--tint { background: var(--sage-tint); }
.section--flush-top { padding-top: 0; }
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-mid); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--sage); border-radius: 2px; flex: none; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--muted); max-width: 65ch; }
.mark { background: linear-gradient(transparent 62%, var(--hl, var(--sage-tint)) 62%, var(--hl, var(--sage-tint)) 92%, transparent 92%); padding-inline: .04em; }
.on-dark .mark, .mark--dark { --hl: rgba(173, 199, 138, .32); }

/* split section head: title left, intro right */
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-lg) var(--space-3xl); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head__title { display: flex; flex-direction: column; gap: var(--space-sm); }
.section-head__intro { color: var(--muted); max-width: 46ch; padding-bottom: .35rem; }
.section-head--stack { grid-template-columns: 1fr; max-width: 46rem; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 46rem; margin-inline: auto; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.5rem; font: 600 1rem/1.2 var(--font-body); border-radius: var(--radius-btn); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast), border-color var(--dur-fast), scale var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active { scale: .97; }
.btn .ic { width: 20px; height: 20px; transition: translate var(--dur-base) var(--ease-out); }
.btn:hover .ic { translate: 3px 0; }
.btn--primary { background: var(--forest); color: var(--on-dark); }
.btn--primary:hover { background: var(--forest-dark); color: var(--on-dark); }
.btn--sage { background: var(--sage); color: var(--forest-dark); }
.btn--sage:hover { background: var(--on-dark-soft); color: var(--forest-dark); }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--on-dark); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 50px; padding: .6rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: translate var(--dur-base) var(--ease-out); }
.link-arrow:hover .ic { translate: 4px 0; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: var(--on-dark-soft); }
.site-header--light { position: relative; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 80px; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; font-weight: 500; font-size: .97rem; }
.nav__links a { position: relative; color: inherit; text-decoration: none; padding-block: .4rem; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; scale: 0 1; transform-origin: 0 50%; transition: scale var(--dur-base) var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: inherit; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { scale: 1 1; }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__toggle { display: none; width: 50px; height: 50px; border-radius: 12px; border: 1.5px solid currentColor; background: transparent; color: inherit; place-items: center; cursor: pointer; }
.nav__toggle .ic { width: 22px; height: 22px; }
.menu { position: fixed; inset: 0; z-index: 100; background: var(--forest-dark); color: var(--on-dark); padding: 0 var(--gutter) 2rem; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity var(--dur-base) var(--ease-standard), visibility 0s linear var(--dur-base); }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity var(--dur-base) var(--ease-standard); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.menu__top img { height: 42px; width: auto; }
.menu__links { list-style: none; display: flex; flex-direction: column; margin-top: 1.5rem; }
.menu__links a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: var(--on-dark); font: 600 1.6rem/1.2 var(--font-head); text-decoration: none; }
.menu .btn { margin-top: auto; }
.menu .btn + .btn { margin-top: .75rem; }
@media (max-width: 920px) { .nav__links, .nav__cta .btn { display: none; } .nav__toggle { display: grid; } }

/* ---------- hero (Forest band) ---------- */
.on-dark { background: var(--forest-dark); color: var(--on-dark-soft); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark .eyebrow { color: var(--sage); }
.on-dark .lead { color: var(--on-dark-muted); }
.hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(80px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(4rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-lg); align-items: flex-start; }
.hero h1 .w, .page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span, .page-hero h1 .w > span { display: inline-block; }
.hero .actions { margin-top: var(--space-xs); }
.assure { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-small); color: var(--on-dark-muted); }
.assure .ic { width: 18px; height: 18px; color: var(--sage); }
.bg-bars { position: absolute; bottom: -2px; z-index: -1; pointer-events: none; }
.bg-bars rect { fill: var(--sage); opacity: .07; }
.hero .bg-bars { left: -6%; width: min(52vw, 640px); }
.page-hero { padding: calc(80px + clamp(2.5rem, 6vw, 4rem)) 0 clamp(3.5rem, 7vw, 5.5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .bg-bars { right: -4%; width: min(46vw, 520px); }
.page-hero__inner { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 46rem; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

/* hero chart: kit growth illustration as a floating "product shot" */
.stage { position: relative; perspective: 1200px; }
.stage__glow { position: absolute; inset: 12% 8% -6%; background: radial-gradient(closest-side, rgba(173, 199, 138, .22), transparent); z-index: -1; }
.chart { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-float), 0 0 0 1px rgba(173, 199, 138, .15); }
.c-draw, .c-tick { stroke-dasharray: 1; }
.chip { will-change: transform; position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .5rem; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); white-space: nowrap; }
.chip .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sage-tint); color: var(--forest); }
.chip--1 { top: -4%; left: 6%; } .chip--2 { top: 8%; right: -3%; } .chip--3 { bottom: 30%; left: -5%; } .chip--4 { bottom: -5%; right: 12%; }
@media (max-width: 900px) { .chip--3 { left: 0; } .chip--2 { right: 0; } }
@media (max-width: 560px) { .chip { font-size: .74rem; padding: .35rem .7rem .35rem .4rem; } .chip .ic { width: 22px; height: 22px; padding: 4px; } .chip--3 { left: -2%; } .chip--2 { right: -1%; } }

/* ---------- trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md) var(--space-lg); padding-block: var(--space-lg); }
.trust__item { display: flex; gap: .8rem; align-items: center; }
.trust__item b { display: block; font-size: .98rem; line-height: 1.3; }
.trust__item span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-tint); color: var(--forest); display: grid; place-items: center; flex: none; }
@media (max-width: 860px) { .trust__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .trust__list { grid-template-columns: 1fr; } }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 270px; color: inherit; text-decoration: none; transition: translate var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-base); }
.card:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); border-color: var(--line-strong); color: inherit; }
.card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.card__kicker { color: var(--forest-mid); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card__body p { color: var(--muted); font-size: .96rem; }
.card__body .link-arrow { margin-top: auto; padding-top: .4rem; }
.card:hover .link-arrow .ic { translate: 4px 0; }
.card__art { position: relative; background: var(--forest); display: grid; place-items: center; overflow: hidden; }
.art-bars { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 100%; transition: scale var(--dur-slow) var(--ease-out); }
.art-bars rect { fill: var(--sage); opacity: .18; }
.card:hover .art-bars { scale: 1 1.08; }
.disc { position: relative; width: 104px; height: 104px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; transition: scale var(--dur-slow) var(--ease-out), rotate var(--dur-slow) var(--ease-out); }
.disc .ic { width: 46px; height: 46px; }
.card:hover .disc { scale: 1.06; rotate: -6deg; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { grid-template-columns: 1fr; } .card__art { min-height: 160px; } }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.steps__track { position: absolute; left: 28px; right: calc(100% / var(--n, 4) - 28px); top: 27px; height: 2px; background: var(--line); }
.steps__track i { position: absolute; inset: 0; background: var(--forest); transform-origin: 0 50%; }
.step { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font: 700 1.05rem var(--font-head); color: var(--forest-mid); margin-bottom: .8rem; position: relative; transition: background-color var(--dur-slow), border-color var(--dur-slow), color var(--dur-slow); }
.step.is-on .step__num, .no-js .step__num { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.step p { color: var(--muted); font-size: .96rem; }
.step__meta { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-mid); }
.section--paper .step__num { background: var(--paper); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps__track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps__track i { transform-origin: 50% 0; }
  .step { padding-left: 76px; }
  .step__num { position: absolute; left: 0; top: -6px; }
  .step:last-child::after { content: ''; position: absolute; left: 25px; top: 50px; bottom: -4px; width: 6px; background: var(--bg, var(--white)); }
}

/* ---------- sectors ---------- */
.sectors { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.sector { display: flex; flex-direction: column; gap: .5rem; }
.sector .icon-chip { width: 56px; height: 56px; border-radius: 16px; margin-bottom: .5rem; transition: scale var(--dur-slow) var(--ease-out), background-color var(--dur-base); }
.sector:hover .icon-chip { scale: 1.06; background: var(--sage); }
.sector h3 { font-size: 1.15rem; }
.sector p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-split__art { position: sticky; top: 2rem; border-radius: 28px; overflow: hidden; }
.faq-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; counter-reset: q; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.faq[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.15rem 1.35rem; font: 600 1.06rem/1.4 var(--font-body); border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { display: flex; gap: .6rem; }
.faq--numbered .faq__q::before { counter-increment: q; content: counter(q) '.'; color: var(--forest-mid); }
.faq summary .ic { width: 22px; height: 22px; color: var(--forest-mid); transition: rotate var(--dur-base) var(--ease-out); }
.faq[open] summary .ic { rotate: 180deg; }
.faq[open] .faq__a > div { animation: answer-in var(--dur-base) var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }
.faq__a p { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq__a p + p { padding-top: 0; }
.faq-group + .faq-group { margin-top: var(--space-2xl); }
.faq-group h2 { font-size: 1.5rem; margin-bottom: var(--space-md); }
@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; } .faq-split__art { position: static; max-width: 520px; } }

/* ---------- CTA panel ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--forest); color: var(--on-dark-soft); border-radius: var(--radius-lg); padding: clamp(2.25rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-3xl); align-items: center; }
.cta h2 { color: var(--on-dark); }
.cta p { color: var(--on-dark-muted); max-width: 40ch; margin-top: var(--space-md); }
.cta__side { display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; }
.cta__note { font-size: var(--fs-small); color: var(--on-dark-muted); }
.cta__facts { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; padding-top: var(--space-lg); border-top: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .95rem; color: var(--on-dark); }
.cta__facts li { display: inline-flex; gap: .5rem; align-items: center; }
.cta__facts .ic { width: 20px; height: 20px; color: var(--sage); }
.cta .bg-bars { right: -4%; width: min(46vw, 460px); }
.cta .bg-bars rect { opacity: .1; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); background: var(--forest-dark); color: var(--on-dark-muted); padding: clamp(3.5rem, 7vw, 5rem) 0 1.75rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-xl); }
.footer__brand img { height: 46px; width: auto; margin-bottom: var(--space-md); }
.footer__brand p { max-width: 30ch; }
.site-footer h2 { font: 600 .82rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-md); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer__contact li { overflow-wrap: anywhere; display: flex; gap: .55rem; align-items: flex-start; }
.footer__contact .ic { width: 18px; height: 18px; color: var(--sage); margin-top: 3px; }
.footer__bottom { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between; font-size: .86rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- loader (inserted by JS, once per visit) ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--forest-dark); display: grid; place-items: center; }
.loader svg { width: 72px; height: auto; }
.loader rect { fill: var(--sage); }
.loader rect:nth-child(odd) { fill: var(--on-dark); }

/* hero build: pure CSS so it costs the main thread almost nothing; text is never hidden (fast LCP) */
@media (prefers-reduced-motion: no-preference) {
  .stage .c-bar, .hero .bg-bars rect, .page-hero .bg-bars rect { transform-box: fill-box; transform-origin: 50% 100%; }
  .stage .c-pop, .stage .c-card { transform-box: fill-box; transform-origin: 50% 50%; }
  .stage .c-fill { transform-box: fill-box; transform-origin: 0 50%; }
  .stage .chart { animation: rise-in var(--dur-hero) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-chart)); }
  .stage .c-bar { animation: grow-y var(--dur-build) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-bars) + var(--i) * var(--hero-step)); }
  .stage .c-draw { animation: draw var(--dur-draw) var(--ease-draw) both; animation-delay: calc(var(--d0) + var(--t-draw)); }
  .stage .c-pop { animation: pop var(--dur-slow) var(--ease-pop) both; animation-delay: calc(var(--d0) + var(--t-pop) + var(--i) * var(--pop-step)); }
  .stage .c-card { animation: rise-in var(--dur-hero) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-card)); }
  .stage .c-fill { animation: grow-x var(--dur-draw) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-fill)); }
  .stage .c-tick { animation: draw var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-tick)); }
  .stage .chip { animation: chip-in var(--dur-hero) var(--ease-out) both, drift var(--dur-drift) ease-in-out infinite alternate; animation-delay: calc(var(--d0) + var(--t-chips) + var(--i) * var(--pop-step)), calc(var(--d0) + var(--t-drift) + var(--i) * var(--drift-step)); }
  .stage .chip:nth-child(odd) { animation-direction: normal, alternate-reverse; }
  .hero .bg-bars rect, .page-hero .bg-bars rect { animation: grow-y var(--dur-bg) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-bg) + var(--k, 0) * var(--bg-step)); }
  .bg-bars rect:nth-child(n+3) { --k: 1; } .bg-bars rect:nth-child(n+5) { --k: 2; } .bg-bars rect:nth-child(n+7) { --k: 3; }
  .done__icon { animation: pop var(--dur-hero) var(--ease-pop) both; animation-delay: calc(var(--d0) + var(--t-done)); }
  .done__icon .c-tick { animation: draw var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--d0) + var(--t-done-tick)); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(18px) scale(.85); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* ---------- reduced motion (brand kit kill switch) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .step__num { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
}

/* ---------- inner pages ---------- */
.chooser { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: var(--space-xl); }
.chooser a { display: flex; flex-direction: column; gap: .75rem; height: 100%; padding: 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); text-decoration: none; transition: background-color var(--dur-base), border-color var(--dur-base), translate var(--dur-slow) var(--ease-out); }
.chooser a:hover { background: rgba(255, 255, 255, .1); border-color: var(--sage); translate: 0 -3px; color: var(--on-dark); }
.chooser .ic { color: var(--sage); width: 28px; height: 28px; }
.chooser span { font-size: .95rem; color: var(--on-dark-muted); }
.chooser b { font-family: var(--font-head); font-size: 1.1rem; }
@media (max-width: 900px) { .chooser { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .chooser { grid-template-columns: 1fr; } }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; scroll-margin-top: 2rem; }
.product + .product { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.product__art { position: sticky; top: 2rem; aspect-ratio: 400 / 260; border-radius: var(--radius-lg); background: var(--forest); overflow: hidden; display: grid; place-items: center; }
.product__art .disc { width: 128px; height: 128px; } .product__art .disc .ic { width: 56px; height: 56px; }
.product__body { display: flex; flex-direction: column; gap: var(--space-lg); }
.product__body > p { color: var(--muted); font-size: 1.05rem; }
.product h3.sub { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-mid); font-family: var(--font-body); }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; }
.ticks .ic { width: 20px; height: 20px; color: var(--forest-mid); margin-top: 3px; }
.ticks--one { grid-template-columns: 1fr; }
.mini-steps { list-style: none; display: grid; gap: 1rem; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 40px 1fr; gap: .25rem 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.mini-steps li::before { counter-increment: ms; content: counter(ms); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--on-dark); display: grid; place-items: center; font: 700 1rem var(--font-head); }
.mini-steps b { font-weight: 600; }
.mini-steps span { color: var(--muted); font-size: .95rem; }
@media (min-width: 901px) { .product:nth-of-type(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .product:nth-of-type(even) .product__art { order: 2; } }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product__art { position: relative; top: 0; } .ticks { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .96rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-head); font-size: 1.05rem; color: var(--forest-dark); background: var(--sage-tint); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 16%; }
.compare td { color: var(--muted); }
.compare tr:last-child > * { border-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-md); }
.panel h3 { display: flex; gap: .7rem; align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.values { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.values li { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.values .icon-chip { margin-bottom: .5rem; }
.values p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.statement > div { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: var(--forest); color: var(--on-dark-soft); display: flex; flex-direction: column; gap: var(--space-md); }
.statement > div:last-child { background: var(--sage-tint); color: var(--ink); }
.statement .eyebrow { color: var(--sage); } .statement > div:last-child .eyebrow { color: var(--forest-mid); }
.statement p { font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.3 var(--font-head); color: inherit; }
.statement > div:first-child p { color: var(--on-dark); }
@media (max-width: 800px) { .statement { grid-template-columns: 1fr; } }
.prose { display: flex; flex-direction: column; gap: var(--space-md); max-width: 65ch; color: var(--muted); font-size: 1.05rem; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.jump a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color var(--dur-base), border-color var(--dur-base); }
.jump a:hover { background: rgba(255, 255, 255, .08); border-color: var(--sage); color: var(--on-dark); }

/* ---------- application form ---------- */
.apply { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.apply__side { position: relative; overflow: hidden; isolation: isolate; background: var(--forest); color: var(--on-dark-soft); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: var(--space-lg); }
.apply__side h2 { font-size: 1.5rem; color: var(--on-dark); }
.apply__side .bg-bars { right: -10%; width: 80%; }
.apply__steps { list-style: none; display: flex; flex-direction: column; gap: .25rem; counter-reset: as; }
.apply__steps li { display: flex; gap: .85rem; align-items: center; padding: .6rem 0; color: var(--on-dark-muted); font-weight: 500; }
.apply__steps li::before { counter-increment: as; content: counter(as); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font: 700 .9rem var(--font-head); flex: none; transition: background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.apply__steps li.is-current { color: var(--on-dark); }
.apply__steps li.is-current::before { background: var(--sage); border-color: var(--sage); color: var(--forest-dark); }
.apply__steps li.is-done::before { background: rgba(173, 199, 138, .2); border-color: var(--sage); color: var(--sage); }
.apply__contact { margin-top: auto; font-size: var(--fs-small); color: var(--on-dark-muted); display: flex; flex-direction: column; gap: .4rem; }
.apply__contact a { color: var(--on-dark); }
.apply__main { padding: clamp(1.5rem, 4vw, 2.75rem); }
.apply__progress { height: 4px; border-radius: 4px; background: var(--sage-tint); margin-bottom: var(--space-lg); overflow: hidden; }
.apply__progress i { display: block; height: 100%; background: var(--forest); transform-origin: 0 50%; transform: scaleX(var(--p, .25)); transition: transform var(--dur-base) var(--ease-out); }
.js .apply__progress { display: block; } .no-js .apply__progress { display: none; }
.fs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.fs + .fs { margin-top: var(--space-2xl); }
.fs legend { padding: 0; margin-bottom: var(--space-md); }
.fs__step { display: block; font-size: var(--fs-small); color: var(--muted); font-weight: 500; margin-bottom: .2rem; }
.fs legend h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.js-steps .fs { display: none; } .js-steps .fs.is-active { display: flex; margin-top: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-weight: 600; font-size: 1rem; }
.field__help { font-size: .9rem; color: var(--muted); margin-top: -.15rem; }
.field__error { font-size: .92rem; color: var(--error); font-weight: 600; display: flex; gap: .4rem; align-items: center; }
.field--error .input { border-color: var(--error); background: var(--error-tint); }
.input { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); min-height: 52px; padding: .75rem .95rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input:hover { border-color: var(--forest-mid); }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(173, 199, 138, .45); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--forest-mid) 50%), linear-gradient(135deg, var(--forest-mid) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .65rem; border: 0; padding: 0; margin: 0; }
.tile { position: relative; display: flex; gap: .7rem; align-items: center; min-height: 56px; padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 600; transition: border-color var(--dur-fast), background-color var(--dur-fast), scale var(--dur-fast) var(--ease-out); }
.tile:hover { border-color: var(--forest-mid); }
.tile:active { scale: .985; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: border-color var(--dur-fast); }
.tile__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--forest); scale: 0; transition: scale var(--dur-base) var(--ease-out); }
.tile:has(input:checked) { border-color: var(--forest); background: var(--sage-tint); }
.tile:has(input:checked) .tile__dot { border-color: var(--forest); }
.tile:has(input:checked) .tile__dot::after { scale: 1; }
.tile:has(input:focus-visible) { outline: 3px solid var(--sage); outline-offset: 2px; }
.tile--rich { align-items: flex-start; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; }
.tile--rich .ic { color: var(--forest-mid); }
.tile--rich small { font-weight: 500; color: var(--muted); font-size: .86rem; }
.tile--rich .tile__dot { position: absolute; top: 1rem; right: 1rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--forest); flex: none; }
.form-nav { flex-wrap: wrap; display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.form-nav .btn--link { background: none; border: 0; color: var(--forest); font-weight: 600; cursor: pointer; padding: .75rem .25rem; min-height: 50px; display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; }
.form-nav .btn--link .ic { rotate: 180deg; width: 18px; height: 18px; }
.no-js .form-nav [data-step-nav] { display: none; }
.err-summary { border: 2px solid var(--error); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: var(--space-lg); background: var(--error-tint); }
.err-summary h2 { font-size: 1.1rem; color: var(--error); margin-bottom: .5rem; }
.err-summary ul { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.err-summary a { color: var(--error); font-weight: 600; }
.review { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.review > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.review dt { color: var(--muted); font-size: .95rem; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review button { background: none; border: 0; padding: .4rem .2rem; color: var(--forest); font: 600 .92rem var(--font-body); text-decoration: underline; cursor: pointer; }
.no-js .review-wrap { display: none; }
.aside-note { font-size: var(--fs-small); color: var(--muted); display: flex; gap: .5rem; align-items: center; margin-top: var(--space-md); }
.aside-note .ic { width: 18px; height: 18px; color: var(--forest-mid); }
@media (max-width: 900px) { .apply { grid-template-columns: minmax(0, 1fr); } .apply__steps { flex-direction: row; flex-wrap: wrap; gap: .25rem 1rem; } .apply__steps li span { display: none; } .apply__contact { display: none; } }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } .review > div { grid-template-columns: 1fr auto; row-gap: .2rem; } .review dt { grid-column: 1 / -1; } }

/* ---------- success / error pages ---------- */
.done { display: flex; flex-direction: column; gap: var(--space-lg); align-items: flex-start; max-width: 44rem; }
.done__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--sage); color: var(--forest-dark); display: grid; place-items: center; }
.done__icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.err-code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--sage); letter-spacing: -.04em; }
