/* =========================================================================
   OK Finance Group — Design system: Cohere (VoltAgent/awesome-design-md)
   White editorial canvas, deep green / navy product bands, coral taxonomy,
   near-black pill CTAs, radius 8/22px, display/UI type split.
   ========================================================================= */

:root {
  /* — Color tokens (Cohere) — */
  --primary: #17171c;
  --cohere-black: #000000;
  --ink: #212121;
  --deep-green: #003c33;
  --dark-navy: #071829;
  --canvas: #ffffff;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --pale-blue: #f1f5ff;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;
  --card-border: #f2f2f2;
  --muted: #93939f;
  --slate: #75758a;
  --body-muted: #616161;
  --action-blue: #1863dc;
  --focus-blue: #4c6ee6;
  --coral: #ff7759;
  --coral-soft: #ffad9b;
  /* Coral used as TEXT: darker on light surfaces for AA contrast */
  --coral-ink: #b0401f;
  --form-focus: #9b60aa;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --error: #b30000;

  /* — Derived roles — */
  --surface: #ffffff;
  --surface-alt: var(--soft-stone);
  --text: var(--ink);
  --text-muted: var(--body-muted);
  --rule: var(--hairline);
  --footer-bg: var(--primary);
  --brand-mark-fg: #ffffff;

  /* CTA on light surfaces = near-black pill */
  --cta-bg: var(--primary);
  --cta-fg: var(--on-primary);
  /* CTA on dark/green surfaces = white pill */
  --cta-inv-bg: #ffffff;
  --cta-inv-fg: var(--primary);

  /* — Radius (tokens) — */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 32px;
  --r-full: 9999px;

  /* — Spacing (8px base) — */
  --s-xxs: 2px;
  --s-xs: 6px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-section: 80px;

  /* — Typography — */
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Inter', Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, monospace;

  --maxw: 1200px;
  --maxw-narrow: 820px;

  --shadow-none: none;
}

[data-theme='dark'] {
  --cohere-black: #000000;
  --ink: #f2f2f4;
  --canvas: #0e0e12;
  --surface: #0e0e12;
  --surface-alt: #17171d;
  --soft-stone: #17171d;
  --pale-green: #0f211c;
  --pale-blue: #101425;
  --hairline: #2a2a33;
  --border-light: #26262e;
  --card-border: #22222a;
  --muted: #8f8fa0;
  --slate: #a3a3b2;
  --body-muted: #adadbb;
  --text: #f2f2f4;
  --text-muted: #b6b6c2;
  --rule: #2a2a33;
  --action-blue: #6fa2ff;
  --focus-blue: #8aa4ff;
  --coral: #ff8f75;
  --coral-ink: #ffad9b;
  --cta-bg: #ffffff;
  --cta-fg: #17171c;
  --brand-mark-fg: #17171c;
  --footer-bg: #0a0a0e;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.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;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-xs);
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ——— Layout primitives ——— */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(48px, 8vw, var(--s-section)); }
.section--stone { background: var(--surface-alt); }
.section--pale { background: var(--pale-green); }
.section--pale-blue { background: var(--pale-blue); }
.section--dark { background: var(--deep-green); color: var(--on-dark); }
.section--navy { background: var(--dark-navy); color: var(--on-dark); }

