/* ============================================================
   DocuEco — Design System
   Style: Clean modern SaaS · Brand teal accents
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --teal-900: #003e52;
  --teal-800: #005a73;
  --teal-700: #007396;   /* primary brand */
  --teal-600: #008fb3;
  --teal-500: #00a3c4;
  --teal-400: #2bbdd9;
  --teal-300: #7ad5e8;
  --teal-100: #d4f1f7;
  --teal-50:  #ecfafd;

  /* Neutrals (slate) */
  --ink-900: #0b1620;
  --ink-800: #16242f;
  --ink-700: #243441;
  --ink-600: #3a4d5c;
  --ink-500: #5a6e7d;
  --ink-400: #8497a4;
  --ink-300: #b4c2cc;
  --ink-200: #dbe3e9;
  --ink-100: #eef3f6;
  --ink-50:  #f6f9fb;
  --white:   #ffffff;

  /* Accents */
  --amber: #e0922f;
  --amber-soft: #fdf2e2;
  --violet: #6366f1;
  --violet-soft: #eef0ff;
  --green: #16a37a;
  --green-soft: #e4f6f0;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--ink-50);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-400);
  --border: var(--ink-200);
  --border-soft: var(--ink-100);
  --primary: var(--teal-700);
  --primary-hover: var(--teal-800);
  --ring: rgba(0,115,150,.35);

  /* Type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Space (8pt) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --s9: 6rem; --s10: 8rem;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(11,22,32,.06), 0 1px 3px rgba(11,22,32,.05);
  --sh-md: 0 4px 12px rgba(11,22,32,.07), 0 2px 4px rgba(11,22,32,.05);
  --sh-lg: 0 12px 32px rgba(11,22,32,.10), 0 4px 8px rgba(11,22,32,.05);
  --sh-xl: 0 24px 60px rgba(11,22,32,.14), 0 8px 16px rgba(11,22,32,.06);
  --sh-teal: 0 12px 30px rgba(0,115,150,.28);

  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; width: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.section { padding-block: var(--s9); }
.section--tight { padding-block: var(--s8); }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink-900); color: var(--ink-100); }
.bg-brand {
  background: linear-gradient(150deg, var(--teal-800) 0%, var(--teal-700) 45%, var(--teal-500) 100%);
  color: #fff;
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
.bg-brand .eyebrow, .bg-ink .eyebrow { color: var(--teal-300); }

h1, h2, h3 { line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.display { font-size: clamp(2.25rem, 5.2vw, var(--fs-5xl)); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.75rem, 3.6vw, var(--fs-3xl)); }
.h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: var(--lh-body); }
.muted { color: var(--text-muted); }
.bg-brand .muted, .bg-ink .muted { color: rgba(255,255,255,.8); }
.text-grad {
  background: linear-gradient(100deg, var(--teal-700), var(--teal-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: var(--s7); }
.section-head .eyebrow { margin-bottom: var(--s3); }
.section-head h2 { margin-bottom: var(--s4); }
.section-head .lead { margin-inline: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--r-full);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--sh-teal); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,115,150,.34); }
.btn--ghost { background: var(--white); color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--teal-400); color: var(--primary); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: var(--fs-base); }
.btn--text { padding: 0; color: var(--primary); font-weight: 600; }
.btn--text:hover { gap: var(--s3); }
.btn--text svg { transition: transform .2s var(--ease); }
.btn--text:hover svg { transform: translateX(3px); }

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--border-soft); box-shadow: var(--sh-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brandmark { display: block; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,115,150,.28)); }
.nav__wordmark { display: inline-flex; }
.nav__wordmark-d { color: var(--ink-900); }
.nav--on-dark .nav__wordmark-d { color: #fff; }
/* "Eco" in a subtle solid brand accent */
.nav__wordmark-e { color: var(--teal-600); }
.nav--on-dark .nav__wordmark-e { color: var(--teal-400); }
.footer__logo { height: 200px; width: auto; padding-bottom: 0.5rem; }
.nav__links { display: flex; align-items: center; gap: var(--s2); }
.nav__link {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-600);
  padding: .55rem .85rem; border-radius: var(--r-full); transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); background: var(--teal-50); }
