/* ==========================================================================
   Seriba Technology — design system
   Palette derived from the seriba wordmark: forest green, copper, bone.
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #12291D;
  --green-800: #1A3D2B;
  --green-700: #235339;
  --green-600: #2D6A4F;
  --green-500: #3F8264;
  --green-400: #52957A;
  --green-200: #A8C9B7;

  --copper-700: #6E4527;
  --copper-600: #8B5E3C;
  --copper-500: #A9764C;
  --copper-400: #C08B5C;
  --copper-200: #E3C9AC;

  --bone-50:  #FBF9F5;
  --bone-100: #F5F0E8;
  --bone-200: #EDE5D8;
  --bone-300: #DED2BF;

  --ink-900: #14181A;
  --ink-700: #2E3639;
  --ink-500: #5B666B;
  --ink-300: #8E9A9F;

  --white: #FFFFFF;

  /* Semantic */
  --status-open:     #2D6A4F;
  --status-progress: #A9764C;
  --status-waiting:  #B4832C;
  --status-resolved: #3F6E8C;
  --status-closed:   #6B7280;
  --danger:          #A8324A;

  /* Type */
  --font-display: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  /* Space + shape */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1320px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 26, 0.06);
  --shadow: 0 4px 20px rgba(20, 24, 26, 0.08);
  --shadow-lg: 0 18px 50px rgba(20, 24, 26, 0.14);

  --nav-h: 74px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Utility layout ─────────────────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--bone { background: var(--bone-100); }
.section--bone-soft { background: var(--bone-50); }
.section--green { background: var(--green-800); color: var(--bone-100); }
.section--ink { background: var(--ink-900); color: var(--bone-100); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--copper-600); color: var(--white);
  padding: 0.75rem 1.25rem; font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.grid { display: grid; gap: var(--grid-gap, 1.5rem); }
.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)); }
.grid--sidebar { grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; }
.grid--docs { grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 2.5rem; }

/* ── Typography ─────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-600);
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; flex-shrink: 0; }
.eyebrow--light { color: var(--copper-400); }
.eyebrow--plain::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }

.italic-accent { font-style: italic; color: var(--copper-500); }
.italic-accent--light { font-style: italic; color: var(--copper-400); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink-500);
  font-weight: 300;
  max-width: 62ch;
}
.lead--light { color: rgba(245, 240, 232, 0.68); }

.muted { color: var(--ink-500); }
.muted--light { color: rgba(245, 240, 232, 0.6); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--copper-600); color: var(--white); }
.btn--primary:hover { background: var(--copper-500); }

.btn--green { background: var(--green-600); color: var(--white); }
.btn--green:hover { background: var(--green-500); }

.btn--ghost { border-color: var(--ink-300); color: var(--ink-900); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-900); background: var(--bone-100); }

.btn--ghost-light { border-color: rgba(245, 240, 232, 0.34); color: var(--bone-100); background: transparent; }
.btn--ghost-light:hover { border-color: var(--bone-100); background: rgba(245, 240, 232, 0.07); }

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: var(--copper-600);
}
.link-arrow svg { transition: transform 0.18s; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--light { color: var(--copper-400); }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(18, 41, 29, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
  transition: background 0.25s, border-color 0.25s;
}
.nav[data-scrolled="true"] {
  background: rgba(18, 41, 29, 0.99);
  border-bottom-color: rgba(245, 240, 232, 0.16);
}
.nav__inner {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative;  /* dropdown z-index context */
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 800;
  color: var(--bone-100); text-decoration: none;
  letter-spacing: -0.02em; line-height: 1;
  display: flex; align-items: baseline; gap: 0.5rem;
}
.nav__brand i { font-style: italic; color: var(--copper-400); }
.nav__brand small {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4); font-weight: 400;
}
.nav__links { display: flex; align-items: center; gap: 1.9rem; list-style: none; position: relative; }
.nav__links > li { position: relative; display: flex; align-items: center; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav__link {
  font-size: 0.83rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(245, 240, 232, 0.72);
  transition: color 0.18s; position: relative; padding-block: 0.4rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--bone-100); }
.nav__link[aria-current="page"]::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1.5px;
  background: var(--copper-400);
}
.nav__badge {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 20px;
  background: var(--copper-600); color: var(--white);
}
.nav__badge--sm { font-size: 0.55rem; padding: 0.1rem 0.35rem; }
.nav__chevron { opacity: 0.55; transition: transform 0.2s; }

/* ── Dropdown sub-menus ──────────────────────────────────────────────────── */
.nav__item--has-dropdown { position: relative; }
.nav__dropdown {
  position: absolute;
  top: 100%;          /* flush — gap is created by padding-top below */
  left: 0;
  min-width: 210px;
  background: var(--green-900);
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  /* Invisible 10px padding-top bridges the gap so hover isn't lost */
  padding: 10px 0 0.4rem;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
/* copper top accent visible inside the padding area */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: 10px; left: 0; right: 0;
  height: 2px;
  background: var(--copper-500);
}
/* Keep dropdown open while hovering the parent li OR the dropdown itself */
.nav__item--has-dropdown:hover > .nav__dropdown,
.nav__item--has-dropdown:focus-within > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__item--has-dropdown:hover .nav__chevron,
.nav__item--has-dropdown:focus-within .nav__chevron { transform: rotate(180deg); }
.nav__dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: rgba(245, 240, 232, 0.68);
  transition: background 0.14s, color 0.14s, padding-left 0.14s;
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.nav__dropdown-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--bone-100);
  padding-left: 1.35rem;
  border-left-color: var(--copper-500);
}

