@charset "utf-8";

/* ==========================================================================
   APM Web Solutions — design system
   1. Fonts
   2. Tokens
   3. Reset & base
   4. Layout primitives
   5. Components
   6. Product previews
   7. Page sections
   8. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-var.woff2") format("woff2-variations"),
       url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter-var.woff2") format("woff2-variations"),
       url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  /* indigo ramp */
  --i-50:  #EFEFFE;
  --i-100: #E0E0FD;
  --i-200: #C4C4FA;
  --i-300: #9E9DF6;
  --i-400: #7472F2;
  --i-500: #3B3BEC;
  --i-600: #2D2BD1;
  --i-700: #2321A6;
  --i-800: #1B1A7B;
  --i-900: #151449;

  /* ink & neutrals (warm) */
  --ink:      #14152E;
  --ink-soft: #232544;
  --slate:    #4C5268;
  --slate-2:  #5F6578;
  --slate-3:  #676D80;

  --canvas:   #FBF9F4;
  --canvas-2: #F4F0E7;
  --surface:  #FFFFFF;
  --line:     #E7E1D4;
  --line-2:   #D8D1BF;

  /* lime accent */
  --lime:      #C8F252;
  --lime-deep: #A6D62B;
  --lime-ink:  #2F4410;

  /* signal */
  --amber: #E8A317;
  --rose:  #D8524B;

  /* type */
  --font-display: "Jakarta", "Trebuchet MS", sans-serif;
  --font-body: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-num: "InterVar", ui-monospace, sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 0.9375rem;
  --t-md:   1.0625rem;
  --t-lg:   clamp(1.125rem, 0.4vw + 1.03rem, 1.3125rem);
  --t-xl:   clamp(1.375rem, 0.9vw + 1.16rem, 1.75rem);
  --t-2xl:  clamp(1.75rem, 1.6vw + 1.37rem, 2.5rem);
  --t-3xl:  clamp(2.125rem, 2.6vw + 1.5rem, 3.25rem);
  --t-4xl:  clamp(2.5rem, 4.2vw + 1.5rem, 4.5rem);

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 3.5rem;
  --s-9: 5rem;
  --s-10: 7rem;
  --band: clamp(3.5rem, 7vw, 7.5rem);

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadows */
  --sh-xs: 0 1px 2px rgba(20, 21, 46, .06);
  --sh-sm: 0 2px 6px rgba(20, 21, 46, .06), 0 1px 2px rgba(20, 21, 46, .04);
  --sh-md: 0 10px 24px -8px rgba(20, 21, 46, .12), 0 2px 6px rgba(20, 21, 46, .05);
  --sh-lg: 0 26px 60px -20px rgba(21, 20, 73, .28), 0 6px 18px -8px rgba(20, 21, 46, .10);
  --sh-xl: 0 48px 110px -34px rgba(21, 20, 73, .40), 0 10px 28px -12px rgba(20, 21, 46, .14);

  /* widths */
  --w-max: 1240px;
  --w-text: 62ch;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  /* chrome */
  --header-h: 75px;
  --focus: var(--i-500);
}

/* 3. Reset & base --------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep hash targets and jump-nav landings clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1.75rem);
}

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

body {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--slate);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 800;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { padding: 0; list-style: none; }

/* Focus ring is surface-aware: indigo carries 6.95:1 on the light canvas, lime
   carries 13.25:1 on the indigo and ink bands where indigo would vanish. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-footer,
.band--dark,
.cta-band,
.report-top { --focus: var(--lime); }

::selection { background: var(--lime); color: var(--lime-ink); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--t-base);
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: var(--s-4); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4. Layout primitives ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 900px; }

.band { padding-block: var(--band); position: relative; }
.band--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.band--dark {
  background: var(--i-900);
  color: rgba(255, 255, 255, .78);
}
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: #fff; }

.band--paper { background: var(--canvas-2); }

.band--rule { border-top: 1px solid var(--line); }

/* eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--i-600);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 2px;
  margin-top: .62em;
  background: var(--i-500);
  border-radius: 2px;
}
.band--dark .eyebrow { color: var(--lime); }
.band--dark .eyebrow::before { background: var(--lime); }

.lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--slate);
  max-width: 56ch;
}
.band--dark .lede { color: rgba(255, 255, 255, .74); }

.section-head { max-width: 640px; }
.section-head h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }

/* split header: title left, supporting right */
.head-split {
  display: grid;
  gap: var(--s-5) var(--s-8);
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--s-8);
}
.head-split > * { min-width: 0; }
@media (min-width: 900px) {
  .head-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .head-split > :last-child { padding-bottom: .35rem; }
}
.head-split h2 { font-size: var(--t-2xl); }