.nav__actions { display: flex; align-items: center; gap: var(--s3); }
.lang {
  display: inline-flex; align-items: center; background: var(--ink-100);
  border-radius: var(--r-full); padding: 3px; font-size: var(--fs-xs); font-weight: 700;
}
.lang button { padding: .3rem .6rem; border-radius: var(--r-full); color: var(--ink-500); transition: all .2s; }
.lang button.is-active { background: #fff; color: var(--primary); box-shadow: var(--sh-sm); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + var(--s8)); padding-bottom: var(--s9); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero__orb--1 { top: -10%; right: -5%; width: 480px; height: 480px; background: radial-gradient(circle, var(--teal-300), transparent 70%); }
.hero__orb--2 { bottom: -20%; left: -10%; width: 420px; height: 420px; background: radial-gradient(circle, var(--violet-soft), transparent 70%); }
.hero__grid-bg { position: absolute; inset: 0; background-image: radial-gradient(var(--ink-200) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%); opacity: .5; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; }
.hero__eyebrow { margin-bottom: var(--s4); }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: var(--s5); }
.hero__sub { font-size: var(--fs-lg); color: var(--text-muted); max-width: 34ch; margin-bottom: var(--s6); }
.hero__cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.hero__trust { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-faint); font-weight: 500; }
.hero__trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust-item svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- APP MOCKUP ---------- */
.mockup { position: relative; }
.mockup__win {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  border: 1px solid var(--border-soft); overflow: hidden;
}
.mockup__bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border-soft); background: var(--ink-50); }
.mockup__dots { display: flex; gap: 6px; }
.mockup__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200); }
.mockup__dots span:nth-child(1) { background: #ff5f57; }
.mockup__dots span:nth-child(2) { background: #febc2e; }
.mockup__dots span:nth-child(3) { background: #28c840; }
.mockup__appname { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-500); }
.mockup__body { padding: var(--s5); }
.mockup__title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); margin-bottom: var(--s3); }
.mockup__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-bottom: var(--s5); }
.mockup__stat { padding: var(--s4); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 4px; }
.mockup__stat--t { background: var(--teal-50); }
.mockup__stat--v { background: var(--violet-soft); }
.mockup__stat--a { background: var(--amber-soft); }
.mockup__stat-num { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.mockup__stat--t .mockup__stat-num { color: var(--teal-700); }
.mockup__stat--v .mockup__stat-num { color: var(--violet); }
.mockup__stat--a .mockup__stat-num { color: var(--amber); }
.mockup__stat-label { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 600; }
.mockup__row { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) 0; }
.mockup__row + .mockup__row { border-top: 1px solid var(--border-soft); }
.mockup__row-info { flex: 1; }
.mockup__row-name { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.mockup__progress { height: 6px; border-radius: var(--r-full); background: var(--ink-100); overflow: hidden; }
.mockup__progress span { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--teal-600), var(--teal-400)); width: 0; }
.mockup__badge { font-size: var(--fs-xs); font-weight: 700; padding: .25rem .6rem; border-radius: var(--r-full); }
.mockup__badge--active { background: var(--green-soft); color: var(--green); }
.mockup__badge--pending { background: var(--amber-soft); color: var(--amber); }
.mockup__float {
  position: absolute; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-lg);
  border: 1px solid var(--border-soft); padding: var(--s3) var(--s4); display: flex; align-items: center; gap: var(--s3);
  font-size: var(--fs-sm); font-weight: 600;
}
.mockup__float svg { width: 22px; height: 22px; }
.mockup__float--tr { top: -22px; right: -14px; }
.mockup__float--bl { bottom: -22px; left: -18px; }
.mockup__float-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.mockup__float-ic--green { background: var(--green-soft); color: var(--green); }
.mockup__float-ic--teal { background: var(--teal-100); color: var(--teal-700); }

/* ---------- LOGOS / STRIP ---------- */
.strip { padding-block: var(--s7); border-block: 1px solid var(--border-soft); }
.strip__label { text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s5); }
.strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4) var(--s6); }
.strip__item { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; color: var(--ink-500); font-size: var(--fs-sm); }
.strip__item svg { width: 20px; height: 20px; color: var(--ink-400); }

/* ---------- CARDS / GRID ---------- */
.grid { display: grid; gap: var(--s5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: var(--s6); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border); }
.card__ic { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s4); }
.card__ic svg { width: 26px; height: 26px; }
.card__ic--teal { background: var(--teal-100); color: var(--teal-700); }
.card__ic--violet { background: var(--violet-soft); color: var(--violet); }
.card__ic--amber { background: var(--amber-soft); color: var(--amber); }
.card__ic--green { background: var(--green-soft); color: var(--green); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-body); }