/* ── Mobile toggle ───────────────────────────────────────────────────────── */
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--bone-100); border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ───────────────────────────────────────────────────────── */
.nav__drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 89;
  background: var(--green-900);
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
  padding: 1rem var(--gutter) 2rem;
  display: none; flex-direction: column; gap: 0;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.nav__drawer[data-open="true"] { display: flex; }
.nav__drawer-link {
  color: rgba(245, 240, 232, 0.78); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  display: block;
}
.nav__drawer-link:hover { color: var(--bone-100); }
.nav__drawer-group { border-bottom: 1px solid rgba(245, 240, 232, 0.08); }
.nav__drawer-heading {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: rgba(245, 240, 232, 0.78); font: 500 0.95rem/1 var(--font-body);
  padding: 0.9rem 0;
  display: flex; justify-content: space-between; align-items: center;
}
.nav__drawer-heading:hover { color: var(--bone-100); }
.nav__drawer-heading[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__drawer-sub { list-style: none; padding: 0 0 0.75rem 1rem; }
.nav__drawer-sublink {
  display: block; padding: 0.6rem 0;
  color: rgba(245, 240, 232, 0.55); text-decoration: none; font-size: 0.88rem;
}
.nav__drawer-sublink:hover { color: var(--bone-100); }

/* ── Page hero patterns ─────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  background: var(--green-800); color: var(--bone-100);
  padding-block: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6.5rem)) clamp(3.5rem, 7vw, 5.5rem);
}
.hero--tall { min-height: 92vh; display: flex; align-items: center; }
.hero__mesh {
  position: absolute; inset: 0; opacity: 0.045; pointer-events: none;
  background-image:
    linear-gradient(var(--bone-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--bone-100) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute; pointer-events: none;
  width: min(680px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 94, 60, 0.22) 0%, transparent 68%);
  top: -22%; right: -14%;
}
.hero__glow--alt {
  background: radial-gradient(circle, rgba(63, 130, 100, 0.2) 0%, transparent 68%);
  top: auto; bottom: -30%; right: auto; left: -18%;
}
.hero__inner { position: relative; z-index: 1; }
.hero__body { max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.5rem; }

/* Page header for inner pages */
.pagehead {
  background: var(--green-800); color: var(--bone-100);
  padding-block: calc(var(--nav-h) + 3.5rem) 3.5rem;
  position: relative; overflow: hidden;
}
.pagehead__inner { position: relative; z-index: 1; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45); margin-bottom: 1.25rem;
  list-style: none;
}
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { color: var(--bone-100); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; opacity: 0.4; }
.crumbs--dark { color: var(--ink-300); }
.crumbs--dark a:hover { color: var(--ink-900); }

/* ── Live stat bar ──────────────────────────────────────────────────────── */

.statbar {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(245, 240, 232, 0.14);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.statbar__cell {
  padding: 1.6rem 1.75rem;
  border-right: 1px solid rgba(245, 240, 232, 0.14);
}
.statbar__cell:last-child { border-right: 0; }
.statbar__label {
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--copper-400); margin-bottom: 0.45rem;
}
.statbar__value {
  font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.025em; color: var(--bone-100);
  font-variant-numeric: tabular-nums;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--bone-200);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--green-400); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.card--dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(245, 240, 232, 0.14);
  color: var(--bone-100);
}
.card--dark:hover { border-color: rgba(245, 240, 232, 0.3); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--green-800); color: var(--copper-400);
  display: grid; place-items: center; margin-bottom: 1.15rem; flex-shrink: 0;
}
.card__icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.card__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-bottom: 0.55rem; line-height: 1.3; }
.card__text { font-size: 0.9rem; line-height: 1.62; color: var(--ink-500); flex: 1; }
.card--dark .card__text { color: rgba(245, 240, 232, 0.62); }
.card__foot { margin-top: 1.35rem; }

.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

