/* ==========================================================================
   iorta 2.0 — Design System
   Derived from the iorta 2.0 "Dot Agents" system.
   Tokens first, then primitives, then components, then page blocks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — dark family */
  --navy-950: #00052E;
  --navy-900: #000740;
  --navy-800: #0A0E4A;
  --indigo-800: #141058;
  --indigo-700: #1B1470;
  --violet-900: #170C46;
  --violet-800: #1D0C53;
  --violet-700: #240A65;

  /* Brand — signal */
  --amber-400: #FFC94D;
  --amber-500: #FFB51E;
  --amber-600: #E89A00;

  /* Brand — blue (light surfaces) */
  --blue-700: #23408F;
  --blue-600: #2F53B2;
  --blue-500: #3A63D8;
  --blue-100: #E4EEFF;
  --blue-050: #F2F6FF;

  /* Neutrals */
  --ink: #0B1020;
  --ink-700: #2A3149;
  --slate-600: #4A5268;
  --slate-500: #6B748C;
  --slate-400: #7B8299;
  --line: #DFE2EC;
  --line-soft: #EDEFF6;
  --panel: #F5F7FC;
  --paper: #FFFFFF;

  /* Dark-surface text */
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9BEDC;
  --on-dark-line: rgba(255, 255, 255, .14);
  --on-dark-card: rgba(255, 255, 255, .05);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-eyebrow: .75rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --lh-tight: 1.14;
  --lh-body: 1.65;

  /* Space */
  --gap: 24px;
  --section-y: clamp(84px, 9vw, 148px);
  --shell: 1200px;
  --shell-narrow: 880px;

  /* Radius + elevation */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 14, 74, .06), 0 4px 16px rgba(10, 14, 74, .05);
  --shadow-md: 0 2px 4px rgba(10, 14, 74, .06), 0 12px 32px rgba(10, 14, 74, .09);
  --shadow-lg: 0 24px 64px rgba(10, 14, 74, .16);

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

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: var(--lh-tight);
}
/* Display headings sit lighter than the sub-heads so the hierarchy reads as
   contrast in size, not in weight. */
h1, h2 { font-weight: 700; }

h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); }
/* Headings in half-width columns take a smaller step so a two-sentence
   heading still lands on two lines rather than four. */
.grid--split > div > h2,
.contact__aside h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.375rem); letter-spacing: -.014em; }
h4 { font-size: 1.0625rem; letter-spacing: -.008em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--amber-500); color: var(--navy-900);
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: var(--navy-900); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: clamp(48px, 5vw, 76px) 0; }
.section--panel { background: var(--panel); }
.section--paper { background: var(--paper); }

/* Dark surfaces --------------------------------------------------------- */
.section--dark {
  background: var(--indigo-800);
  color: var(--on-dark-muted);
  position: relative;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }

.section--gradient {
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(74, 26, 158, .72) 0%, rgba(36, 10, 101, 0) 62%),
    radial-gradient(90% 70% at 12% 96%, rgba(30, 20, 122, .58) 0%, rgba(23, 12, 70, 0) 60%),
    linear-gradient(158deg, #180D47 0%, #200A5C 46%, #150A3F 100%);
  color: var(--on-dark-muted);
  overflow: hidden;
  position: relative;
}
.section--gradient h1, .section--gradient h2,
.section--gradient h3, .section--gradient h4 { color: var(--on-dark); }

