/* ===========================================================================
   MAINTENOV - design system
   Petrol ink + high-visibility amber. Built from scratch, no framework.
   =========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ink: #0c1e22;
  --ink-2: #14333a;
  --ink-3: #1d474f;

  --brand: #ffb020;
  --brand-soft: #ffe3ad;
  --brand-wash: #fff7e8;
  --brand-deep: #8a5600;

  --teal: #0e8f86;
  --teal-wash: #e6f4f2;

  --paper: #ffffff;
  --tint: #f4f7f7;
  --tint-2: #e9f0f0;

  --body: #3a4d51;
  --muted: #6b8286;
  --line: #dbe5e5;
  --line-soft: #eaf0f0;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 30, 34, .06), 0 2px 6px rgba(12, 30, 34, .04);
  --shadow: 0 2px 6px rgba(12, 30, 34, .06), 0 12px 28px rgba(12, 30, 34, .08);
  --shadow-lg: 0 4px 12px rgba(12, 30, 34, .08), 0 28px 64px rgba(12, 30, 34, .14);

  --wrap: 1200px;
  --gutter: 24px;

  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); letter-spacing: -.016em; }
h4 { font-size: 1.09rem; letter-spacing: -.01em; line-height: 1.35; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: #c6d6d8; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 52ch; }
.center .measure, .center .measure-narrow { margin-inline: auto; }

/* --- Type helpers --------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--brand);
}
.section--ink .eyebrow { color: var(--brand); }

.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.section--ink .lede { color: #9fb6b9; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  font: inherit; font-size: .97rem; font-weight: 700; letter-spacing: -.01em;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; box-shadow: var(--shadow); }

.btn--amber { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.btn--amber:hover { background: #ffc352; border-color: #ffc352; color: var(--ink); box-shadow: 0 10px 26px rgba(255, 176, 32, .35); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--tint); border-color: var(--ink); color: var(--ink); }

.btn--onink { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--onink:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

.btn--sm { padding: 10px 18px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink);
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--brand-deep); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--ink .link-arrow { color: var(--brand); }

/* --- Header --------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #9fb6b9;
  font-size: .82rem; padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
.topbar a { color: #c6d6d8; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--brand); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand__word { font-size: 1.24rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 700; color: var(--ink); text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover { background: var(--tint); color: var(--ink); }
.nav__link svg { transition: transform .2s var(--ease); opacity: .55; }
.nav__item[data-open='true'] .nav__link { background: var(--tint); }
.nav__item[data-open='true'] .nav__link svg { transform: rotate(180deg); }

.header-cta { display: flex; gap: 10px; align-items: center; margin-left: 14px; }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: max-content; max-width: min(940px, calc(100vw - 40px));
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px; z-index: 95;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item[data-open='true'] .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega__grid { display: flex; gap: 32px; align-items: flex-start; }
.mega__col { min-width: 232px; }
.mega__title {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li { margin: 0 0 2px; }
.mega__link {
  display: block; padding: 9px 11px; border-radius: 10px; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.mega__link:hover { background: var(--tint); }
.mega__link strong { display: block; font-size: .94rem; font-weight: 700; color: var(--ink); }
.mega__link span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.mega__link:hover strong { color: var(--brand-deep); }

.mega__feature {
  width: 268px; flex-shrink: 0; align-self: stretch;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #b9cdd0; border-radius: var(--radius); padding: 22px;
}
.mega__feature h4 { color: #fff; margin-bottom: 8px; }
.mega__feature p { font-size: .86rem; line-height: 1.55; margin-bottom: 14px; }
.mega__feature .link-arrow { color: var(--brand); font-size: .87rem; }

/* Mobile nav */
.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-left: auto; padding: 10px 16px;
    background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-pill);
    font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  }
  .mobile-nav {
    display: block; position: fixed; inset: 0; z-index: 120;
    background: var(--paper); overflow-y: auto; padding: 20px var(--gutter) 60px;
    transform: translateY(-100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .mobile-nav.is-open { transform: translateY(0); visibility: visible; }
  .mobile-nav__head { display: flex; justify-content: space-between; align-items: center; height: 54px; margin-bottom: 18px; }
  .mobile-nav__close {
    background: var(--tint); border: 0; border-radius: var(--radius-pill);
    padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink);
  }
  .m-group { border-top: 1px solid var(--line-soft); padding: 6px 0; }
  .m-group > button {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    background: none; border: 0; padding: 15px 2px; font: inherit;
    font-size: 1.05rem; font-weight: 800; color: var(--ink); cursor: pointer; text-align: left;
  }
  .m-group > button svg { transition: transform .2s var(--ease); opacity: .5; }
  .m-group[data-open='true'] > button svg { transform: rotate(180deg); }
  .m-panel { display: none; padding: 0 0 14px 2px; }
  .m-group[data-open='true'] .m-panel { display: block; }
  .m-panel a { display: block; padding: 9px 0; text-decoration: none; font-size: .96rem; font-weight: 600; color: var(--body); }
  .m-panel a:hover { color: var(--brand-deep); }
  .m-panel .m-sub {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin: 14px 0 4px;
  }
  .m-flat { display: block; padding: 15px 2px; font-size: 1.05rem; font-weight: 800; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-soft); }
  .mobile-nav__cta { display: grid; gap: 10px; margin-top: 26px; }
  .mobile-nav__cta .btn { width: 100%; }
}