.section__head { max-width: 720px; }
.section__head--dark { color: var(--on-dark); }
.section__label { margin: 0 0 16px; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.section--dark .section__lead, .section--navy .section__lead { color: rgba(255,255,255,.78); }

.body-lg { font-size: 18px; line-height: 1.5; color: var(--text); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: var(--body-muted);
  margin: 0;
}
/* Section eyebrows use the coral accent (AA-safe tone on light surfaces) */
.mono-label.section__label { color: var(--coral-ink); }
/* On always-dark surfaces, labels switch to the light coral tone.
   Must come after the rules above (equal specificity → later wins). */
.section--dark .mono-label,
.section--navy .mono-label,
.console .mono-label,
.sim-card--leasing .mono-label,
.site-footer .mono-label {
  color: var(--coral-soft);
}

.link { color: var(--action-blue); text-decoration: underline; text-underline-offset: 3px; }
.link--onDark { color: #cfe0ff; }
.section--dark .link--onDark, .section--navy .link--onDark { color: #cfe0ff; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 1.2;
  padding: 13px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { background: color-mix(in srgb, var(--cta-bg) 85%, var(--cta-fg)); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--text {
  padding: 8px 0; border-radius: var(--r-xs); background: transparent; color: var(--text);
  border-bottom: 1px solid currentColor;
}
.btn--text:hover { color: var(--action-blue); }
.section--dark .btn--text, .section--navy .btn--text { color: var(--on-dark); }
.btn--ghost {
  background: transparent; color: var(--text); border: 1px solid var(--rule); border-radius: var(--r-full);
  padding: 11px 20px;
}
.btn--ghost:hover { border-color: var(--text); }
.section--dark .btn--ghost, .section--navy .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.35); }
.btn--outline-pill {
  background: transparent; color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.55); border-radius: var(--r-xl); padding: 10px 20px;
}
.btn--outline-pill:hover { background: rgba(255,255,255,.1); }
/* Inverted primary on dark green band */
.section--dark .btn--primary, .section--navy .btn--primary { background: var(--cta-inv-bg); color: var(--cta-inv-fg); }
.section--dark .btn--primary:hover, .section--navy .btn--primary:hover { background: #e9e9ee; }

/* ——— Chips ——— */
.chip {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500; letter-spacing: .2px;
  padding: 6px 14px; border-radius: var(--r-sm); white-space: nowrap;
}
.chip--coral { background: var(--coral); color: #2a1105; }
.chip--outline { background: transparent; color: var(--coral-ink); border: 1px solid var(--coral-soft); }
.chip--filter {
  background: transparent; color: var(--coral-ink); border: 1px solid var(--coral-soft);
  font-size: 15px; padding: 9px 18px; border-radius: var(--r-sm);
}
.chip--filter:hover { border-color: var(--coral); }
.chip--filter.is-active { background: var(--coral); color: #2a1105; border-color: var(--coral); }

/* ——— Announcement bar ——— */
.announce { background: var(--cohere-black); color: var(--on-dark); }
.announce__text {
  margin: 0; max-width: var(--maxw); margin-inline: auto;
  padding: 8px 24px; font-size: 12px; line-height: 1.4; letter-spacing: .2px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
}
.announce__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header__inner { display: flex; align-items: center; gap: 8px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark { color: var(--primary); }
[data-theme='dark'] .brand__mark { color: #ffffff; }
/* Larger mark in the header only (the footer keeps the 30px attribute size).
   flex-shrink:0 keeps it at the intended size instead of being squeezed by the flex row. */
.site-header .brand__mark { width: 48px; height: 48px; flex-shrink: 0; }
.brand__text { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }

/* Hover / keyboard-focus highlight.
   The background lives on an absolutely positioned pseudo-element, so it can extend
   beyond the item (comfortable pill padding) WITHOUT changing the nav layout.
   Colour uses the theme token --surface-alt: slightly darker than the light menu,
   slightly lighter than the dark one (automatic light/dark behaviour). */
.nav__list > li::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-radius: var(--r-lg);
  background: var(--surface-alt);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}
.nav__list > li:hover::before,
.nav__list > li:focus-within::before { opacity: 1; }

.nav__link {
  position: relative; z-index: 1; /* keep the label above the highlight */
  font-size: 15px; color: var(--text-muted); padding: 6px 2px;
  transition: color 160ms ease;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header__cta { padding: 13px 16px; }

.lang { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px; }
.lang__opt { color: var(--text-muted); padding: 4px 0; }
.lang__opt:hover { color: var(--text); }
.lang__opt.is-active { color: var(--text); border-bottom: 2px solid var(--coral); }
.lang__sep { color: var(--rule); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: transparent; border: 1px solid var(--rule);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn .icon-moon { display: none; }
[data-theme='dark'] .icon-btn .icon-sun { display: none; }
[data-theme='dark'] .icon-btn .icon-moon { display: inline-flex; }

.menu-btn { display: none; }
.menu-btn__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn__bars i { display: block; width: 16px; height: 1.5px; background: currentColor; }

/* ——— Hero ——— */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero__inner { text-align: center; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 7.6vw, 96px);
  font-weight: 400; line-height: 1; letter-spacing: -0.02em;
  margin: 0 auto; max-width: 16ch;
}
.hero__lead {
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5;
  color: var(--text-muted); max-width: 68ch; margin: 24px auto 0;
}
.hero__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.hero__media {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px;
  margin-top: clamp(40px, 6vw, 72px); text-align: left;
}

/* agent-console-card */
.console { background: var(--primary); color: var(--on-dark); border-radius: var(--r-lg); padding: 28px; }
.console__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.console__kicker { color: var(--coral-soft); }
.console__title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 6px 0 0; }
.console__status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7); }
.console__status .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.console__list { list-style: none; margin: 8px 0 0; padding: 0; }
.console__row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.console__row-label { font-size: 14px; color: rgba(255,255,255,.82); }
.console__row-value { font-family: var(--font-mono); font-size: 14px; }
.console__chip { font-size: 11px; letter-spacing: .3px; text-transform: uppercase; color: #bcd; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-full); padding: 3px 10px; }
.console__prompt, .console__response { margin-top: 18px; padding: 16px; border-radius: var(--r-sm); }
.console__prompt { background: rgba(255,255,255,.06); }
.console__response { background: rgba(255,119,89,.14); }
.console__prompt-text, .console__response-text { margin: 8px 0 0; font-size: 14.5px; color: rgba(255,255,255,.92); }

/* hero photo card */
.hero-card { background: var(--soft-stone); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.hero-card__kicker { color: var(--coral-ink); }
.hero-card__title { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 12px 0 12px; }
.hero-card__text { font-size: 16px; color: var(--text-muted); margin: 0; }
.hero-card__art { position: relative; margin-top: auto; height: 120px; }
.art-piece { position: absolute; border-radius: var(--r-lg); }
.art-piece--1 { inset: 24px 40% 0 0; background: var(--deep-green); }
.art-piece--2 { inset: 8px 0 32px 52%; background: var(--coral); opacity: .9; }
.art-piece--3 { inset: 48px 26% 0 34%; background: var(--pale-blue); border: 1px solid var(--border-light); }

/* ——— Trust strip ——— */
.trust { padding: 40px 0 8px; border-top: 1px solid var(--rule); }
.trust__inner { text-align: center; }
.trust__label { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; list-style: none; margin: 0 0 36px; padding: 0; }
.trust__logo { font-family: var(--font-display); font-size: 18px; color: var(--body-muted); letter-spacing: -0.01em; }
.trust__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px; list-style: none; margin: 0; padding: 0; }
.trust__stat { display: flex; flex-direction: column; gap: 4px; }
.trust__stat-value { font-family: var(--font-display); font-size: 32px; }
/* Keep digit widths stable while the counter animates */
.trust__stat-value[data-count] { font-variant-numeric: tabular-nums; }
.trust__stat-label { font-size: 13px; color: var(--text-muted); max-width: 22ch; }

/* ——— About ——— */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.about__body p { margin: 0 0 18px; }
.about__points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.point { display: flex; gap: 14px; }
.point__check { color: var(--deep-green); flex: none; margin-top: 2px; }
[data-theme='dark'] .point__check { color: var(--coral); }
.point__title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.point__text { margin: 0; color: var(--text-muted); }
.about__badge { background: var(--canvas); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 28px; }
.about__badge .mono-label { color: var(--coral-ink); }
.about__badge-text { margin: 12px 0 0; }
.about__badge-art { display: block; margin-top: 20px; color: var(--deep-green); }
[data-theme='dark'] .about__badge-art { color: var(--coral); }

/* ——— Capability cards (services) ——— */
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; margin-top: 48px; }
.capability { border-top: 1px solid var(--rule); padding-top: 22px; }
.capability__icon { display: inline-flex; color: var(--deep-green); margin-bottom: 16px; }
[data-theme='dark'] .capability__icon { color: var(--coral); }
.capability__title { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.2; margin: 0 0 10px; }
.capability__text { font-size: 15px; color: var(--text-muted); margin: 0 0 14px; }
.capability__link { font-size: 14px; color: var(--action-blue); }

/* ——— Steps (dark band) ——— */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--coral-soft); display: block; margin-bottom: 14px; }
.step__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.step__text { font-size: 15px; color: rgba(255,255,255,.78); margin: 0; }

/* ——— Simulator ——— */
.sim { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; margin-top: 48px; align-items: start; }

.form-card {
  /* Reset theme text color: the card is a light surface even inside .section--dark,
     so it must NOT inherit --on-dark (white) from the surrounding band. */
  color: var(--text);
  background: var(--canvas); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row--single { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 500; }
.field__control { position: relative; display: flex; align-items: center; }
.input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--canvas); border: 1px solid var(--border-light);
  border-radius: var(--r-sm); padding: 13px 14px; transition: border-color .12s ease;
}
.field__control .input { padding-right: 52px; }
.input:focus { outline: none; border-color: var(--form-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--form-focus) 22%, transparent); }
.input.is-invalid { border-color: var(--error); }