/* Faint grid texture on dark surfaces */
.section--gradient::after,
.section--dark.has-grid::after {
  content: "";
  position: absolute; inset: 0;
  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: 76px 76px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.section--gradient > *, .section--dark > * { position: relative; z-index: 1; }

/* Grids ----------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.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--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 14px;
}
.section--dark .eyebrow,
.section--gradient .eyebrow { color: var(--amber-500); }

.lead {
  font-size: var(--fs-lead);
  color: var(--slate-600);
  line-height: 1.6;
}
.section--dark .lead, .section--gradient .lead { color: var(--on-dark-muted); }

.section-head { max-width: 940px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.amber { color: var(--amber-500); }
.muted { color: var(--slate-500); }
.small { font-size: .9375rem; line-height: 1.55; }
.xsmall { font-size: .8125rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 700; letter-spacing: .005em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--amber-500); color: var(--navy-900); box-shadow: 0 8px 24px rgba(255, 181, 30, .28); }
.btn--primary:hover { background: var(--amber-400); color: var(--navy-900); box-shadow: 0 12px 32px rgba(255, 181, 30, .38); }

.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--indigo-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }

.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-900); color: var(--navy-900); background: var(--blue-050); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 10, 55, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--on-dark-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}

.brand { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark {
  font-size: 1.6rem; font-weight: 800; font-style: italic;
  letter-spacing: -.03em; line-height: 1;
}
.brand__tag {
  font-size: .625rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-500);
  padding-bottom: 2px;
}

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .84);
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: color .18s var(--ease), background-color .18s var(--ease);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link.is-active { color: var(--amber-500); }
.nav__caret { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--navy-900); font-weight: 700; font-size: .9375rem;
}
.nav__panel a span { display: block; font-weight: 400; font-size: .8125rem; color: var(--slate-500); margin-top: 2px; }
.nav__panel a:hover { background: var(--blue-050); color: var(--blue-700); }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
  transition: transform .22s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 76px 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px; overflow-y: auto;
    background: var(--indigo-800);
    transform: translateX(100%); transition: transform .3s var(--ease);
  }
  body.nav-open .nav__menu { transform: translateX(0); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: .875rem; border-radius: 0; border-bottom: 1px solid var(--on-dark-line); }
  .nav__panel {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 4px 0 12px;
    display: none;
  }
  .nav__item.is-open .nav__panel { display: block; }
  .nav__panel a { color: rgba(255, 255, 255, .82); padding: 10px 4px; }
  .nav__panel a span { color: var(--on-dark-muted); }
  .nav__panel a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav__cta { margin-top: 24px; justify-content: center; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(140px, 17vw, 220px) 0 clamp(72px, 9vw, 128px); }
.hero__inner { max-width: 860px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .amber { display: block; }
.hero .lead { max-width: 620px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

.hero__credentials {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: clamp(44px, 6vw, 72px);
  font-size: .8125rem; font-weight: 700; color: rgba(255, 255, 255, .9);
}
.hero__credentials li { display: inline-flex; align-items: center; gap: 10px; }
.hero__credentials li:not(:first-child)::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--amber-500); flex: none;
}

.hero--page { padding: clamp(132px, 15vw, 184px) 0 clamp(56px, 7vw, 92px); }
.hero--page h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
.hero--page .lead { max-width: 680px; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CDD5EA; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--slate-600); font-size: .9688rem; line-height: 1.6; }

.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 28px; padding: 0 10px; margin-bottom: 20px;
  background: var(--blue-100); color: var(--blue-600);
  border-radius: var(--r-sm);
  font-size: .8125rem; font-weight: 800; letter-spacing: .04em;
}
.card__num--mint { background: #DCF5EA; color: #12805A; }
.card__num--lilac { background: #E9E4FF; color: #5B3FD1; }

/* Dark card */
.card--dark {
  background: var(--on-dark-card);
  border-color: var(--on-dark-line);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.card--dark:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); box-shadow: none; }
.card--dark p { color: var(--on-dark-muted); }

.card--amber { background: var(--amber-500); border-color: var(--amber-500); }
.card--amber h3, .card--amber .eyebrow, .card--amber p, .card--amber strong { color: var(--navy-900); }
.card--amber:hover { background: var(--amber-400); border-color: var(--amber-400); }

/* Numbered pill used on dark cards */
.pill-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--amber-500); color: var(--navy-900);
  font-size: .8125rem; font-weight: 800;
}
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card__head h3 { margin: 0; }

/* Product card ---------------------------------------------------------- */
.product-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CDD5EA; }
.product-card__name { font-size: 1.25rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.018em; }
.product-card__kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; line-height: 1.5; }
/* Written as `p.product-card__kicker` deliberately: the `.product-card p` rule
   below sets flex:1 and outranks a lone class selector, so the kicker would
   otherwise stretch and absorb the card's leftover space. */
.product-card p.product-card__kicker { flex: none; margin-top: 0; }
/* In the four-up DOT layer the kickers wrap to different depths; reserve two
   lines so every product name starts on the same baseline. */
.dot-layer .product-card p.product-card__kicker { min-height: 3em; }
.product-card p { color: var(--slate-600); font-size: .9688rem; margin: 12px 0 22px; flex: 1; }

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stat__value {
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
  color: var(--blue-500);
}
.stat__label { margin-top: 14px; font-size: .9375rem; color: var(--slate-600); line-height: 1.5; max-width: 260px; }
.section--dark .stat__value, .section--gradient .stat__value { color: var(--amber-500); }
.section--dark .stat__label, .section--gradient .stat__label { color: var(--on-dark-muted); }