/* decorative dot field */
.dotfield {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor .8px, transparent .9px);
  background-size: 22px 22px;
  color: var(--line-2);
  opacity: .55;
  pointer-events: none;
}

/* 5. Components ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -.005em;
  padding: .82rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--i-500);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(59, 59, 236, .65);
}
.btn--primary:hover { background: var(--i-600); box-shadow: 0 12px 26px -8px rgba(59, 59, 236, .7); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 21, 46, .035); }

.btn--lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 8px 20px -10px rgba(166, 214, 43, .8);
}
.btn--lime:hover { background: var(--lime-deep); }

.btn--onDark {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.btn--onDark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }

.btn--sm { padding: .55rem 1rem; font-size: var(--t-sm); }

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-weight: 600;
  font-size: var(--t-base);
  color: var(--i-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 43, 209, .28);
  padding-bottom: 2px;
  transition: border-color .16s ease, gap .16s ease;
}
.arrow-link::after { content: "→"; transition: transform .16s ease; }
.arrow-link:hover { border-color: var(--i-600); }
.arrow-link:hover::after { transform: translateX(3px); }
.band--dark .arrow-link { color: var(--lime); border-color: rgba(200, 242, 82, .35); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: var(--r-pill);
  background: var(--i-50);
  color: var(--i-700);
  white-space: nowrap;
}
.tag--lime { background: rgba(200, 242, 82, .35); color: var(--lime-ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
}

.card h3 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.card p { font-size: var(--t-base); }

/* 6. Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -18px rgba(20, 21, 46, .5);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  /* --header-h is the full sticky height including the 1px bottom border; the
     mobile panel offset and scroll-padding-top both derive from it. */
  min-height: calc(var(--header-h) - 1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand svg, .brand img { width: auto; height: 34px; }
.logo { display: block; height: 34px; width: auto; }

.nav-primary { margin-left: auto; }
.nav-primary ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-primary ul a {
  text-decoration: none;
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--slate);
  padding: .4rem 0;
  position: relative;
  transition: color .16s ease;
}
.nav-primary ul a:hover { color: var(--ink); }
.nav-primary ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-primary ul a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--i-500);
  border-radius: 2px;
}

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: .5rem .85rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .bars {
  display: grid;
  gap: 3px;
  width: 15px;
}
.nav-toggle .bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 7. Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding-block: var(--s-9) var(--s-6);
  font-size: var(--t-base);
}
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
/* Three columns only once each column can hold the contact email on one line —
   below 900px the brand block sits above a two-up link row instead. */
@media (min-width: 620px) and (max-width: 899.98px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
}

.footer-brand svg { height: 34px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 34ch; font-size: var(--t-base); line-height: 1.6; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.footer-col li a {
  display: inline-block;
  padding-block: .35rem;
  /* the contact address must never push past its column */
  overflow-wrap: anywhere;
  hyphens: none;
}
.footer-col li + li { margin-top: .1rem; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  padding-top: var(--s-5);
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, .52);
}

/* 8. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(1100px 620px at 88% -10%, rgba(59, 59, 236, .13), transparent 62%),
    radial-gradient(700px 480px at 4% 8%, rgba(200, 242, 82, .20), transparent 60%),
    var(--canvas);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 21, 46, .045) 1px, transparent 1px);
  background-size: 84px 100%;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero-copy, .hero-media { min-width: 0; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 3.5rem); }
}

.hero h1 {
  font-size: var(--t-4xl);
  letter-spacing: -0.038em;
  margin-bottom: var(--s-5);
}
.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--i-600);
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -.06em; right: -.06em; bottom: .04em;
  height: .28em;
  background: var(--lime);
  border-radius: 3px;
  z-index: -1;
}

.hero .lede { max-width: 46ch; margin-bottom: var(--s-6); font-size: var(--t-lg); }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .9rem .38rem .45rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--slate);
  margin-bottom: var(--s-5);
}
.hero-pill b {
  background: var(--i-500);
  color: #fff;
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: .04em;
  padding: .18rem .55rem;
  border-radius: var(--r-pill);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-7);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-2);
  max-width: 520px;
}
.hero-proof dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .35rem;
  font-variant-numeric: tabular-nums;
}
.hero-proof dd { font-size: var(--t-sm); color: var(--slate-2); line-height: 1.4; }

/* 9. App preview shell ----------------------------------------------------- */

