/* ==========================================================================
   Arivue Capital Decision Platform - marketing site
   Design system matched 1:1 to the product app's visual foundation
   (docs/product/visual-foundation.md, "Slice 1", 2026-07-05): Inter,
   dominantly-white page, semantic cherry #800051 (never sprinkled), neutral
   grey chrome, hairline borders, ~13px radius, minimal shadow, airy but not
   bloated spacing.
   ========================================================================== */

:root{
  --green:#800051;         /* cherry — the ONE semantic accent: headline figures, primary action, section markers */
  --green-accent:#800051;  /* unified with --green (product retired the two-tone split) */
  --tint:#F1F2F5;          /* rose-cream → neutral grey tint (badges, icon fills, pills) */
  --ink:#2B2B36;           /* soft charcoal ink, not near-black */
  --muted:#5B5B67;         /* dusty-plum → cool grey secondary text */
  --muted-2:#8A8A96;       /* muted-rose → cool grey tertiary text */
  --white:#FFFFFF;         /* card surface */
  --border:#E2E3E9;        /* hairline neutral border */
  --bg-faint:#F8F9FB;      /* warm-cream → page grey */
  --btn-hover:#5C0039;     /* cherry, darkened for hover */
  --deep:#46062B;          /* deep plum: large dark SURFACES only (CTA bands, table headers).
                              Not an accent. Keeps cherry #800051 reserved for semantic use,
                              so a full-bleed panel never competes with a headline figure. */
  --r:13px;
  --maxw:1120px;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;

  /* Aliases so inline-styled panels authored against the product's own token names resolve directly */
  --cherry:var(--green);
  --raspberry:var(--green-accent);
  --rose-cream:var(--tint);
  --warm-cream:var(--bg-faint);
  --dusty-plum:var(--muted);
  --muted-rose:var(--muted-2);
  --near-black:var(--ink);
  --hairline-soft:var(--border);
}

*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-size:16px}
img{max-width:100%;display:block}
a{color:var(--green);text-decoration:none;transition:color .15s ease}
a:hover{color:var(--green-accent)}
h1,h2,h3,h4{line-height:1.15;letter-spacing:-0.01em;font-weight:600}
p{margin:0 0 0.85em}
ul{margin:0 0 1em;padding-left:1.1em}
strong{font-weight:600}

/* ----- Layout ----------------------------------------------------------- */
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px}
.section{padding:64px 0}
.section--tight{padding:40px 0}
.section--white{background:var(--white)}
.section--cream{background:var(--bg-faint);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.center{text-align:center}
.measure{max-width:720px}
/* When .measure sits ON the container, narrowing max-width would let margin:0 auto
   re-centre the whole block, pushing the hero right of every section below it.
   Keep the container's own left edge and only narrow the measure. */
.container.measure:not(.center){
  max-width:calc(720px + 48px); /* + the container's 24px side padding */
  margin-left:max(0px,(100% - var(--maxw)) / 2);
  margin-right:auto;
}
.measure.center{margin-left:auto;margin-right:auto}

/* ----- Eyebrow / labels ------------------------------------------------- */
.eyebrow{display:inline-block;font-size:12px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--green-accent);margin:0 0 14px}
.badge{display:inline-flex;align-items:center;gap:8px;background:var(--tint);color:var(--green);font-size:13px;font-weight:500;padding:6px 14px;border-radius:999px;margin-bottom:20px}
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--green-accent)}

/* ----- Type scale ------------------------------------------------------- */
/* Headings light (~600, never bold 700); big figures ~620 (rounded to 600,
   the nearest CSS keyword) — matches the product's type treatment exactly. */
.display{font-size:clamp(34px,5vw,52px);font-weight:600;line-height:1.12;letter-spacing:-0.02em}
.h1{font-size:clamp(32px,4vw,46px);font-weight:600}
.h2{font-size:clamp(26px,3.4vw,34px);font-weight:600;line-height:1.2}
.h3{font-size:18px;font-weight:600}
.lead{font-size:clamp(16px,1.8vw,18px);color:var(--muted);line-height:1.6}
.h2 + .lead{margin-top:18px} /* consistent headline-to-content gap across all section types */
.muted{color:var(--muted)}
.subtle{color:var(--muted);opacity:.85;font-size:14px}

/* ----- Buttons ---------------------------------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font);font-size:15px;font-weight:500;line-height:1;padding:13px 22px;border-radius:var(--r);cursor:pointer;border:1px solid transparent;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--green);color:#fff}
.btn--primary:hover{background:var(--btn-hover);color:#fff;transform:translateY(-1px)}
.btn--ghost{background:transparent;color:var(--green);border-color:var(--border)}
.btn--ghost:hover{color:var(--green-accent);border-color:var(--green-accent)}
.btn--on-dark{background:#fff;color:var(--green)}
.btn--on-dark:hover{background:var(--tint);color:var(--green)}
.btn--ghost-on-dark{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.btn--ghost-on-dark:hover{border-color:#fff;color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
.btn-row.center{justify-content:center}

/* ----- Navigation ------------------------------------------------------- */
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(160%) blur(10px);border-bottom:1px solid var(--border)}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:66px}
.brand{display:inline-flex;align-items:center}
.brand:hover{color:var(--green)}
.logo{height:44px;width:auto;display:block}
.nav__links{display:flex;align-items:center;gap:26px}
.nav__links a{color:var(--muted);font-size:14px;font-weight:500}
.nav__links a:hover{color:var(--ink)}
.nav__cta{display:flex;align-items:center;gap:14px}
.nav__cta .btn{padding:10px 16px;font-size:14px}
.nav__toggle{display:none;background:none;border:0;cursor:pointer;padding:8px;color:var(--green)}
.nav__toggle svg{display:block}