.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .stat-strip { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   10. Panels, lists, misc blocks
   -------------------------------------------------------------------------- */
.panel {
  background: var(--blue-050);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 28px;
}
.panel .eyebrow { margin-bottom: 16px; }

/* For panels sitting on a dark or gradient surface. */
.panel--dark {
  background: var(--on-dark-card);
  border-color: var(--on-dark-line);
}

.tick-list li {
  position: relative; padding-left: 32px; margin-bottom: 14px;
  font-size: .9688rem; color: var(--slate-600); line-height: 1.55;
}
.tick-list li:last-child { margin-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F53B2' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section--dark .tick-list li, .section--gradient .tick-list li { color: var(--on-dark-muted); }
.section--dark .tick-list li::before, .section--gradient .tick-list li::before {
  background-color: rgba(255, 181, 30, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB51E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Feature grid (product pages) ------------------------------------------ */
.feature {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); height: 100%;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { border-color: #CDD5EA; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature h4 { margin-bottom: 8px; }
.feature p { font-size: .9375rem; color: var(--slate-600); margin: 0; line-height: 1.55; }
.feature__dot {
  display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--amber-500); margin-bottom: 16px;
}
.feature__ai {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .8125rem; font-weight: 600; color: var(--blue-600); line-height: 1.45;
}
.feature__ai svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }

/* Reason chips ---------------------------------------------------------- */
.reasons { display: flex; flex-wrap: wrap; gap: 12px; }
.reasons li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 600; color: var(--ink-700);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.reasons li:hover { border-color: var(--amber-600); background: rgba(255, 181, 30, .12); }
/* Dark surfaces invert the chips. */
.section--dark .reasons li, .section--gradient .reasons li {
  background: var(--on-dark-card); border-color: var(--on-dark-line);
  color: rgba(255, 255, 255, .92);
}
.section--dark .reasons li:hover, .section--gradient .reasons li:hover {
  border-color: rgba(255, 181, 30, .55); background: rgba(255, 181, 30, .1);
}
.reasons li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-500); flex: none;
}

/* Logo wall ------------------------------------------------------------- */
.logo-wall {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 44px;
}
.logo-wall li {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--navy-900); opacity: .68;
  transition: opacity .2s var(--ease);
}
.logo-wall li:hover { opacity: 1; }
.section--dark .logo-wall li, .section--gradient .logo-wall li { color: #fff; opacity: .74; }

/* Testimonials ---------------------------------------------------------- */
.quote {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 32px; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.quote__mark { font-size: 2.75rem; line-height: .6; color: var(--amber-500); font-weight: 800; margin-bottom: 18px; }
.quote p { font-size: 1.0625rem; color: var(--ink-700); line-height: 1.6; flex: 1; }
.quote footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.quote cite { display: block; font-style: normal; font-weight: 800; color: var(--navy-900); font-size: .9688rem; }
.quote span { display: block; font-size: .875rem; color: var(--slate-500); margin-top: 3px; }

/* Timeline / steps ------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px;
  padding: 24px 0; border-top: 1px solid var(--on-dark-line);
}
.step:last-child { border-bottom: 1px solid var(--on-dark-line); }
.step__num {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--amber-500); line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--on-dark-muted); font-size: .9688rem; margin: 0; }
@media (max-width: 560px) { .step { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Light-surface variant of the same timeline. */
.steps--light .step { border-top-color: var(--line); }
.steps--light .step:last-child { border-bottom-color: var(--line); }
.steps--light .step__num { color: var(--blue-500); }
.steps--light .step p { color: var(--slate-600); }

/* Policy lifecycle rail --------------------------------------------------
   Six stages read left-to-right on desktop and collapse to a stacked list
   on narrow screens. The connecting rule is drawn on the track, not on the
   stages, so it never overshoots the first or last marker. */
.lifecycle {
  --lc-cols: 6;
  --lc-gap: 18px;
  --lc-marker: 32px;
  display: grid;
  grid-template-columns: repeat(var(--lc-cols), minmax(0, 1fr));
  gap: var(--lc-gap);
  position: relative;
  counter-reset: stage;
}
/* The rail must run marker-centre to marker-centre. Markers sit at the LEFT
   of each column (not centred), so the start is half a marker in, and the end
   is one column short of the right edge plus that same half-marker. */
.lifecycle::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(var(--lc-marker) / 2);
  right: calc(
    (100% - (var(--lc-cols) - 1) * var(--lc-gap)) / var(--lc-cols)
    - var(--lc-marker) / 2
  );
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--amber-500));
  opacity: .35;
}
.lifecycle__stage { position: relative; padding-top: 46px; }
.lifecycle__stage::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-900); color: #fff;
  font-size: .6875rem; font-weight: 800; letter-spacing: .02em;
}
.lifecycle__stage:last-child::before { background: var(--amber-500); color: var(--navy-900); }
.lifecycle__name {
  display: block; margin-bottom: 8px;
  font-size: 1.0625rem; font-weight: 800; letter-spacing: -.012em;
  color: var(--navy-900);
}
.lifecycle__agent {
  display: block; margin-bottom: 10px;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.lifecycle__stage p { margin: 0; font-size: .9063rem; color: var(--slate-600); line-height: 1.55; }

/* On dark surfaces the rail inverts. */
.section--dark .lifecycle__stage::before,
.section--gradient .lifecycle__stage::before { background: var(--amber-500); color: var(--navy-900); }
.section--dark .lifecycle__name,
.section--gradient .lifecycle__name { color: var(--on-dark); }
.section--dark .lifecycle__agent,
.section--gradient .lifecycle__agent { color: var(--amber-500); }
.section--dark .lifecycle__stage p,
.section--gradient .lifecycle__stage p { color: var(--on-dark-muted); }

@media (max-width: 1080px) {
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
  .lifecycle::before { display: none; }
}
@media (max-width: 680px) {
  .lifecycle { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lifecycle__stage { padding-top: 0; padding-left: 48px; }
  .lifecycle__stage::before { top: 2px; }
}

/* DOT framework enclosing the systems it acts on -------------------------
   The border is the point: the four systems sit inside the agentic layer
   rather than beside it. */
.dot-layer {
  position: relative;
  margin-top: 44px;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-lg);
  /* Same blue-to-violet ground as every other agent surface on the site, so
     the framework reads as one continuous layer wrapping the white systems. */
  background: linear-gradient(152deg, var(--blue-700) 0%, var(--indigo-800) 52%, var(--violet-700) 100%);
  box-shadow: var(--shadow-lg);
}
.dot-layer__tag {
  position: absolute; top: 0; left: clamp(24px, 3vw, 40px);
  transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: var(--r-pill);
  background: var(--amber-500); color: var(--navy-900);
  font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(255, 181, 30, .28);
}
.dot-layer__tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy-900); flex: none;
}
.dot-layer__intro {
  max-width: 720px; margin: 6px 0 30px;
  font-size: 1.0625rem; color: var(--on-dark-muted); line-height: 1.6;
}
.dot-layer__intro strong { color: #fff; font-weight: 700; }
/* Scoped to the intro only — this link sits on the dark gradient. The product
   cards inside the layer are white, where amber would be unreadable. */
.dot-layer__intro .link-arrow { color: var(--amber-500); }
.dot-layer__intro .link-arrow:hover { color: var(--amber-400); }
.dot-layer__foot {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px dashed var(--on-dark-line);
}
.dot-layer__foot li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .875rem; font-weight: 700; color: #fff;
}
.dot-layer__foot li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-500); flex: none;
}
@media (max-width: 620px) {
  .dot-layer { padding: 34px 18px 24px; }
  .dot-layer__tag { left: 18px; letter-spacing: .1em; font-size: .6875rem; }
}