.console {
  --console-bg: #fff;
  min-width: 0;
  position: relative;
  background: var(--console-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
}

.console-chrome {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  background: linear-gradient(180deg, #FCFBF8, #F5F2EB);
  border-bottom: 1px solid var(--line);
}
.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.console-dots i:first-child { background: #E4A6A2; }
.console-dots i:nth-child(2) { background: #E8CE9A; }
.console-dots i:nth-child(3) { background: #A9CFA3; }
.console-path {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11px;
  color: var(--slate-3);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
@media (max-width: 560px) { .console-body { grid-template-columns: 1fr; } }

.console-nav {
  background: #FAF9F5;
  border-right: 1px solid var(--line);
  padding: .9rem .75rem;
  display: flex;
  flex-direction: column;
}
.console-nav-stat {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.console-nav-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.1;
}
.console-nav-stat span { display: block; font-size: 10px; color: var(--slate-3); line-height: 1.35; }
.console-nav-stat + .console-nav-stat { margin-top: 0; padding-top: .6rem; border-top: 0; }
@media (max-width: 560px) { .console-nav { display: none; } }

.console-nav-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-3);
  font-weight: 700;
  margin: .35rem 0 .5rem .35rem;
}
.console-nav li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .38rem .5rem;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-2);
}
.console-nav li.is-active { background: var(--i-50); color: var(--i-700); font-weight: 600; }
.console-nav li span {
  font-size: 10.5px;
  font-weight: 600;
  background: var(--canvas-2);
  color: var(--slate-2);
  padding: .05rem .38rem;
  border-radius: var(--r-pill);
}
.console-nav li.is-active span { background: var(--i-500); color: #fff; }

.console-pane { padding: .95rem 1.05rem 1.1rem; min-width: 0; overflow-x: auto; }

.console-thread-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .85rem;
}
.console-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  /* i-500 is the lightest stop that keeps the white initials at 6.95:1 */
  background: linear-gradient(135deg, var(--i-500), var(--i-800));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}
.console-thread-head strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
.console-thread-head small { color: var(--slate-3); font-size: 11px; }
.console-thread-head .console-status { margin-left: auto; }

.console-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--lime-ink);
  background: rgba(200, 242, 82, .4);
  padding: .2rem .5rem;
  border-radius: var(--r-pill);
}
.console-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 0 rgba(166, 214, 43, .7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(166, 214, 43, .75); }
  70%  { box-shadow: 0 0 0 7px rgba(166, 214, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 214, 43, 0); }
}

/* 10. Chat thread preview -------------------------------------------------- */

.chat { display: grid; gap: .55rem; }
.chat li { max-width: 84%; }
.chat .msg {
  padding: .5rem .7rem;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.chat .from-them { justify-self: start; }
.chat .from-them .msg {
  background: var(--canvas-2);
  color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}
.chat .from-ai { justify-self: end; text-align: left; }
.chat .from-ai .msg {
  background: var(--i-500);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat .meta {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: 10px;
  color: var(--slate-3);
  margin-top: .22rem;
  letter-spacing: .02em;
}
.chat .from-ai .meta { justify-content: flex-end; }

.chat-action {
  margin-top: .8rem;
  padding: .6rem .7rem;
  border: 1px dashed var(--i-200);
  background: var(--i-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 11.5px;
  color: var(--i-700);
  font-weight: 550;
}
.chat-action .tick {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}
.chat-action b { color: var(--i-800); font-weight: 700; }

/* floating stat chip over previews */
.preview-stack { position: relative; }
.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: .7rem .85rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  z-index: 3;
}
.float-chip > span { min-width: 0; }
.float-chip .fc-num, .float-chip .fc-lab { display: block; }
.float-chip .fc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.float-chip .fc-lab { font-size: 11px; color: var(--slate-2); line-height: 1.3; max-width: 15ch; }
.float-chip .fc-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--lime-ink);
  flex: 0 0 auto;
}
.float-chip--bl { left: -14px; bottom: -22px; }
.float-chip--tr { right: -14px; top: -20px; }
/* Below 820px there is no margin left to float into, so the chips stop being an
   overlay and become a stat row beneath the frame. Nothing ever covers the UI. */