/* feature card with bigger reach */
.feature { position: relative; overflow: hidden; }
.feature::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; background: radial-gradient(circle, var(--teal-50), transparent 70%); opacity: 0; transition: opacity .3s; }
.feature:hover::after { opacity: 1; }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text .eyebrow { margin-bottom: var(--s3); }
.split__text h2 { margin-bottom: var(--s4); }
.split__text .lead { margin-bottom: var(--s5); }

/* check list */
.checks { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-base); }
.checks li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green); margin-top: 1px; }
.checks li strong { font-weight: 600; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); counter-reset: step; }
.step { position: relative; }
.step__num {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; color: var(--primary); background: var(--teal-50);
  border: 1.5px solid var(--teal-100); margin-bottom: var(--s4);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }
.step:not(:last-child) .step__num::after {
  content: ''; position: absolute; top: 24px; left: 60px; right: -12px; height: 2px;
  background: linear-gradient(90deg, var(--teal-200, var(--teal-100)), transparent);
}

/* ---------- AUDIENCE (two portals) ---------- */
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.portal { padding: var(--s7); border-radius: var(--r-xl); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.portal > .btn { margin-top: auto; align-self: flex-start; }
.portal--org { background: linear-gradient(155deg, var(--teal-800), var(--teal-600)); color: #fff; }
.portal--client { background: var(--ink-900); color: var(--ink-100); }
.portal__tag { display: inline-flex; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .85rem; border-radius: var(--r-full); background: rgba(255,255,255,.14); margin-bottom: var(--s4); }
.portal h3 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--s3); }
.portal p { color: rgba(255,255,255,.82); margin-bottom: var(--s5); }
.portal__list { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.portal__list li { display: flex; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.portal__list li svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }

/* ---------- STATS BAND ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5); text-align: center; }
.stat__num { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat__label { font-size: var(--fs-sm); margin-top: var(--s2); }

/* ---------- CTA BAND ---------- */
.cta-band { text-align: center; border-radius: var(--r-xl); padding: var(--s9) var(--s6); position: relative; overflow: hidden; }
.cta-band--dark { background: linear-gradient(180deg, #0c1a22 0%, #0f2029 55%, #0a1620 100%); }
.cta-band--dark::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 15% 0%, rgba(0,163,196,.22), transparent 60%),
    radial-gradient(60% 60% at 90% 100%, rgba(99,102,241,.18), transparent 60%); }
.cta-band--dark > * { position: relative; z-index: 1; }
.cta-band__orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.cta-band h2 { color: #fff; margin-bottom: var(--s4); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto var(--s6); }
.cta-band .hero__cta { justify-content: center; margin-bottom: 0; }

/* ---------- PROBLEM LIST ---------- */
.pain { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.pain__item { display: flex; gap: var(--s3); padding: var(--s5); background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); }
.pain__item svg { width: 22px; height: 22px; color: var(--amber); flex-shrink: 0; }
.pain__item p { font-size: var(--fs-sm); color: var(--ink-700); }

/* ---------- INDUSTRY CARDS ---------- */
.industry { display: flex; flex-direction: column; }
.industry__ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); margin-bottom: var(--s4); }
.industry__ic svg { width: 28px; height: 28px; }
.industry h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.industry__tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.tag { font-size: var(--fs-xs); font-weight: 600; padding: .3rem .7rem; border-radius: var(--r-full); background: var(--ink-100); color: var(--ink-600); }