/* The question a framework pillar answers — sits under the card copy. */
.card__q {
  margin: 14px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--on-dark-line);
  font-size: .875rem; font-weight: 700; color: var(--amber-500); line-height: 1.5;
}

/* Stage marker used on product pages to place them inside the lifecycle. */
.stage-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: var(--r-pill);
  background: var(--blue-050); border: 1px solid var(--line-soft);
  font-size: .8125rem; font-weight: 700; color: var(--navy-900);
}
.stage-tag strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--r-pill);
  background: var(--navy-900); color: #fff;
  font-size: .6875rem; font-weight: 800; letter-spacing: .04em;
}
.section--dark .stage-tag, .section--gradient .stage-tag {
  background: var(--on-dark-card); border-color: var(--on-dark-line); color: var(--on-dark);
}
.section--dark .stage-tag strong, .section--gradient .stage-tag strong {
  background: var(--amber-500); color: var(--navy-900);
}

/* Tabs ------------------------------------------------------------------ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  padding: 11px 22px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: .875rem; font-weight: 700; color: var(--slate-600);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.tab:hover { border-color: var(--navy-900); color: var(--navy-900); }
.tab[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tab-panel[hidden] { display: none; }

/* Domain block ---------------------------------------------------------- */
.domain {
  border-top: 2px solid var(--navy-900);
  padding-top: 26px;
}
.domain__index { font-size: .75rem; font-weight: 800; letter-spacing: .2em; color: var(--blue-600); text-transform: uppercase; }
.domain h3 { margin: 12px 0 12px; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.domain > p { color: var(--slate-600); font-size: .9688rem; }
.domain ol { counter-reset: d; margin: 22px 0 0; padding: 0; list-style: none; }
.domain ol li { position: relative; padding: 0 0 0 34px; margin-bottom: 18px; }
.domain ol li::before {
  counter-increment: d; content: counter(d);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  font-size: .6875rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.domain ol strong { display: block; color: var(--navy-900); font-weight: 700; margin-bottom: 4px; font-size: .9688rem; }
.domain ol p { margin: 0; font-size: .9375rem; color: var(--slate-600); line-height: 1.55; }
.domain__why {
  margin-top: 24px; padding: 16px 18px;
  background: var(--blue-050); border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .875rem; color: var(--slate-600); line-height: 1.55;
}
.domain__why strong { color: var(--navy-900); }

/* --------------------------------------------------------------------------
   11. Contact form
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 940px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block; margin-bottom: 7px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255, 255, 255, .85); text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  color: #fff; font-family: inherit; font-size: .9375rem;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); background: rgba(255, 255, 255, .1);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9BEDC' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 15px; padding-right: 40px; }
.field select option { background: var(--indigo-800); color: #fff; }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.field .error { display: none; margin-top: 6px; font-size: .8125rem; color: #FFA9A9; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #FF8080; }
.field.is-invalid .error { display: block; }

.form-note { margin-top: 18px; font-size: .8125rem; color: var(--on-dark-muted); }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(255, 181, 30, .14); border: 1px solid rgba(255, 181, 30, .4); color: var(--amber-400); }

.contact__aside address { font-style: normal; }
.contact__aside h4 { color: #fff; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.contact__block { margin-bottom: 28px; }
.contact__block p { color: var(--on-dark-muted); font-size: .9375rem; margin: 0; }
.contact__block a { color: var(--amber-500); font-weight: 600; }
.contact__block a:hover { color: var(--amber-400); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 84px) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px 28px;
  padding-bottom: 48px; border-bottom: 1px solid var(--on-dark-line);
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-col h5 {
  margin: 0 0 16px; color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--on-dark-muted); font-size: .9375rem; }
.footer-col a:hover { color: var(--amber-500); }
.footer-brand p { font-size: .9375rem; max-width: 320px; margin-top: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--on-dark-line); color: var(--on-dark-muted);
  transition: all .2s var(--ease);
}
.footer-social a:hover { border-color: var(--amber-500); color: var(--amber-500); background: rgba(255, 181, 30, .1); }
.footer-social svg { width: 17px; height: 17px; }

.footer-locations { padding: 32px 0; border-bottom: 1px solid var(--on-dark-line); }
.footer-locations h5 { margin: 0 0 14px; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.footer-locations ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.footer-locations li { font-size: .875rem; color: var(--on-dark-muted); }
.footer-locations li:not(:last-child)::after { content: " ·"; color: var(--amber-500); margin-left: 8px; }

.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 26px 0 34px;
  font-size: .8125rem;
}
.footer-base ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-base a { color: var(--on-dark-muted); font-size: .8125rem; }
.footer-base a:hover { color: var(--amber-500); }

/* Back to top ----------------------------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber-500); color: var(--navy-900);
  border: 0; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--amber-400); }
.to-top svg { width: 18px; height: 18px; }

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

/* --------------------------------------------------------------------------
   14. Home hero visual — an agent at work
   -------------------------------------------------------------------------- */
.hero--home .hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero--home .hero__inner { max-width: 640px; }

@media (max-width: 1080px) {
  .hero--home .hero__layout { grid-template-columns: minmax(0, 1fr); }
  /* Scoped to the hero deliberately: the same panel is reused inside the
     persona tabs, where it is the content and must stay visible. */
  .hero--home .agent-panel { display: none; }
}

.agent-panel {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(165deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 32px 80px rgba(4, 2, 30, .55);
  padding: 20px;
  animation: panel-float 9s ease-in-out infinite;
}
@keyframes panel-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .agent-panel { animation: none; } }

.agent-panel__bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.agent-panel__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; flex: none;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}
.agent-panel__title { font-size: .8125rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.agent-panel__meta { margin-left: auto; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-500); }

.agent-line { display: flex; gap: 12px; padding: 11px 0; }
.agent-line + .agent-line { border-top: 1px dashed rgba(255, 255, 255, .1); }
.agent-line__tag {
  flex: none; width: 40px;
  font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark-muted); padding-top: 3px;
}
.agent-line p { margin: 0; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.agent-line--dot p { color: var(--on-dark-muted); }
.agent-line--dot .agent-line__tag { color: var(--amber-500); }

.agent-panel__foot {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.agent-metric__v { font-size: 1.125rem; font-weight: 800; color: var(--amber-500); letter-spacing: -.02em; line-height: 1; }
.agent-metric__l { display: block; margin-top: 5px; font-size: .6875rem; color: var(--on-dark-muted); line-height: 1.35; }

/* Inset variant — the same panel on a light section (the persona tabs).
   Needs its own opaque ground because the hero version is translucent white
   over a violet gradient, which would be illegible on light grey. */
.agent-panel--inset {
  /* Travels from a true blue into deep violet so the panel reads with depth
     rather than as one flat indigo. */
  background: linear-gradient(152deg, var(--blue-700) 0%, var(--indigo-800) 52%, var(--violet-700) 100%);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: var(--shadow-lg);
  animation: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.agent-badge {
  position: absolute; right: -12px; top: -18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--amber-500); color: var(--navy-900);
  font-size: .75rem; font-weight: 800;
  box-shadow: 0 14px 34px rgba(255, 181, 30, .34);
}

/* --------------------------------------------------------------------------
   15. Product interface mockups
   Stylised recreations of the product UI, built in markup rather than as
   screenshots so they stay responsive, theme-consistent and need no image
   pipeline (this repo ships no image assets).
   -------------------------------------------------------------------------- */
.ui-mock {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
  box-shadow: var(--shadow-lg);
  font-size: .8125rem; line-height: 1.45; color: var(--ink-700);
}

/* App bar + dark head ---------------------------------------------------- */
.ui-mock__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--navy-900); color: #fff;
}
.ui-mock--teal .ui-mock__bar, .ui-mock--teal .ui-mock__head { background: #0C2C31; }
.ui-mock__brand { font-weight: 800; font-size: .875rem; letter-spacing: -.01em; }
.ui-mock__crumb { font-size: .75rem; color: rgba(255, 255, 255, .6); }
.ui-mock__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .6875rem; color: rgba(255, 255, 255, .66); }
.ui-mock__who { display: flex; align-items: center; gap: 8px; }
.ui-mock__ava {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--blue-500), var(--violet-700));
}
.ui-mock__head { padding: 0 18px 20px; background: var(--navy-900); color: #fff; }
.ui-mock__hello { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ui-mock__name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.015em; margin-top: 3px; }
.ui-mock__sub { font-size: .6875rem; color: rgba(255, 255, 255, .5); margin-top: 3px; }

.ui-mock__body { padding: 16px; background: var(--panel); }
.ui-mock__body--flush { padding: 0; background: var(--paper); }

/* Widget cards ----------------------------------------------------------- */
.ui-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ui-card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 12px 13px;
}
.ui-card__head {
  display: flex; align-items: center; gap: 8px;
  margin: -12px -13px 11px; padding: 10px 13px;
  background: var(--blue-050); border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-weight: 800; color: var(--navy-900); font-size: .8125rem;
}
.ui-card__count {
  min-width: 20px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--blue-100); color: var(--blue-700);
  font-size: .625rem; font-weight: 800; text-align: center;
}
.ui-card__ext { margin-left: auto; color: var(--blue-600); font-size: .75rem; }