@media (max-width: 820px) {
  .preview-stack {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
    align-items: stretch;
  }
  .preview-stack > .console,
  .preview-stack > .report { grid-column: 1 / -1; margin-bottom: var(--s-1); }
  .float-chip {
    position: static;
    inset: auto;
    box-shadow: var(--sh-sm);
  }
  /* a stack carrying a single chip lets it run the full width */
  .preview-stack > .float-chip:nth-child(2):last-child { grid-column: 1 / -1; }
  .float-chip .fc-num { font-size: 1.15rem; }
  .float-chip .fc-lab { max-width: none; }
}
@media (max-width: 520px) {
  .preview-stack { grid-template-columns: minmax(0, 1fr); }
}

/* 11. Triage queue preview ------------------------------------------------- */

.queue { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.queue caption { text-align: left; padding: 0 0 .7rem; font-size: 11px; color: var(--slate-3); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.queue th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-3);
  font-weight: 700;
  padding: 0 .55rem .45rem 0;
  border-bottom: 1px solid var(--line);
}
.queue td { padding: .6rem .55rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.queue tr:last-child td { border-bottom: 0; }
.queue .unit { color: var(--ink); font-weight: 650; white-space: nowrap; }
.queue .issue { color: var(--slate); }
.queue .vendor { color: var(--slate-2); font-size: 11.5px; white-space: nowrap; }
.queue .sla { font-variant-numeric: tabular-nums; color: var(--slate-2); font-size: 11.5px; white-space: nowrap; }

.pri {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .2rem .48rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pri::before { content: ""; width: 6px; height: 6px; border-radius: 2px; }
.pri--p1 { background: rgba(216, 82, 75, .12); color: #A3352F; }
.pri--p1::before { background: var(--rose); }
.pri--p2 { background: rgba(232, 163, 23, .16); color: #8A5D06; }
.pri--p2::before { background: var(--amber); }
.pri--p3 { background: rgba(76, 82, 104, .1); color: var(--slate); }
.pri--p3::before { background: var(--slate-3); }

.queue-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--line-2);
  font-size: 11.5px;
  color: var(--slate-2);
}
.queue-foot .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
/* Once the stats wrap the separators strand themselves at line ends, so below
   600px the row becomes stacked lines and the dots are dropped entirely. */
@media (max-width: 600px) {
  .queue-foot { display: grid; justify-items: start; gap: .35rem; }
  .queue-foot .dot { display: none; }
}

/* 12. Owner report preview ------------------------------------------------- */

.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.report-top {
  padding: 1rem 1.15rem;
  background: var(--i-900);
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.report-top .report-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-size: 15px;
  color: #fff;
  margin-bottom: .15rem;
}
.report-top p { font-size: 11.5px; color: rgba(255,255,255,.6); }
.report-top .tag { margin-left: auto; background: rgba(200, 242, 82, .22); color: var(--lime); }

.report-body { padding: 1.05rem 1.15rem 1.15rem; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1.05rem;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .6rem .65rem;
  background: #FCFBF8;
}
.kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi span { font-size: 10.5px; color: var(--slate-2); line-height: 1.3; display: block; }
/* Sentiment, not direction — a number can rise and still be bad news. */
.kpi i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #3F7B27;
}
.kpi i.bad { color: #A3352F; }

.chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: .5rem;
  height: 108px;
  padding: .5rem .2rem 0;
  border-bottom: 1px solid var(--line);
}
.chart .bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 3px; }
.chart .bar .fill {
  background: linear-gradient(180deg, var(--i-400), var(--i-600));
  border-radius: 5px 5px 2px 2px;
  min-height: 6px;
}
.chart .bar:last-child .fill { background: linear-gradient(180deg, var(--lime), var(--lime-deep)); }
.chart-x {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
  padding: .4rem .2rem 0;
  font-size: 10px;
  color: var(--slate-3);
  text-align: center;
  letter-spacing: .03em;
}
.chart-legend {
  display: flex;
  gap: .9rem;
  font-size: 10.5px;
  color: var(--slate-2);
  margin-top: .7rem;
  flex-wrap: wrap;
}
.chart-legend span { display: inline-flex; align-items: center; gap: .32rem; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }

/* drill-down state: the posted entries behind a drafted figure */
.drill {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FCFBF8;
  padding: .7rem .8rem .55rem;
}
.drill-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 11.5px;
  color: var(--slate);
  padding-bottom: .55rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.drill-head b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.drill-tag {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .18rem .45rem;
  border-radius: var(--r-pill);
  background: var(--i-50);
  color: var(--i-700);
}