/* Bordered grid (newspaper style) */
.bordergrid {
  display: grid; gap: 1px;
  background: var(--bone-200);
  border: 1px solid var(--bone-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.bordergrid > * { background: var(--white); padding: 2.1rem 1.9rem; transition: background 0.18s; }
.bordergrid > *:hover { background: var(--bone-50); }
.bordergrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bordergrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bordergrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bordergrid--dark { background: rgba(245, 240, 232, 0.12); border-color: rgba(245, 240, 232, 0.12); }
.bordergrid--dark > * { background: var(--ink-900); color: var(--bone-100); }
.bordergrid--dark > *:hover { background: #1B2124; }

.tile__index {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; color: var(--bone-300); margin-bottom: 1rem;
}
.bordergrid--dark .tile__index { color: rgba(245, 240, 232, 0.28); }

/* ── Brand split cards (OneTala / seriba) ───────────────────────────────── */

.brandsplit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-radius: var(--radius); overflow: hidden; }
.brandcard { position: relative; overflow: hidden; padding: clamp(2rem, 3.5vw, 3.2rem); color: var(--bone-100); }
.brandcard--onetala { background: var(--green-800); }
.brandcard--seriba { background: var(--ink-900); }
.brandcard__tag {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1.1rem;
}
.brandcard__tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.brandcard--onetala .brandcard__tag { color: var(--copper-400); }
.brandcard--seriba .brandcard__tag { color: var(--green-400); }
.brandcard__name {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 900; letter-spacing: -0.025em; margin-bottom: 0.9rem;
}
.brandcard__name i { font-style: italic; color: var(--copper-400); }
.brandcard__text { font-size: 0.92rem; line-height: 1.68; color: rgba(245, 240, 232, 0.63); max-width: 42ch; }
.brandcard__list { list-style: none; margin-top: 1.85rem; display: flex; flex-direction: column; gap: 0.62rem; }
.brandcard__list li {
  font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.04em;
  color: rgba(245, 240, 232, 0.55);
  display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5;
}
.brandcard__list li::before { content: '→'; color: var(--copper-400); flex-shrink: 0; }
.brandcard__rings {
  position: absolute; bottom: -50px; right: -50px;
  width: 190px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.06); pointer-events: none;
}
.brandcard__rings::after {
  content: ''; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.05);
}
.brandcard__foot { margin-top: 2rem; }

/* ── Impact accordion ───────────────────────────────────────────────────── */

.impact { display: grid; grid-template-columns: 1fr 0.85fr; gap: 3.5rem; align-items: start; }
.impact__list { display: flex; flex-direction: column; }
.impact__item {
  border-top: 1px solid rgba(245, 240, 232, 0.14);
  padding: 1.65rem 0; cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-bottom: 0;
  text-align: left; width: 100%; color: inherit; font: inherit;
  transition: padding-left 0.2s;
}
.impact__item:last-child { border-bottom: 1px solid rgba(245, 240, 232, 0.14); }
.impact__item:hover { padding-left: 0.5rem; }
.impact__item-index {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--copper-400); margin-bottom: 0.5rem;
}
.impact__item-title {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700;
  color: var(--bone-100); transition: color 0.18s; line-height: 1.3;
}
.impact__item-body {
  font-size: 0.88rem; line-height: 1.65; color: rgba(245, 240, 232, 0.55);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}
.impact__item[aria-expanded="true"] .impact__item-title { color: var(--copper-400); }
.impact__item[aria-expanded="true"] .impact__item-body { max-height: 260px; opacity: 1; margin-top: 0.6rem; }
.impact__panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: var(--radius); padding: 2.4rem;
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.impact__stat {
  font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 900; line-height: 1; letter-spacing: -0.035em;
  color: var(--bone-100); margin-bottom: 0.6rem;
}
.impact__stat i { font-style: normal; color: var(--copper-400); }
.impact__stat-label { font-size: 0.9rem; line-height: 1.6; color: rgba(245, 240, 232, 0.58); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.85rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  padding: 0.32rem 0.72rem; border-radius: 20px;
  background: var(--bone-100); color: var(--ink-500); white-space: nowrap;
}
.chip--dark { background: rgba(255, 255, 255, 0.07); color: rgba(245, 240, 232, 0.6); }
.chip--green { background: rgba(45, 106, 79, 0.1); color: var(--green-600); }
.chip--copper { background: rgba(139, 94, 60, 0.1); color: var(--copper-600); }
.chip-link { text-decoration: none; transition: background 0.18s; }
.chip-link:hover { background: var(--bone-200); }
.chip-link[aria-current="true"] { background: var(--green-600); color: var(--white); }

/* ── Module rows (OneTala capability list) ──────────────────────────────── */

.modulerow {
  display: flex; align-items: center; gap: 0.95rem;
  padding: 0.95rem 1.2rem;
  background: var(--white); border: 1px solid var(--bone-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s, transform 0.18s;
}
.modulerow:hover { border-color: var(--green-500); transform: translateX(4px); }
.modulerow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); flex-shrink: 0; }
.modulerow__name { font-size: 0.9rem; font-weight: 600; }
.modulerow__badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.07em; padding: 0.22rem 0.6rem; border-radius: 3px;
  background: rgba(45, 106, 79, 0.1); color: var(--green-600); white-space: nowrap;
}

/* ── Mock product screen ───────────────────────────────────────────────── */