/* Big stat triple -------------------------------------------------------- */
.ui-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: left; }
.ui-stat__n { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy-900); line-height: 1.1; }
.ui-stat__n--warn { color: var(--amber-600); }
.ui-stat__n--bad  { color: #D64545; }
.ui-stat__n--good { color: #12805A; }
.ui-stat__l { font-size: .625rem; color: var(--slate-500); margin-top: 2px; }

/* Agent suggestion row --------------------------------------------------- */
/* Block, not flex: the copy has inline <strong> and a trailing action span,
   and flex would lay each of those out as its own column. */
.ui-note {
  position: relative; margin-top: 11px; padding: 9px 10px 9px 28px;
  background: linear-gradient(180deg, var(--blue-050), rgba(228, 238, 255, .35));
  border: 1px solid var(--line-soft); border-radius: 6px;
  font-size: .6875rem; color: var(--slate-600); line-height: 1.45;
}
.ui-note::before {
  content: "✦"; position: absolute; left: 10px; top: 8px;
  color: var(--blue-500); font-size: .75rem; line-height: 1.2;
}
.ui-note strong { color: var(--navy-900); font-weight: 700; }
.ui-note__act { display: block; margin-top: 5px; font-weight: 800; color: var(--blue-600); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; }

/* Task rows + priority pills --------------------------------------------- */
.ui-row { padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: .6875rem; }
.ui-row:first-of-type { border-top: 0; }
.ui-row__top { display: flex; align-items: center; gap: 8px; color: var(--slate-500); font-size: .625rem; margin-bottom: 4px; }
.ui-row p { margin: 0; color: var(--ink-700); }
.ui-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-weight: 800; font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase;
}
.ui-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ui-pill--high { color: #D64545; }
.ui-pill--med  { color: var(--amber-600); }
.ui-pill--low  { color: #12805A; }

/* Target / actual / achievement ------------------------------------------ */
.ui-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ui-kpi__v { font-size: .9375rem; font-weight: 800; color: var(--navy-900); }
.ui-kpi__l { font-size: .5625rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.ui-kpi__label { font-size: .625rem; font-weight: 800; color: var(--blue-700); margin-bottom: 7px; }

/* Progress bar + stage list ---------------------------------------------- */
.ui-bar { position: relative; height: 6px; border-radius: 999px; background: var(--line-soft); margin: 10px 0 12px; }
.ui-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--amber-500); }
.ui-bar__v {
  position: absolute; top: -8px; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 999px; background: var(--amber-500); color: var(--navy-900);
  font-size: .5625rem; font-weight: 800;
}
.ui-steps { display: grid; gap: 9px; }
/* Block, so the status <span> stacks under its label instead of beside it. */
.ui-steps li { position: relative; padding-left: 16px; font-size: .6875rem; color: var(--navy-900); font-weight: 700; }
.ui-steps li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500);
}
.ui-steps span { display: block; font-weight: 600; font-size: .625rem; margin-top: 1px; }
.ui-steps .is-done span { color: #12805A; }
.ui-steps .is-now span  { color: var(--amber-600); }
.ui-steps .is-wait span { color: var(--slate-400); }
.ui-steps .is-wait::before { background: var(--line); }

/* Compact table ---------------------------------------------------------- */
.ui-table { width: 100%; border-collapse: collapse; font-size: .6875rem; }
.ui-table th {
  text-align: left; padding: 8px 10px; background: var(--blue-050);
  color: var(--navy-900); font-weight: 800; font-size: .625rem;
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.ui-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--slate-600); white-space: nowrap; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table strong { color: var(--navy-900); font-weight: 700; }
.ui-scroll { overflow-x: auto; }

/* Status strip ----------------------------------------------------------- */
.ui-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 11px 14px; background: var(--paper);
  border-bottom: 1px solid var(--line-soft); font-size: .6875rem;
}
.ui-strip strong { color: var(--navy-900); font-weight: 800; }
.ui-tag {
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: .5625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ui-tag--new  { background: #FDE7E7; color: #B03030; }
.ui-tag--ok   { background: #DCF5EA; color: #12805A; }
.ui-tag--work { background: #FFF1D6; color: var(--amber-600); }

/* Chip row (product tabs) ------------------------------------------------ */
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ui-chip {
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-size: .625rem; font-weight: 700; color: var(--slate-600);
}
.ui-chip.is-on { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

/* App tile grid (WrapDrive) ---------------------------------------------- */
.ui-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.ui-tile {
  padding: 14px 10px; text-align: center;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  font-size: .625rem; font-weight: 700; color: var(--navy-900);
}
.ui-tile__ico {
  width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 8px;
  background: linear-gradient(140deg, var(--blue-500), var(--violet-700));
}
.ui-tile__ico--b { background: linear-gradient(140deg, #12805A, #0E5C7A); }
.ui-tile__ico--c { background: linear-gradient(140deg, var(--amber-500), #E8620A); }
.ui-tile__ico--d { background: linear-gradient(140deg, #5B3FD1, #B02A8F); }
.ui-tile span { display: block; font-weight: 600; color: var(--slate-500); margin-top: 2px; font-size: .5625rem; }

@media (max-width: 620px) {
  .ui-mock { font-size: .75rem; }
  .ui-mock__body { padding: 12px; }
  .ui-cards { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   16. Product hero visual — a product screen with the Dot agent on top
   -------------------------------------------------------------------------- */
.hero--product .hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}
.hero--product .hero__inner { max-width: 560px; }
/* The text column is narrower than a full-width hero, so the display size
   steps down to keep a two-line headline on two lines. */
.hero--product h1 { font-size: clamp(2.1rem, 3.9vw, 2.8rem); }

@media (max-width: 1080px) {
  .hero--product .hero__layout { grid-template-columns: minmax(0, 1fr); }
  /* The full interface lives further down the page, so the hero stays tight
     on small screens rather than stacking a second copy of it. */
  .hero-shot { display: none; }
}

/* The padding reserves room for the Dot panel to hang below the screen, so it
   overlaps only the lower third and the product UI stays readable. */
.hero-shot { position: relative; padding-bottom: 104px; }

/* Compact scale of the interface mock, for hero use. */
.ui-mock--sm { font-size: .6875rem; }
.ui-mock--sm .ui-mock__bar { padding: 10px 14px; }
.ui-mock--sm .ui-mock__brand { font-size: .75rem; }
.ui-mock--sm .ui-mock__head { padding: 0 14px 15px; }
.ui-mock--sm .ui-mock__name { font-size: .9375rem; }
.ui-mock--sm .ui-mock__body { padding: 12px; }
.ui-mock--sm .ui-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ui-mock--sm .ui-stat__n { font-size: 1.125rem; }
.ui-mock--sm .ui-card { padding: 10px 11px; }
.ui-mock--sm .ui-card__head { margin: -10px -11px 9px; padding: 8px 11px; font-size: .6875rem; }

/* The Dot panel sits over the product screen and is ringed in amber so the
   agent — not the dashboard — is what the eye lands on first. */
.dot-overlay {
  position: absolute; right: -14px; bottom: 0;
  width: min(300px, 76%);
  padding: 13px 14px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(152deg, var(--blue-700) 0%, var(--indigo-800) 55%, var(--violet-700) 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 26px 58px rgba(4, 2, 30, .58), 0 0 0 4px rgba(255, 181, 30, .26);
}
.dot-overlay__bar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: .75rem; font-weight: 800; color: #fff; letter-spacing: .01em;
}
.dot-overlay__tag {
  margin-left: auto; font-size: .5625rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-500);
}
.dot-overlay .agent-line { padding: 9px 0; }
.dot-overlay .agent-line p { font-size: .75rem; line-height: 1.45; }
.dot-overlay .agent-line__tag { width: 32px; font-size: .5625rem; }

@media (max-width: 1200px) {
  .dot-overlay { right: 0; width: min(290px, 88%); }
}

/* --------------------------------------------------------------------------
   17. Company hero seal — the ISO/IEC 27001 certification badge
   Painted as a background rather than an <img> so that if the asset is ever
   missing the hero simply falls back to its single-column look, with no
   broken-image icon on a live page.
   -------------------------------------------------------------------------- */
.hero--seal .hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero--seal .hero__inner { max-width: 620px; }

.hero-seal {
  width: 100%;
  aspect-ratio: 711 / 543;  /* the badge's own viewBox */
  background: url("../img/iso-27001-certified.svg") center/contain no-repeat;
  filter: drop-shadow(0 18px 40px rgba(4, 2, 30, .45));
}

@media (max-width: 940px) {
  .hero--seal .hero__layout { grid-template-columns: minmax(0, 1fr); }
  .hero-seal { max-width: 220px; margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   18. Legal pages — long-form numbered policy text
   -------------------------------------------------------------------------- */
.legal { counter-reset: sec; }

.legal section + section { margin-top: clamp(38px, 4vw, 54px); }

.legal h2 {
  counter-increment: sec;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -.012em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.legal h2::before {
  content: counter(sec) ".";
  display: inline-block; min-width: 1.9em;
  color: var(--blue-600); font-weight: 800;
}
.legal--restart { counter-reset: sec; }

.legal p { color: var(--slate-600); }
.legal > p:first-child { margin-bottom: 26px; }

/* Numbered clauses, one level of nesting. */
.legal ol { counter-reset: item; margin: 0; padding: 0; list-style: none; }
.legal ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
  color: var(--slate-600);
  font-size: 1rem; line-height: 1.65;
}
.legal ol > li:last-child { margin-bottom: 0; }
.legal ol > li::before {
  content: counter(sec) "." counter(item);
  position: absolute; left: 0; top: 0;
  font-family: var(--font);
  font-size: .8125rem; font-weight: 800;
  color: var(--blue-600);
  font-variant-numeric: tabular-nums;
  padding-top: .28em;
}
.legal ol ol { margin: 12px 0 0; }
.legal ol ol > li { padding-left: 30px; margin-bottom: 9px; font-size: .9688rem; }
.legal ol ol > li::before {
  content: "—";
  color: var(--slate-400); font-weight: 700;
}
.legal li strong { color: var(--navy-900); font-weight: 700; }

.legal__meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 16px 20px; margin-bottom: clamp(38px, 4vw, 52px);
  background: var(--blue-050);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .9375rem; color: var(--slate-600);
}
.legal__meta strong { color: var(--navy-900); font-weight: 700; }

.legal__jump {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px; padding: 11px 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 700; color: var(--navy-900);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.legal__jump:hover { border-color: var(--blue-500); background: var(--blue-050); color: var(--navy-900); }

@media (max-width: 620px) {
  .legal ol > li { padding-left: 38px; }
  .legal h2::before { min-width: 1.6em; }
}