.ledger { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ledger caption {
  text-align: left;
  padding: 0 0 .5rem;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-3);
}
.ledger td { padding: .34rem 0; vertical-align: baseline; }
.ledger .acct { color: var(--slate); }
.ledger .ref {
  color: var(--slate-3);
  font-size: 10.5px;
  white-space: nowrap;
  padding-inline: .6rem;
  letter-spacing: .02em;
}
.ledger .num {
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ledger .num.neg { color: var(--slate-2); }
.ledger tfoot td {
  border-top: 1px solid var(--line-2);
  padding-top: .45rem;
  color: var(--ink);
  font-weight: 700;
}
.ledger tfoot .num { color: var(--i-700); }

.report-note {
  margin-top: .9rem;
  padding: .65rem .75rem;
  background: var(--i-50);
  border-left: 3px solid var(--i-500);
  border-radius: 0 8px 8px 0;
  font-size: 11.5px;
  color: var(--i-800);
  line-height: 1.5;
}
.report-note b { font-weight: 700; }

/* 13. Pain strip ---------------------------------------------------------- */

.pain-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
@media (min-width: 820px) { .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pain {
  padding: var(--s-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.pain:last-child { border-bottom: 0; }
@media (min-width: 820px) {
  .pain { border-bottom: 0; border-right: 1px solid var(--line); }
  .pain:last-child { border-right: 0; }
}
.pain-num {
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--i-500);
}
.pain h3 { font-size: var(--t-lg); letter-spacing: -.02em; }
.pain p { font-size: var(--t-base); }
.pain-stat {
  margin-top: .35rem;
  padding-top: .35rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
}
.pain-stat b {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--i-600);
  letter-spacing: -.03em;
}
/* Side by side, one heading wraps and the others don't — reserve two lines so
   the three body paragraphs share a baseline, and pin the stats to the floor. */
@media (min-width: 820px) {
  .pain h3 { min-height: 2.2em; }
  .pain-stat { margin-top: auto; }
}

/* separates category benchmarks from APM's own measured outcomes */
.strip-note {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--slate-2);
  max-width: 74ch;
}

/* 14. Pillars ------------------------------------------------------------- */

.pillars { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.pillar { min-width: 0; }
@media (min-width: 880px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--i-500), var(--i-300));
  opacity: 0;
  transition: opacity .2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--i-200); }
.pillar:hover::before { opacity: 1; }
.pillar .glyph {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--i-50);
  color: var(--i-600);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-2);
}
.pillar .glyph svg { width: 24px; height: 24px; }
.pillar h3 { font-size: var(--t-xl); }
.pillar p { font-size: var(--t-base); }
.pillar ul { display: grid; gap: .45rem; margin-top: auto; padding-top: var(--s-4); }
/* Three abreast, the intros are within a line of each other — reserving three
   lines keeps every bullet list starting on the same rule. */
@media (min-width: 880px) {
  .pillar > p { min-height: 6.5em; }
  /* lists start on a shared rule; the leftover space falls to the card floor,
     where it is invisible, instead of staggering three bullet lists */
  .pillar ul { margin-top: 0; margin-bottom: auto; }
}
.pillar li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--t-sm);
  color: var(--slate-2);
  line-height: 1.5;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--lime-deep);
}

/* 15. How it works -------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
  counter-reset: step;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }

.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: rgba(255, 255, 255, .16);
}
.step h3 { font-size: var(--t-lg); margin-bottom: .5rem; }
.step p { font-size: var(--t-base); color: rgba(255, 255, 255, .7); }
.step .step-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(200, 242, 82, 0));
  margin-bottom: var(--s-4);
  border-radius: 2px;
}

/* 16. Metrics band -------------------------------------------------------- */

