/* ==========================================================================
   CRM+ landing site styles
   Tokens -> base -> layout -> components -> sections -> utilities
   ========================================================================== */

:root {
  --navy: #0B1F4B;
  --navy-2: #132E6B;
  --blue: #1D6FEA;
  --indigo: #4F46E5;
  --teal: #0E9AA7;
  --teal-ink: #0A7C86;
  --teal-soft: #E3F6F7;
  --mint: #5EEAD4;

  --bg: #F6F9FF;
  --bg-tint: #EAF2FF;
  --surface: #FFFFFF;
  --surface-2: #F2F6FD;
  --glass: rgba(255, 255, 255, .72);
  --border: #DCE5F3;
  --text: #0B1F4B;
  --text-2: #3A4C73;
  --muted: #56688F;
  --link: #1757C2;
  --focus: #4F46E5;

  --ok: #0F7B4F;
  --ok-bg: #DDF5EA;
  --warn: #9A5B00;
  --warn-bg: #FFF1D6;
  --bad: #B42318;
  --bad-bg: #FDE4E2;
  --info-bg: #E3EDFF;
  --info: #1745A8;

  --grad-brand: linear-gradient(135deg, var(--blue), var(--indigo));
  --shadow-sm: 0 1px 2px rgba(11, 31, 75, .06), 0 2px 8px rgba(11, 31, 75, .05);
  --shadow: 0 10px 30px -12px rgba(11, 31, 75, .22), 0 4px 12px -6px rgba(11, 31, 75, .08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 75, .35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #061430;
  --bg-tint: #0A1B40;
  --surface: #0E2250;
  --surface-2: #12295C;
  --glass: rgba(18, 41, 92, .66);
  --border: #23396E;
  --text: #EAF1FF;
  --text-2: #C3D2F2;
  --muted: #9DB0D9;
  --link: #8DB8FF;
  --focus: #A5B4FC;
  --teal-ink: #4FD1DB;
  --teal-soft: rgba(14, 154, 167, .16);

  --ok: #5EE0A6;
  --ok-bg: rgba(16, 185, 129, .16);
  --warn: #FFC164;
  --warn-bg: rgba(245, 158, 11, .16);
  --bad: #FF9D94;
  --bad-bg: rgba(239, 68, 68, .16);
  --info-bg: rgba(29, 111, 234, .2);
  --info: #9CC2FF;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 2rem; height: 2rem; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.req { color: var(--bad); font-weight: 600; }
.warn-text { color: var(--bad); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--blue), var(--indigo)); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.2em; border-radius: 12px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-weight: 650; font-size: .975rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { --b-bg: var(--blue); --b-fg: #fff; --b-bd: transparent; background-image: var(--grad-brand); box-shadow: 0 8px 20px -8px rgba(29, 111, 234, .6); }
.btn--ghost { --b-bg: transparent; }
.btn--ghost:hover { --b-bg: var(--surface-2); }
.btn--glass { --b-bg: rgba(255, 255, 255, .1); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn--glass:hover { --b-bg: rgba(255, 255, 255, .18); }
.btn--light { --b-bg: #fff; --b-fg: var(--navy); --b-bd: transparent; }
.btn--lg { min-height: 52px; padding: .8em 1.5em; font-size: 1.02rem; }
.btn--sm { min-height: 38px; padding: .45em .95em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn.is-disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); }

.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 4px 8px;
  min-height: 32px; min-width: 32px; justify-content: center;
  border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 600;
}
.mini-btn--text { color: var(--link); }
.mini-btn--solid { background: var(--blue); color: #fff; border-color: transparent; }
.mini-btn:hover { filter: brightness(1.05); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.tag--sample { background: var(--warn-bg); color: var(--warn); }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.chip--overdue { background: var(--bad-bg); color: var(--bad); }
.chip--due { background: var(--warn-bg); color: var(--warn); }
.chip--up { background: var(--info-bg); color: var(--info); }
.chip--paid, .chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--draft { background: var(--surface-2); color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow--light { color: var(--mint); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94, 234, 212, .2); }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 720px; }
.h-sm { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.h-xs { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.card--dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-color: rgba(255, 255, 255, .1); }
.card--glass {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .nav { background: var(--bg); } }
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__text small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.brand--light, .brand--light .brand__text small { color: #fff; }
.brand--light .brand__text small { color: #B9C8EA; }

.nav__menu { margin-left: auto; }
.nav__menu ul { display: flex; gap: 2px; }
.nav__menu a:not(.btn) {
  display: block; padding: 8px 11px; border-radius: 10px; font-weight: 600; font-size: .92rem;
  color: var(--text-2); text-decoration: none; transition: color .2s, background-color .2s;
}
.nav__menu a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav__menu a.is-active { color: var(--blue); background: var(--info-bg); }
[data-theme="dark"] .nav__menu a.is-active { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__burger, .nav__cta-mobile { display: none; }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

@media (max-width: 1080px) {
  .nav__burger { display: inline-grid; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0; padding: 12px 20px 20px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .js .nav__menu { display: none; }
  .js .nav__menu.is-open { display: block; animation: drop .2s ease; }
  .nav__menu ul { flex-direction: column; }
  .nav__menu a:not(.btn) { padding: 12px; font-size: 1rem; }
  .nav__cta-mobile { display: flex; margin-top: 12px; }
  .nav__actions { margin-left: auto; }
  .no-js .nav__menu { position: static; box-shadow: none; border: 0; background: none; padding: 0; }
  .no-js .nav { height: auto; position: relative; }
  .no-js .nav__inner { flex-wrap: wrap; padding: 10px 20px; }
  .no-js .nav__menu ul { flex-direction: row; flex-wrap: wrap; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 72px 0 40px; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(79, 70, 229, .55), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(14, 154, 167, .35), transparent 60%),
              linear-gradient(160deg, #081739 0%, var(--navy) 45%, #10296A 100%);
  margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + 64px);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 1.18rem; color: #C9D7F5; max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero__by { font-size: .9rem; color: #A9BBE3; }
.hero__by a { color: #fff; font-weight: 700; }
.hero__visual { position: relative; padding: 24px 0 24px 0; }

/* the nav sits on top of the dark hero: keep it legible */
.nav:not(.is-scrolled) .brand, .nav:not(.is-scrolled) .nav__menu a:not(.btn) { color: inherit; }
body:not(.scrolled-past-hero) .nav:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:not(.scrolled-past-hero) .nav:not(.is-scrolled) .brand,
body:not(.scrolled-past-hero) .nav:not(.is-scrolled) .brand__text small { color: #fff; }
body:not(.scrolled-past-hero) .nav:not(.is-scrolled) .brand__text small { color: #B9C8EA; }
@media (min-width: 1081px) {
  body:not(.scrolled-past-hero) .nav:not(.is-scrolled) .nav__menu a:not(.btn) { color: #D5E1FA; }
  body:not(.scrolled-past-hero) .nav:not(.is-scrolled) .nav__menu a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .1); }
}
body:not(.scrolled-past-hero) .nav:not(.is-scrolled) .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }

/* Dashboard mock */
.dash {
  position: relative; z-index: 1; border-radius: 22px; overflow: hidden;
  background: rgba(10, 26, 66, .78); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: .85rem;
}
.dash__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dash__title { font-weight: 600; color: #C9D7F5; flex: 1; font-size: .8rem; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF6B6B; }
.dots i:nth-child(2) { background: #FFC24B; }
.dots i:nth-child(3) { background: #3DDC97; }
.dash__body { display: grid; grid-template-columns: 52px 1fr; }
.dash__side { display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; border-right: 1px solid rgba(255, 255, 255, .08); }
.dash__side span { display: grid; place-items: center; height: 36px; border-radius: 10px; color: #8EA3D3; }
.dash__side span.is-active { background: var(--grad-brand); color: #fff; }
.dash__main { padding: 14px; display: grid; gap: 12px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; min-width: 0; }
.kpi__label { font-size: .7rem; color: #A9BBE3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { font-size: 1.45rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.kpi__trend { font-size: .68rem; color: #A9BBE3; }
.kpi__trend.up { color: #6EE7B7; }
.kpi__trend.warn { color: #FFC164; }
.dash__charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.dash-card { margin: 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; color: #fff; min-width: 0; }
.dash-card figcaption { font-size: .75rem; font-weight: 600; color: #C9D7F5; margin-bottom: 6px; }
.dash-card .muted { color: #8EA3D3; }
.chart-area svg { width: 100%; height: 110px; display: block; color: #fff; }
.js .area-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-visible .area-line { animation: draw 1.8s .3s ease forwards; }
.js .area-fill { opacity: 0; }
.js .is-visible .area-fill { animation: fadeIn 1s 1.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.donut-wrap { position: relative; width: 92px; margin: 0 auto; }
.donut-wrap svg { width: 92px; height: 92px; transform: rotate(-90deg); color: #fff; display: block; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.donut-center strong { font-size: 1.1rem; }
.donut-center small { font-size: .62rem; color: #A9BBE3; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin-top: 8px; font-size: .68rem; color: #C9D7F5; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.activity__head { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; font-weight: 600; color: #C9D7F5; margin-bottom: 4px; }
.activity .mini-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; min-height: 28px; min-width: 28px; padding: 2px; }
.activity .icon--play { display: none; }
.activity .mini-btn[aria-pressed="true"] .icon--pause { display: none; }
.activity .mini-btn[aria-pressed="true"] .icon--play { display: block; }
.activity__list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; }
.activity__list li:first-child { border-top: 0; }
.activity__list li span:nth-child(2) { flex: 1; }
.activity__list time { color: #8EA3D3; font-size: .7rem; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.activity__list li.is-new { animation: slideIn .5s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 14px; color: #fff; font-size: .8rem; line-height: 1.25;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: #C9D7F5; font-size: .72rem; }
.float-card--ai { top: -6px; right: -18px; }
.float-card--flow { bottom: -4px; left: -26px; animation-delay: -3s; }
.float-card__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad-brand); }
.float-card__icon--teal { background: linear-gradient(135deg, var(--teal), #14B8A6); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.trust {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 48px; padding: 16px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #DCE6FB; font-weight: 600; font-size: .95rem;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li + li::before { content: ""; display: inline-block; width: 1px; height: 18px; background: rgba(255, 255, 255, .25); margin-right: 20px; }
.trust .icon { color: var(--mint); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .float-card--ai { right: 0; }
  .float-card--flow { left: 0; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 28px; padding-top: calc(var(--nav-h) + 36px); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__charts { grid-template-columns: 1fr; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .float-card { position: relative; inset: auto; margin-top: 10px; animation: none; }
  .float-card--ai { margin-bottom: 0; }
  .trust { gap: 8px 16px; font-size: .85rem; }
  .trust li + li::before { display: none; }
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.section--dark {
  color: #fff;
  background: radial-gradient(900px 500px at 100% 0, rgba(79, 70, 229, .45), transparent 60%),
              radial-gradient(700px 400px at 0 100%, rgba(14, 154, 167, .3), transparent 60%),
              linear-gradient(160deg, #081739, var(--navy) 50%, #10296A);
}
.section__head { margin-bottom: 44px; }
.section__head--light .lead { color: #C9D7F5; }
.section--dark h2 { color: #fff; }
@media (max-width: 720px) { .section { padding: 64px 0; } .card { padding: 20px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Seesaw ---------- */
.seesaw-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.seesaw-stage {
  position: relative; border-radius: var(--radius-lg); padding: 40px 24px 28px; min-height: 340px;
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: flex-end;
}
.seesaw { position: relative; height: 230px; margin: 0 auto; width: 100%; max-width: 460px; }
.seesaw__beam {
  position: absolute; left: 4%; right: 4%; bottom: 90px; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #7DB3FF, var(--blue), var(--indigo));
  transform: rotate(var(--tilt)); transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.seesaw__fulcrum {
  position: absolute; left: 50%; bottom: 20px; width: 0; height: 0; transform: translateX(-50%);
  border-left: 38px solid transparent; border-right: 38px solid transparent; border-bottom: 72px solid #2B4A8F;
}
.seesaw__fulcrum::after { content: ""; position: absolute; left: -60px; top: 72px; width: 120px; height: 8px; border-radius: 4px; background: #2B4A8F; }
.seesaw__pan { position: absolute; bottom: 12px; display: flex; flex-direction: column; align-items: center; width: 40%; }
.seesaw__pan--left { left: 0; }
.seesaw__pan--right { right: 0; }
.pan-label { position: absolute; top: calc(100% + 16px); font-size: .72rem; font-weight: 600; color: #A9BBE3; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.weights { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 4px; width: 100%; max-width: 150px; }
.weights span {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(160deg, #FF8A7A, #E2493B); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .45s ease, opacity .45s ease;
}
.weights span:nth-child(2n) { background: linear-gradient(160deg, #FFC164, #E8930C); }
.weights span:nth-child(3n) { background: linear-gradient(160deg, #F78FB3, #D1497B); }
.weights span.is-gone { transform: translateY(-60px) scale(.4); opacity: 0; }
.crm-weight {
  padding: 8px 16px; border-radius: 10px; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--teal), #14B8A6); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.seesaw__balanced {
  position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  margin: 0; color: var(--mint); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.seesaw-stage.is-balanced .seesaw__balanced { opacity: 1; transform: none; }
.problem-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.pchip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  background: var(--bad-bg); color: var(--bad); border: 1px solid transparent; font-weight: 650;
  transition: transform .2s, background-color .3s, color .3s;
}
.pchip::before { content: "!"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bad); color: var(--surface); font-size: .75rem; font-weight: 800; text-decoration: none; }
.pchip.is-solved::before { background: var(--ok); }
.pchip:hover { transform: translateY(-2px); }
.pchip.is-solved { background: var(--ok-bg); color: var(--ok); text-decoration: line-through; text-decoration-thickness: 2px; }
.pchip.is-solved::before { content: "✓"; }
.fix-msg {
  min-height: 92px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.fix-msg strong { color: var(--teal-ink); display: block; margin-bottom: 2px; }
.fix-msg.is-pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.02); } }
@media (max-width: 900px) { .seesaw-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .seesaw { height: 200px; }
  .seesaw__beam { bottom: 80px; }
  .weights span { width: 30px; height: 24px; }
  .weights { max-width: 104px; }
  .crm-weight { font-size: .95rem; padding: 6px 10px; }
}

/* ---------- Explorer ---------- */
.explorer {
  display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start;
}
.explorer__tabs {
  display: flex; flex-direction: column; gap: 4px; padding: 8px; position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.explorer__tabs [role="tab"] {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 44px;
  padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2);
  font-weight: 600; font-size: .92rem; transition: background-color .2s, color .2s;
}
.explorer__tabs [role="tab"] .icon { color: var(--muted); }
.explorer__tabs [role="tab"]:hover { background: var(--surface-2); color: var(--text); }
.explorer__tabs [role="tab"][aria-selected="true"] { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(29, 111, 234, .8); }
.explorer__tabs [role="tab"][aria-selected="true"] .icon { color: #fff; }
.no-js .explorer__tabs { display: none; }
.no-js .explorer { grid-template-columns: 1fr; }

.explorer__panels { min-width: 0; }
.panel {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start;
  padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.no-js .panel + .panel { margin-top: 20px; }
.js .panel[hidden] { display: none; }
.js .panel.is-entering { animation: panelIn .4s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.panel__copy h3 { font-size: 1.45rem; }
.panel__copy p { color: var(--text-2); }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%230A7C86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.mock {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  font-size: .9rem; min-width: 0;
}
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; margin-bottom: 12px; font-size: .88rem; }
.mock__foot { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.mock .btn-row { margin-top: 12px; }

/* clients */
.fu-list li { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; transition: border-color .3s; }
.fu-list li.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--info-bg); }
.avatar { --c: var(--blue); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; font-size: .78rem; flex: none; }
.fu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fu-main small { color: var(--muted); }
li[data-state="overdue"] .fu-note { color: var(--bad); font-weight: 600; }
li[data-state="today"] .fu-note { color: var(--warn); font-weight: 600; }
li[data-state="done"] .fu-note { color: var(--ok); font-weight: 600; }
.enforce { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px dashed var(--border); background: var(--surface); }
.enforce label { font-weight: 600; font-size: .85rem; }
.enforce__row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.enforce input[type="date"] { flex: 1; min-width: 150px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.enforce__msg { margin: 8px 0 0; font-size: .82rem; min-height: 1.2em; }
.enforce__msg.is-error { color: var(--bad); font-weight: 600; }
.enforce__msg.is-ok { color: var(--ok); font-weight: 600; }
.no-js .enforce, .no-js [data-fu], .no-js #fuSave { display: none; }

/* workflow */
.wf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wf-head label { font-weight: 600; }
.wf-head select, .select-sm { min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.wf-chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: .78rem; font-weight: 700; }
.wf-chain span { padding: 4px 10px; border-radius: 999px; background: var(--info-bg); color: var(--info); }
.wf-chain span:last-child { background: var(--teal-soft); color: var(--teal-ink); }
.wf-chain .icon { color: var(--muted); width: 1em; }
.wf-steps label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; cursor: pointer; transition: background-color .2s; }
.wf-steps label:has(input:checked) { background: var(--ok-bg); border-color: transparent; }
.wf-steps input, .mchip input, .radio-card input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.meter { margin-top: 12px; }
.meter__label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.meter__track { height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; }
.meter__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .5s ease; }

/* renewals */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fchip { min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 600; color: var(--text-2); }
.fchip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .fchip.is-active { background: var(--blue); border-color: var(--blue); }
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.rtable { font-size: .84rem; min-width: 440px; }
.rtable th, .rtable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.rtable th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; gap: 4px; align-items: center; }
.rtable th button::after { content: "↕"; opacity: .5; }
.rtable th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; }
.rtable th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }
.rtable tbody tr { transition: background-color .2s; }
.rtable tbody tr:hover { background: var(--surface-2); }
.rtable tr.is-hidden { display: none; }

/* cycles */
.seg-ctrl { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.seg-ctrl button { min-height: 34px; padding: 4px 14px; border-radius: 9px; border: 0; background: none; font-weight: 600; font-size: .84rem; color: var(--text-2); }
.seg-ctrl button.is-active { background: var(--grad-brand); color: #fff; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.months button {
  position: relative; min-height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .82rem; color: var(--text-2); transition: background-color .25s, color .25s, transform .2s;
}
.months button.has-task { background: var(--info-bg); color: var(--info); border-color: transparent; }
.months button.has-task::after { content: attr(data-count); position: absolute; top: 3px; right: 5px; font-size: .62rem; font-weight: 800; }
.months button.is-current { box-shadow: inset 0 0 0 2px var(--teal); }
.months button.is-selected { background: var(--blue); color: #fff; }
.months button:hover { transform: translateY(-1px); }
.cy-detail { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-height: 96px; font-size: .86rem; }
.cy-detail ul { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.cy-detail li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; }
@media (max-width: 420px) { .months { grid-template-columns: repeat(4, 1fr); } }

/* e-sign */
.es-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.doc { background: #fff; color: #0B1F4B; border-radius: 10px; padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid #E3E9F5; }
.doc__title { font-weight: 800; margin: 0; }
.doc__meta { font-size: .76rem; color: #56688F; margin: 0 0 10px; }
.doc .line { display: block; height: 7px; border-radius: 4px; background: #E7EDF7; margin: 7px 0; }
.doc .w80 { width: 80%; } .doc .w60 { width: 60%; }
.sig { margin-top: 14px; color: var(--indigo); }
.sig svg { width: 100%; max-width: 200px; height: 54px; display: block; }
.js .sig path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sig.is-signed path { transition: stroke-dashoffset 1.4s ease; stroke-dashoffset: 0; }
.sig__line { display: block; border-top: 1px solid #C5D0E6; padding-top: 4px; font-size: .7rem; color: #56688F; }
.vlist li { margin-bottom: 6px; }
.vlist button { width: 100%; text-align: left; display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); line-height: 1.25; }
.vlist button small { color: var(--muted); font-size: .74rem; }
.vlist button.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--info-bg); }
.vlist .is-signed-v small { color: var(--ok); font-weight: 600; }
@media (max-width: 520px) { .es-grid { grid-template-columns: 1fr; } }

/* portal */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 16px;
  border: 2px dashed color-mix(in srgb, var(--blue) 45%, var(--border)); border-radius: 14px; background: var(--surface); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.dropzone .icon { color: var(--blue); }
.dropzone small { color: var(--muted); font-size: .76rem; }
.dropzone.is-over { background: var(--info-bg); border-color: var(--blue); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-list { margin: 10px 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: .82rem; animation: slideIn .3s ease; }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; font-size: .74rem; font-weight: 600; color: var(--muted); text-align: center; }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tracker li span { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); transition: background-color .3s, border-color .3s; }
.tracker li::before { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.tracker li:first-child::before { display: none; }
.tracker li.is-done { color: var(--ok); }
.tracker li.is-done span { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 4px var(--surface); }
.tracker li.is-done::before { background: var(--ok); }
.tracker li.is-current { color: var(--blue); }
.tracker li.is-current span { border-color: var(--blue); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--info-bg); } }

/* hr */
.hr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hr-top p { margin: 0; }
.checkin {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--teal), #14B8A6); color: #fff; font-weight: 700; box-shadow: 0 8px 20px -10px rgba(14, 154, 167, .8);
  color: #062C30;
}
.checkin[aria-pressed="true"] { background: linear-gradient(135deg, #F97066, #E2493B); color: #fff; }
.att { font-size: .8rem; text-align: center; min-width: 360px; }
.att th, .att td { padding: 7px 6px; border-bottom: 1px solid var(--border); }
.att thead th { font-size: .72rem; color: var(--muted); }
.att tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.att td { font-weight: 700; }
.att td.p { color: var(--ok); } .att td.r { color: var(--info); } .att td.l { color: var(--warn); } .att td.a { color: var(--bad); } .att td.n { color: var(--muted); }
.att td.flash { animation: pop .5s ease; background: var(--ok-bg); }
.payslip { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.payslip dl, .invoice__rows { margin: 0; }
.payslip dl div, .invoice__rows div { display: flex; justify-content: space-between; padding: 4px 0; font-size: .84rem; }
.payslip dd, .invoice__rows dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.payslip .net { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-weight: 800; }

/* billing */
.bill-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.bill-tiles div { padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.bill-tiles small { font-size: .72rem; color: var(--muted); }
.bill-tiles strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.inv-list { margin-bottom: 12px; }
.inv-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.inv-list li > span:first-child { display: flex; flex-direction: column; line-height: 1.25; }
.inv-list small { color: var(--muted); }
.inv-list li.is-new { animation: slideIn .4s ease; }

/* ai chat */
.chat { height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.45; animation: slideIn .3s ease; }
.msg--bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg ul { margin: 6px 0 0; display: grid; gap: 4px; }
.msg li { display: flex; justify-content: space-between; gap: 10px; }
.msg p { margin: 0 0 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qchip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--indigo) 40%, var(--border)); background: var(--surface); color: var(--text); font-size: .8rem; font-weight: 600; text-align: left; }
.qchip:hover { background: var(--info-bg); }
.qchip[disabled] { opacity: .5; cursor: wait; }
.no-js .chat-chips { display: none; }

/* reports */
.report-chart { height: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.report-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.report-chart .bar { transition: height .6s ease, y .6s ease; }
.report-chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.js .chart-table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chart-table { font-size: .85rem; margin-top: 8px; }
.chart-table caption { text-align: left; font-size: .8rem; color: var(--muted); }
.chart-table th, .chart-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.no-js .report-chart, .no-js .seg-ctrl { display: none; }

@media (max-width: 1080px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs {
    position: relative; top: auto; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .explorer__tabs [role="tab"] { width: auto; white-space: nowrap; scroll-snap-align: start; flex: none; }
}
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; padding: 20px; } }
@media (max-width: 420px) { .panel { padding: 16px; } .mock { padding: 10px; } .bill-tiles strong { font-size: 1rem; } }

/* ---------- Industries ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pill {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 650; color: var(--text-2); box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s, transform .2s;
}
.pill:hover { transform: translateY(-2px); color: var(--text); }
.pill.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.no-js .pills { display: none; }
.industry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.industry.is-swapping .ind-card { opacity: 0; transform: translateY(10px); }
.ind-card {
  padding: 24px; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  transition: opacity .3s ease, transform .3s ease;
}
.ind-card:nth-child(2) { transition-delay: .05s; }
.ind-card:nth-child(3) { transition-delay: .1s; }
.ind-card--wide { grid-column: 1 / -1; }
.ind-card .h-sm .icon { color: var(--blue); }
.checklist li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px dashed var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--teal); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 12px; width: 6px; height: 11px; border: solid var(--teal-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: stage; }
.pipeline li {
  counter-increment: stage; position: relative; padding: 14px 14px 14px 24px; background: var(--info-bg); color: var(--text);
  font-weight: 650; font-size: .9rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}
.pipeline li:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 10px 0 0 10px; }
.pipeline li::before { content: counter(stage); display: block; font-size: .7rem; color: var(--muted); font-weight: 700; }
.pipeline li:last-child { background: var(--teal-soft); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--teal-soft); color: var(--text); }
.note .icon { color: var(--teal-ink); margin-top: 2px; }
@media (max-width: 760px) {
  .industry { grid-template-columns: 1fr; }
  .pipeline { grid-auto-flow: row; }
  .pipeline li, .pipeline li:first-child { clip-path: none; border-radius: 10px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; }
  .pill { flex: none; }
}

/* ---------- Compare ---------- */
.compare-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.compare-tools p { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 46px; height: 26px; border-radius: 999px; background: var(--border); position: relative; transition: background-color .2s; flex: none; }
.switch__track span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--teal); }
.switch input:checked + .switch__track span { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 3px; }
.no-js .compare-tools { display: none; }
.compare-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); transition: background-color .2s, opacity .3s; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: .9rem; font-weight: 800; background: var(--surface-2); }
.compare tbody th { text-align: left; font-weight: 600; }
.compare .c-feat { text-align: left; }
.compare [data-col="1"] { background: var(--teal-soft); color: var(--teal-ink); font-weight: 800; }
.compare thead [data-col="1"] { background: #0A7C86; color: #fff; font-size: 1rem; }
.compare td[data-col="1"]::before { content: "✓ "; }
.compare td.v-no { color: var(--bad); }
.compare td.v-part { color: var(--warn); }
.compare td.v-na { color: var(--muted); }
.compare .is-col-hover:not([data-col="1"]) { background: var(--surface-2); }
.compare [data-col="1"].is-col-hover { background: color-mix(in srgb, var(--teal) 24%, var(--surface)); }
.compare thead [data-col="1"].is-col-hover { background: #08636B; }
.compare.show-gaps td:not([data-col="1"]) { background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.compare.show-gaps td:not([data-col="1"])::before { content: "✕ "; }
.compare.show-gaps td[data-col="1"] { box-shadow: inset 3px 0 0 var(--teal), inset -3px 0 0 var(--teal); }
@media (max-width: 720px) {
  .compare-wrap { background: none; border: 0; box-shadow: none; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
  .compare tbody th { padding: 12px 16px; background: var(--surface-2); font-size: 1rem; }
  .compare td { display: flex; justify-content: space-between; text-align: right; padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .compare td::after { content: attr(data-label); order: -1; font-weight: 600; color: var(--text-2); }
  .compare td::before, .compare.show-gaps td:not([data-col="1"])::before { content: none; }
  .compare tbody tr:last-child > * { border-bottom: 1px solid var(--border); }
  .compare tr > td:last-child { border-bottom: 0 !important; }
}

/* ---------- White-label ---------- */
.wl { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .92rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea, .prefix-input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus, .prefix-input:focus-within { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.field input[type="file"] { font-size: .85rem; padding: 8px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); }
.prefix-input { display: flex; align-items: center; padding: 0 0 0 12px; gap: 2px; }
.prefix-input span { color: var(--muted); font-size: .9rem; }
.prefix-input input { flex: 1; min-width: 0; border: 0 !important; background: none !important; min-height: 44px; padding: 8px 12px 8px 0; box-shadow: none !important; }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-row input[type="color"] { width: 56px; height: 46px; padding: 3px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.color-row output { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 600; }
.wl__preview { --brand: #1D6FEA; --brand-ink: #fff; display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.browser { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.url { flex: 1; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); min-width: 0; }
.url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url .icon { color: var(--ok); }
.wl-app { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 260px; }
.wl-app__side { background: var(--brand); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; transition: background-color .3s; }
.wl-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--brand); font-weight: 800; font-size: .82rem; overflow: hidden; transition: color .3s; }
.wl-logo img { width: 100%; height: 100%; object-fit: contain; }
.wl-logo--sm { width: 38px; height: 38px; background: var(--brand); color: var(--brand-ink); }
.wl-logo--sm.has-img { background: #fff; border: 1px solid var(--border); }
.wl-nav { width: 28px; height: 8px; border-radius: 4px; background: var(--brand-ink); opacity: .35; }
.wl-nav.is-active { opacity: .95; }
.wl-app__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.wl-app__hello { margin: 0; font-size: 1.02rem; }
.wl-name { color: inherit; }
.wl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wl-kpis div { padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; }
.wl-kpis small { font-size: .7rem; color: var(--muted); }
.wl-kpis strong { font-size: 1.2rem; color: var(--brand); filter: saturate(1.1); }
[data-theme="dark"] .wl-kpis strong { color: var(--text); }
.wl-progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.wl-progress span { display: block; width: 68%; height: 100%; background: var(--brand); transition: background-color .3s; }
.wl-btn { align-self: flex-start; display: inline-flex; padding: 9px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .85rem; transition: background-color .3s, color .3s; }
.wl-btn--block { align-self: stretch; justify-content: center; width: 100%; margin-top: 12px; }
.invoice { background: #fff; color: #0B1F4B; border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--brand); transition: border-color .3s; }
.invoice__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.invoice__head > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.invoice__head small { font-size: .72rem; color: #56688F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoice__tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: #56688F; }
.invoice__rows div { border-bottom: 1px dashed #DCE5F3; }
.invoice__rows dt { color: #3A4C73; }
.invoice__rows .total { border-bottom: 0; font-weight: 800; font-size: .95rem; padding-top: 8px; }
.no-js #wlForm { display: none; }
.no-js .wl { grid-template-columns: 1fr; }
@media (max-width: 1080px) { .wl { grid-template-columns: minmax(0, 1fr); } }
.wl__form { min-width: 0; }
.field input[type="file"] { width: 100%; min-width: 0; }
@media (max-width: 640px) { .wl__preview { grid-template-columns: minmax(0, 1fr); } .wl-app { grid-template-columns: 52px minmax(0, 1fr); } .wl-kpis strong { font-size: 1rem; } }
@media (max-width: 420px) {
  .wl-app__main { padding: 14px; }
  .wl-kpis { grid-template-columns: minmax(0, 1fr); }
  .wl-kpis div { flex-direction: row; justify-content: space-between; align-items: center; padding: 6px 10px; }
}

/* ---------- ROI ---------- */
.roi { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.range { margin-bottom: 22px; }
.range:last-child { margin-bottom: 0; }
.range__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.range__top label { font-weight: 600; font-size: .95rem; }
.range__top output { font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-theme="dark"] .range__top output { color: var(--link); }
.range__inline { display: inline-flex; align-items: center; gap: 8px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), var(--border) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--border); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
input[type="range"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.roi__result { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.roi__result > .small { color: #C9D7F5; margin: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.roi__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.roi__nums div { display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.roi__nums strong { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.roi__nums div:last-child strong { color: var(--mint); }
.roi__nums span { color: #C9D7F5; font-size: .88rem; }
.roi__assume { font-size: .84rem; color: #C9D7F5; margin: 0; padding: 10px 12px; border-left: 3px solid var(--mint); background: rgba(255, 255, 255, .05); border-radius: 0 10px 10px 0; }
.roi__result .btn { align-self: flex-start; }
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .roi__nums { grid-template-columns: 1fr; } .range__top { flex-wrap: wrap; } .roi__nums strong { font-size: 1.6rem; } }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sec-card { padding: 24px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.sec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sec-card h3 { font-size: 1.05rem; }
.sec-card p { font-size: .9rem; color: var(--text-2); margin: 0; }
.sec-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad-brand); color: #fff; margin-bottom: 14px; }
.sec-card:nth-child(even) .sec-card__icon { background: linear-gradient(135deg, var(--teal), #14B8A6); }
@media (max-width: 1100px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-form-card { color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: auto; min-width: 0; max-width: 46%; flex: none; }
.phone-row input { flex: 1; min-width: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.err { margin: 0; font-size: .82rem; color: var(--bad); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip { position: relative; cursor: pointer; }
.mchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mchip span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: .84rem; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.mchip input:checked + span { background: var(--info-bg); border-color: var(--blue); color: var(--info); }
.mchip input:checked + span::before { content: "✓"; font-weight: 800; }
.mchip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--info-bg); }
.radio-card span { display: flex; flex-direction: column; line-height: 1.3; }
.radio-card small { color: var(--muted); font-size: .8rem; }
.radio-card input { margin-top: 2px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p { margin: 0; flex: 1; min-width: 200px; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.is-error { color: var(--bad); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; padding: 24px 8px; }
.success:focus { outline: none; }
.success__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 12px; animation: pop .5s ease; }
.success .btn-row { justify-content: center; margin: 16px 0; }

.live-card h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.live-card p.small { color: #C9D7F5; }
.live-card a:not(.btn) { color: var(--mint); font-weight: 700; }
.live-card .btn { margin: 8px 0 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .25); flex: none; }
.live-card__note { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.live-card__note strong { color: #fff; overflow-wrap: anywhere; }
.live-card__status {
  display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: .88rem;
  background: rgba(255, 193, 100, .14); border: 1px solid rgba(255, 193, 100, .4); color: #FFE2B0;
}
.live-card__status .icon { margin-top: 3px; color: #FFC164; }
.live-card__login { margin: 0; }
.creds { margin-bottom: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.creds .h-xs { color: #A9BBE3; }
.creds dl { margin: 0; display: grid; gap: 8px; }
.creds dl div { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 8px; }
.creds dt { font-size: .82rem; color: #C9D7F5; }
.creds dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.creds code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; color: #fff; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.copy-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; flex: none; }
.copy-btn.is-copied { background: rgba(61, 220, 151, .2); border-color: #3DDC97; }
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-grid .live-card { order: -1; } /* self-serve demo first on small screens, form "below" */
}

/* live-demo links elsewhere */
.demo-ext { opacity: .8; }
.nav__menu .demo-ext { width: .85em; height: .85em; vertical-align: -.05em; }
.demo-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--info-bg); color: var(--info); font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.demo-link:hover { transform: translateY(-1px); text-decoration: underline; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; min-height: 40px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 24px -10px rgba(11, 31, 75, .7); transition: transform .2s;
}
.demo-pill:hover { transform: translateY(-2px); color: #fff; }
.demo-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .3); }
[data-theme="dark"] .demo-pill { background: var(--blue); }
.cta-band .btn--glass { --b-bg: rgba(255, 255, 255, .14); --b-bd: rgba(255, 255, 255, .45); }
@media (max-width: 620px) { .form-grid, .radio-row { grid-template-columns: minmax(0, 1fr); } .form-foot .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 700; font-size: 1.06rem; border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--info-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231D6FEA' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
[data-theme="dark"] .faq summary:hover { color: var(--link); }
.faq details > div { padding: 0 4px 18px; color: var(--text-2); }
.faq details[open] > div { animation: drop .3s ease; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 48px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0, rgba(94, 234, 212, .3), transparent 60%), linear-gradient(135deg, var(--blue), var(--indigo) 60%, var(--navy));
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #DCE6FB; font-size: 1.08rem; }
@media (max-width: 640px) { .cta-band__inner { padding: 32px 22px; } .cta-band .btn { width: 100%; } .cta-band { padding-bottom: 64px; } }

/* ---------- Footer ---------- */
.footer { background: #071535; color: #C9D7F5; padding: 64px 0 28px; }
.footer a { color: #E2EAFB; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr .9fr; gap: 32px; }
.footer__brand p { margin: 14px 0 0; }
.footer__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mint); margin-bottom: 14px; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .2s;
}
.wa-btn .icon { width: 30px; height: 30px; }
.wa-btn:hover { transform: scale(1.06); }
.wa-pop { width: 260px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: drop .2s ease; }
.wa-pop__title { font-weight: 700; margin: 0 0 8px; font-size: .95rem; }
.wa-pop__list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.wa-pop__list a:hover, .wa-pop__list a:focus-visible { background: var(--surface-2); }
.wa-pop__list small { color: var(--muted); font-weight: 500; }
.no-js .wa-pop { display: block !important; }
.no-js .wa-btn { display: none; }
@media (max-width: 480px) { .wa-float { right: 14px; bottom: 14px; } .wa-btn { width: 52px; height: 52px; } }

/* ---------- Consent ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 420px; padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .88rem;
}
.consent p { margin: 0 0 10px; }
@media (max-width: 560px) { .consent { left: 12px; right: 84px; bottom: 12px; } }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal li { margin: .35em 0; }
.legal .notice { padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.legal-nav { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.legal-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .area-line { stroke-dashoffset: 0; }
  .js .area-fill { opacity: 1; }
  .float-card { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .wa-float, .consent, .progress, .hero__visual, .cta-band { display: none !important; }
  .hero, .section--dark, .footer { background: none !important; color: #000 !important; }
  .js .reveal { opacity: 1; transform: none; }
}
