/* Cach-AI landing. Tokens sampled from the logo (docs/apollo/brand):
   deep blue #105090 -> cyan #1aa0d8 -> lime #a9cc3c -> yellow #e8d83a. */
:root {
  --blue-900: #0b2e57;
  --blue-700: #105090;
  --blue-500: #1f7ac4;
  --cyan-500: #1aa0d8;
  --lime-500: #a9cc3c;
  --lime-600: #8db32a;
  --yellow-500: #e8d83a;
  --ink: #0f1b2d;
  --ink-2: #3b4a5f;
  --ink-3: #5f6e84;
  --line: #dfe6ef;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --brand-gradient: linear-gradient(100deg, var(--blue-700) 0%, var(--cyan-500) 45%, var(--lime-500) 80%, var(--yellow-500) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.06), 0 12px 32px -12px rgb(16 80 144 / 0.25);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.btn-primary {
  color: var(--blue-900);
  background: var(--lime-500);
  box-shadow: 0 8px 24px -10px rgb(169 204 60 / 0.9);
}

.btn-primary:hover {
  background: var(--yellow-500);
}

.btn-secondary {
  color: var(--blue-700);
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--cyan-500);
  color: var(--blue-900);
}

.btn-ghost {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.25);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.16);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgb(247 249 252 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .symbol {
  height: 38px;
  width: 38px;
}

.nav-brand .wordmark {
  height: 30px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 200ms ease;
}

.nav-links a:hover {
  color: var(--blue-700);
}

.nav .btn {
  min-height: 42px;
  padding-inline: 18px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--blue-900);
  padding: 64px 0 0;
  isolation: isolate;
}

/* The board mockup straddles the hero's bottom edge: the hero paints navy
   down to this line and the page background takes over below it. */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: var(--bg);
  z-index: -1;
}

.aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(40% 55% at 15% 20%, rgb(31 122 196 / 0.75), transparent 70%),
    radial-gradient(35% 50% at 75% 10%, rgb(26 160 216 / 0.55), transparent 70%),
    radial-gradient(30% 45% at 85% 75%, rgb(169 204 60 / 0.45), transparent 70%),
    radial-gradient(25% 35% at 40% 90%, rgb(232 216 58 / 0.25), transparent 70%);
  filter: saturate(1.2) blur(10px);
  animation: aurora 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.6), transparent 85%);
}

@keyframes aurora {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(2%, 2%, 0) rotate(1.5deg);
  }
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* On the navy hero the deep-blue start of the brand gradient has no contrast,
   so the highlighted words run cyan -> lime -> yellow only. */
.hero .gradient-text {
  background: linear-gradient(95deg, #5cc8f2 0%, var(--lime-500) 55%, var(--yellow-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ck {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
  font-size: 14px;
  font-weight: 500;
}

.star {
  width: 16px;
  height: 16px;
  flex: none;
  fill: var(--yellow-500);
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

/* Rotating headline word: the JS swaps the text while the span is faded out. */
.rotator {
  display: inline-block;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.rotator.swap {
  opacity: 0;
  transform: translateY(8px);
}

/* Cordillera: two silhouettes of the Andes across the hero's bottom edge. */
.andes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 140px;
  width: 100%;
  height: 380px;
  z-index: -1;
  pointer-events: none;
}

.andes-back path {
  fill: #18487f;
}

.andes-front path {
  fill: #0f3565;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  margin-top: 22px;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.82);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-facts {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.75);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts svg {
  color: var(--lime-500);
}

/* Board motion: a card leaves "Te necesita" and lands in "Listo" on a loop;
   the "En curso" card carries a live progress bar. */
.progress {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e5eaf1;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--brand-gradient);
  animation: progress 2.8s ease-in-out infinite;
}

@keyframes progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}

.moving-out {
  animation: leave 9s ease-in-out infinite;
}

.moving-in {
  animation: arrive 9s ease-in-out infinite;
}

@keyframes leave {
  0%,
  45% {
    opacity: 1;
    transform: none;
  }
  55%,
  90% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes arrive {
  0%,
  50% {
    opacity: 0;
    transform: translateX(-24px);
  }
  60%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateX(-24px);
  }
}

/* ---------- Dichos marquee ---------- */
.dichos {
  padding: 40px 0 8px;
  overflow: hidden;
}

.dichos-label {
  text-align: center;
  margin-bottom: 14px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0;
  padding: 0 6px;
  list-style: none;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-700);
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Staged chat / learnings ---------- */
.play-on-view .msg,
.play-on-view .learn li {
  opacity: 0;
  transform: translateY(10px);
}