.metrics {
  display: grid;
  gap: var(--s-6) var(--s-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.metric { display: grid; gap: .35rem; align-content: start; }
.metric dt {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric dt .unit { font-size: .55em; color: var(--i-500); margin-left: .04em; }
.metric dd { font-size: var(--t-base); color: var(--slate-2); max-width: 26ch; }
.metric .rule { height: 3px; width: 34px; background: var(--lime-deep); border-radius: 3px; margin-bottom: .55rem; }

.band--dark .metric dt { color: #fff; }
.band--dark .metric dt .unit { color: var(--lime); }
.band--dark .metric dd { color: rgba(255,255,255,.66); }

/* 17. Testimonials -------------------------------------------------------- */

.quotes { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.02em;
  color: var(--ink);
}
.quote blockquote::before { content: "\201C"; color: var(--i-300); margin-right: .05em; }
.quote blockquote::after { content: "\201D"; color: var(--i-300); }
.quote figcaption {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--slate-2);
  line-height: 1.5;
}
.quote figcaption b { display: block; color: var(--ink); font-weight: 650; font-size: var(--t-base); }
.quote .quote-stat {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-size: var(--t-sm);
  color: var(--slate-2);
}
.quote .quote-stat b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--i-600);
}

/* 18. Integrations -------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem .55rem .7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--sh-xs);
}
.chip .cmark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--i-50);
  color: var(--i-600);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

/* 19. CTA band + form ----------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(59, 59, 236, .55), transparent 62%),
    radial-gradient(620px 460px at 92% 96%, rgba(200, 242, 82, .16), transparent 62%),
    var(--i-900);
  color: rgba(255, 255, 255, .78);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) .9px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--t-3xl); }
.cta-band .lede { color: rgba(255, 255, 255, .76); }
.cta-band .eyebrow { color: var(--lime); }
.cta-band .eyebrow::before { background: var(--lime); }

.cta-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.cta-grid > * { min-width: 0; }
@media (min-width: 940px) { .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); } }

.cta-list { display: grid; gap: .8rem; margin-top: var(--s-6); }
.cta-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: var(--t-base);
  color: rgba(255, 255, 255, .78);
}
.cta-list .tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: .12rem;
}

.form-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--sh-xl);
  color: var(--slate);
}
.form-card h3 { font-size: var(--t-xl); margin-bottom: .4rem; }
.form-card > p { font-size: var(--t-sm); color: var(--slate-2); margin-bottom: var(--s-5); }

.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .35rem;
}
.field .hint { font-weight: 400; color: var(--slate-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #FDFCFA;
  padding: .7rem .85rem;
  font-size: var(--t-base);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234C5268' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 11px;
  padding-right: 2.2rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--i-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 59, 236, .16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--rose);
  background: #FEF8F7;
}
.field .err {
  display: none;
  font-size: var(--t-sm);
  color: #A3352F;
  margin-top: .3rem;
  font-weight: 500;
}
.field.has-error .err { display: block; }

.field-row { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-card .btn { width: 100%; margin-top: .35rem; }
.form-legal { font-size: var(--t-xs); color: var(--slate-3); margin-top: var(--s-4); line-height: 1.5; text-align: center; }

.form-success {
  text-align: center;
  padding: var(--s-6) var(--s-3);
}
.form-success .tick-big {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-4);
  font-size: 26px;
  font-weight: 800;
}
.form-success h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.form-success p { font-size: var(--t-base); color: var(--slate-2); max-width: 34ch; margin-inline: auto; }
[hidden] { display: none !important; }

/* 20. Feature deep-dive layout ------------------------------------------- */

.deep {
  display: grid;
  gap: clamp(2rem, 4.5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.deep-copy, .deep-media { min-width: 0; }
@media (min-width: 980px) {
  .deep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .deep--flip .deep-copy { order: 2; }
  .deep--flip .deep-media { order: 1; }
}
.deep-copy h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.deep-copy > p { font-size: var(--t-lg); line-height: 1.55; margin-bottom: var(--s-5); }

.feature-list { display: grid; gap: var(--s-4); }
.feature-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .85rem; align-items: start; }
.feature-list .fi {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--i-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: .12rem;
}
.feature-list b { display: block; color: var(--ink); font-weight: 650; font-size: var(--t-base); margin-bottom: .1rem; }
.feature-list p { font-size: var(--t-base); color: var(--slate-2); }

/* 21. FAQ ----------------------------------------------------------------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq details {
  border-bottom: 1px solid var(--line-2);
  padding: var(--s-4) 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--i-500);
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: var(--s-3) 0 .35rem 0; max-width: 68ch; font-size: var(--t-base); }
@media (min-width: 700px) { .faq .faq-a { padding-left: 0; } }

/* 22. Misc page pieces ---------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 500px at 78% -20%, rgba(59, 59, 236, .14), transparent 62%),
    var(--canvas);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: var(--t-3xl); letter-spacing: -.035em; margin-bottom: var(--s-5); }
.page-hero-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: end; }
.page-hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s-8); } }

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--s-6);
}
.jump-nav a {
  font-size: var(--t-sm);
  font-weight: 600;
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--slate);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.jump-nav a:hover { border-color: var(--i-400); color: var(--i-700); }

.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.prose > * + * { margin-top: var(--s-4); }
.prose p { font-size: var(--t-md); }
.prose h3 { font-size: var(--t-xl); margin-top: var(--s-6); }

.pull, p.pull {
  border-left: 3px solid var(--lime-deep);
  padding-left: var(--s-5);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-block: var(--s-6);
}

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.75,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* 23. Security / control / pricing --------------------------------------- */

.posture {
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
@media (min-width: 700px) { .posture { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .posture { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.posture > div {
  background: var(--surface);
  padding: var(--s-5);
  display: grid;
  gap: .45rem;
  align-content: start;
}
.posture h3 { font-size: var(--t-base); font-family: var(--font-body); font-weight: 650; letter-spacing: 0; color: var(--ink); }
.posture p { font-size: var(--t-sm); color: var(--slate-2); }
.posture .pmark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--i-50);
  color: var(--i-600);
  display: grid;
  place-items: center;
  margin-bottom: .3rem;
}
.posture .pmark svg { width: 17px; height: 17px; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--sh-md);
}
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: var(--s-3); }
.price-head .amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
  line-height: 1;
}
.price-head .per { font-size: var(--t-base); color: var(--slate-2); font-weight: 500; }
.price-card ul { display: grid; gap: .6rem; margin: var(--s-5) 0; }
.price-card li { display: flex; gap: .6rem; font-size: var(--t-base); }
.price-card li::before { content: "✓"; color: var(--lime-deep); font-weight: 800; flex: 0 0 auto; }

.tiers { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.tier > * { min-width: 0; }
.tier {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem .75rem;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-2);
}
@media (min-width: 560px) { .tier { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; } }
.tier b { font-family: var(--font-display); font-size: var(--t-base); color: var(--ink); letter-spacing: -.01em; font-weight: 800; }
.tier span { font-size: var(--t-base); color: var(--slate-2); }

/* 23b. Approval-queue band ------------------------------------------------ */

.control-split {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.control-split > * { min-width: 0; }
/* Both tracks stay proportional so the rail can never be squeezed below its
   own content and push the page wide. */
@media (min-width: 1080px) {
  .control-split {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(2rem, 3.5vw, 3.25rem);
  }
}

.control-rail { padding-top: .25rem; }
.control-rail h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--s-5);
  max-width: 20ch;
}
.rail-stats {
  display: grid;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  margin-bottom: var(--s-4);
}
.rail-stats > div {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: .1rem .9rem;
  align-items: baseline;
}
.rail-stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.rail-stats > div:first-child dt { color: var(--lime); }
.rail-stats dd { font-size: var(--t-sm); color: rgba(255, 255, 255, .68); line-height: 1.45; }
.rail-note { font-size: var(--t-sm); color: rgba(255, 255, 255, .58); }
@media (max-width: 460px) {
  .rail-stats > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

/* 24. About page pieces --------------------------------------------------- */

.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-2); padding-left: var(--s-6); }
.timeline li { position: relative; padding-bottom: var(--s-6); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-6) - 7px);
  top: .45rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--i-500);
  border: 3px solid var(--canvas);
  box-shadow: 0 0 0 2px var(--i-200);
}
.timeline li:last-child::before { background: var(--lime-deep); box-shadow: 0 0 0 2px rgba(166,214,43,.4); }
.timeline .yr {
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--i-600);
  display: block;
  margin-bottom: .3rem;
}
.timeline h3 { font-size: var(--t-lg); margin-bottom: .35rem; }
.timeline p { font-size: var(--t-base); }