/* ---------- DIFFERENTIATOR ---------- */
.diff { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s5); align-items: stretch; }
.diff__box { padding: var(--s6); border-radius: var(--r-lg); }
.diff__box--no { background: #fff; border: 1px solid var(--border); }
.diff__box--yes { background: linear-gradient(155deg, var(--teal-800), var(--teal-600)); color: #fff; box-shadow: var(--sh-lg); }
.diff__box h3 { font-size: var(--fs-lg); margin-bottom: var(--s4); }
.diff__box--yes h3 { color: #fff; }
.diff__box ul { display: grid; gap: var(--s3); }
.diff__box li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); }
.diff__box li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.diff__box--no li svg { color: var(--ink-400); }
.diff__arrow { display: grid; place-items: center; color: var(--teal-500); }
.diff__arrow svg { width: 32px; height: 32px; }
@media (max-width: 820px) {
  .diff { grid-template-columns: 1fr; }
  .diff__arrow { transform: rotate(90deg); padding: var(--s2); }
}

/* ---------- FAQ / ACCORDION ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--s3); }
.faq__item { border: 1px solid var(--border-soft); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); width: 100%; text-align: left; padding: var(--s5); font-weight: 600; font-size: var(--fs-base); }
.faq__q svg { width: 20px; height: 20px; color: var(--primary); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 var(--s5) var(--s5); color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- ABOUT / PROSE ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose p { font-size: var(--fs-lg); color: var(--ink-700); margin-bottom: var(--s5); }
.mission-card { max-width: 900px; margin-inline: auto; text-align: left; border-radius: var(--r-xl); padding: var(--s7) var(--s7); position: relative; overflow: hidden; }
.mission-card .eyebrow { margin-bottom: var(--s3); }
.mission-card blockquote { font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: #fff; max-width: 60ch; }
.maker { display: flex; align-items: center; gap: var(--s5); max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s6); }
.maker__ic { width: 64px; height: 64px; border-radius: var(--r-md); background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; flex-shrink: 0; }
.maker__ic svg { width: 32px; height: 32px; }
.maker__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); }
.maker h3 { font-size: var(--fs-lg); margin: 2px 0 4px; }
.maker p { font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 560px) { .maker { flex-direction: column; text-align: center; } }
/* maker integrated on a dark section */
.maker--dark { margin-top: var(--s8); background: rgba(255,255,255,.04); border-color: var(--d-border, rgba(255,255,255,.09)); }
.maker--dark .maker__ic { background: rgba(0,163,196,.16); color: #5fe0f2; }
.maker--dark .maker__label { color: var(--d-fg-muted, #93a6b0); }
.maker--dark h3 { color: #fff; }
.maker--dark p { color: var(--d-fg-muted, #93a6b0); }
.maker--dark .btn--text { color: #5fe0f2; }

/* ---------- ABOUT STORY ---------- */
.about-story { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s8); align-items: center; }
.about-story__text .eyebrow { margin-bottom: var(--s4); }
.about-story__lead { font-size: var(--fs-xl); font-weight: 600; line-height: 1.45; color: var(--text); margin-bottom: var(--s5); }
.about-story__text p { font-size: var(--fs-base); color: var(--text-muted); line-height: 1.8; margin-bottom: var(--s4); }
.about-story__text p:last-child { margin-bottom: 0; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: var(--s4); padding: var(--s7) var(--s6); background: linear-gradient(160deg, var(--teal-50), #fff); border: 1px solid var(--teal-100); border-radius: var(--r-xl); box-shadow: var(--sh-md); }
.about-point { display: flex; align-items: flex-start; gap: var(--s4); font-size: var(--fs-base); font-weight: 600; color: var(--text); line-height: 1.4; }
.about-point__ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-700); color: #fff; box-shadow: 0 6px 16px -6px var(--ring); }
.about-point__ic svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .about-story { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact-card { max-width: 560px; margin-inline: auto; text-align: center; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: var(--s8) var(--s6); box-shadow: var(--sh-md); }
.contact-card__ic { width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); margin: 0 auto var(--s5); }
.contact-card__ic svg { width: 30px; height: 30px; }
.contact-card__email { display: block; font-size: var(--fs-xl); font-weight: 700; color: var(--primary); margin-block: var(--s3) var(--s6); }
.form-grid { display: grid; gap: var(--s4); text-align: left; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); padding: .85rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--ink-50);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-400); background: #fff; box-shadow: 0 0 0 4px var(--teal-50); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- FORM SUBMIT SPINNER ---------- */
.btn[data-loading] { position: relative; color: transparent !important; pointer-events: none; }
.btn[data-loading]::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------- CONTACT RESULT MODAL ---------- */
.cmodal-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(11,22,32,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: var(--s5); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.cmodal-overlay.is-open { opacity: 1; visibility: visible; }
.cmodal {
  width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--sh-xl); padding: var(--s7) var(--s6); text-align: center;
  transform: translateY(16px) scale(.96); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cmodal-overlay.is-open .cmodal { transform: translateY(0) scale(1); opacity: 1; }
.cmodal__ic {
  width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center;
  margin: 0 auto var(--s5); background: var(--green-soft); color: var(--green);
}
.cmodal__ic svg { width: 30px; height: 30px; }
.cmodal--error .cmodal__ic { background: var(--amber-soft); color: var(--amber); }
.cmodal__title { font-size: var(--fs-xl); font-weight: 800; margin-bottom: var(--s2); }
.cmodal__text { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-body); margin-bottom: var(--s6); }
.cmodal__close { width: 100%; }

/* ---------- BLOG / RESOURCES ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.post__cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal-100), var(--teal-50)); display: grid; place-items: center; color: var(--teal-600); }
.post__cover svg { width: 48px; height: 48px; opacity: .6; }
.post__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.post__cat { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: var(--s2); }
.post h3 { font-size: var(--fs-lg); margin-bottom: var(--s3); line-height: var(--lh-snug); }
.post p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s4); flex: 1; }
.post__meta { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------- PAGE HEADER ---------- */
.page-head { padding-top: calc(var(--nav-h) + var(--s8)); padding-bottom: var(--s7); text-align: center; position: relative; overflow: hidden; }
.page-head .eyebrow { margin-bottom: var(--s4); }
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--s4); }
.page-head .lead { max-width: 620px; margin-inline: auto; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink-900); color: var(--ink-300); padding-block: var(--s8) var(--s6); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { max-width: 280px; }
.footer__brand .nav__brand { color: #fff; margin-bottom: var(--s4); }
.footer__brand p { font-size: var(--fs-sm); color: var(--ink-400); }
.footer__col h4 { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); margin-bottom: var(--s4); }
.footer__col a { display: block; font-size: var(--fs-sm); color: var(--ink-300); padding-block: .35rem; transition: color .2s; }
.footer__col a:hover { color: var(--teal-300); }
.footer__social { display: flex; gap: var(--s3); margin-top: var(--s4); }
.footer__social-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--ink-200); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.footer__social-link:hover { background: var(--teal-700); border-color: var(--teal-600); color: #fff; transform: translateY(-2px); }
.footer__social-link svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-top: var(--s6); font-size: var(--fs-xs); color: var(--ink-500); flex-wrap: wrap; }
.footer__company { color: var(--teal-300); font-weight: 600; transition: color .2s; }
.footer__company:hover { color: var(--teal-400); }
.dark .btn--text { color: #5fe0f2; }

/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed; right: var(--s5); bottom: var(--s5); z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--primary-hover); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- REVEAL ANIMATIONS (richer) ---------- */
.reveal {
  opacity: 0; transform: translateY(38px) scale(.97);
  filter: blur(6px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* directional & special reveals */
.reveal--left { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.reveal--left.is-in, .reveal--right.is-in { transform: none; }
.reveal--scale { transform: scale(.9); filter: blur(8px); }
.reveal--scale.is-in { transform: none; }

/* auto-stagger children of a .reveal-group */
.reveal-group > * { opacity: 0; transform: translateY(34px); filter: blur(5px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); }
.reveal-group.is-in > * { opacity: 1; transform: none; filter: none; }
.reveal-group.is-in > *:nth-child(1){transition-delay:.05s}
.reveal-group.is-in > *:nth-child(2){transition-delay:.13s}
.reveal-group.is-in > *:nth-child(3){transition-delay:.21s}
.reveal-group.is-in > *:nth-child(4){transition-delay:.29s}
.reveal-group.is-in > *:nth-child(5){transition-delay:.37s}
.reveal-group.is-in > *:nth-child(6){transition-delay:.45s}
.reveal-group.is-in > *:nth-child(7){transition-delay:.53s}
.reveal-group.is-in > *:nth-child(8){transition-delay:.61s}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s7); }
  .hero__sub { max-width: none; }
  .mockup { max-width: 520px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step:not(:last-child) .step__num::after { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  /* Page links live inside the dropdown on mobile, not the top bar */
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; padding: var(--s5);
    box-shadow: var(--sh-lg); border-bottom: 1px solid var(--border);
    display: none; flex-direction: column; gap: var(--s2);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: var(--s2); width: 100%; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: var(--s3); width: 100%; }
  .nav__menu .lang { align-self: center; }
  .nav__menu .nav__link { padding: var(--s3) var(--s4); font-size: var(--fs-base); }
  .nav__menu .btn { width: 100%; margin-top: var(--s2); }
  .grid--3, .grid--2, .grid--4, .pain, .post-grid, .portals { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--s6); }
  .split--reverse .split__media { order: 0; }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: var(--s6); }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s6)); }
  .hero__title { font-size: clamp(1.7rem, 7.2vw, 2.1rem); line-height: 1.14; }
  .hero__sub { font-size: var(--fs-base); }
  .mockup { max-width: 100%; }
  .mockup__body { padding: var(--s4); }
  .mockup__stat { padding: var(--s3); }
  .mockup__stat-num { font-size: var(--fs-xl); }
  .mockup__float--tr { right: 0; top: -16px; }
  .mockup__float--bl { left: 0; bottom: -16px; }
  .mockup__float { font-size: var(--fs-xs); padding: var(--s2) var(--s3); }
}
@media (max-width: 480px) {
  :root { --s9: 4rem; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .mockup__float span:not(.mockup__float-ic) { display: none; }
  .mockup__float { padding: var(--s2); }
}

/* nav menu wrapper for desktop is just contents */
@media (min-width: 821px) { .nav__menu { display: contents; } }

/* ============================================================
   Footer legal links (on the dark footer) + cookie consent.
   The footer is dark (ink-900); legal links use light tones.
   The cookie notice/modal float over light page content, so
   they use the light surface theme.
   ============================================================ */
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.footer__legal a,
.footer__legal button.cc-link {
  color: var(--ink-300); font-size: var(--fs-xs); transition: color .2s;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.footer__legal a:hover,
.footer__legal button.cc-link:hover { color: var(--teal-300); }

/* lock scroll when modal open */
body.cc-lock { overflow: hidden; }

/* shared buttons — sized to the system scale (not oversized) */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 var(--s4);
  font-family: var(--font); font-size: var(--fs-sm); font-weight: 600; line-height: 1;
  border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.cc-btn--ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.cc-btn--ghost:hover { color: var(--text); border-color: var(--text-faint); background: var(--ink-50); }
.cc-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cc-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.cc-btn--block { width: 100%; }

/* discreet notice — bottom-right corner, compact, non-blocking.
   z-index above the coming-soon countdown gate (.cd = 9999) so users
   can manage consent even during pre-launch. */
.cc-notice {
  position: fixed; z-index: 10010; right: var(--s5); bottom: var(--s5);
  width: min(330px, calc(100vw - var(--s5) * 2));
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: var(--s4);
  box-shadow: 0 18px 50px rgba(11,22,32,.18);
  animation: ccRise .35s ease both;
}
@media (prefers-reduced-motion: reduce) { .cc-notice { animation: none; } }
@keyframes ccRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cc-notice__text { color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.55; margin-bottom: var(--s3); }
.cc-notice__more { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; font-weight: 600; }
.cc-notice__more:hover { color: var(--primary-hover); }
.cc-notice__actions { display: flex; gap: var(--s2); }
.cc-notice__actions .cc-btn { flex: 1 1 0; padding: 0 var(--s2); font-size: var(--fs-xs); }

/* modal */
.cc-modal { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: var(--s5); }
.cc-modal[hidden] { display: none; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(11,22,32,.55); backdrop-filter: blur(3px); }
.cc-modal__dialog {
  position: relative; width: 100%; max-width: 380px;
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  padding: var(--s5); box-shadow: 0 24px 70px rgba(11,22,32,.28);
  animation: ccRise .3s ease both;
}
.cc-modal__close {
  position: absolute; top: var(--s3); right: var(--s3); width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: .2s;
}
.cc-modal__close:hover { color: var(--text); border-color: var(--text-faint); background: var(--ink-50); }
.cc-modal__title { font-size: var(--fs-xl); color: var(--text); font-weight: 700; margin: 0 0 var(--s2); padding-right: var(--s6); }
.cc-modal__intro { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 var(--s4); }

/* clickable category rows — entire row toggles the switch */
.cc-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%;
  min-height: 44px; padding: var(--s3); margin: 0; text-align: left;
  background: transparent; border: 0; border-top: 1px solid var(--border-soft);
  font-family: var(--font); cursor: pointer; transition: background .18s;
}
.cc-row:not(.cc-row--static):hover { background: var(--ink-50); }
.cc-row--static { cursor: default; }
.cc-row__name { color: var(--text); font-weight: 700; font-size: var(--fs-sm); }
.cc-row__always { font-size: var(--fs-xs); color: var(--primary); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.cc-row:focus-visible { outline: 2px solid var(--teal-400); outline-offset: -2px; border-radius: 8px; }

/* toggle switch (non-interactive itself; the row drives it) */
.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; pointer-events: none; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch__slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--ink-200); border: 1px solid var(--ink-300); transition: .2s;
}
.cc-switch__slider::before {
  content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
  background: var(--white); border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(11,22,32,.25);
}
.cc-switch input:checked + .cc-switch__slider { background: var(--primary); border-color: var(--primary); }
.cc-switch input:checked + .cc-switch__slider::before { transform: translateX(18px); }
/* hover preview: hint the toggle without committing (click confirms) */
.cc-row:not(.cc-row--static):hover .cc-switch input:not(:checked) + .cc-switch__slider { border-color: var(--primary); }

.cc-modal__actions { margin-top: var(--s5); }