.play-on-view.play .msg,
.play-on-view.play .learn li,
.play-on-view.play li {
  animation: pop 420ms ease forwards;
}

.play-on-view.play .msg:nth-child(1) {
  animation-delay: 0.2s;
}
.play-on-view.play .msg:nth-child(2) {
  animation-delay: 1s;
}
.play-on-view.play .msg:nth-child(3) {
  animation-delay: 1.9s;
}
.play-on-view.play .msg:nth-child(4) {
  animation-delay: 2.7s;
}
.play-on-view.play .msg:nth-child(5) {
  animation-delay: 4.3s;
}

.play-on-view.play li:nth-child(1) {
  animation-delay: 0.1s;
}
.play-on-view.play li:nth-child(2) {
  animation-delay: 0.25s;
}
.play-on-view.play li:nth-child(3) {
  animation-delay: 0.4s;
}
.play-on-view.play li:nth-child(4) {
  animation-delay: 0.55s;
}
.play-on-view.play li:nth-child(5) {
  animation-delay: 0.7s;
}

@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* The typing bubble shows for a moment and gives way to the real answer. */
.play-on-view.play .msg.typing {
  animation:
    pop 300ms ease forwards,
    vanish 300ms ease 4s forwards;
  animation-delay: 2.7s, 4.1s;
}

@keyframes vanish {
  to {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
  }
}

.dots {
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
}

.dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-3);
  animation: blink 1.2s ease-in-out infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

/* ---------- Chile facts ---------- */
.chile-facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.chile-facts li {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.14);
}

.chile-facts strong {
  font-family: var(--font-display);
  color: var(--yellow-500);
}

.chile-facts span {
  font-size: 14px;
  color: rgb(255 255 255 / 0.8);
}

.footer .made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer .star {
  animation: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cyan-500);
}

.step h3 {
  font-size: 22px;
  margin-top: 10px;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
}

.step q {
  display: block;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border-left: 3px solid var(--lime-500);
  font-size: 15px;
  color: var(--ink);
  quotes: "\201C" "\201D";
}

/* Features */
.features {
  display: grid;
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.feature:hover {
  border-color: var(--cyan-500);
  box-shadow: var(--shadow);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-gradient);
}

.feature h3 {
  font-size: 19px;
  margin-top: 18px;
}

.feature p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

/* Areas (Contabilidad Chile) */
.areas {
  background: var(--blue-900);
  color: #fff;
  border-radius: 28px;
  padding: 56px 28px;
  position: relative;
  overflow: hidden;
}

.areas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 60% at 100% 0%, rgb(26 160 216 / 0.35), transparent 70%),
    radial-gradient(35% 50% at 0% 100%, rgb(169 204 60 / 0.25), transparent 70%);
  pointer-events: none;
}

.areas > * {
  position: relative;
}

.areas .kicker {
  color: var(--lime-500);
}

.areas p {
  color: rgb(255 255 255 / 0.8);
}

.chips {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.06);
  font-weight: 500;
  font-size: 15px;
}

.areas-note {
  margin-top: 26px;
  font-size: 15px;
}

/* Privacy */
.split {
  display: grid;
  gap: 32px;
  align-items: start;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.checks li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.checks svg {
  flex: none;
  color: var(--lime-600);
  margin-top: 2px;
}

.checks strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
}

.checks span {
  color: var(--ink-2);
  font-size: 15px;
}

/* CTA */
.cta {
  border-radius: 28px;
  padding: 64px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta h2 {
  font-size: clamp(30px, 4.2vw, 46px);
}

.cta p {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 18px;
}

.cta .btn {
  margin-top: 30px;
}

.cta-mail {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-3);
}

.cta-mail a {
  color: var(--blue-700);
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand .symbol {
  height: 28px;
  width: 28px;
}

.footer-brand .wordmark {
  height: 22px;
  width: auto;
}

.footer a {
  color: var(--ink-2);
}


/* ---------- Mission board (hero) ---------- */
.board {
  margin-top: 52px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.55);
  font-size: 13px;
  text-align: left;
}

.board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.board-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.board-tabs {
  display: flex;
  gap: 16px;
  color: var(--ink-3);
  overflow: hidden;
  white-space: nowrap;
}

.board-tabs span {
  padding-bottom: 4px;
}

.board-tabs .on {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}

