/* Geist, self-hosted (variable 400-600): no render-blocking request to Google Fonts */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Linex Rewards. Palette «Beyond 3C» (brand manual §03, brand-tokens.json).
   Aubergine is the only dark. Purple identifies on light, lilac on dark.
   Lima is only for actions (a fill with aubergine on top): never lima text or lines on light,
   never white text on lima. No blues, no greens, no warm tones. */
:root {
  --aubergine: #1B0A2E;
  --surface: #2A1245;
  --purple: #6E10A6;
  --lilac: #E6B8FF;
  --lima: #C5F04A;
  --lima-hover: #B6E036;
  --ink: #1B0A2E;
  --white: #FFFFFF;
  --section-gray: #F5F4F7;
  --on-dark-soft: #EDE3F7;
  --muted: #463F52;
  --muted-2: #6B6475;
  --line-light: rgba(27, 10, 46, .12);
  --line-card: #E4E1E9;
  --line-dark: rgba(255, 255, 255, .14);
  --lilac-wash: #F1E7FB;
  --lilac-ring: #E9DDF5;

  --r-btn: 12px;
  --r-card: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --w: 1200px;
  --gutter: max(20px, env(safe-area-inset-left));
  --font: 'Geist', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: calc(var(--w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lima); color: var(--aubergine); padding: 12px 18px; border-radius: var(--r-btn); font-weight: 600; transition: top .15s; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.sec-dark :focus-visible, .nav :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--lima); }
.form-card :focus-visible { outline-color: var(--purple); }