/* --- Announcement --------------------------------------------------------- */
.announce {
  background: var(--brand-wash); border-bottom: 1px solid var(--brand-soft);
  text-align: center; padding: 10px 0; font-size: .9rem; font-weight: 600; color: var(--ink);
}
.announce a { color: var(--ink); font-weight: 800; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--ink) 0%, #103038 55%, var(--ink-3) 100%);
  color: #b9cdd0;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 78% 62% at 76% 22%, #000 10%, transparent 72%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero__kicker {
  font-size: .8rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px;
}
.hero__panelbar { display: flex; justify-content: flex-end; padding: 0 4px 10px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__sub { font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem); line-height: 1.6; color: #a8c0c3; margin-bottom: 30px; max-width: 56ch; }
.hero .btn-row { margin-bottom: 26px; }

.hero__proof { display: flex; align-items: center; gap: 12px; font-size: .87rem; color: #90a9ad; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }

/* Hero panel (product mock frame) */
.hero__panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg); padding: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

/* --- Logo strip ----------------------------------------------------------- */
.logos { padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.logos__label { text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.logos__row span {
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; color: #93a9ac;
  transition: color .2s var(--ease);
}
.logos__row span:hover { color: var(--ink); }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card h3, .card h4 { margin-bottom: 9px; }
.card p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 16px; }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-wash); color: var(--brand-deep);
}
.card__icon svg { width: 23px; height: 23px; }
.card--teal .card__icon { background: var(--teal-wash); color: var(--teal); }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--tint-2); color: var(--muted); margin-bottom: 12px; align-self: flex-start;
}
.tag--brand { background: var(--brand-wash); color: var(--brand-deep); }

/* Build status. Shown everywhere a module is named, so nobody has to guess
   which parts of the platform actually exist. */