.screen { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 240, 232, 0.14); border-radius: var(--radius); overflow: hidden; }
.screen__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.9rem; background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}
.screen__dot { width: 9px; height: 9px; border-radius: 50%; }
.screen__dot--r { background: #E0665C; }
.screen__dot--y { background: #DFA13B; }
.screen__dot--g { background: #4FA96A; }
.screen__url {
  flex: 1; margin-left: 0.5rem; padding: 0.28rem 0.7rem; border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono); font-size: 0.63rem; color: rgba(245, 240, 232, 0.42);
}
.screen__body { padding: 1.4rem; }
.screen__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.3rem; }
.screen__kpi { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(245, 240, 232, 0.1); border-radius: var(--radius-sm); padding: 0.75rem; }
.screen__kpi-value { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; color: var(--bone-100); }
.screen__kpi-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: rgba(245, 240, 232, 0.4); margin-top: 0.18rem; }
.screen__bars { display: flex; flex-direction: column; gap: 0.5rem; }
.screen__bar { display: flex; align-items: center; gap: 0.7rem; }
.screen__bar-name { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(245, 240, 232, 0.42); width: 74px; flex-shrink: 0; }
.screen__bar-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.screen__bar-fill { height: 100%; border-radius: 2px; background: var(--green-400); width: 0; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.screen__bar-pct { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(245, 240, 232, 0.42); width: 30px; text-align: right; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label { font-size: 0.82rem; font-weight: 600; color: var(--ink-700); }
.field__label .req { color: var(--danger); }
.field__hint { font-size: 0.76rem; color: var(--ink-300); }
.field__error { font-size: 0.78rem; color: var(--danger); font-weight: 500; }

.input, .select, .textarea {
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--bone-300); border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem; width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(168, 50, 74, 0.1);
}
.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235B666B' stroke-width='1.6' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.3rem; }

.checkline { display: flex; align-items: flex-start; gap: 0.62rem; font-size: 0.85rem; line-height: 1.55; color: var(--ink-700); cursor: pointer; }
.checkline input { margin-top: 0.22rem; accent-color: var(--green-600); width: 15px; height: 15px; flex-shrink: 0; }

.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.formgrid--full { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.formcard {
  background: var(--white); border: 1px solid var(--bone-200);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.alert {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; line-height: 1.6;
  border-left: 3px solid;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.12rem; stroke-width: 1.8; fill: none; }
.alert--success { background: rgba(45, 106, 79, 0.08); border-color: var(--green-600); color: var(--green-700); }
.alert--error { background: rgba(168, 50, 74, 0.07); border-color: var(--danger); color: var(--danger); }
.alert--info { background: rgba(63, 110, 140, 0.07); border-color: var(--status-resolved); color: var(--status-resolved); }
.alert--warn { background: rgba(180, 131, 44, 0.08); border-color: var(--status-waiting); color: #8A6420; }

/* ── Status pills ───────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 0.42rem;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 20px; font-weight: 500;
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--open { background: rgba(45, 106, 79, 0.1); color: var(--status-open); }
.pill--in_progress { background: rgba(169, 118, 76, 0.12); color: var(--status-progress); }
.pill--waiting_on_customer { background: rgba(180, 131, 44, 0.12); color: #8A6420; }
.pill--resolved { background: rgba(63, 110, 140, 0.11); color: var(--status-resolved); }
.pill--closed { background: rgba(107, 114, 128, 0.11); color: var(--status-closed); }
.pill--low { background: rgba(107, 114, 128, 0.1); color: var(--status-closed); }
.pill--normal { background: rgba(45, 106, 79, 0.1); color: var(--status-open); }
.pill--high { background: rgba(169, 118, 76, 0.13); color: var(--copper-700); }
.pill--critical { background: rgba(168, 50, 74, 0.11); color: var(--danger); }

/* ── Docs layout ────────────────────────────────────────────────────────── */

.docs { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 3rem; align-items: start; }
.docs--with-toc { grid-template-columns: 252px minmax(0, 1fr) 190px; }

.docnav { position: sticky; top: calc(var(--nav-h) + 1.75rem); max-height: calc(100vh - var(--nav-h) - 3.5rem); overflow-y: auto; padding-right: 0.5rem; }
.docnav__group + .docnav__group { margin-top: 1.85rem; }
.docnav__title {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--copper-600); margin-bottom: 0.75rem;
}
.docnav__links { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; border-left: 1px solid var(--bone-200); }
.docnav__links a {
  display: block; padding: 0.42rem 0 0.42rem 0.95rem;
  font-size: 0.855rem; line-height: 1.45; color: var(--ink-500);
  text-decoration: none; margin-left: -1px;
  border-left: 2px solid transparent; transition: color 0.16s, border-color 0.16s;
}
.docnav__links a:hover { color: var(--ink-900); }
.docnav__links a[aria-current="page"] { color: var(--green-600); font-weight: 600; border-left-color: var(--green-600); }

.doctoc { position: sticky; top: calc(var(--nav-h) + 1.75rem); }
.doctoc__title { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 0.75rem; }
.doctoc__links { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.doctoc__links a { font-size: 0.8rem; color: var(--ink-500); text-decoration: none; line-height: 1.4; display: block; }
.doctoc__links a:hover { color: var(--green-600); }
.doctoc__links li[data-level="3"] { padding-left: 0.85rem; }

.docsearch { position: relative; max-width: 520px; }
.docsearch input {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  border: 1px solid rgba(245, 240, 232, 0.24); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07); color: var(--bone-100);
}
.docsearch input::placeholder { color: rgba(245, 240, 232, 0.42); }
.docsearch input:focus { outline: none; border-color: var(--copper-400); background: rgba(255, 255, 255, 0.11); }
.docsearch__icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: rgba(245, 240, 232, 0.45); fill: none; stroke-width: 1.8; pointer-events: none; }
.docsearch__results {
  position: absolute; inset: calc(100% + 0.5rem) 0 auto 0; z-index: 20;
  background: var(--white); border: 1px solid var(--bone-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto; display: none;
}
.docsearch__results[data-open="true"] { display: block; }
.docsearch__result { display: block; padding: 0.85rem 1.1rem; text-decoration: none; border-bottom: 1px solid var(--bone-100); }
.docsearch__result:last-child { border-bottom: 0; }
.docsearch__result:hover, .docsearch__result:focus { background: var(--bone-50); }
.docsearch__result-cat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-600); }
.docsearch__result-title { font-size: 0.9rem; font-weight: 600; color: var(--ink-900); margin-top: 0.15rem; }
.docsearch__result-text { font-size: 0.8rem; color: var(--ink-500); margin-top: 0.15rem; line-height: 1.45; }
.docsearch__empty { padding: 1.1rem; font-size: 0.85rem; color: var(--ink-500); }

/* Prose (docs + blog body) */
.prose { font-size: 1rem; line-height: 1.75; color: var(--ink-700); max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--ink-900); letter-spacing: -0.015em; line-height: 1.25;
  margin-top: 2.6rem; padding-top: 0.3rem;
}
.prose h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--ink-900); margin-top: 2rem; }
.prose h4 { font-size: 1rem; font-weight: 700; color: var(--ink-900); margin-top: 1.6rem; }
.prose p { margin-top: 1.15rem; }
.prose ul, .prose ol { margin-top: 1.15rem; padding-left: 1.4rem; }
.prose li + li { margin-top: 0.45rem; }
.prose a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--green-700); }
.prose strong { color: var(--ink-900); font-weight: 650; }
.prose blockquote {
  border-left: 3px solid var(--copper-400);
  padding: 0.25rem 0 0.25rem 1.35rem;
  font-style: italic; color: var(--ink-500);
}
.prose code {
  font-family: var(--font-mono); font-size: 0.855em;
  background: var(--bone-100); color: var(--copper-700);
  padding: 0.14em 0.42em; border-radius: 3px;
}
.prose pre {
  background: var(--ink-900); color: var(--bone-100);
  padding: 1.15rem 1.35rem; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.65;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--bone-200); }