/* ── surfaces ── */
.sec { padding: clamp(64px, 9vw, 120px) 0; background: var(--white); color: var(--ink); }
.sec-gray { background: var(--section-gray); }
.sec-dark { background: var(--aubergine); color: #fff; position: relative; }
.sec-head { max-width: 800px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-top: 20px; }
.sec-dark .lead { color: var(--on-dark-soft); }

/* ── type ── */
h1 { font-size: clamp(46px, 6.8vw, 100px); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.8vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--aubergine); margin-bottom: 18px; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px var(--lilac-ring); flex: none; }
.eyebrow::after { content: ""; width: 27px; height: 6px; flex: none; background: radial-gradient(circle, currentColor 2.2px, transparent 2.8px) 0 0 / 9px 6px repeat-x; opacity: .7; }
.sec-dark .eyebrow { color: #fff; }
.sec-dark .eyebrow i { background: var(--lilac); box-shadow: 0 0 0 3px rgba(230, 184, 255, .28); }
.accent { color: var(--lilac); }
.hl { color: var(--purple); }   /* highlighted phrase in a light-section title (one per page) */
.pill { display: inline-block; background: var(--lima); color: var(--aubergine); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.pill-sm { margin: 0; font-size: 12.5px; padding: 4px 12px; }
.tlink { color: var(--lima); text-underline-offset: 3px; }
.tlink-light { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tlink-light:hover { color: var(--purple); }
.illus-label { font-size: 13px; color: var(--on-dark-soft); margin-top: 16px; text-align: center; max-width: 460px; margin-inline: auto; }
.pending { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; border: 1px dashed currentColor; border-radius: 999px; padding: 2px 10px; opacity: .85; align-self: flex-start; }

/* ── buttons: radius 12, min 44px ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: filter .15s, transform .15s, background .15s, color .15s; }
.btn .arr { transition: transform .15s var(--ease); }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-block { width: 100%; }
.btn-primary-dark { background: var(--lima); color: var(--aubergine); font-weight: 700; border: 0; }
.btn-primary-dark:hover { background: var(--lima-hover); }
.btn-primary-light { background: var(--lima); color: var(--aubergine); font-weight: 700; border: 0; }
.btn-primary-light:hover { background: var(--lima-hover); }
.btn-secondary-dark { border-color: var(--lima); color: var(--lima); background: transparent; }
.btn-secondary-dark:hover { background: rgba(197, 240, 74, .14); }
.btn-secondary-light { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-secondary-light:hover { background: rgba(110, 16, 166, .08); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-arrow:hover { color: var(--purple); }
.sec-dark .link-arrow { color: var(--lima); text-decoration: none; }
.sec-dark .link-arrow:hover { color: var(--lima); text-decoration: underline; text-decoration-color: var(--lima); }
.ext { display: inline-block; vertical-align: -1px; margin-left: 4px; opacity: .8; }
.link-arrow .ext { margin-left: 0; }

/* ── group bar + floating nav ── */
.group-bar { background: #F3F2F6; color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line-card); position: relative; z-index: 51; }
.gb-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.gb-link { text-decoration: none; padding: 8px 0; }
.group-bar .gb-link { color: var(--ink); }
.gb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.group-bar .gb-link:hover { text-decoration-color: var(--purple); text-underline-offset: 4px; }
.gb-stars { display: flex; align-items: center; gap: 26px; }
.gb-stars > span[aria-hidden] { display: none; }
.gb-stars > * { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); text-decoration: none; }
.gb-stars > *::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: #999; }
.gb-stars > a::before { background: #5B5CFF; }   /* Travel */
.gb-soon::before { background: #EC4899; }         /* Marketplace */
.gb-current::before { background: var(--lima); box-shadow: 0 0 0 1px rgba(27, 10, 46, .28); }
.gb-soon { color: #5E5668; }
.gb-current { font-weight: 700; }

.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 0; pointer-events: none; margin-bottom: -92px; }
.nav { pointer-events: auto; background: var(--aubergine); color: #fff; border: 1px solid rgba(230, 184, 255, .35); border-radius: 999px; box-shadow: 0 10px 28px rgba(27, 10, 46, .3), 0 2px 6px rgba(27, 10, 46, .2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 0 10px 0 28px; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; }
.logo-img { height: 40px; width: auto; }
.logo-foot { height: 48px; }
.logo-slot { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px dashed var(--aubergine); border-radius: 6px; color: var(--aubergine); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.nav-panel { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex: 1; }
.nav-list { display: flex; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; color: #E8DDF3; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(230, 184, 255, .14); color: #fff; }
.nav-link.active { background: rgba(230, 184, 255, .22); color: #fff; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #CDBBE0; font-size: 14px; }
.lang a, .lang-cur { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.lang-cur { color: #fff; font-weight: 700; }
.lang a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-btn); color: #fff; cursor: pointer; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ── hero: aubergine with a mesh gradient, angled photo (references: Alico, Rekrutmen, Conxora) ── */
.hero { position: relative; overflow: hidden; background: var(--aubergine); color: #fff; padding: 150px 0 clamp(120px, 12vw, 170px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .shape { position: absolute; display: block; }
.hero-bg .s1 { display: none; }
.hero-bg .s2 { inset: 0; width: 100%; height: 100%; filter: blur(14px); background:
    radial-gradient(50% 75% at 100% 0%, rgba(197, 240, 74, .9), rgba(197, 240, 74, .4) 38%, rgba(197, 240, 74, 0) 75%),
    radial-gradient(58% 80% at 0% 104%, rgba(110, 16, 166, 1), rgba(110, 16, 166, .6) 42%, rgba(110, 16, 166, 0) 76%),
    radial-gradient(38% 52% at 100% 100%, rgba(230, 184, 255, .6), rgba(230, 184, 255, 0) 74%),
    var(--aubergine); }
.hero-bg .grid-dots { position: absolute; left: max(20px, 3vw); bottom: 90px; width: 170px; height: 130px; background: radial-gradient(circle, rgba(255, 255, 255, .28) 2px, transparent 2.5px) 0 0 / 18px 18px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 80px); }
.hero .pill { margin-bottom: 22px; }
.hero .btn-primary-dark:not(.btn-sm) { min-height: 60px; padding-inline: 34px; }
.hero-copy .lead { margin-top: 24px; max-width: 540px; color: var(--on-dark-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.hero .illus-label { margin-top: 30px; }

.scene { position: relative; width: min(100%, 540px); }
.hero-photo { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 0 20px 20px 0; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(27, 10, 46, .55)); }
.scene::after { content: ""; position: absolute; left: 12%; right: 0; bottom: -12px; height: 12px; background: var(--lilac); border-radius: 0 0 12px 12px; z-index: -1; }

/* glass cards (illustrative interface, always aria-hidden) */
.glass-card { position: absolute; z-index: 4; color: #fff; background: rgba(27, 10, 46, .86); border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; padding: 14px 16px; backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 22px 50px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .14); translate: 0 0; animation: float 7s ease-in-out infinite; }
@supports not (backdrop-filter: blur(1px)) { .glass-card { background: var(--surface); } }
.glass-card h4 { font-size: 12px; font-weight: 600; color: var(--on-dark-soft); margin-bottom: 10px; }
.glass-card small { display: block; font-size: 12px; color: var(--on-dark-soft); }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes fill { 0% { transform: scaleX(.55); } 60%, 100% { transform: scaleX(1); } }
.live { display: inline-flex; align-items: center; gap: 6px; background: var(--lima); color: var(--aubergine); border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--aubergine); animation: pulse 1.6s ease-in-out infinite; }
.gc-balance { left: -34px; bottom: 16%; width: 220px; }
.gc-balance strong { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 2px 0 6px; }
.gc-goal { left: 6%; top: 8%; display: flex; align-items: center; gap: 12px; animation-delay: -2s; }
.gc-goal b { font-size: 22px; font-variant-numeric: tabular-nums; }
.gc-item { right: 6%; bottom: -26px; display: flex; align-items: center; gap: 10px; font-size: 13px; animation-delay: -4s; }
.gc-item .chk { margin: 0; width: 22px; height: 22px; }
.chip-pts { background: var(--lima); color: var(--aubergine); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

/* animated data graphics (default = final state; hidden only while a .reveal ancestor is not yet in view) */
.spark { width: 100%; height: 38px; overflow: visible; }
.spark-area { fill: rgba(197, 240, 74, .14); }
.cl { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease) .15s; }
.spark-line { stroke: var(--lima); stroke-width: 3; }
.cl-a { stroke: var(--lima); stroke-width: 3; }
.cl-b { stroke: #fff; stroke-width: 2; opacity: .75; transition-delay: .35s; }
.js .reveal:not(.in) .cl { stroke-dashoffset: 1; }
.ring { width: 48px; height: 48px; flex: none; }
.ring-bg, .ring-fg { fill: none; stroke-width: 3; }
.ring-bg { stroke: rgba(255, 255, 255, .16); }
.ring-fg { stroke: var(--lima); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray 1.4s var(--ease) .2s; }
.js .reveal:not(.in) .ring-fg { stroke-dasharray: 0 100; }
.wb { fill: rgba(255, 255, 255, .3); transform-box: fill-box; transform-origin: bottom; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * .07s + .2s); }
.wb-hi { fill: var(--lima); }
.js .reveal:not(.in) .wb { transform: scaleY(0); }
.bar { height: 10px; border-radius: 999px; background: #e7e7ef; overflow: hidden; }
.bar span { display: block; height: 100%; width: 68%; border-radius: 999px; background: var(--aubergine); transform-origin: left; animation: fill 5s var(--ease) infinite; }
.bar.g { height: 8px; background: rgba(255, 255, 255, .16); }
.bar.g span { width: var(--w); background: var(--lima); animation: none; transition: transform 1.2s var(--ease) .25s; }
.js .reveal:not(.in) .bar.g span { transform: scaleX(0); }
.co-row { display: flex; justify-content: space-between; font-size: 12px; margin: 8px 0 4px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-top: 6px; color: var(--on-dark-soft); }
.lg { width: 14px; height: 4px; border-radius: 2px; }
.lg-a { background: var(--lima); }
.lg-b { background: #fff; margin-left: 8px; }

/* ── scale: one white card overlapping the hero (Alico/Rekrutmen) ── */
.scale-sec { position: relative; z-index: 5; margin-top: calc(-1 * clamp(70px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 72px); }
.scale-card { position: relative; background: #fff; border-radius: 18px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 70px rgba(27, 10, 46, .16); border: 1px solid var(--line-light); }
.scale-card .eyebrow { margin-bottom: 22px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: 4px 18px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-fig { font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--aubergine); }
.stat-fig-text { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.stat-lab { font-size: 14px; font-weight: 500; color: var(--muted); }
.sc-line { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-light); color: var(--muted); }

/* ── segmented audience control ── */
.seg, .filters { display: flex; width: fit-content; max-width: 100%; margin-inline: auto; gap: 4px; padding: 5px; border-radius: 14px; background: var(--lilac-wash); }
.seg { overflow-x: auto; scrollbar-width: none; margin-bottom: 32px; }
.filters { flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.tab, .chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover, .chip:hover { background: rgba(27, 10, 46, .08); }
.tab[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--aubergine); color: #fff; }
.tab[aria-selected="true"]::before, .chip[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }

/* ── doors ── */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
[data-audience="brands"] .door-a { order: 2; }
.door { background: #fff; border: 1px solid var(--line-light); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.door:hover, .cap:hover, .prog:hover, .res:hover, .step:hover { box-shadow: 0 22px 46px rgba(27, 10, 46, .12); transform: translateY(-3px); }
.door-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--aubergine); }
.door-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.door:hover .door-photo img { transform: scale(1.05); }
.door-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--purple); }
.door-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.door-body p { color: var(--muted); }
.door-body .link-arrow { margin-top: auto; }
.checks { display: grid; gap: 10px; margin: 4px 0 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #2E2638; }
.chk { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--aubergine); color: var(--lilac); display: grid; place-items: center; margin-top: 1px; }
.chk svg { width: 14px; height: 14px; }
.chk-lg { width: 32px; height: 32px; margin-top: 0; }
.chk-lg svg { width: 18px; height: 18px; }

/* ── engine: service cards with glass icon tiles ── */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap { background: #fff; border: 1px solid var(--line-card); box-shadow: 0 1px 2px rgba(27, 10, 46, .04); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.cap p { color: var(--muted); font-size: 15px; }
.tile { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--aubergine); color: var(--lilac); display: grid; place-items: center;  }
/* icons: circle + glyph. On light: aubergine circle, lilac glyph. On dark: lilac circle, aubergine glyph. No decorative rings. */
.hero .chk, .sec-dark .chk, .glass-card .chk, .cap-dark .tile, .sec-dark .tile { background: var(--lilac); color: var(--aubergine); }
.cap h3::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 12px; background: var(--purple); }
.cap-dark h3::after { background: var(--lima); }
.cap-wide { grid-column: span 2; }
.cap-dark { background: var(--surface); border-color: var(--aubergine); color: #fff; flex-direction: row; align-items: center; gap: 12px; overflow: hidden; position: relative; }
.cap-dark p { color: var(--on-dark-soft); }
.cap-txt { display: flex; flex-direction: column; gap: 12px; flex: 1 1 55%; position: relative; z-index: 1; }
.cap-art { flex: 0 0 44%; margin: -28px -28px -28px 0; align-self: stretch; display: grid; place-items: center; }
.cap-art svg { width: 100%; height: auto; max-width: none; max-height: 100%; overflow: visible; }
.closing { margin: 40px auto 0; font-size: 18px; max-width: 760px; color: var(--muted); text-align: center; }

/* ── programs: photo cards ── */
.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog { background: var(--section-gray); border: 1px solid var(--line-card); border-radius: var(--r-card); display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease), background .25s; }
.prog:hover { background: #fff; }
.prog[hidden] { display: none; }
.prog-photo { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--aubergine); border-radius: var(--r-card) var(--r-card) 0 0; }
.prog-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prog:hover .prog-photo img { transform: scale(1.06); }
.prog-body .prog-for { display: flex; align-items: flex-start; gap: 9px; min-height: 2.7em; margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.35; }
.prog-body .prog-for::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .3em; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px var(--lilac-ring); }
@media (max-width: 640px) { .prog-body .prog-for { min-height: 0; } }
.prog-body { padding: 0 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-float { margin-top: -28px; position: relative; z-index: 2; margin-bottom: 6px; }
.tile-float { box-shadow: 0 0 0 4px var(--section-gray); }
.prog:hover .tile-float { box-shadow: 0 0 0 4px #fff; }
.prog-body p { color: var(--muted); font-size: 15px; }

/* ── platform: photo + glass charts ── */
#platform { background: var(--aubergine); }
.plt-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.plt-list { display: grid; gap: 24px; margin-top: 36px; }
.plt-item { display: flex; gap: 16px; }
.plt-item p { color: var(--on-dark-soft); margin-top: 4px; font-size: 15px; }
.plt-visual { position: relative; padding: 28px 0 8px; }
.plt-photo > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 36px 80px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.plt-photo { position: relative; }
.plt-photo::before { content: ""; position: absolute; left: -14px; top: -14px; width: 56%; height: 56%; border: 3px solid var(--lilac); border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.pv-flow { right: -14px; top: 0; width: 46%; }
.pv-goals { left: -18px; bottom: 74px; width: 50%; animation-delay: -2.5s; }
.pv-week { right: 14px; bottom: 56px; width: 36%; animation-delay: -5s; }
.plt-visual .illus-label { margin-top: 36px; }

/* ── how: numbered step cards ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border-radius: 16px; padding: 28px; min-height: 290px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.step-n { font-size: 64px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: auto; font-variant-numeric: tabular-nums; }
.step p { font-size: 15px; }
.step-gray { background: var(--section-gray); border: 1px solid var(--line-light); color: var(--ink); }
.step-gray .step-n { color: var(--aubergine); }
.step-gray p { color: var(--muted); }
.step-dark { background: var(--surface); color: #fff; }
.step-dark .step-n { color: var(--lilac); }
.step-dark p { color: var(--on-dark-soft); }
.step-lima { background: var(--lima); color: var(--aubergine); }
.step-lima p { color: var(--aubergine); }

/* ── results ── */
.ress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.res { border-radius: 16px; padding: 30px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.res-fig { font-size: clamp(48px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: auto; }
.res p { font-size: 15px; }
.res-dark { background: var(--surface); color: #fff; }
.res-dark .res-fig { color: var(--lilac); }
.res-dark p { color: var(--on-dark-soft); }
.res-white { background: #fff; border: 1px solid var(--line-light); }
.res-white .res-fig { color: var(--aubergine); border-bottom: 10px solid var(--purple); align-self: flex-start; padding-bottom: 4px; }
.res-white p { color: var(--muted); }
.res-lima { background: var(--lima); color: var(--aubergine); }
.source { margin-top: 28px; font-size: 14px; color: #4b4870; }

/* ── photo-backed dark sections ── */
.bg-sec { overflow: hidden; isolation: isolate; }
.sec-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bg-sec::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#constellation.constellation-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(230, 184, 255, .10), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1.2px, transparent 1.6px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--surface), var(--aubergine) 55%, #12061F);
}
#contact::after { background: linear-gradient(90deg, rgba(27, 10, 46, .95), rgba(27, 10, 46, .78)); }

/* ── constellation ── */
.constellation-fig { max-width: 720px; margin: 0 auto 40px; }
.stars { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: stretch; }
.star { background: rgba(27, 10, 46, .45); border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(10px); }
.star p { font-size: 15px; color: var(--on-dark-soft); }
.star .anchor { font-size: 13px; opacity: .85; }
.star-main { border-color: var(--lima); }
.star .link-arrow, .star .soon { margin-top: auto; }
.soon { font-size: 14px; font-weight: 600; opacity: .75; }
.con-closing { text-align: center; max-width: 680px; margin: 56px auto 0; }
.con-closing p { margin-top: 10px; color: var(--on-dark-soft); }
.con-closing .capital { margin-top: 24px; font-size: 14px; }

/* ── faq ── */
.faq-wrap { max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding: 14px 0; background: transparent; border: 0; text-align: left; font-size: 19px; font-weight: 600; cursor: pointer; }
.faq-q:hover { color: var(--purple); }
.faq-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--aubergine); position: relative; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--lilac); transition: transform .25s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-ic::after { transform: rotate(0); }
.faq-a { padding: 0 60px 24px 0; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy .lead { margin-top: 20px; }
.direct { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.direct p { margin: 6px 0 10px; color: var(--on-dark-soft); }
.mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 600; color: var(--lima); text-underline-offset: 4px; }
.secondary { margin-top: 28px; font-size: 15px; color: var(--on-dark-soft); }
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid rgba(27, 10, 46, .35); border-radius: 12px; background: #fff; }
.field input:hover, .field textarea:hover { border-color: var(--aubergine); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.err { font-size: 13px; color: #b3261e; font-weight: 500; }
.err:not(:empty)::before { content: "! "; font-weight: 600; }
.note { font-size: 13px; color: #4b4870; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--purple); }
.form-status.bad { color: #b3261e; }

/* ── footer ── */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.ft-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ft-about h2 { font-size: 18px; letter-spacing: 0; margin: 20px 0 10px; font-weight: 600; }
.ft-about p { color: var(--on-dark-soft); font-size: 15px; max-width: 460px; }
.ft-about .ft-anchor { margin-top: 12px; font-size: 14px; }
.ft-col h3 { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--lilac); margin-bottom: 14px; }
.ft-col ul { display: grid; gap: 2px; }
.ft-col a, .ft-col .soon { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; color: #fff; text-decoration: none; }
.ft-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--on-dark-soft); }
.loop { color: var(--lilac); font-weight: 600; letter-spacing: .04em; }

/* ── legal pages ── */
.legal { padding: 56px 0 96px; min-height: 60vh; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin: 12px 0 28px; }
.draft-note { background: var(--section-gray); border-left: 6px solid var(--lima); border-radius: 0 12px 12px 0; padding: 16px 20px; margin-bottom: 36px; }
.legal-sec { margin-bottom: 28px; }
.legal-sec h2 { font-size: 24px; margin-bottom: 8px; letter-spacing: -.01em; }
.legal-sec p { color: var(--muted); }

/* dot-grid decoration (Alico) */
#solutions, #how { position: relative; overflow: hidden; }
#solutions::before, #how::before { content: ""; position: absolute; right: max(20px, 4vw); top: 56px; width: 150px; height: 150px; background: radial-gradient(circle, rgba(27, 10, 46, .2) 2px, transparent 2.5px) 0 0 / 18px 18px; pointer-events: none; }
#solutions .container, #how .container { position: relative; }

/* ── motion ── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── responsive ── */
@media (max-width: 1240px) {
  .nav-inner { gap: 10px; padding: 0 8px 0 20px; }
  .nav-link { padding: 0 10px; font-size: 14px; }
  .logo-img { height: 34px; }
  .nav-panel { gap: 10px; }
  .nav-end { gap: 6px; }
  .nav-end .btn { padding: 0 16px; }
}
@media (max-width: 1100px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .cap-wide { grid-column: span 2; }
  .ress { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-about { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .nav-inner { padding: 0 10px 0 18px; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 70; }
  .nav-panel { position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 24px; background: var(--aubergine); color: #fff; padding: 96px var(--gutter) 40px; transform: translateY(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; overflow-y: auto; }
  .nav-panel.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; }
  .nav-link { width: 100%; font-size: 22px; min-height: 56px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav-end { flex-direction: column; align-items: flex-start; padding-left: 0; }
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .scene { width: min(100%, 520px); }
  .gc-balance { left: 12px; }
  .gc-goal { left: 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .doors, .contact-grid, .plt-grid { grid-template-columns: 1fr; }
  .progs { grid-template-columns: repeat(2, 1fr); }
  .stars { grid-template-columns: 1fr; }
  .star-main { order: -1; }
  .plt-visual { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .plt-photo { grid-column: 1 / -1; }
  .pv-flow, .pv-goals, .pv-week { position: static; width: auto; animation: none; }
  .pv-goals { grid-column: 1 / -1; order: 3; }
  .plt-visual .illus-label { grid-column: 1 / -1; margin-top: 12px; }
  .cap-dark { flex-direction: column; align-items: stretch; }
  .cap-art { flex: none; margin: 0 -28px -28px; }
  .cap-art svg { width: 100%; }
}
@media (max-width: 640px) {
  .seg { display: flex; flex-direction: column; width: 100%; }
  .tab { width: 100%; }
  .gb-inner { font-size: 12px; }
  .hero { padding-bottom: 110px; }
  .gc-balance { left: 10px; bottom: 10px; width: 170px; padding: 12px; }
  .gc-balance strong { font-size: 26px; }
  .gc-goal { left: 10px; top: 10px; }
  .gc-item { display: none; }
  .hero-photo { aspect-ratio: 4 / 4.4; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .caps, .progs, .ress, .steps { grid-template-columns: 1fr; }
  #solutions::before, #how::before { display: none; }
  .cap-wide { grid-column: auto; }
  .plt-visual { grid-template-columns: 1fr; }
  .pv-goals { order: 0; }
  .ft-top { grid-template-columns: 1fr; }
  .faq-a { padding-right: 0; }
  .door-body, .cap, .star { padding: 22px; }
  .step, .res { min-height: 0; }
  .step-n { margin-bottom: 18px; }
  .res-fig { margin-bottom: 14px; }
}

/* ───────── v2 adjustments ───────── */

/* audience selector lives in the hero; copy and photo follow main[data-audience] */
.aud-brands { display: none; }
main[data-audience="brands"] .aud-banks { display: none; }
main[data-audience="brands"] .aud-brands { display: block; }
.hero .seg { margin: 0 0 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); }
.hero .tab { color: var(--on-dark-soft); }
.hero .tab:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero .tab[aria-selected="true"] { background: #fff; color: var(--aubergine); }
.hero-photo img { position: absolute; inset: 0; }
.hero-photo .hp-brands { display: none; }
main[data-audience="brands"] .hero-photo .hp-banks { display: none; }
main[data-audience="brands"] .hero-photo .hp-brands { display: block; }

/* scale strip: sixth cell is "Secure by design" */
.stat-shield { display: flex; align-items: center; height: clamp(34px, 3.4vw, 48px); }
.stat-shield svg { height: 100%; width: auto; }

/* client logos strip */
.clients { padding: clamp(36px, 5vw, 56px) 0; overflow: hidden; }
.clients-h { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.01em; text-align: center; margin-bottom: 28px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; align-items: center; gap: 56px; padding-right: 56px; min-width: 100%; justify-content: space-around; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.cl { display: flex; align-items: center; height: 40px; color: #fff; white-space: nowrap; opacity: 1; }
.cl img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.cl-name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 640px) {
  .marquee { display: block; -webkit-mask-image: none; mask-image: none; }
  .marquee-dup { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 18px 28px; padding: 0; min-width: 0; }
  .cl-name { font-size: 16px; }
  .cl img { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { display: block; -webkit-mask-image: none; mask-image: none; }
  .marquee-dup { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 18px 36px; padding: 0; min-width: 0; }
}

/* section close lines, capability labels, pain lines, result client */
.close-line { margin: 40px auto 0; max-width: 760px; text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -.01em; color: var(--aubergine); }
.sec-dark .close-line { color: #fff; }
.plt-close { grid-column: 1 / -1; }
.close-line + .closing { margin-top: 14px; }
.closing .btn { margin-top: 20px; }
.cap .cap-label { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--muted-2); }
.cap-dark .cap-label { color: #fff; }
.cap-dark { box-shadow: none; }
.pain, .prog-body .pain { font-style: italic; font-weight: 500; color: var(--ink); }
.prog-body .pain { font-size: 15px; }
.res-client { font-size: 13px; font-weight: 600; opacity: .85; }

/* Solutions dropdown */
.has-sub { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 44px; margin-left: -10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.sub-toggle svg { transition: transform .2s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { display: none; }
.sub-col ul, .sub-steps ol { display: grid; gap: 4px; }
.sub-h { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.sub-col a:not(.link-arrow) { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.sub-col a:not(.link-arrow):hover { background: var(--lilac-wash); }
.sub-col a:not(.link-arrow):hover b { color: var(--purple); }
.sub-col b { display: block; font-weight: 600; font-size: 15px; }
.sub-col span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.sub-steps ol { counter-reset: s; margin-bottom: 8px; }
.sub-steps li { counter-increment: s; font-weight: 500; font-size: 15px; padding: 4px 0; }
.sub-steps li::before { content: counter(s) ". "; font-weight: 600; }
@media (min-width: 1024px) {
  .sub { position: absolute; left: -120px; top: 100%; z-index: 80; width: min(880px, 90vw); grid-template-columns: 1fr 1fr .7fr; gap: 24px; padding: 24px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(27, 10, 46, .22); border: 1px solid var(--line-light); }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: grid; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
  .sub-steps { border-left: 1px solid var(--line-light); padding-left: 24px; }
}
@media (max-width: 1023px) {
  .sub { width: 100%; padding: 8px 0 16px; }
  .sub-h { color: var(--lilac); }
  .sub-col span { color: var(--on-dark-soft); }
  .sub-col a:not(.link-arrow):hover { background: rgba(255, 255, 255, .08); }
  .sub-col a:not(.link-arrow):hover b { color: #fff; }
  .sub .link-arrow { color: var(--lilac); text-decoration-color: var(--lilac); }
  .has-sub.open .sub { display: block; }
  .has-sub .nav-link { flex: 1; }
  .sub-toggle { width: 56px; min-height: 56px; margin-left: 0; border-bottom: 1px solid var(--line-dark); }
  .sub-col { margin-top: 12px; }
  .sub-steps { margin-top: 16px; }
}

/* ───────── spacing rhythm (one scale, tighter and consistent) ─────────
   section: 56→96px vertical · header→content: 28→44px · eyebrow→title: 14px */
.sec { padding: clamp(56px, 6.5vw, 68px) 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head .lead { margin-top: 14px; }
.eyebrow { margin-bottom: 14px; }
.scale-sec { padding-bottom: clamp(32px, 4.5vw, 56px); }
.clients { padding: clamp(32px, 4vw, 48px) 0; }
.clients-h { margin-bottom: 22px; }
.seg, .filters { margin-bottom: 24px; }
.closing, .close-line { margin-top: 32px; }
.close-line + .closing { margin-top: 12px; }
.footer { padding: 56px 0 28px; }
@media (max-width: 640px) {
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 24px; }
  .closing, .close-line { margin-top: 24px; }
}

/* back to top */
.to-top { position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 60; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #6E10A6; border-radius: 50%; background: #C5F04A; color: #1B0A2E; cursor: pointer; box-shadow: 0 8px 24px rgba(27, 10, 46, .3); transition: transform .15s, box-shadow .15s; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 10, 46, .38); }
.to-top:focus-visible { outline: 3px solid #6E10A6; outline-offset: 3px; }

/* ───────── motion ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
@media (prefers-reduced-motion: no-preference) {
  /* hero: staggered entrance */
  .js .hero-copy > * { animation: rise .7s var(--ease) both; }
  .js .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .js .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .js .hero-copy > :nth-child(4), .js .hero-copy > :nth-child(5) { animation-delay: .3s; }
  .js .hero-copy > :nth-child(6) { animation-delay: .4s; }
  .js .hero-photo { animation: fadein 1s .25s var(--ease) both; }
  /* FAQ answer eases in */
  .faq-a:not([hidden]) { animation: rise .35s var(--ease); }
  /* buttons */
  .btn { transition: filter .15s, transform .15s, background .15s, color .15s, box-shadow .2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  /* photos and stat figures */
  .prog-photo img, .door img { transition: transform .6s var(--ease); }
  .stat-fig { transition: transform .25s var(--ease); }
  .stat:hover .stat-fig { transform: translateY(-2px); }
}

/* ───────── hero depth: emerging cards, pointer parallax, photo drift ───────── */
@keyframes emerge { from { opacity: 0; translate: 0 18px; scale: .86; filter: blur(8px); } }
@keyframes pop { from { opacity: 0; scale: .6; } }
@keyframes photo-drift { from { translate: 0 0; } to { translate: 0 7%; } }
.glass-card { transform: translate(calc(var(--px, 0) * var(--depth, 10) * 1px), calc(var(--py, 0) * var(--depth, 10) * .6px)); transition: transform .6s var(--ease); }
.gc-balance { --depth: 16; }
.gc-goal { --depth: -12; }
.gc-item { --depth: 20; }
@media (prefers-reduced-motion: no-preference) {
  .glass-card { animation: emerge 1s var(--ease) .5s backwards, float 7s ease-in-out 1.5s infinite; }
  .gc-goal { animation-delay: .7s, 1.5s; }
  .gc-item { animation-delay: .9s, 1.5s; }
  .chip-pts { animation: pop .5s var(--ease) 1.4s backwards; }
  @supports (animation-timeline: scroll()) {
    .hero-photo img { scale: 1.1; animation: photo-drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}

/* client logos: every mark is trimmed and sized into one box (sizes.json), rendered white */
.cl img { width: var(--w); height: var(--h); max-width: none; object-fit: contain; }
@media (max-width: 640px) { .cl img { width: calc(var(--w) * .72); height: calc(var(--h) * .72); } }

/* clients strip: title and logos read as two separate layers */
.clients { padding: clamp(44px, 5vw, 64px) 0; }
.clients-h { max-width: 640px; margin: 0 auto clamp(32px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 32px); border-bottom: 1px solid rgba(230, 184, 255, .22); }
@media (max-width: 640px) { .clients-h { margin-bottom: 28px; padding-bottom: 22px; } }

/* ───────── mobile hero polish (≤640px) ─────────
   Kept last so it wins over the earlier responsive blocks. */
@media (max-width: 640px) {
  /* group bar: one tidy line */
  .gb-inner { gap: 8px; min-height: 38px; font-size: 11.5px; }
  .gb-link, .gb-stars > * { white-space: nowrap; }
  .gb-link { padding: 10px 0; }
  .gb-stars { gap: 14px; }
  .gb-stars > * { gap: 6px; }
  .gb-stars > *::before { width: 10px; height: 10px; }
  /* hero rhythm */
  .hero { padding-top: 118px; padding-bottom: 96px; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); line-height: 1.02; }
  .hero-copy .lead { font-size: 16.5px; margin-top: 18px; line-height: 1.5; }
  .hero .pill { margin-bottom: 18px; }
  /* audience selector: a two-segment control on one row */
  .hero .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; padding: 4px; margin: 0 0 24px; overflow: visible; border-radius: 14px; }
  .hero .tab { width: auto; min-height: 52px; padding: 6px 8px; font-size: 14px; line-height: 1.2; text-align: center; border-radius: 11px; }
  .hero .tab[aria-selected="true"]::before { display: none; }
  /* calls to action: full width, stacked, same size */
  .cta-row { flex-direction: column; gap: 12px; margin-top: 28px; }
  .cta-row .btn { width: 100%; min-height: 54px; justify-content: center; }
  /* visual: calmer, cards no longer cover the subject */
  .hero-photo { aspect-ratio: 4 / 3.7; }
  .gc-balance { display: none; }
  .gc-goal { top: auto; bottom: -20px; left: auto; right: 14px; padding: 12px 14px; }
  .hero-visual .illus-label { margin-top: 36px; text-align: center; }
}
@media (max-width: 420px) {
  .gb-stars > .gb-soon { display: none; }
}

/* ───────── header: same shape and sizes as Linex Loyalty (24px radius, same paddings), Rewards colors ───────── */
.nav-wrap { top: 12px; padding: 0; margin-top: 12px; margin-bottom: -84px; }
.nav { border-radius: 24px; }
.nav-inner { gap: 20px; min-height: 0; padding: 10px 12px 10px 20px; }
.logo-link { min-height: 50px; }
.logo-img { height: 50px; }
.nav-panel { gap: 20px; }
.nav-list { gap: 4px; }
.nav-link { min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; }
.nav-end { gap: 12px; }
.lang { gap: 0; padding: 3px; border-radius: 12px; font: 600 13px/1 var(--font); }
.lang a, .lang-cur { min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 9px; }
.lang-cur { background: rgba(255, 255, 255, .16); font-weight: 600; }
.nav-end .btn-sm { min-height: 44px; padding: 8px 18px; font-size: 14px; border-radius: 12px; }
.sub { top: calc(100% + 8px); }
@media (max-width: 1240px) {
  .nav-inner { gap: 20px; padding: 10px 12px 10px 20px; }
  .nav-link { padding: 0 12px; font-size: 14px; }
  .logo-img { height: 50px; }
  .nav-panel { gap: 12px; }
  .nav-end .btn { padding: 8px 18px; }
}
@media (max-width: 1023px) {
  .nav-inner { padding: 10px 12px 10px 20px; }
  .nav-link { font-size: 22px; }
}
@media (max-width: 400px) { .nav-inner { gap: 8px; padding-left: 16px; } .logo-img { height: 40px; } }

/* ── group bar: deep aubergine with a lima rule, so it never blends with the browser's light/dark toolbar ── */
.group-bar { background: var(--aubergine); color: #fff; border-bottom: 2px solid var(--lima); }
.group-bar .gb-link, .gb-stars > * { color: #fff; }
.group-bar .gb-link:hover { text-decoration-color: var(--lima); }
.gb-soon { color: var(--on-dark-soft); opacity: .75; }
.gb-stars > *::before { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }
.gb-current::before { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }

/* hero "Progress to goal" card: keep it off the subject's face. Banks photo has the face on the right (card left), brands photo has it on the left (card right). */
main[data-audience="brands"] .gc-goal { left: auto; right: -14px; top: 10%; }
@media (max-width: 1023px) { main[data-audience="brands"] .gc-goal { right: 12px; } }
@media (max-width: 640px) { main[data-audience="brands"] .gc-goal { top: auto; bottom: -20px; right: 14px; } }

/* lead form: required vs optional */
.req { color: #b3261e; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted-2); }
.req-note { font-size: 13px; color: var(--muted-2); }

/* scale strip: figures and labels centered in each cell */
.stat { align-items: center; text-align: center; padding: 4px 18px; }
.stat:first-child { padding-left: 18px; }
.stat-shield { justify-content: center; }
@media (max-width: 1023px) { .stat:nth-child(4) { padding-left: 18px; } }
@media (max-width: 640px) { .stat:nth-child(odd) { padding-left: 18px; } }
.scale-card .eyebrow { display: flex; justify-content: center; }
.scale-card .sc-line { text-align: center; }

/* ══ v3 · Philippe feedback ══ */
/* 1.2 buttons: 12px radius everywhere (per Diego; the v3 spec said 6px) */
:root { --r-btn: 12px; }
.btn, .btn-sm, .nav-end .btn-sm, .tab, .chip, .hero .tab, .nav-toggle, .to-top, .sub-toggle, .faq-q, .lang, .lang a, .lang-cur { border-radius: 12px; }
.seg, .filters, .hero .seg { border-radius: 16px; }

/* 1.3 / 1.4 hero: gradient starts lighter; two base variants (A default, B via ?base=b) for review */
.hero { --b-top: #6A2BB5; --b-mid: #3B1470; --b-bot: #1B0A2E; --glow: rgba(197, 240, 74, .34); }
html[data-base="b"] .hero { --b-top: #3F2BD6; --b-mid: #261A86; --b-bot: #120A3A; --glow: rgba(197, 240, 74, .30); }
.hero-bg .s2 { filter: none; background: linear-gradient(180deg, var(--b-top) 0%, var(--b-mid) 52%, var(--b-bot) 100%); }
.hero-bg .s2::after { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 55% at 100% 0%, var(--glow), transparent 72%); }
@media (max-width: 1023px) { .hero-bg .s2::after { display: none; } }
.hero-copy .lead, .hero .tab { color: #fff; }
.hero .tab[aria-selected="true"] { color: var(--aubergine); }

/* hero panels: glass (translucent fill, thin light border, backdrop blur) */
.glass-card { background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .07)), rgba(27, 10, 46, .38); border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 18px 44px rgba(10, 2, 24, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.glass-card small { color: #fff; }
@supports not (backdrop-filter: blur(1px)) { .glass-card { background: var(--surface); } }

/* 4.1 no lima card backgrounds: lima only as a stripe */
.step-lima { background: #fff; border: 1px solid var(--line-light); border-top: 10px solid var(--lima); color: var(--ink); }
.step-lima .step-n { color: var(--aubergine); }
.step-lima p { color: var(--muted); }
.res-lima { background: #fff; border: 1px solid var(--line-light); color: var(--ink); }
.res-lima .res-fig { color: var(--aubergine); border-bottom: 10px solid var(--lima); align-self: flex-start; padding-bottom: 4px; }
.res-lima p { color: var(--muted); }

/* 2.2 interactive constellation */
.cmap-line { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 3 7; transition: stroke .25s, stroke-width .25s; }
.cmap-faint { stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 3 7; }
.cmap-name { font: 600 14px Geist, Arial, sans-serif; fill: #fff; text-anchor: middle; }
.cmap-sub { font: 500 11px Geist, Arial, sans-serif; fill: var(--on-dark-soft); text-anchor: middle; }
.cmap-halo { fill: rgba(197, 240, 74, 0); stroke: transparent; stroke-width: 2; transition: fill .25s; }
.cmap-dot { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.cmap-hit { fill: transparent; }
a.cmap-node { cursor: pointer; outline: none; }
a.cmap-node:hover .cmap-name, a.cmap-node:focus-visible .cmap-name { text-decoration: underline; text-underline-offset: 3px; }
a.cmap-node:focus-visible .cmap-halo { stroke: var(--lima); fill: rgba(197, 240, 74, .2); }
a.cmap-node:hover .cmap-halo, .cmap-node[data-star="loyalty"]:hover .cmap-halo { fill: rgba(197, 240, 74, .26); }
a.cmap-node:hover .cmap-dot { transform: scale(1.3); }
#cmap[data-active="loyalty"] .cmap-node[data-star="loyalty"] .cmap-halo,
#cmap[data-active="travel"] .cmap-node[data-star="travel"] .cmap-halo,
#cmap[data-active="marketplace"] .cmap-node[data-star="marketplace"] .cmap-halo { fill: rgba(197, 240, 74, .3); }
#cmap[data-active="loyalty"] .cmap-node[data-star="loyalty"] .cmap-dot,
#cmap[data-active="travel"] .cmap-node[data-star="travel"] .cmap-dot,
#cmap[data-active="marketplace"] .cmap-node[data-star="marketplace"] .cmap-dot { transform: scale(1.3); }
#cmap[data-active="loyalty"] .cmap-line[data-line="loyalty"],
#cmap[data-active="travel"] .cmap-line[data-line="travel"],
#cmap[data-active="marketplace"] .cmap-line[data-line="marketplace"] { stroke: var(--lima); stroke-width: 3; stroke-dasharray: none; }
.star { transition: border-color .25s, box-shadow .25s; }
.star:focus { outline: none; }
.star:hover, .star:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 1px var(--lilac); }
.star-main:hover, .star-main:focus-within { border-color: var(--lima); box-shadow: 0 0 0 1px var(--lima); }
@media (prefers-reduced-motion: reduce) { .cmap-line, .cmap-dot, .cmap-halo, .star { transition: none; } }

/* 2.3 company */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line-card); border-radius: var(--r-card); padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.person-photo { position: relative; aspect-ratio: 4 / 5; margin-bottom: 12px; border-radius: 12px; background: linear-gradient(160deg, var(--lilac-wash), #E3CDF4); display: grid; place-items: center; overflow: hidden; }
.person-photo svg { width: 52%; height: auto; fill: rgba(110, 16, 166, .3); margin-top: 14%; }
.person-photo span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.person h3 { font-size: 18px; color: var(--muted-2); }
.person-role { font-weight: 700; color: var(--purple); font-size: 15px; }
.person-line { font-size: 15px; color: var(--muted-2); }
@media (max-width: 1023px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { gap: 12px; } .person { padding: 12px 12px 16px; } .person h3 { font-size: 16px; } }

/* 1.5 blur the wall sign ("PERSONAS") that peeks into the top-left corner of the banks hero photo */
main[data-audience="banks"] .hero-photo::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; width: 38%; height: 17%; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(27, 10, 46, .18); -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent), linear-gradient(180deg, #000 60%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 55%, transparent), linear-gradient(180deg, #000 60%, transparent); mask-composite: intersect; pointer-events: none; }
@media (max-width: 1023px) { main[data-audience="banks"] .hero-photo::before { width: 66%; height: 26%; } }

/* hero badge: lima is reserved for actions, so the badge is a glass chip with a lilac dot */
.hero .pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(230, 184, 255, .55); border-radius: 8px; padding: 7px 14px; font-weight: 600; letter-spacing: .01em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero .pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 3px rgba(230, 184, 255, .25); }

/* hero headline accent in lima (per Diego) */
.hero h1 .accent { color: var(--lima); }

/* constellation (hybrid): slightly larger, visible URLs, slow flow + soft "you are here" pulse, no panel */
.constellation-fig { max-width: 820px; }
.cmap-name { font-size: 15px; }
.cmap-sub { font-size: 12px; }
.cmap-url { fill: var(--lima); font-weight: 600; }
.cmap-line { stroke: rgba(255, 255, 255, .4); stroke-width: 1.75; }
@keyframes cmap-flow { to { stroke-dashoffset: -20; } }
.cmap-pulse { fill: none; stroke: var(--lima); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: cmap-ping 3s ease-out infinite; }
@keyframes cmap-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }
a.cmap-node:hover .cmap-url { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .cmap-name { font-size: 19px; } .cmap-sub { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .cmap-line, .cmap-pulse { animation: none; } }

/* ── legal pages (imported from linex-loyalty.com) ── */
.lg-page { padding: 0; }
.lg-hero { background: var(--aubergine); color: #fff; padding: 150px 0 56px; }
.lg-hero .link-arrow { color: var(--lima); text-decoration: none; margin-bottom: 18px; }
.lg-pill { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lilac); margin-bottom: 12px; }
.lg-hero h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 22ch; margin-bottom: 18px; }
.lg-lead { max-width: 68ch; color: #fff; font-size: 18px; }
.lg-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-meta span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(230, 184, 255, .5); background: rgba(255, 255, 255, .1); }
.lg-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 56px 96px; align-items: start; max-width: calc(var(--w) + 2 * var(--gutter)); }
.lg-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow: auto; font-size: 14px; grid-column: 1; grid-row: 1; }
.lg-toc h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.lg-toc ol, .lg-toc-mobile ol { display: grid; gap: 2px; }
.lg-toc a, .lg-toc-mobile a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lg-toc a:hover, .lg-toc-mobile a:hover { background: var(--lilac-wash); color: var(--aubergine); }
.lg-toc-mobile { display: none; grid-column: 1 / -1; border: 1px solid var(--line-card); border-radius: 12px; padding: 4px 8px; }
.lg-toc-mobile summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; padding: 0 8px; }
.lg-doc { grid-column: 2; grid-row: 1; max-width: 78ch; color: var(--ink); }
.lg-doc .chap { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line-card); scroll-margin-top: 100px; }
.lg-doc .chap:last-child { border-bottom: 0; }
.lg-doc .chap-n { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.lg-doc h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; letter-spacing: -.01em; }
.lg-doc h3 { font-size: 19px; margin: 26px 0 8px; }
.lg-doc h4 { font-size: 16px; margin: 20px 0 6px; }
.lg-doc p { margin: 0 0 14px; color: var(--muted); }
.lg-doc strong { color: var(--ink); }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px; padding-left: 1.3em; color: var(--muted); }
.lg-doc ul { list-style: disc; }
.lg-doc ol { list-style: decimal; }
.lg-doc ol.alpha { list-style: lower-alpha; }
.lg-doc li { margin-bottom: 8px; padding-left: 4px; }
.lg-doc a { color: var(--purple); text-underline-offset: 3px; }
.lg-doc .legal-card { background: var(--section-gray); border: 1px solid var(--line-card); border-radius: 12px; padding: 20px 22px; margin: 0 0 16px; }
.lg-doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.lg-doc dt { font-weight: 700; }
.lg-doc dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.lg-doc .legal-note { border-left: 6px solid var(--purple); background: var(--lilac-wash); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 16px 0; }
.lg-doc .legal-note p { margin: 0; color: var(--ink); }
.lg-doc .legal-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line-card); border-radius: 12px; }
.lg-doc .legal-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.lg-doc .legal-table th { text-align: left; background: var(--section-gray); padding: 12px 14px; font-weight: 700; }
.lg-doc .legal-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line-card); color: var(--muted); }
.lg-doc .legal-table td ul { margin: 0; }
@media (max-width: 899px) {
  .lg-wrap { grid-template-columns: 1fr; }
  .lg-toc { display: none; }
  .lg-toc-mobile { display: block; }
  .lg-doc { grid-column: 1; grid-row: auto; }
  .lg-doc dl { grid-template-columns: 1fr; gap: 2px; }
  .lg-doc dd { margin-bottom: 10px; }
  .lg-hero { padding-top: 130px; }
}
.lg-hero .link-arrow.back { display: flex; width: fit-content; }