.tag--live { background: var(--teal-wash); color: #0a6b64; }
.tag--soon { background: var(--tint-2); color: var(--muted); }
.rail__card .tag--live { background: rgba(46, 204, 132, .18); color: #6ee7b0; }
.rail__card .tag--soon { background: rgba(255, 255, 255, .1); color: #9fb6b9; }

/* Inline honesty notice - "this module is not built yet". */
.notice {
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
  font-size: .93rem; line-height: 1.6;
}
.notice strong { font-weight: 800; }
.notice--soon {
  background: rgba(255, 176, 32, .12);
  border: 1px solid rgba(255, 176, 32, .4);
  color: #f2dfbd;
}
.notice--soon strong { color: var(--brand); }

.logos__sub {
  text-align: center; font-size: .92rem; color: var(--muted);
  max-width: 60ch; margin: 10px auto 0; line-height: 1.6;
}

/* Pain-point cards on ink */
.card--ink {
  background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1);
}
.card--ink p { color: #9fb6b9; }
.card--ink .card__icon { background: rgba(255, 176, 32, .16); color: var(--brand); }

/* --- Stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--paper); padding: 26px 20px; text-align: center; }
.stat__value { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .87rem; color: var(--muted); line-height: 1.45; }
.section--ink .stat { background: rgba(255, 255, 255, .04); }
.section--ink .stats { background: rgba(255, 255, 255, .1); }
.section--ink .stat__value { color: var(--brand); }
.section--ink .stat__label { color: #9fb6b9; }

/* --- Feature groups (product pages) --------------------------------------- */
.fgroup { border-top: 1px solid var(--line); padding-top: clamp(36px, 4vw, 56px); margin-top: clamp(36px, 4vw, 56px); }
.fgroup:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.fgroup__head { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 34px; }
@media (max-width: 860px) { .fgroup__head { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.fgroup__num {
  font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--brand-deep);
  background: var(--brand-wash); border-radius: var(--radius-pill);
  padding: 3px 12px; display: inline-block; margin-bottom: 12px;
}

.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .flist { grid-template-columns: minmax(0, 1fr); } }
.fitem { background: var(--paper); padding: 22px 24px; }
.fitem h4 { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 7px; }
.fitem h4::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  flex-shrink: 0; margin-top: 8px;
}
.fitem p { font-size: .92rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* --- Testimonials --------------------------------------------------------- */
.quote-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center;
}
@media (max-width: 820px) { .quote-card { grid-template-columns: minmax(0, 1fr); } }
.quote-card blockquote { margin: 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.42rem); line-height: 1.5; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.quote-card blockquote::before { content: '\201C'; color: var(--brand); font-size: 2.4em; line-height: 0; vertical-align: -.32em; margin-right: .06em; }
.quote-who { margin-top: 22px; font-size: .92rem; }
.quote-who strong { display: block; color: var(--ink); font-weight: 800; }
.quote-who span { color: var(--muted); }
.quote-stat { text-align: center; padding: 26px; background: var(--tint); border-radius: var(--radius); }
.quote-stat .stat__value { color: var(--brand-deep); }

.quote-nav { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.quote-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: background-color .2s var(--ease), width .2s var(--ease);
}
.quote-dot[aria-selected='true'] { background: var(--brand); width: 26px; border-radius: var(--radius-pill); }

/* --- Accordion (FAQ) ------------------------------------------------------ */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; padding: 22px 2px; cursor: pointer; text-align: left;
  font: inherit; font-size: 1.06rem; font-weight: 700; letter-spacing: -.012em; color: var(--ink);
}
.acc__btn:hover { color: var(--brand-deep); }
.acc__icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s; }
.acc__item[data-open='true'] .acc__icon { transform: rotate(45deg); background: var(--brand); }
.acc__panel { display: none; padding: 0 2px 24px; max-width: 76ch; color: var(--muted); }
.acc__item[data-open='true'] .acc__panel { display: block; }