.prose th { font-weight: 650; color: var(--ink-900); background: var(--bone-50); font-size: 0.83rem; }
.prose img { border-radius: var(--radius); border: 1px solid var(--bone-200); }
.prose hr { border: 0; border-top: 1px solid var(--bone-200); margin-block: 2.2rem; }

/* ── Ticket thread ──────────────────────────────────────────────────────── */

.thread { display: flex; flex-direction: column; gap: 1.1rem; }
.msg {
  border: 1px solid var(--bone-200); border-radius: var(--radius);
  padding: 1.25rem 1.45rem; background: var(--white);
}
.msg--agent { background: var(--bone-50); border-color: var(--bone-300); border-left: 3px solid var(--green-600); }
.msg--system { background: transparent; border-style: dashed; text-align: center; padding: 0.8rem; }
.msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.msg__author { font-size: 0.87rem; font-weight: 650; color: var(--ink-900); }
.msg__role {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.16rem 0.5rem; border-radius: 3px;
  background: rgba(45, 106, 79, 0.11); color: var(--green-600);
}
.msg__time { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-300); margin-left: auto; }
.msg__body { font-size: 0.92rem; line-height: 1.68; color: var(--ink-700); white-space: pre-wrap; word-break: break-word; }
.msg__attach {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem;
  font-size: 0.8rem; color: var(--green-600); text-decoration: none;
  padding: 0.4rem 0.7rem; border: 1px solid var(--bone-200); border-radius: var(--radius-sm);
}
.msg__attach:hover { background: var(--bone-50); }

.ticketmeta {
  background: var(--white); border: 1px solid var(--bone-200);
  border-radius: var(--radius); padding: 1.5rem;
  position: sticky; top: calc(var(--nav-h) + 1.75rem);
}
.ticketmeta__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.68rem 0; border-bottom: 1px solid var(--bone-100); font-size: 0.84rem; }
.ticketmeta__row:last-child { border-bottom: 0; }
.ticketmeta__key { color: var(--ink-500); flex-shrink: 0; }
.ticketmeta__val { font-weight: 600; text-align: right; color: var(--ink-900); }

.refbadge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.06em;
  background: rgba(245, 240, 232, 0.1); border: 1px solid rgba(245, 240, 232, 0.2);
  color: var(--bone-100); padding: 0.45rem 0.85rem; border-radius: var(--radius-sm);
}

/* ── Live chat widget ───────────────────────────────────────────────────── */

.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--green-700); color: var(--bone-100);
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: background 0.18s, transform 0.18s;
}
.chat-launcher:hover { background: var(--green-600); transform: translateY(-2px); }
.chat-launcher svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.chat-launcher__badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--copper-500); color: var(--white);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  display: none; align-items: center; justify-content: center;
}
.chat-launcher__badge[data-visible="true"] { display: flex; }
.chat-launcher[data-hidden="true"] { display: none; }