.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: .6rem;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.principle .pn {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .8;
  color: var(--i-100);
  position: absolute;
  right: .7rem; top: .5rem;
}
.principle h3 { font-size: var(--t-lg); position: relative; }
.principle p { font-size: var(--t-base); position: relative; }

.team-split {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) { .team-split { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-split > div { background: var(--surface); padding: var(--s-5); }
.team-split dt {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .3rem;
  font-variant-numeric: tabular-nums;
}
.team-split dd { font-size: var(--t-sm); color: var(--slate-2); }

.roles { display: flex; flex-wrap: wrap; gap: .5rem; }
.roles span {
  font-size: var(--t-sm);
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  background: var(--i-50);
  color: var(--i-700);
  font-weight: 550;
}

.contact-card {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--sh-md);
}
@media (min-width: 820px) { .contact-card { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } }
.contact-card h2 { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.contact-card a.mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--i-600);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
}

/* 25. Mobile nav & responsive -------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav-primary {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    padding: var(--s-5) var(--gutter) var(--s-6);
    display: none;
  }
  .nav-primary[data-open="true"] { display: block; }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-primary li { border-bottom: 1px solid var(--line); }
  .nav-primary ul a {
    display: block;
    padding: .95rem .2rem;
    font-size: var(--t-lg);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
  }
  .nav-primary ul a[aria-current="page"]::after { display: none; }
  .nav-primary ul a[aria-current="page"] { color: var(--i-600); }
  .nav-primary .nav-cta { display: block; margin-top: var(--s-5); }
  .nav-primary .nav-cta .btn { width: 100%; }
}

@media (min-width: 901px) {
  .nav-primary .nav-cta { display: none; }
}

@media (max-width: 560px) {
  /* stacked CTAs share one edge rather than keeping their intrinsic widths */
  .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .cta-row .btn { width: 100%; }
}