/* --- Tabs ----------------------------------------------------------------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs__btn {
  padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--paper); font: inherit; font-size: .92rem; font-weight: 700; color: var(--body);
  cursor: pointer; transition: all .18s var(--ease);
}
.tabs__btn:hover { border-color: var(--ink); color: var(--ink); }
.tabs__btn[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel[hidden] { display: none; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #b9cdd0; border-radius: var(--radius-lg);
  padding: clamp(38px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 12%, rgba(255, 176, 32, .2), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
/* The line the whole site closes on. */
.cta-band__slogan {
  font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #a8c0c3; max-width: 54ch; margin-inline: auto; margin-bottom: 26px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #8fa8ac; padding: clamp(48px, 6vw, 76px) 0 30px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); gap: 34px; padding-bottom: 44px; }
@media (max-width: 1040px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.footer-brand .brand__word { color: #fff; }
.footer-brand p { margin: 16px 0 20px; line-height: 1.6; max-width: 34ch; font-size: .9rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #c6d6d8; transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); }
.footer-col h4 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #8fa8ac; text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.footer-bottom a { color: #8fa8ac; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* --- Breadcrumb ----------------------------------------------------------- */
.crumbs { font-size: .84rem; color: #8fa8ac; margin-bottom: 18px; }
.crumbs a { color: #a8c0c3; text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; margin: 0 7px; }

/* --- Pricing -------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 940px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column;
}
.price--featured { border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.price--featured::before {
  content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--ink); font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 15px; border-radius: var(--radius-pill);
}
.price__name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.price__desc { font-size: .9rem; color: var(--muted); min-height: 48px; margin-bottom: 18px; }
.price__amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price__note { font-size: .84rem; color: var(--muted); margin: 8px 0 22px; }
.price .btn { width: 100%; margin-bottom: 22px; }
.price__list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.price__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; line-height: 1.5; }
.price__list svg { flex-shrink: 0; margin-top: 4px; color: var(--teal); width: 15px; height: 15px; }

.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td { text-align: center; color: var(--muted); }
.compare td:first-child { text-align: left; }
.compare .yes { color: var(--teal); font-weight: 800; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .87rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--brand); outline-offset: 1px; }
.field textarea { min-height: 110px; resize: vertical; }
.field--half { grid-template-columns: minmax(0, 1fr); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-note { font-size: .82rem; color: var(--muted); }

/* --- Prose (legal pages) -------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* --- Scroll reveal -------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ===========================================================================
   PRODUCT DEMO MOCK-UPS
   Hand-built app UI that lives inside the marketing pages.
   =========================================================================== */
.demo {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
/* Dark variant must reset the white base, or every translucent layer
   below composites over white and the whole panel washes out. */
.demo--dark {
  background: rgba(7, 20, 24, .62);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}

.demo__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--tint); border-bottom: 1px solid var(--line-soft);
}
.demo--dark .demo__chrome { background: rgba(255, 255, 255, .06); border-bottom-color: rgba(255, 255, 255, .1); }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.demo__dots i:first-child { background: #ff5f57; }
.demo__dots i:nth-child(2) { background: #febc2e; }
.demo__dots i:nth-child(3) { background: #28c840; }
.demo__url {
  flex: 1; text-align: center; font-family: var(--mono); font-size: .72rem;
  color: var(--muted); background: var(--paper); border-radius: var(--radius-pill);
  padding: 4px 12px; border: 1px solid var(--line-soft);
}
.demo--dark .demo__url { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .1); color: #8fa8ac; }

.demo__bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--paper);
}
.demo--dark .demo__bar { background: transparent; border-bottom-color: rgba(255, 255, 255, .1); }
.demo__title { font-weight: 800; color: var(--ink); font-size: .98rem; letter-spacing: -.015em; }
.demo--dark .demo__title { color: #fff; }
.demo__spacer { margin-left: auto; }

.chip {
  padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--paper); font: inherit; font-size: .8rem; font-weight: 700; color: var(--body);
  cursor: pointer; transition: all .16s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed='true'], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* The hero panel is narrow, so the dark toolbar runs at a tighter scale
   to keep its chips on a single row. */
.demo--dark .chip { padding: 5px 11px; font-size: .74rem; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #c6d6d8; }
.demo--dark .demo__bar { gap: 7px; padding: 11px 13px; flex-wrap: nowrap; }
/* The chrome URL already names the view here, so the title is dropped
   to keep the filter chips on one row inside the narrow hero panel. */
.demo--dark .demo__title { display: none; }
.demo--dark .chip[aria-pressed='true'], .demo--dark .chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--ink); }

.demo__body { padding: 16px; background: var(--tint); min-height: 340px; }
.demo--dark .demo__body { background: rgba(0, 0, 0, .18); }

.demo__note {
  font-size: .82rem; color: var(--muted); padding: 11px 16px;
  border-top: 1px solid var(--line-soft); background: var(--paper);
  display: flex; align-items: center; gap: 8px;
}
.demo--dark .demo__note { background: transparent; border-top-color: rgba(255, 255, 255, .1); color: #8fa8ac; }
.demo__note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand); }

/* Kanban board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 900px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns: minmax(0, 1fr); } }
.col { background: var(--tint-2); border-radius: 12px; padding: 10px; min-height: 120px; transition: background-color .18s; }
.demo--dark .col { background: rgba(255, 255, 255, .05); }
.col.is-over { background: var(--brand-wash); }
.col__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 4px; }
.col__name { font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.demo--dark .col__name { color: #8fa8ac; }
.col__count { font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--paper); border-radius: var(--radius-pill); padding: 2px 8px; }
.demo--dark .col__count { background: rgba(0, 0, 0, .3); }

.wo {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.wo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wo:active { cursor: grabbing; }
.wo.is-dragging { opacity: .4; }
.demo--dark .wo { background: #12292f; border-color: rgba(255, 255, 255, .1); }
.wo__top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.wo__id { font-family: var(--mono); font-size: .68rem; font-weight: 700; color: var(--muted); }
.wo__pri { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pri-high { background: #e5484d; }
.pri-med { background: var(--brand); }
.pri-low { background: var(--teal); }
.wo__title { font-size: .88rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.demo--dark .wo__title { color: #fff; }
.wo__meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.wo__loc { display: inline-flex; align-items: center; gap: 4px; }
.who {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; color: var(--ink); background: var(--brand-soft);
  margin-left: auto; flex-shrink: 0;
}

/* Calendar */
.cal { background: var(--paper); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
.demo--dark .cal { background: #12292f; border-color: rgba(255, 255, 255, .1); }
.cal__head { display: grid; grid-template-columns: 66px repeat(5, minmax(0, 1fr)); background: var(--tint); border-bottom: 1px solid var(--line-soft); }
.demo--dark .cal__head { background: rgba(255, 255, 255, .05); border-bottom-color: rgba(255, 255, 255, .1); }
.cal__head div { padding: 10px 8px; font-size: .76rem; font-weight: 800; color: var(--muted); text-align: center; }
.cal__head div:first-child { text-align: left; }
.cal__row { display: grid; grid-template-columns: 66px repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); min-height: 58px; }
.demo--dark .cal__row { border-bottom-color: rgba(255, 255, 255, .08); }
.cal__row:last-child { border-bottom: 0; }
.cal__time { padding: 8px; font-family: var(--mono); font-size: .7rem; color: var(--muted); border-right: 1px solid var(--line-soft); }
.demo--dark .cal__time { border-right-color: rgba(255, 255, 255, .08); }
.cal__cell { padding: 4px; border-right: 1px solid var(--line-soft); position: relative; }
.demo--dark .cal__cell { border-right-color: rgba(255, 255, 255, .08); }
.cal__cell:last-child { border-right: 0; }
.ev {
  border-radius: 7px; padding: 6px 8px; font-size: .74rem; font-weight: 700; line-height: 1.3;
  cursor: pointer; height: 100%; display: flex; flex-direction: column; justify-content: center;
  transition: transform .16s var(--ease);
}
.ev:hover { transform: scale(1.03); }
.ev small { display: block; font-weight: 600; opacity: .8; font-size: .68rem; margin-top: 2px; }
.ev--a { background: var(--brand-wash); color: var(--brand-deep); border-left: 3px solid var(--brand); }
.ev--b { background: var(--teal-wash); color: #0a6b64; border-left: 3px solid var(--teal); }
.ev--c { background: #eef1fb; color: #3a4b8f; border-left: 3px solid #6478d4; }

/* Data table (inventory / fleet / itam) */
.dtable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: .86rem; }
.demo--dark .dtable { background: #12292f; }
.dtable thead th {
  text-align: left; padding: 11px 14px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--tint); border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.demo--dark .dtable thead th { background: rgba(255, 255, 255, .05); border-bottom-color: rgba(255, 255, 255, .1); color: #8fa8ac; }
.dtable tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--body); vertical-align: middle; }
.demo--dark .dtable tbody td { border-bottom-color: rgba(255, 255, 255, .07); color: #b9cdd0; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background-color .15s; cursor: pointer; }
.dtable tbody tr:hover { background: var(--tint); }
.demo--dark .dtable tbody tr:hover { background: rgba(255, 255, 255, .04); }
.dtable .num { font-family: var(--mono); font-size: .82rem; text-align: right; }
.dtable .name { font-weight: 700; color: var(--ink); }
.demo--dark .dtable .name { color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: var(--radius-pill); font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--teal-wash); color: #0a6b64; }
.pill--warn { background: var(--brand-wash); color: var(--brand-deep); }
.pill--bad { background: #fdeaeb; color: #b32226; }
.pill--idle { background: var(--tint-2); color: var(--muted); }

/* Bar / forecast chart */
.chart { background: var(--paper); border-radius: 12px; padding: 20px; border: 1px solid var(--line-soft); }
.demo--dark .chart { background: #12292f; border-color: rgba(255, 255, 255, .1); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; font-size: .78rem; color: var(--muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 190px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; min-width: 0; }
.bar {
  border-radius: 3px 3px 0 0; transition: height .6s var(--ease), background-color .2s;
  min-height: 2px; position: relative;
}
.bar--fund { background: var(--teal); }
.bar--gap { background: var(--brand); }
.bar-col:hover .bar { filter: brightness(1.1); }
.bar-labels { display: flex; gap: 5px; margin-top: 8px; }
.bar-labels span { flex: 1; text-align: center; font-family: var(--mono); font-size: .62rem; color: var(--muted); min-width: 0; }

.slider-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.slider-row label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.demo--dark .slider-row label { color: #fff; }
.slider-row input[type='range'] { flex: 1; min-width: 170px; accent-color: var(--brand); }
.slider-out { font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--brand-deep); min-width: 92px; text-align: right; }
.demo--dark .slider-out { color: var(--brand); }

.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 620px) { .kpi-row { grid-template-columns: minmax(0, 1fr); } }
.kpi { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.demo--dark .kpi { background: #12292f; border-color: rgba(255, 255, 255, .1); }
.kpi__label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.kpi__value { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.demo--dark .kpi__value { color: #fff; }
.kpi__delta { font-size: .76rem; font-weight: 700; margin-top: 3px; }
.kpi__delta.up { color: #0a6b64; }
.kpi__delta.down { color: #b32226; }

/* Line chart (utility) */
.line-chart { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px; }
.demo--dark .line-chart { background: #12292f; border-color: rgba(255, 255, 255, .1); }
.line-chart svg { width: 100%; height: 210px; overflow: visible; }

/* Detail drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 140;
  background: var(--paper); box-shadow: var(--shadow-lg); padding: 26px;
  transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.drawer__close { background: var(--tint); border: 0; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); flex-shrink: 0; }
.drawer__close:hover { background: var(--line); }
.drawer dl { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 11px 14px; margin: 0 0 22px; font-size: .9rem; }
.drawer dt { color: var(--muted); font-weight: 700; font-size: .82rem; }
.drawer dd { margin: 0; color: var(--ink); font-weight: 600; }
.drawer h4 { margin-bottom: 10px; }
.drawer__timeline { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.drawer__timeline li { padding: 0 0 14px 20px; position: relative; border-left: 2px solid var(--line-soft); margin-left: 5px; }
.drawer__timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--paper); }
.drawer__timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.drawer__timeline time { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.scrim {
  position: fixed; inset: 0; background: rgba(12, 30, 34, .45); z-index: 130;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* --- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===========================================================================
   AUTH - split screen login
   =========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); min-height: calc(100vh - 106px); }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth__aside { display: none; } }

.auth__form { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth__inner { width: 100%; max-width: 360px; }
.auth__title { font-size: 2rem; margin-bottom: 8px; }
.auth__sub { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }

.auth__divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 20px; color: var(--muted); font-size: .82rem; }
.auth__divider::before, .auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth__sso { display: grid; gap: 9px; }
.auth__ssobtn { width: 100%; justify-content: center; font-size: .92rem; padding: 12px 18px; }

.auth__foot { margin-top: 28px; font-size: .9rem; color: var(--muted); line-height: 1.9; }

.auth__aside {
  background: linear-gradient(150deg, var(--ink) 0%, #103038 55%, var(--ink-3) 100%);
  color: #b9cdd0; display: grid; place-items: center; padding: 48px; position: relative; overflow: hidden;
}
.auth__aside::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 25%, #000 10%, transparent 74%);
}
.auth__asideinner { position: relative; z-index: 1; width: 100%; max-width: 560px; }
.auth__asideinner h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.auth__asideinner > p { color: #a8c0c3; margin-bottom: 26px; }

/* ===========================================================================
   ASSISTANT - grounded chat widget
   =========================================================================== */
.asst-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border: 0; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font: inherit; font-size: .93rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.asst-launch:hover { transform: translateY(-3px); background: var(--ink-2); }
.asst-launch svg { width: 20px; height: 20px; color: var(--brand); }
.asst-launch__dot {
  position: absolute; top: 9px; right: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); animation: asstPulse 2.4s infinite;
}
@keyframes asstPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); }
  70% { box-shadow: 0 0 0 11px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}
.asst-launch[data-open='true'] .asst-launch__dot { display: none; }

/* Proactive nudge bubble */
.asst-nudge {
  position: fixed; right: 22px; bottom: 84px; z-index: 149; width: min(310px, calc(100vw - 44px));
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .9rem; line-height: 1.5; color: var(--body);
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.asst-nudge.is-in { opacity: 1; transform: none; visibility: visible; }
.asst-nudge strong { display: block; color: var(--ink); margin-bottom: 3px; }
.asst-nudge__close {
  position: absolute; top: 7px; right: 9px; background: none; border: 0; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--muted); padding: 4px;
}
.asst-nudge__close:hover { color: var(--ink); }

/* Panel */
.asst {
  position: fixed; right: 22px; bottom: 22px; z-index: 151;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px));
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.asst.is-open { opacity: 1; transform: none; visibility: visible; }
@media (max-width: 520px) {
  .asst { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

.asst__head {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.asst__avatar {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand);
  display: grid; place-items: center; color: var(--ink); flex-shrink: 0;
}
.asst__avatar svg { width: 20px; height: 20px; }
.asst__who { flex: 1; min-width: 0; }
.asst__who strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.asst__who span { font-size: .78rem; color: #9fb6b9; display: flex; align-items: center; gap: 5px; }
.asst__who span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2ecc84; }
.asst__close {
  background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; width: 30px; height: 30px;
  color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; flex-shrink: 0;
}
.asst__close:hover { background: rgba(255, 255, 255, .24); }

.asst__log { flex: 1; overflow-y: auto; padding: 20px; background: var(--tint); }

.asst__msg { display: flex; gap: 9px; margin-bottom: 16px; align-items: flex-end; }
.asst__msg--me { flex-direction: row-reverse; }
.asst__bubble {
  max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: .91rem; line-height: 1.55;
  background: var(--paper); color: var(--body); border: 1px solid var(--line-soft);
  border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm);
}
.asst__msg--me .asst__bubble {
  background: var(--ink); color: #fff; border-color: var(--ink);
  border-bottom-left-radius: 16px; border-bottom-right-radius: 5px;
}
.asst__bubble strong { color: var(--ink); font-weight: 800; }
.asst__msg--me .asst__bubble strong { color: #fff; }
.asst__bubble a { color: var(--brand-deep); font-weight: 700; }
.asst__bubble p { margin: 0 0 .65em; }
.asst__bubble p:last-child { margin-bottom: 0; }
.asst__bubble ul { margin: .4em 0 .2em; padding-left: 1.1em; }
.asst__bubble li { margin-bottom: .3em; }

.asst__pip {
  width: 27px; height: 27px; border-radius: 8px; background: var(--ink); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.asst__pip svg { width: 15px; height: 15px; }

.asst__typing { display: flex; gap: 4px; padding: 14px 15px; }
.asst__typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: block;
  animation: asstBlink 1.3s infinite;
}
.asst__typing i:nth-child(2) { animation-delay: .18s; }
.asst__typing i:nth-child(3) { animation-delay: .36s; }
@keyframes asstBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.asst__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px 14px; background: var(--tint); }
.asst__chip {
  padding: 8px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--paper); font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: left; transition: all .16s var(--ease);
}
.asst__chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.asst__form {
  display: flex; gap: 9px; padding: 14px; border-top: 1px solid var(--line-soft);
  background: var(--paper); flex-shrink: 0; align-items: flex-end;
}
.asst__input {
  flex: 1; font: inherit; font-size: .92rem; padding: 11px 14px; resize: none; max-height: 110px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink);
  line-height: 1.45;
}
.asst__input:focus { border-color: var(--ink); outline: 2px solid var(--brand); outline-offset: 1px; }
.asst__send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.asst__send:hover:not(:disabled) { background: var(--brand); color: var(--ink); transform: scale(1.06); }
.asst__send:disabled { opacity: .4; cursor: not-allowed; }
.asst__send svg { width: 18px; height: 18px; }

.asst__foot { font-size: .72rem; color: var(--muted); text-align: center; padding: 0 14px 11px; background: var(--paper); }

/* ===========================================================================
   MOTION
   Slow, heavy easing. Long travel. No bounce, no spring - expensive motion is
   confident, not bouncy. Everything here is disabled under reduced-motion.
   =========================================================================== */
:root {
  --e-out: cubic-bezier(.16, 1, .3, 1);          /* the workhorse */
  --e-inout: cubic-bezier(.76, 0, .24, 1);
  --t-slow: 1.15s;
  --t-med: .8s;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- Line mask reveal ----------------------------------------------------- */
/* Each line sits inside a clipping box and slides up from beneath it. */
html.js-motion .line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
html.js-motion .line-mask > span {
  display: block;
  transform: translateY(105%) rotate(1.2deg);
  opacity: 0;
  transition: transform var(--t-slow) var(--e-out), opacity .7s var(--e-out);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
html.js-motion .is-lit .line-mask > span { transform: none; opacity: 1; }

/* --- Generic rise --------------------------------------------------------- */
html.js-motion .rise { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--e-out), transform 1s var(--e-out); transition-delay: var(--d, 0ms); }
html.js-motion .is-lit.rise, html.js-motion .is-lit .rise { opacity: 1; transform: none; }

/* --- Depth parallax ------------------------------------------------------- */
[data-para] { will-change: transform; }

/* --- Hero cinematic ------------------------------------------------------- */
.hero { isolation: isolate; }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: .85; pointer-events: none;
}
.hero::after { z-index: 1; }
.hero .wrap { z-index: 2; }

/* The product panel drifts with the pointer. */
.hero__panel {
  transform-style: preserve-3d;
  transition: transform .9s var(--e-out);
  will-change: transform;
}
.hero__panel .demo { transform: translateZ(0); }

/* Panel cards deal themselves in. */
html.js-motion .hero__panel .wo {
  opacity: 0; transform: translateY(22px) scale(.97);
  animation: dealIn .9s var(--e-out) forwards;
}
@keyframes dealIn { to { opacity: 1; transform: none; } }

/* Live pulse on the hero chrome. */
.live-dot {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; color: #9fb6b9; letter-spacing: .04em;
}
.live-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2ecc84;
  box-shadow: 0 0 0 0 rgba(46, 204, 132, .7); animation: livePulse 2.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 132, .7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 132, 0); }
}

/* --- Horizontal scroll rail ----------------------------------------------- */
.rail { position: relative; background: var(--ink); color: #b9cdd0; overflow: clip; }
.rail__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail__head { padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto 34px; width: 100%; }
.rail__head h2 { color: #fff; }
.rail__track { display: flex; gap: 22px; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.rail__card {
  flex: 0 0 clamp(260px, 26vw, 340px);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg); padding: 28px; text-decoration: none;
  display: flex; flex-direction: column; min-height: 300px;
  transition: background-color .4s var(--e-out), border-color .4s var(--e-out), transform .4s var(--e-out);
}
.rail__card:hover { background: rgba(255, 255, 255, .09); border-color: var(--brand); transform: translateY(-6px); }
.rail__card .card__icon { background: rgba(255, 176, 32, .16); color: var(--brand); }
.rail__card h3 { color: #fff; margin-bottom: 10px; }
.rail__card p { font-size: .93rem; color: #9fb6b9; line-height: 1.6; }
.rail__card .link-arrow { color: var(--brand); margin-top: auto; padding-top: 18px; }
.rail__num {
  font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--brand);
  opacity: .6; margin-bottom: 16px;
}
.rail__progress { height: 2px; background: rgba(255, 255, 255, .12); margin: 34px auto 0; max-width: var(--wrap); width: calc(100% - var(--gutter) * 2); }
.rail__progress i { display: block; height: 100%; width: 0%; background: var(--brand); transition: width .1s linear; }

@media (max-width: 860px) {
  /* No pinning on small screens - a plain swipeable row reads better. */
  .rail__sticky { position: static; height: auto; padding: clamp(56px, 7vw, 90px) 0; }
  .rail__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch; transform: none !important; }
  .rail__card { scroll-snap-align: start; }
  .rail__progress { display: none; }
}

/* --- Marquee -------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 42px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row span { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: #93a9ac; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Magnetic buttons ----------------------------------------------------- */
.btn { will-change: transform; }
.btn.is-mag { transition: transform .35s var(--e-out), background-color .18s var(--e-out), border-color .18s var(--e-out), color .18s var(--e-out), box-shadow .18s var(--e-out); }

/* --- Counters ------------------------------------------------------------- */
.stat__value[data-count] { font-variant-numeric: tabular-nums; }

/* --- Section wipe --------------------------------------------------------- */
.wipe { position: relative; overflow: hidden; }
html.js-motion .wipe::before {
  content: ''; position: absolute; inset: 0; background: var(--ink); z-index: 3;
  transform: scaleY(1); transform-origin: bottom;
  transition: transform 1.1s var(--e-inout);
}
html.js-motion .wipe.is-lit::before { transform: scaleY(0); }

/* --- Respect the user ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .line-mask > span, .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__panel .wo { opacity: 1 !important; animation: none !important; }
  .marquee__row { animation: none !important; }
  .wipe::before { display: none; }
  .rail__sticky { position: static; height: auto; padding: 70px 0; }
  .rail__track { overflow-x: auto; transform: none !important; }
  .hero__canvas { display: none; }
}
