/* =========================================================================
   ALIOS-PES — design system
   One source of truth. Brand tokens live in :root; everything references them,
   so the palette and type can never drift between pages.
   ========================================================================= */

:root {
  /* --- Brand palette (navy / purple / magenta only) --- */
  --navy:        #0D0A2B;   /* primary dark surface: hero, footer */
  --navy-2:      #171046;   /* raised panels on navy */
  --purple:      #2A1B6B;   /* secondary brand */
  --indigo:      #534AB7;   /* mid-tone, secondary marks, outlines */
  --magenta:     #E6228C;   /* the single accent — CTAs, highlights ONLY */
  --magenta-hi:  #FF3DA6;   /* magenta hover */

  --lavender:    #C9C4E8;   /* body text on navy */
  --lav-dim:     #8E88B8;   /* muted text on navy */

  --ink:         #0D0A2B;   /* body text on light */
  --ink-muted:   #5A5478;   /* secondary text on light */
  --surface:     #F6F5FB;   /* off-white section background */
  --border:      #E4E1F1;   /* hairline borders on light */
  --white:       #FFFFFF;

  /* --- Type --- */
  --font-display: 'Space Grotesk', system-ui, sans-serif; /* H1 / wordmark */
  --font-body:    'Inter', system-ui, sans-serif;          /* prose */
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace; /* DATA only: specs, prices, replicate counts */

  /* --- Layout --- */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--magenta); text-decoration: none; }
a:hover { color: var(--magenta-hi); }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 1rem;
}
.lead { font-size: 1.18rem; color: var(--ink-muted); }

/* Monospace data treatment — the signature. Used for any technical value. */
.data { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- Layout helpers --- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--lavender); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lead { color: var(--lavender); }

/* --- Top navigation --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,10,43,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(201,196,232,.12);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--maxw); margin-inline: auto; padding: 12px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand img { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: .04em; }
.brand__name span { color: var(--magenta); }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--lavender); font-size: .95rem; font-family: var(--font-body); transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px; }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(201,196,232,.12);
    padding: 8px var(--gutter) 18px;
  }
  .nav__links[hidden] { display: none; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
}

/* --- Buttons (two treatments only, consistent everywhere) --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--magenta); color: var(--white); }
.btn--primary:hover { background: var(--magenta-hi); color: var(--white); }
.btn--secondary { background: transparent; color: var(--white); border-color: rgba(201,196,232,.45); }
.btn--secondary:hover { border-color: var(--lavender); color: var(--white); }
/* secondary button on light backgrounds */
.on-light .btn--secondary, .btn--secondary.is-light { color: var(--ink); border-color: rgba(13,10,43,.28); }
.on-light .btn--secondary:hover, .btn--secondary.is-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* --- Hero --- */
.hero { background: var(--navy); color: var(--lavender); border-bottom: 1px solid rgba(201,196,232,.1); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(54px, 8vw, 96px); }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--lavender); max-width: 38ch; }
.hero__media img { width: 100%; border-radius: var(--radius); border: 1px solid rgba(201,196,232,.16); }
@media (max-width: 800px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { order: -1; } }

/* --- Feature list (magenta ticks) --- */
.features { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 16px; }
.features li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.features svg { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.features strong { color: var(--white); font-weight: 500; }
.section--navy .features span { color: var(--lavender); }

/* --- Product layout --- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.product__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: var(--navy-2); }
.product__media figcaption { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-muted); margin-top: 8px; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } }

/* --- Price cards (navy panels, monospace figures — replaces the yellow pills) --- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 1.8rem; }
.price {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); padding: 18px 20px; text-align: center;
}
.price__label { font-family: var(--font-mono); font-size: .82rem; color: var(--lavender); letter-spacing: .04em; }
.price__value { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 500; margin-top: 4px; }
.price__value small { font-size: .72rem; color: var(--lav-dim); font-weight: 400; }
.note { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-muted); margin-top: 12px; }

/* single highlighted price (e.g. a service with one fee) */
.price--solo { display: inline-block; min-width: 200px; }

/* --- Card grid (product index, applications) --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card__media { border-radius: var(--radius-sm); overflow: hidden; margin: -4px -4px 16px; background: var(--surface); }
.card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card h3 { margin-bottom: 6px; }
.card .price__value { color: var(--ink); }
.card p { color: var(--ink-muted); font-size: .97rem; }
.card .card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .card__price { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); }
.card__link { font-weight: 500; }

/* --- Mission / split prose --- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split--rev .split__media { order: 2; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
/* Full-bleed SLAM graphic: 60% on desktop, full width on mobile */
.slam-hero { display: block; width: 60%; margin-inline: auto; }
@media (max-width: 800px) { .slam-hero { width: 100%; } }

/* --- Stat strip --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stat__num { font-family: var(--font-mono); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--magenta); font-weight: 500; }
.stat__label { color: var(--lavender); font-size: .95rem; }

/* --- Credibility line --- */
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.credit__label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.credit__item { font-weight: 500; color: var(--purple); }
.credit .dot { color: var(--border); }

/* --- Contact form --- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--magenta); outline-offset: 1px; border-color: var(--magenta); }

/* --- Footer --- */
.footer { background: var(--navy); color: var(--lav-dim); border-top: 1px solid rgba(201,196,232,.1); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding: 44px var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__inner a { color: var(--lavender); }
.footer__inner a:hover { color: var(--white); }
.footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lav-dim); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__legal { border-top: 1px solid rgba(201,196,232,.1); }
.footer__legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; font-family: var(--font-mono); font-size: .76rem; color: var(--lav-dim); }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* --- Utilities --- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.measure { max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