@media (max-width: 600px) {
  .hero-proof { grid-template-columns: 1fr; gap: var(--s-4); max-width: none; }
  .hero-proof > div { display: flex; align-items: baseline; gap: .6rem; }
  .hero-proof dt { margin-bottom: 0; }
  .kpi-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; gap: var(--s-5); }
  .queue .hide-sm { display: none; }
}

@media (max-width: 400px) {
  .console { font-size: 12px; }
  .float-chip { padding: .55rem .65rem; }
}

/* 26. Tour scheduler preview ---------------------------------------------- */

.sched { padding: .95rem 1.05rem 1.1rem; }
.sched-head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .8rem;
}
.sched-head strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.sched-head small { color: var(--slate-3); font-size: 11px; margin-left: auto; }
/* Narrow columns make the title wrap; stack the two labels instead of leaving
   the meta line baseline-locked to a first line that is no longer there. */
@media (max-width: 560px) {
  .sched-head { display: grid; gap: .15rem; }
  .sched-head small { margin-left: 0; }
}

.sched-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .4rem;
}
.sched-col { display: grid; gap: .32rem; align-content: start; }
.sched-day {
  text-align: center;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-3);
  font-weight: 700;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .18rem;
}
.sched-day b { display: block; font-size: 13px; color: var(--ink); letter-spacing: -.01em; margin-top: .1rem; font-weight: 700; }
.slot {
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  padding: .34rem .15rem;
  border-radius: 7px;
  background: #FBFAF7;
  border: 1px solid var(--line);
  color: var(--slate-2);
  font-variant-numeric: tabular-nums;
}
.slot.is-booked { background: var(--i-500); border-color: var(--i-500); color: #fff; }
.slot.is-hold { background: rgba(200, 242, 82, .38); border-color: rgba(166, 214, 43, .6); color: var(--lime-ink); }
.slot.is-off { opacity: .38; }

.sched-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--line-2);
  font-size: 10.5px;
  color: var(--slate-2);
}
.sched-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.sched-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; border: 1px solid var(--line-2); }

/* 27. Approval queue preview ---------------------------------------------- */

.approvals { display: grid; gap: .55rem; padding: .95rem 1.05rem 1.1rem; }
.appr {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: .6rem .75rem .6rem 0;
  background: #FCFBF8;
  overflow: hidden;
}
.appr .flag { align-self: stretch; background: var(--amber); }
.appr.is-urgent .flag { background: var(--rose); }
.appr.is-ok .flag { background: var(--lime-deep); }
.appr b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 650; }
.appr p { font-size: 11.5px; color: var(--slate-2); }
.appr .why { color: var(--i-700); font-weight: 600; }
.appr .acts { display: flex; gap: .35rem; }
.appr .acts span {
  font-size: 10.5px;
  font-weight: 700;
  padding: .28rem .55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--slate-2);
  white-space: nowrap;
}
.appr .acts span:first-child { background: var(--i-500); border-color: var(--i-500); color: #fff; }
@media (max-width: 520px) {
  .appr { grid-template-columns: 4px minmax(0, 1fr); }
  .appr .acts { grid-column: 2; }
}

/* 28. Media note strip --------------------------------------------------- */

.media-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--s-5);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.media-note > div { background: var(--surface); padding: .85rem 1rem; }
.media-note dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.media-note dd { font-size: var(--t-xs); color: var(--slate-2); line-height: 1.4; margin-top: .15rem; }
@media (max-width: 480px) { .media-note { grid-template-columns: 1fr; } }