.input::placeholder { color: var(--text-muted); opacity: 1; }
select.input { color: var(--text); }
select.input option { color: var(--text); background: var(--canvas); }
.field__suffix { position: absolute; right: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--body-muted); pointer-events: none; }
.field__hint { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.field__error { font-size: 12.5px; color: var(--error); margin: 0; }
.req { color: var(--coral-ink); }
.opt { color: var(--text-muted); font-weight: 400; }
.sim__actions { margin-top: 8px; }

.sim__results { display: grid; gap: 20px; }
.sim-card { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--border-light); }
.sim-card--leasing { background: var(--primary); color: var(--on-dark); border-color: transparent; }
.sim-card--financing { background: var(--soft-stone); }
.sim-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 14px; }
.sim-card__monthly { font-family: var(--font-display); font-size: clamp(34px, 5vw, 46px); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.sim-card__monthly-label { font-size: 13px; color: var(--text-muted); margin: 6px 0 18px; }
.sim-card--leasing .sim-card__monthly-label { color: rgba(255,255,255,.7); }
.sim-card__rows { margin: 0; display: grid; gap: 10px; }
.sim-card__rows > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.sim-card--leasing .sim-card__rows > div { border-color: rgba(255,255,255,.16); }
.sim-card__rows dt { font-size: 14px; color: var(--text-muted); }
.sim-card--leasing .sim-card__rows dt { color: rgba(255,255,255,.72); }
.sim-card__rows dd { margin: 0; font-family: var(--font-mono); font-size: 14px; }

.sim__diff { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border: 1px solid var(--rule); border-radius: var(--r-md); }
.sim__diff strong { font-family: var(--font-display); font-size: 22px; }
.sim__diff-note { font-size: 13px; color: var(--text-muted); }
.sim__hint { font-size: 13px; color: var(--text-muted); margin: 0; }
.sim__disclaimer { border-top: 1px solid var(--rule); padding-top: 16px; }
.sim__disclaimer .mono-label { color: var(--coral-ink); margin-bottom: 6px; }
.sim__disclaimer p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ——— Sectors ——— */
.sectors { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.sector { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.sector svg { color: var(--deep-green); flex: none; width: 18px; height: 18px; }
[data-theme='dark'] .sector svg { color: var(--coral); }

/* ——— Why (navy) ——— */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.why__item { border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; }
.why__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.why__text { font-size: 15px; color: rgba(255,255,255,.78); margin: 0; }
.why__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 56px; margin: 48px 0 0; padding: 0; }
.why__stat { display: flex; flex-direction: column; gap: 4px; }
.why__stat-value { font-family: var(--font-display); font-size: 32px; }
.why__stat-label { font-size: 13px; color: rgba(255,255,255,.7); }

/* ——— Product cards (cases) ——— */
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.product-card { background: var(--soft-stone); border-radius: var(--r-sm); padding: 32px; display: flex; flex-direction: column; }
.product-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 16px 0 4px; }
.product-card__meta { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.product-card__quote { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; }
.product-card__metric { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 13px; color: var(--deep-green); }
[data-theme='dark'] .product-card__metric { color: var(--coral); }
.disclaimer { margin: 20px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* ——— Blog ——— */
.blog__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.articles { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.article { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.article__chip { justify-self: start; margin-top: 2px; }
.article__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.25; margin: 0 0 8px; }
.article__title a:hover { color: var(--action-blue); }
.article__excerpt { font-size: 15px; color: var(--text-muted); margin: 0; }
.article__meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); text-align: right; }
.article.is-hidden { display: none; }
.blog__cta { margin: 32px 0 0; }

/* ——— FAQ ——— */
.faq { margin-top: 40px; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq__q::-webkit-details-marker { display: none; }
.faq__mark { position: relative; width: 14px; height: 14px; flex: none; }
.faq__mark::before, .faq__mark::after { content: ''; position: absolute; background: var(--text); }
.faq__mark::before { inset: 6px 0; height: 1.5px; }
.faq__mark::after { inset: 0 6px; width: 1.5px; transition: transform .15s ease; }
.faq__item[open] .faq__mark::after { transform: scaleY(0); }
.faq__a { padding: 0 0 22px; }
.faq__a p { margin: 0; color: var(--text-muted); max-width: 72ch; }

/* ——— Contact ——— */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__form { margin: 0; }
.booking, .office { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }
.booking__title, .office__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.booking__text { color: rgba(255,255,255,.8); margin: 0 0 16px; }
.booking__note { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 12px 0 0; }
.office__lines { margin: 0 0 6px; }
.office__note { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 0 0 16px; }
.office__map { border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.office__map iframe { display: block; filter: grayscale(.15); }
.office__links { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; font-size: 14px; }

.check { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; align-items: flex-start; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--coral); }
.check--privacy { margin: 4px 0 8px; color: var(--text); }
.form__actions { margin-top: 16px; }
.form__status { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; }
.form__status.is-ok { background: #e7f8ec; color: #0a5a2a; }
.form__status.is-error { background: #ffe9e4; color: #8a1c00; }
[data-theme='dark'] .form__status.is-ok { background: rgba(34,197,94,.16); color: #a7f3c0; }
[data-theme='dark'] .form__status.is-error { background: rgba(255,119,89,.18); color: #ffd9cf; }
.form__note { font-size: 12px; color: var(--text-muted); margin: 16px 0 0; }

/* Form card is a light surface even inside the dark green band */
.form-card .link--onDark { color: var(--action-blue); }
.form-card .btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.form-card .btn--primary:hover { background: color-mix(in srgb, var(--cta-bg) 85%, var(--cta-fg)); }

/* ——— AI Act notice ——— */
.notice { background: var(--pale-blue); border-top: 1px solid var(--rule); }
.notice__inner { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding-block: 28px; }
.notice__label { color: var(--coral-ink); }
.notice__text { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ——— Footer ——— */
.site-footer { background: var(--footer-bg); color: var(--on-dark); }
.newsletter { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.newsletter__label { color: var(--coral-soft); }
.newsletter__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -0.01em; margin: 12px 0 8px; }
.newsletter__text { color: rgba(255,255,255,.7); margin: 0; }
.newsletter__form { display: flex; border-bottom: 1px solid rgba(255,255,255,.45); }
.newsletter__input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; padding: 14px 0; }
.newsletter__input::placeholder { color: rgba(255,255,255,.5); }
.newsletter__input:focus { outline: none; }
.newsletter__submit { background: transparent; border: 0; color: #fff; font-weight: 500; padding: 14px 0 14px 16px; }
.newsletter__status { grid-column: 2; font-size: 13px; margin: 10px 0 0; }
.newsletter__status.is-ok { color: #b9f8cd; }
.newsletter__status.is-error { color: #ffd9cf; }
.newsletter__legal { grid-column: 2; font-size: 12px; color: rgba(255,255,255,.5); margin: 8px 0 0; }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; }
.brand--footer { color: #fff; margin-bottom: 20px; }
.footer__addr, .footer__contact { font-size: 14px; color: rgba(255,255,255,.72); margin: 0 0 16px; }
.footer__addr-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer__col-title { font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__link { font-size: 14px; color: rgba(255,255,255,.68); }
.footer__link:hover { color: #fff; }
.footer__sep { color: rgba(255,255,255,.4); margin: 0 4px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 40px; border-top: 1px solid rgba(255,255,255,.14); }
.footer__copy { font-size: 12.5px; color: rgba(255,255,255,.55); margin: 0; }
.footer__powered { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__powered:hover { color: #fff; }
.footer__lang { font-size: 12.5px; color: rgba(255,255,255,.7); }

/* ——— Cookie banner ——— */
.cookie { position: fixed; inset: auto 16px 16px 16px; z-index: 80; }
.cookie__inner {
  max-width: 980px; margin-inline: auto; background: var(--canvas); color: var(--text);
  border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); display: grid; gap: 16px;
}
.cookie__title { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 0 0 6px; }
.cookie__text { font-size: 14px; color: var(--text-muted); margin: 0; }
.cookie__prefs { display: grid; gap: 10px; padding: 16px; background: var(--surface-alt); border-radius: var(--r-md); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ——— Legal ——— */
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--s-section); }
.legal__inner { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: var(--maxw-narrow); }
.legal__title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 400; letter-spacing: -0.02em; margin: 8px 0 12px; }
.legal__updated { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }
.legal__intro { font-size: 18px; color: var(--text-muted); margin: 0; }
.legal__toc { border: 1px solid var(--border-light); border-radius: var(--r-md); padding: 20px 24px; }
.legal__toc ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.legal__toc-link { font-size: 14px; color: var(--action-blue); }
.legal__body { margin-top: 16px; }
.legal__section { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.legal__h { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 10px; }
.legal__list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-muted); }

/* ——— Back to top ——— */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--primary); color: #fff; border: 0; font-size: 18px;
}

/* ——— Responsive ——— */
/* Collapse the full menu to the hamburger on narrower screens. The wider 15px type is
   allowed to wrap onto two lines (accepted style), but below this threshold the wrapped
   nav would push the page into horizontal overflow (RO is the first to break, ~1120px). */
@media (max-width: 1199px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  body.nav-open .nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--canvas); border-bottom: 1px solid var(--rule); padding: 16px 24px 24px;
  }
  body.nav-open .nav__list { flex-direction: column; gap: 4px; }
  body.nav-open .nav__link { display: block; padding: 12px 0; font-size: 17px; color: var(--text); }
}

@media (max-width: 1024px) {
  .hero__media { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sim { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .product-cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .notice__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__status { grid-column: 1; }
  .newsletter__legal { grid-column: 1; }
}

@media (max-width: 680px) {
  .header__cta { display: none; }
  .capabilities, .steps, .sectors, .why__grid, .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; gap: 12px; }
  .article__meta { text-align: left; flex-direction: row; gap: 12px; }
  .brand__text { display: none; }
  .trust__stats, .why__stats { gap: 28px; }
  .cookie { inset: auto 8px 8px 8px; }
}

/* =========================================================================
   Motion — sobria, progressiva, disattivata con prefers-reduced-motion.
   Il contenuto è sempre nel DOM: qui si anima solo l'aspetto visivo.
   ========================================================================= */

@keyframes okf-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero intro: fade-in + slide-up, staggered (~150ms) */
  .hero__eyebrow { animation: okf-rise 500ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero__title   { animation: okf-rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both 150ms; }
  .hero__lead    { animation: okf-rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both 300ms; }
  .hero__actions { animation: okf-rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both 450ms; }

  /* Scroll reveal: hidden state only when JS is active, then IO adds .is-visible.
     Without JS the initial state is visible (no .js class on <html>). */
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
    will-change: opacity, transform;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