.board-tabs b,
.bcol h4 b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.board-new {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.board-cols {
  display: grid;
  gap: 12px;
  padding: 16px 18px 20px;
  background: var(--bg);
}

.bcol {
  background: #eef2f7;
  border-radius: 12px;
  padding: 10px;
}

.bcol h4 {
  margin: 4px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.bcol h4 b {
  background: #d7dee8;
  color: var(--ink-2);
}

.bcol.need h4 b {
  background: var(--lime-500);
  color: var(--blue-900);
}

.bcard {
  display: grid;
  gap: 4px;
  background: var(--surface);
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  box-shadow: 0 1px 2px rgb(15 27 45 / 0.06);
  border: 1px solid var(--line);
}

.bcol.need .bcard {
  border-color: rgb(169 204 60 / 0.8);
}

.bcard .who {
  font-size: 11px;
  color: var(--ink-3);
}

.bcard strong {
  font-size: 14px;
  line-height: 1.3;
}

.bcard .st {
  color: var(--ink-3);
  font-size: 12px;
}

.bcard.done strong {
  color: var(--ink-2);
}

.avatars {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.avatars i,
.av {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-500);
  border: 2px solid var(--surface);
}

.avatars i + i {
  margin-left: -8px;
  background: var(--cyan-500);
}

/* ---------- Team chat: one scene per area ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.scene-tabs button {
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.scene-tabs button:hover {
  border-color: var(--cyan-500);
  color: var(--ink);
}

.scene-tabs button[aria-selected="true"] {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}

.scene-tabs button:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 2px;
}

.chat[hidden] {
  display: none;
}

.chat {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 15px;
}

.chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-head span {
  color: var(--ink-3);
  font-size: 14px;
}

.chat-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.msg {
  display: flex;
  gap: 12px;
}

.msg .av {
  width: 30px;
  height: 30px;
  flex: none;
  font-size: 11px;
  border: 0;
}

.av.p1 {
  background: var(--blue-700);
}

.av.p2 {
  background: var(--cyan-500);
}

.av.ag {
  background: #eaf4fb;
}

.msg b {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.msg p {
  line-height: 1.5;
}

.msg.agent p {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.mention {
  color: var(--blue-700);
  background: rgb(26 160 216 / 0.12);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 500;
}

.chat-input {
  margin: 0 18px 18px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

.trio {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.trio li {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.trio strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 6px;
}

.trio span {
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Areas ---------- */
.areas-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.areas-grid li {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.areas-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.areas-grid span:not(.mark) {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.areas-grid q {
  quotes: "\201C" "\201D";
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  color: var(--blue-900);
  font-style: italic;
}

/* ---------- Dark section: agents ---------- */
.section.dark {
  background: #0d1a2b;
  color: #fff;
}

.section.dark .kicker {
  color: var(--lime-500);
}

.section.dark .section-head p {
  color: rgb(255 255 255 / 0.75);
}

.agents-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.agents-grid li {
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.agents-grid li:hover {
  border-color: rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.08);
  transform: translateY(-3px);
}

.agents-grid strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.agents-grid span:not(.mark) {
  color: rgb(255 255 255 / 0.65);
  font-size: 14px;
}

.mark {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  background: var(--c);
  -webkit-mask: url("assets/cachai-logo-512.png") center / contain no-repeat;
  mask: url("assets/cachai-logo-512.png") center / contain no-repeat;
}

.agents-grid .plus {
  border-style: dashed;
  border-color: var(--lime-500);
}

.agents-grid .plus strong {
  color: var(--lime-500);
}

.agents-grid .plus span {
  font-style: italic;
}

/* ---------- Learnings ---------- */
.pills {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.learn {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.learn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.learn-head span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.learn ul {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.learn li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.learn li:last-child {
  border-bottom: 0;
}

.learn time {
  flex: none;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- Soft sections ---------- */
.section.soft {
  background: #eef2f7;
}

.providers {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.providers > div {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.providers h3 {
  font-size: 20px;
}

.providers p {
  margin-top: 8px;
  color: var(--ink-2);
}

.areas-lead {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 18px;
}

/* ---------- FAQ ---------- */
.container.narrow {
  width: min(800px, 100% - 40px);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg);
  color: var(--blue-700);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  padding: 0 0 18px;
  color: var(--ink-2);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora,
  .star,
  .progress i,
  .moving-out,
  .moving-in,
  .marquee-track,
  .dots span {
    animation: none;
  }
  .moving-in,
  .msg.typing {
    display: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee-track li:nth-child(n + 13) {
    display: none;
  }
  .reveal,
  .play-on-view .msg,
  .play-on-view .learn li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 96px;
  }
  .board {
    margin-top: 64px;
  }
  .board-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px 22px 24px;
  }
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
  .agents-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .providers {
    grid-template-columns: repeat(2, 1fr);
  }
  .chile-facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .areas {
    padding: 64px 56px;
  }
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }
  .cta {
    padding: 80px 56px;
  }
}