/* ----- Hero ------------------------------------------------------------- */
.hero{padding:68px 0 52px}
.hero .display{margin-bottom:16px}
.hero .lead{max-width:640px}
.hero .btn-row{margin-top:24px}
.hero__note{margin-top:14px;font-size:14px;color:var(--muted);opacity:.85}

/* ----- Grids ------------------------------------------------------------ */
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}

/* ----- Cards ------------------------------------------------------------ */
.card{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:26px;box-shadow:0 1px 2px rgba(24,24,34,.04),0 1px 3px rgba(24,24,34,.03);transition:border-color .18s ease,box-shadow .18s ease}
.card:hover{border-color:#D5D6DE;box-shadow:0 2px 6px rgba(24,24,34,.06)}
.card h3{margin-bottom:8px}
.card p:last-child{margin-bottom:0}
.card--dark{background:var(--green);color:#fff;border-color:var(--green)}
.card--dark:hover{box-shadow:0 6px 20px rgba(128,0,81,.18)}
.card--dark h3{color:#fff}
.card--dark p{color:rgba(255,255,255,.82)}
.card__icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--tint);color:var(--green);margin-bottom:16px}
.card--dark .card__icon{background:rgba(255,255,255,.14);color:#fff}
.card__icon svg{width:20px;height:20px}

/* ----- Stats ------------------------------------------------------------ */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.stat__num{font-size:clamp(34px,4.4vw,46px);font-weight:600;letter-spacing:-0.02em;color:var(--green);line-height:1;margin-bottom:8px}
.stat__label{font-size:15px;color:var(--muted)}
.stat__src{font-size:12px;color:var(--muted);opacity:.8;margin-top:6px}

/* ----- Feature rows (alternating) -------------------------------------- */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.feature+.feature{margin-top:56px}
.feature__media{background:var(--white);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 1px 3px rgba(24,24,34,.05);padding:22px;min-height:230px}
.feature--rev .feature__text{order:2}
.feature--rev .feature__media{order:1}

/* ----- Steps ------------------------------------------------------------ */
.steps{display:grid;gap:14px}
.step{display:grid;grid-template-columns:44px 1fr;gap:18px;align-items:start;background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:20px 22px;box-shadow:0 1px 3px rgba(24,24,34,.05)}
.step__n{width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--green);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:17px}
.step h3{margin-bottom:4px}
.step p:last-child{margin:0}

/* ----- Checklist -------------------------------------------------------- */
.check{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.check li{display:grid;grid-template-columns:20px 1fr;gap:12px;align-items:start;color:var(--ink)}
.check li::before{content:"";width:8px;height:8px;margin-top:9px;border-radius:50%;background:var(--green-accent)}
.card--dark .check li{color:rgba(255,255,255,.92)}
.card--dark .check li::before{background:#fff}

/* ----- CTA band --------------------------------------------------------- */
.cta-band{background:var(--deep);color:#fff;border-radius:16px;padding:44px 40px;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.82);max-width:560px;margin:0 auto 22px}

/* ----- Prose (legal / long-form) --------------------------------------- */
.prose{max-width:760px}
.prose h2{font-size:22px;color:var(--green);margin:38px 0 12px}
.prose h3{font-size:17px;margin:24px 0 8px}
.prose p,.prose li{color:var(--ink)}
.prose li{margin-bottom:6px}
.prose .subtle{display:block;margin-bottom:26px}

/* ----- Section head ----------------------------------------------------- */
.section-head{max-width:680px;margin-bottom:32px}
.section-head.center{margin-left:auto;margin-right:auto}

/* ----- Small utilities -------------------------------------------------- */
.stack>*+*{margin-top:14px}
.pill-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.pill{font-size:13px;font-weight:500;color:var(--green);background:var(--tint);padding:6px 12px;border-radius:8px}
.note{background:var(--bg-faint);border:1px solid var(--border);border-radius:var(--r);padding:16px 18px;font-size:14px;color:var(--ink)}

/* ----- Footer (light) --------------------------------------------------- */
.footer{border-top:1px solid var(--border);padding:44px 0;background:var(--white)}
.footer__row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.footer__row .logo,.footer__row .brand img{height:34px;width:auto}
.footer__links{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-right:auto}
.footer__links a{color:var(--muted);font-size:14px;font-weight:500}
.footer__links a:hover{color:var(--ink)}
.footer__copy{color:var(--muted);opacity:.85;font-size:13px}

/* ----- Responsive ------------------------------------------------------- */
@media (max-width:900px){
  .grid-3,.grid-4,.stats{grid-template-columns:repeat(2,1fr)}
  .feature{grid-template-columns:1fr;gap:28px}
  .feature--rev .feature__text,.feature--rev .feature__media{order:0}
}
@media (max-width:640px){
  .section{padding:56px 0}
  .grid-2,.grid-3,.grid-4,.stats{grid-template-columns:1fr}
  .cta-band{padding:40px 24px}
  .nav__links{display:none}
  .nav__toggle{display:inline-flex}
  .nav[data-open="true"] .nav__links{display:flex;position:absolute;top:66px;left:0;right:0;flex-direction:column;align-items:flex-start;gap:2px;background:#fff;border-bottom:1px solid var(--border);padding:10px 24px 16px}
  .nav[data-open="true"] .nav__links a{padding:10px 0;width:100%}
  .logo{height:38px}
}