.chatpanel {
  position: fixed; bottom: 22px; right: 22px; z-index: 81;
  width: min(410px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 88px));
  background: var(--white);
  border: 1px solid var(--bone-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.chatpanel[data-open="true"] { display: flex; }
.chatpanel [hidden] { display: none !important; }

.chatpanel__head {
  background: var(--green-800); color: var(--bone-100);
  padding: 1.1rem 1.25rem; flex-shrink: 0;
  display: flex; align-items: flex-start; gap: 0.85rem;
}
.chatpanel__title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.25; }
.chatpanel__status { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6); margin-top: 0.28rem; }
.chatpanel__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-closed); }
.chatpanel__status[data-online="true"] .dot { background: #4FA96A; box-shadow: 0 0 0 3px rgba(79, 169, 106, 0.22); }
.chatpanel__close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: rgba(245, 240, 232, 0.65); padding: 0.25rem; line-height: 0;
}
.chatpanel__close:hover { color: var(--bone-100); }
.chatpanel__close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.chatpanel__log {
  flex: 1; overflow-y: auto; padding: 1rem 1rem 0.5rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--bone-50);
  scroll-behavior: smooth;
}
/* Group consecutive messages from the same sender — reduces gap between them */
.chatmsg { max-width: 82%; display: flex; flex-direction: column; gap: 0.15rem; }
.chatmsg--visitor { align-self: flex-end; align-items: flex-end; }
.chatmsg--agent, .chatmsg--bot { align-self: flex-start; align-items: flex-start; }
.chatmsg--system { align-self: center; max-width: 96%; }
.chatmsg__bubble {
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  max-width: 100%;
}
/* Visitor: green right-aligned bubbles */
.chatmsg--visitor .chatmsg__bubble {
  background: var(--green-700); color: var(--bone-100);
  border-radius: 16px 16px 4px 16px;
}
/* Agent: white left-aligned bubbles */
.chatmsg--agent .chatmsg__bubble, .chatmsg--bot .chatmsg__bubble {
  background: var(--white); border: 1px solid var(--bone-200); color: var(--ink-800);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 3px rgba(20,24,26,0.06);
}
/* System: centred label */
.chatmsg--system .chatmsg__bubble {
  background: transparent;
  color: var(--ink-400); font-size: 0.75rem; text-align: center;
  padding: 0.2rem 0.5rem; border: 0;
}
/* Timestamp — only shown on last bubble in a group via JS */
.chatmsg__meta {
  font-family: var(--font-mono); font-size: 0.58rem; color: var(--ink-300);
  letter-spacing: 0.04em; padding-inline: 0.35rem;
  opacity: 0.7;
}
.chatmsg--visitor .chatmsg__meta { text-align: right; }
/* Agent name label */
.chatmsg__sender {
  font-size: 0.7rem; font-weight: 600; color: var(--green-600);
  padding-inline: 0.35rem; margin-bottom: 0.1rem;
}

.chatpanel__foot { border-top: 1px solid var(--bone-200); padding: 0.85rem; flex-shrink: 0; background: var(--white); }
.chatform { display: flex; gap: 0.55rem; align-items: flex-end; }
.chatform textarea {
  flex: 1; font-family: var(--font-body); font-size: 0.875rem; line-height: 1.5;
  border: 1px solid var(--bone-300); border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem; resize: none; max-height: 110px; min-height: 42px;
  color: var(--ink-900);
}
.chatform textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12); }
.chatform button {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--copper-600); color: var(--white); border: 0; cursor: pointer;
  display: grid; place-items: center; transition: background 0.18s;
}
.chatform button:hover:not([disabled]) { background: var(--copper-500); }
.chatform button[disabled] { opacity: 0.45; cursor: not-allowed; }
.chatform button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.chatpanel__intro { min-height: 0; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; overflow-y: auto; }
.chatpanel__intro .field__label { font-size: .78rem; }
.chatpanel__intro .input, .chatpanel__intro .textarea { background: #fff; border-color: #d9d2c7; }
.chatpanel__intro .btn[aria-busy="true"] { opacity: .68; cursor: wait; }
.chatpanel__quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.85rem 0.7rem; }
.chatpanel__quick button {
  font-size: 0.76rem; padding: 0.35rem 0.7rem; border-radius: 20px;
  border: 1px solid var(--bone-300); background: var(--white);
  color: var(--ink-700); cursor: pointer; transition: border-color 0.16s, background 0.16s;
}
.chatpanel__quick button:hover { border-color: var(--green-500); background: var(--bone-50); }
.chatpanel__tools { display: flex; gap: 0.5rem; padding: 0 0.85rem 0.7rem; }
.chatpanel__tools button {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: none; border: 0; color: var(--ink-300); cursor: pointer; padding: 0.2rem 0;
}
.chatpanel__tools button:hover { color: var(--green-600); text-decoration: underline; }

.typing { display: flex; gap: 3px; padding: 0.7rem 0.95rem; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300); animation: bounce 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: 0.16s; }
.typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.foot { background: var(--green-900); color: var(--bone-100); padding-block: 3.75rem 2rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr; gap: 2.5rem; }
.foot__brand { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.foot__brand i { font-style: italic; color: var(--copper-400); }
.foot__tagline { font-size: 0.85rem; line-height: 1.65; color: rgba(245, 240, 232, 0.48); max-width: 30ch; }
.foot__title { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-400); margin-bottom: 1.1rem; }
.foot__links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.foot__links a { font-size: 0.855rem; color: rgba(245, 240, 232, 0.55); text-decoration: none; transition: color 0.16s; }
.foot__links a:hover { color: var(--bone-100); }
.foot__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.foot__copy { font-size: 0.78rem; color: rgba(245, 240, 232, 0.32); }
.foot__domain { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--copper-400); }

.subscribe { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.subscribe input {
  flex: 1; min-width: 0; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 240, 232, 0.2); border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem; color: var(--bone-100);
}
.subscribe input::placeholder { color: rgba(245, 240, 232, 0.38); }
.subscribe input:focus { outline: none; border-color: var(--copper-400); }

/* ── Reveal on scroll ───────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal[data-visible="true"] { opacity: 1; transform: none; }

/* ── Pagination ─────────────────────────────────────────────────────────── */

.pagination { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; margin-top: 2.5rem; justify-content: center; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 0.7rem;
  font-size: 0.85rem; border: 1px solid var(--bone-200); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-700);
}
.pagination a:hover { border-color: var(--green-500); background: var(--bone-50); }
.pagination [aria-current="page"] { background: var(--green-600); border-color: var(--green-600); color: var(--white); font-weight: 600; }
.pagination .disabled { opacity: 0.4; }

/* ── Empty state ────────────────────────────────────────────────────────── */

.empty { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--bone-300); border-radius: var(--radius); }
.empty__icon { width: 42px; height: 42px; margin: 0 auto 1.1rem; color: var(--ink-300); stroke: currentColor; fill: none; stroke-width: 1.4; }
.empty__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty__text { font-size: 0.9rem; color: var(--ink-500); max-width: 46ch; margin-inline: auto; line-height: 1.6; }
.empty__action { margin-top: 1.5rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .docs, .docs--with-toc { grid-template-columns: 1fr; }
  .docnav, .doctoc { position: static; max-height: none; }
  .doctoc { display: none; }
  .grid--4, .bordergrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .impact { grid-template-columns: 1fr; gap: 2rem; }
  .impact__panel { position: static; }
  .brandsplit { grid-template-columns: 1fr; }
  .grid--3, .bordergrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: 1fr; }
  .ticketmeta { position: static; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4,
  .bordergrid--2, .bordergrid--3, .bordergrid--4 { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr; }
  .statbar__cell { border-right: 0; border-bottom: 1px solid rgba(245, 240, 232, 0.14); }
  .statbar__cell:last-child { border-bottom: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .screen__kpis { grid-template-columns: 1fr; }
  .chatpanel { bottom: 0; right: 0; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
  .chat-launcher { bottom: 16px; right: 16px; padding: 0.8rem 1.1rem; }
  .hero--tall { min-height: auto; }
}

@media print {
  .nav, .nav__drawer, .chat-launcher, .chatpanel, .foot { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   Image media + slideshow (added in the image round)
   ========================================================================== */

/* ── Generic media treatments ───────────────────────────────────────────── */

.media {
  position: relative; overflow: hidden;
  background: var(--bone-100); border-radius: var(--radius);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--banner { aspect-ratio: 21 / 9; }

/* Card cover image sits flush at the top of a card */
.card__media {
  margin: -1.85rem -1.85rem 1.35rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; aspect-ratio: 16 / 9; background: var(--bone-100);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card-link:hover .card__media img { transform: scale(1.04); }

/* Avatars */
.avatar {
  border-radius: 50%; object-fit: cover; background: var(--bone-200);
  flex-shrink: 0; display: block;
}
.avatar--sm { width: 40px; height: 40px; }
.avatar--md { width: 56px; height: 56px; }
.avatar--lg { width: 84px; height: 84px; }

/* Team photo */
.teamphoto {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: rgba(255,255,255,0.06);
  margin-bottom: 1.15rem; display: block;
}

/* Page-head hero image (inner pages) */
.pagehead__media {
  margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 21 / 9; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245, 240, 232, 0.14);
}
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product logo */
.productlogo { max-height: 46px; width: auto; margin-bottom: 1rem; display: block; }

/* ── Slideshow ──────────────────────────────────────────────────────────── */

.slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}
.slider__slide { position: relative; min-width: 100%; flex-shrink: 0; }
.slider__slide .media { border-radius: 0; }
.slider__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 2rem 1.75rem 1.4rem;
  background: linear-gradient(to top, rgba(18, 41, 29, 0.92) 0%, rgba(18, 41, 29, 0.55) 55%, transparent 100%);
  color: var(--bone-100);
}
.slider__caption-title { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }
.slider__caption-text { font-size: 0.9rem; color: rgba(245, 240, 232, 0.78); margin-top: 0.3rem; max-width: 52ch; }
.slider__caption .btn { margin-top: 1rem; }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(18, 41, 29, 0.55); color: var(--bone-100);
  border: 1px solid rgba(245, 240, 232, 0.22);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.18s, opacity 0.18s; backdrop-filter: blur(4px);
}
.slider__arrow:hover { background: var(--green-700); }
.slider__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }

.slider__dots {
  position: absolute; inset: auto 0 14px 0; z-index: 3;
  display: flex; gap: 0.4rem; justify-content: center;
}
.slider__dot {
  width: 8px; height: 8px; border-radius: 50%; cursor: pointer;
  background: rgba(245, 240, 232, 0.4); border: 0; padding: 0;
  transition: background 0.18s, width 0.18s;
}
.slider__dot[aria-current="true"] { background: var(--copper-400); width: 22px; border-radius: 4px; }

.slider--bare .slider__caption { display: none; }

/* Hero carousel band */
.herostrip { background: var(--green-900); }
.herostrip .slider { box-shadow: var(--shadow-lg); }

@media (max-width: 680px) {
  .slider__caption { padding: 1.4rem 1.1rem 1.1rem; }
  .slider__arrow { width: 34px; height: 34px; }
  .card__media { margin: -1.85rem -1.85rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
}

/* ==========================================================================
   Homepage sections + design polish (round E)
   ========================================================================== */

/* ── Partner / client logos ─────────────────────────────────────────────── */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}
.partner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease, transform 0.25s ease;
  display: block;
}
.partner-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.04); }
.partner-logo--light {
  filter: brightness(0) invert(1) opacity(0.5);
}
.partner-logo--light:hover { opacity: 1; filter: brightness(0) invert(1) opacity(0.9); }
.partner-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: -0.01em;
}
.partner-name--light { color: rgba(245, 240, 232, 0.4); }

/* ── Auto-scrolling logo strip ──────────────────────────────────────────── */

.logo-strip {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.logo-strip__track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}
.logo-strip:hover .logo-strip__track { animation-play-state: paused; }
.logo-strip__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* track is duplicated, so -50% loops seamlessly */
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip__track { animation: none; }
  .logo-strip { mask-image: none; -webkit-mask-image: none; }
}

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}
.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--bone-200);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.step-card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 240, 232, 0.12);
  color: var(--bone-100);
}
.step-card--dark:hover { border-color: rgba(245, 240, 232, 0.3); }
.step-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bone-200);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
}
.step-card--dark .step-card__number { color: rgba(245, 240, 232, 0.1); }
.step-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
}
.step-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}
.step-card__body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-500);
}
.step-card--dark .step-card__body { color: rgba(245, 240, 232, 0.58); }

/* connector line between steps on wide screens */
@media (min-width: 940px) {
  .steps-grid { position: relative; }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 3.5rem;
    left: calc(50% / var(--cols, 3));
    right: calc(50% / var(--cols, 3));
    height: 1px;
    background: var(--bone-200);
    z-index: 0;
    pointer-events: none;
  }
  .step-card { z-index: 1; }
}

/* ── Feature highlights ─────────────────────────────────────────────────── */

.feature-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--bone-200);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 240, 232, 0.12);
}
.feature-card--dark:hover { border-color: rgba(245, 240, 232, 0.3); }
.feature-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 1.35rem;
  display: block;
}
.feature-card__icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-800);
  margin-bottom: 1.35rem;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.feature-card--dark .feature-card__title { color: var(--bone-100); }
.feature-card__body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-500);
  flex: 1;
}
.feature-card--dark .feature-card__body { color: rgba(245, 240, 232, 0.58); }

/* ── Design polish: better card hover states ────────────────────────────── */

/* Tighten card inner spacing for denser content */
.card { padding: 1.65rem; }
.card__title { font-size: 1.08rem; }

/* Better focus ring on all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--copper-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Design polish: section heading alignment ───────────────────────────── */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section-header--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* ── Design polish: better prose images ─────────────────────────────────── */

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--bone-200);
  margin-block: 1.5rem;
  max-width: 100%;
}
.prose img.transparent { border: 0; background: none; }

/* ── Design polish: transparent PNG icon support ────────────────────────── */

/* Use .img-transparent anywhere to display PNG without background */
.img-transparent {
  background: transparent;
  border: 0;
  object-fit: contain;
}

/* ── Design polish: CTA band improvements ───────────────────────────────── */

.cta-band {
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 20% 50%, rgba(139, 94, 60, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Design polish: mobile step grid ───────────────────────────────────── */

@media (max-width: 680px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card__number { font-size: 2.2rem; }
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (max-width: 940px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid::before { display: none; }
}

/* ── Brand row (brands index) ───────────────────────────────────────────── */

.brand-row__head {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.brand-row__logo {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.product-mini-card { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.product-mini-card:hover { border-color: var(--green-400); box-shadow: var(--shadow); transform: translateY(-2px); }

@media (max-width: 680px) {
  .brand-row__head { flex-direction: column; }
  .brand-row__head .btn { width: 100%; }
}
