/* Generated from apps/web/src/styles.css by scripts/export-django-static.mjs. Edit the source. */
/* apps/web · landing layout
 *
 * Only page composition lives here: grids, section rhythm and breakpoints.
 * Reset, focus rings, container, buttons, badges, status dots, gradient text and
 * the reduced-motion opt-out are owned by @aents/ui-web. Every value below is a
 * token variable or a layout constant — never a design decision. */

/* ---------- Light bands ---------- */
/* These sections were composed as dark bands: their rules paint the ground in
 * --navy and the ink in --white. On the white page each band swaps the two,
 * which keeps every inner rule (secondary text at 70% of --white, borders at
 * 10%, glows over --navy) in proportion without restating it. Product mock-ups
 * inside a band restore the originals, so they still read as real screens. */
:where(.hero, .services-section, .product-built, .showcase-card) {
  --navy: var(--background);
  --navy-rgb: var(--background-rgb);
  --white: var(--text);
  --white-rgb: var(--text-rgb);
  color: var(--text);
}
:where(.hero, .services-section, .product-built, .showcase-card)
  :where(
    .product-stage,
    .dev-stage,
    .showcase-shot,
    .device,
    .product-phone,
    .plan-preview,
    .geo-preview,
    .services-orbit,
    .coverage-hero-card
  ) {
  --navy: var(--text);
  --navy-rgb: var(--text-rgb);
  --white: var(--background);
  --white-rgb: var(--background-rgb);
}

/* ---------- Purple panels ---------- */
/* The accent of the white page, as on Geo Propiedades: a few panels in the
 * Aents purple carry the figures and the closing call. The gradient runs from
 * the brand purple deepened by a third to purple-deep, so white holds 4.5:1
 * from its lighter end and secondary text can stay at 85%. */
:root .value-strip,
:root .closing-card {
  --white: var(--background);
  --white-rgb: var(--background-rgb);
  color: var(--background);
  border-color: transparent;
  background:
    radial-gradient(
      circle at 88% 0%,
      color-mix(in srgb, var(--lavender) 42%, transparent),
      transparent 46%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--purple) 70%, var(--purple-deep)),
      color-mix(in srgb, var(--purple-deep) 85%, var(--purple))
    );
  box-shadow: 0 24px 60px color-mix(in srgb, var(--purple) 26%, transparent);
}
:root .value-strip .value-note,
:root .closing-card p {
  color: color-mix(in srgb, var(--background) 85%, transparent);
}
:root .closing-card .aents-btn--primary {
  color: var(--on-primary);
}
:root .closing-card .section-eyebrow {
  color: color-mix(in srgb, var(--background) 85%, transparent);
}

/* ---------- White cards ---------- */
/* Cards on the white page are paper, as on Geo Propiedades: a white face, a
 * hairline border and a shadow tinted with the accent. A linked card lifts and
 * its arrow takes the action green; the purple stays in the details. */
:root .service-card {
  border-color: var(--border-subtle);
  background: var(--background);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 12px 32px color-mix(in srgb, var(--purple) 6%, transparent);
}
:root .service-card::after {
  background: color-mix(in srgb, var(--purple) 9%, transparent);
}
:root .service-card--link:hover,
:root .service-card--link:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--purple) 30%, var(--border-subtle));
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 24px 48px color-mix(in srgb, var(--purple) 14%, transparent);
}
:root .service-card p {
  color: var(--text-secondary);
}
:root .service-arrow {
  color: var(--purple);
  border-color: color-mix(in srgb, var(--purple) 22%, transparent);
  background: color-mix(in srgb, var(--purple) 6%, var(--background));
  transition:
    transform var(--duration-base) var(--easing-emphasis),
    color var(--duration-fast) var(--easing-standard),
    background-color var(--duration-fast) var(--easing-standard);
}
:root .service-card--link:hover .service-arrow {
  color: var(--on-primary);
  border-color: transparent;
  background: var(--primary);
}
:root .principle {
  border-color: var(--border-subtle);
  background: var(--background);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 5%, transparent);
}
:root .showcase-card {
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 18px 44px color-mix(in srgb, var(--purple) 9%, transparent);
}

/* ---------- Document canvas ---------- */
/* The canvas is what the browser paints outside the document box: the
 * overscroll/rubber-band area at both ends of the page. The first screen (hero)
 * and the last one (footer) are dark brand compositions, so a white canvas
 * flashes against them while scrolling past either edge. Only the canvas is
 * dark: the color scheme stays light by design (see apps/web/src/main.tsx) and
 * <body> keeps the light background the middle sections rely on. */
html {
  background: var(--background);
}

/* ---------- Logo lockup ---------- */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.logo-wordmark {
  font-weight: var(--weight-extrabold);
  font-size: var(--type-h3-size);
  letter-spacing: -0.02em;
}
.logo-tagline {
  color: var(--lavender);
  font-weight: var(--weight-medium);
  font-size: var(--type-small-size);
  margin-top: 3px;
}

/* ---------- Header ---------- */
.perf-managed:not(.is-render-active) *,
.perf-managed:not(.is-render-active) *::before,
.perf-managed:not(.is-render-active) *::after {
  animation-play-state: paused !important;
}
/* Home sections only: on a content page the FAQ and the closing band are
 * short, and skipping their paint buys nothing. */
main > .hero ~ section {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
/* Measured placeholder heights, not design decisions: they are the rendered
 * height of each section at 1440px. A single shared placeholder made the
 * document grow by ~1000px the first time #ecosystem materialised, which jitters
 * the scrollbar and lands anchor navigation in the wrong place. The browser
 * replaces each value with the real height as soon as the section renders. */
main > section#ecosystem {
  contain-intrinsic-size: auto 1689px;
}
main > section#principles {
  contain-intrinsic-size: auto 780px;
}
main > section#services {
  contain-intrinsic-size: auto 1472px;
}
main > section.closing-section {
  contain-intrinsic-size: auto 329px;
}
/* <main> is focusable only so the skip link can move the keyboard caret into
 * the content. It is a scroll target, not a control, so it shows no ring. */
main[tabindex="-1"]:focus {
  outline: none;
}
main > section[id] {
  scroll-margin-top: var(--aents-anchor-offset);
}
.header-brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
}
/* The home row carries seven links, sign-in and the language switcher, and
 * they fit the 1152px container on one line only at this gap (each link pads
 * its label by 4px a side) and, below 1280px, at body size. */
.header-nav {
  display: flex;
  gap: var(--spacing-md);
  margin-left: var(--spacing-sm);
  font-size: var(--type-bodyLarge-size);
  color: var(--text-secondary);
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .header-nav {
    font-size: var(--type-body-size);
  }
}
.header-nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: var(--touch-target);
  padding: var(--spacing-sm) var(--spacing-xs);
  transition:
    color var(--duration-fast) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}
.header-nav a::after {
  content: "";
  position: absolute;
  inset: auto var(--spacing-xs) 2px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--purple), var(--primary));
  box-shadow: 0 0 12px color-mix(in srgb, var(--purple) 65%, transparent);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--easing-emphasized);
}
.header-nav a:hover {
  color: var(--text);
}
.header-nav a.is-active {
  color: var(--text);
  transform: translateY(-1px);
}
.header-nav a.is-active::after {
  transform: scaleX(1);
}
/* In the compact menu each link spans the panel; the marker stays a short
 * bar under the start of the label instead of underlining the whole row. */
@media (max-width: 1079px) {
  [data-aents-site-menu="ready"] .header-nav a::after {
    inset: auto auto var(--spacing-sm) 0;
    width: var(--space-8);
  }
}
/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
  isolation: isolate;
  background:
    linear-gradient(
      115deg,
      color-mix(in srgb, var(--navy) 98%, transparent) 0 54%,
      transparent 82%
    ),
    radial-gradient(
      circle at 78% 32%,
      color-mix(in srgb, var(--purple) 34%, transparent),
      transparent 34%
    ),
    var(--navy);
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 180px;
  opacity: 0.38;
  background:
    linear-gradient(
        90deg,
        transparent 8%,
        color-mix(in srgb, var(--purple) 35%, transparent) 50%,
        transparent 92%
      )
      top / 100% 1px no-repeat,
    radial-gradient(
      ellipse at 50% 100%,
      color-mix(in srgb, var(--purple) 20%, transparent),
      transparent 62%
    );
}
.hero > .aents-brand-grid {
  z-index: -1;
}
.hero-aura-a {
  inset-block-start: -18%;
  inset-inline-start: -8%;
}
.hero-aura-b {
  inset-block-start: -10%;
  inset-inline-end: -6%;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 440px;
}
.hero-title {
  font-size: var(--type-display1-size);
  line-height: var(--type-display1-line);
  letter-spacing: -0.03em;
  font-weight: var(--weight-extrabold);
  margin: var(--spacing-lg) 0 var(--spacing-md);
  text-wrap: balance;
  filter: drop-shadow(
    0 12px 28px color-mix(in srgb, var(--purple) 16%, transparent)
  );
}
.hero-subtitle {
  font-size: var(--type-bodyLarge-size);
  line-height: var(--type-bodyLarge-line);
  color: color-mix(in srgb, var(--white) 72%, transparent);
  max-width: 34rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--space-8);
}
.hero-origin {
  font-size: var(--type-bodyLarge-size);
  line-height: var(--type-bodyLarge-line);
  color: color-mix(in srgb, var(--white) 72%, transparent);
  max-width: 34rem;
}
.hero-art {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}
.product-stage {
  --stage-x: 0;
  --stage-y: 0;
  position: relative;
  width: min(100%, 500px);
  height: 500px;
  transform: perspective(900px) rotateY(calc(var(--stage-x) * 2.5deg))
    rotateX(calc(var(--stage-y) * -2.5deg));
  transition: transform var(--duration-slow) var(--easing-emphasis);
  transform-style: preserve-3d;
}
.product-stage::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: 82px;
  top: 70px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--purple) 55%, transparent),
    transparent 66%
  );
  filter: blur(12px);
  animation: pulse-aura 5s ease-in-out infinite;
}
.product-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 55px 38px 68px;
  border-radius: 50%;
  opacity: 0.3;
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--lavender) 55%, transparent) 0 1deg,
    transparent 1deg 12deg
  );
  mask-image: radial-gradient(
    circle,
    transparent 61%,
    black 62% 64%,
    transparent 65%
  );
  animation: tech-ring 36s linear infinite;
}
.stage-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--lavender) 28%, transparent);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.stage-orbit-one {
  inset: 52px 18px 65px 25px;
}
.stage-orbit-two {
  inset: 93px 55px 105px 65px;
  border-style: dashed;
  animation: orbit-spin 28s linear infinite;
}
.device {
  position: absolute;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--navy) 85%, var(--purple-deep)),
    var(--navy) 64%
  );
  box-shadow:
    0 35px 80px color-mix(in srgb, var(--navy) 48%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 12%, transparent);
}
.device-front {
  z-index: 3;
  width: 216px;
  height: 420px;
  left: 146px;
  top: 25px;
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 22px;
  transform: rotate(5deg);
  animation: float 6s var(--easing-emphasis) infinite;
}
.device-back {
  z-index: 2;
  width: 190px;
  height: 350px;
  left: 22px;
  top: 105px;
  border-radius: 32px;
  padding: 28px 18px;
  transform: rotate(-10deg);
  opacity: 0.9;
}
.device-back {
  animation: float-back 7s var(--easing-emphasis) 400ms infinite;
}
.device-island {
  width: 72px;
  height: 18px;
  border-radius: 20px;
  background: var(--navy);
  position: absolute;
  top: 9px;
}
.device-app-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: 34px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    var(--gradient-tile-from),
    var(--gradient-tile-to)
  );
  box-shadow: 0 14px 35px color-mix(in srgb, var(--purple) 45%, transparent);
}
.device-kicker {
  color: var(--lavender);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
  margin-top: 20px;
}
.stage-chip,
.stage-card {
  position: absolute;
  z-index: 5;
}
.stage-chip {
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 700;
}
.stage-chip-private {
  right: 4px;
  top: 92px;
}
.stage-chip-languages {
  left: 8px;
  top: 62px;
  color: var(--lavender);
  font-family: var(--font-mono);
}
.stage-chip-private {
  animation: drift-x 5s var(--easing-emphasis) infinite;
}
.stage-chip-languages {
  animation: drift-y 6s var(--easing-emphasis) 500ms infinite;
}
.stage-chip-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.stage-card {
  right: 0;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 10px;
  color: color-mix(in srgb, var(--white) 55%, transparent);
}
.stage-card strong {
  display: block;
  font-size: 13px;
  color: var(--white);
}
.stage-card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple), var(--purple-deep));
}

/* The hero scene: a change typed into the editor, then carried through the
 * checks to a live release. Every element rests in its final state; the
 * keyframes only play the way there (fill `backwards`), so reduced motion and
 * a section paused off screen both show the finished frame. */
.dev-stage {
  --dev-start: 700ms;
  --dev-line: 360ms;
  --dev-done: calc(var(--dev-start) + 7 * var(--dev-line));
  position: relative;
  width: min(100%, 460px);
  /* Room for the pipeline card to hang below the code, not over it. */
  padding-block-end: 96px;
  color: var(--white);
}
.dev-editor {
  overflow: hidden;
  margin-inline-end: var(--space-8);
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--purple-deep) 32%, var(--navy)),
    var(--navy) 62%
  );
  box-shadow:
    0 32px 72px color-mix(in srgb, var(--purple-deep) 26%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 10%, transparent);
}
.dev-editor__tabs {
  display: flex;
  gap: 2px;
  padding: var(--spacing-sm) var(--spacing-sm) 0;
  border-block-end: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  font: var(--weight-medium) var(--type-small-size) / 1 var(--font-mono);
}
.dev-editor__tab {
  padding: 10px 14px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: color-mix(in srgb, var(--white) 58%, transparent);
}
.dev-editor__tab--active {
  color: var(--white);
  background: color-mix(in srgb, var(--white) 7%, transparent);
  box-shadow: inset 0 -2px 0 var(--lavender);
}
.dev-code {
  counter-reset: dev-line;
  margin: 0;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg) 0;
  list-style: none;
  font: 400 13px / 1.85 var(--font-mono);
  white-space: pre;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}
.dev-code li {
  --dev-at: calc(var(--dev-start) + var(--dev-row) * var(--dev-line));
  counter-increment: dev-line;
  display: flex;
  align-items: center;
  min-height: 1.85em;
}
.dev-code li:nth-child(1) {
  --dev-row: 0;
}
.dev-code li:nth-child(2) {
  --dev-row: 1;
}
.dev-code li:nth-child(3) {
  --dev-row: 2;
}
.dev-code li:nth-child(4) {
  --dev-row: 3;
}
.dev-code li:nth-child(5) {
  --dev-row: 4;
}
.dev-code li:nth-child(6) {
  --dev-row: 5;
}
.dev-code li:nth-child(7) {
  --dev-row: 6;
}
.dev-code li::before {
  content: counter(dev-line);
  flex: 0 0 5ch;
  padding-inline-end: 1.5ch;
  text-align: end;
  color: color-mix(in srgb, var(--white) 48%, transparent);
  animation: dev-appear 1ms var(--dev-at) backwards;
}
.dev-code__line {
  display: inline-block;
  animation: dev-type var(--dev-line) steps(16, end) var(--dev-at) backwards;
}
.dev-code__indent .dev-code__line {
  margin-inline-start: 4ch;
}
.dev-code__indent--2 .dev-code__line {
  margin-inline-start: 8ch;
}
.dev-code__kw {
  color: var(--lavender);
}
.dev-code__type {
  color: var(--amber);
}
.dev-code__fn {
  color: var(--teal);
}
.dev-code__self {
  color: color-mix(in srgb, var(--white) 56%, transparent);
}
.dev-code__caret {
  width: 2px;
  height: 1.15em;
  margin-inline-start: 2px;
  background: var(--lavender);
  animation:
    dev-appear 1ms var(--dev-done) backwards,
    dev-blink 1.1s linear var(--dev-done) 4;
}
.dev-pipeline {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  display: grid;
  gap: var(--spacing-sm);
  margin: 0;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md)
    var(--spacing-md);
  list-style: none;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--background);
  box-shadow: var(--shadow-4);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
}
.dev-step {
  --dev-mark: 22px;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.dev-step:nth-child(1) {
  --dev-at: calc(var(--dev-done) + 300ms);
}
.dev-step:nth-child(2) {
  --dev-at: calc(var(--dev-done) + 1000ms);
}
.dev-step:nth-child(3) {
  --dev-at: calc(var(--dev-done) + 1700ms);
}
.dev-step > span:last-child {
  animation: dev-pending 240ms var(--easing-decelerate) var(--dev-at) backwards;
}
.dev-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--dev-mark) / 2 - 1px);
  inset-block-start: var(--dev-mark);
  width: 2px;
  height: var(--spacing-sm);
  background: var(--success-strong);
  transform-origin: top;
  animation: dev-connect 400ms var(--easing-decelerate)
    calc(var(--dev-at) + 240ms) backwards;
}
.dev-step__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--dev-mark);
  height: var(--dev-mark);
  border-radius: var(--radius-full);
  color: var(--on-primary);
  background: var(--success-strong);
  animation: dev-check 320ms var(--easing-decelerate) var(--dev-at) backwards;
}
.dev-step--live {
  color: var(--success-strong);
}
.dev-step--live .dev-step__mark {
  background: var(--success-soft);
}
.dev-step__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success-strong);
  animation:
    dev-appear 1ms var(--dev-at) backwards,
    dev-live 2.4s var(--easing-decelerate) calc(var(--dev-at) + 320ms) 3;
}
@keyframes dev-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes dev-appear {
  from {
    opacity: 0;
  }
}
@keyframes dev-blink {
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes dev-pending {
  from {
    opacity: 0.45;
  }
}
@keyframes dev-check {
  from {
    color: transparent;
    background: var(--surface);
    box-shadow: inset 0 0 0 2px var(--border);
    transform: scale(0.8);
  }
}
@keyframes dev-connect {
  from {
    transform: scaleY(0);
  }
}
@keyframes dev-live {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent);
  }
  to {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dev-stage *,
  .dev-stage *::before,
  .dev-stage *::after {
    animation: none !important;
  }
}
@media (max-width: 960px) {
  .hero-inner .hero-art {
    order: 0;
  }
}
@media (max-width: 560px) {
  .dev-code {
    font-size: 12px;
  }
  .dev-editor {
    margin-inline-end: var(--space-6);
  }
}
/* On the dark hero the secondary action is an outline, not a light slab
 * competing with the primary one. */
.hero .aents-btn--secondary {
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 34%, transparent);
  background: color-mix(in srgb, var(--white) 6%, transparent);
}
.hero .aents-btn--secondary:hover:not(:disabled) {
  border-color: var(--white);
  background: color-mix(in srgb, var(--white) 12%, transparent);
}

/* ---------- Value strip ---------- */
.value-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--space-10);
  padding: var(--spacing-lg);
  background: color-mix(in srgb, var(--navy) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  border-radius: var(--radius-lg);
}
.value {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  text-align: center;
}
.value-label {
  font-weight: var(--weight-bold);
  font-size: var(--type-bodyLarge-size);
}
.value-note {
  font-size: var(--type-body-size);
  color: color-mix(in srgb, var(--white) 64%, transparent);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--space-20) 0;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--space-16);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--purple) 5%, transparent),
    transparent
  );
}
.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-10);
}
.section-head h2 {
  font-size: var(--type-display2-size);
  line-height: var(--type-display2-line);
  letter-spacing: -0.02em;
  font-weight: var(--weight-bold);
  margin-bottom: var(--spacing-sm);
}
.section-head p {
  color: var(--text-secondary);
  font-size: var(--type-bodyLarge-size);
  text-wrap: pretty;
}
.section-eyebrow {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-ink);
  font-family: var(--font-mono);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- App cards ---------- */
.live-product {
  margin-bottom: var(--spacing-lg);
}
.live-product-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 330px;
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border-subtle));
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(
      circle at 18% 15%,
      color-mix(in srgb, var(--green) 18%, transparent),
      transparent 32%
    ),
    linear-gradient(
      125deg,
      var(--navy),
      color-mix(in srgb, var(--navy) 86%, var(--teal))
    );
  box-shadow: var(--shadow-3);
  transition:
    transform var(--duration-base) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}
.live-product-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-5);
}
.live-product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-10);
}
.live-product-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  border-radius: var(--radius-full);
  font-size: var(--type-small-size);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}
.live-product-status span {
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: aents-pulse 2s var(--easing-decelerate) infinite;
}
.live-product-kind {
  margin-top: var(--spacing-lg);
  color: var(--green);
  font-size: var(--type-body-size);
  font-weight: var(--weight-semibold);
}
.live-product-copy h3 {
  margin-top: var(--spacing-xs);
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
}
.live-product-copy > p:not(.live-product-kind) {
  margin-top: var(--spacing-sm);
  max-width: 31rem;
  color: color-mix(in srgb, var(--white) 65%, transparent);
}
.live-product-cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  margin-top: var(--spacing-sm);
  color: var(--white);
  font-weight: var(--weight-bold);
}
.live-product-cta b {
  display: inline-block;
  margin-left: var(--spacing-xs);
  color: var(--green);
  transition: transform var(--duration-fast) var(--easing-standard);
}
.live-product-link:hover .live-product-cta b {
  transform: translate(3px, -3px);
}

.live-product-link--plan {
  border-color: color-mix(in srgb, var(--purple) 32%, var(--border-subtle));
  background:
    radial-gradient(
      circle at 80% 18%,
      color-mix(in srgb, var(--purple) 24%, transparent),
      transparent 36%
    ),
    linear-gradient(
      125deg,
      var(--navy),
      color-mix(in srgb, var(--navy) 78%, var(--purple))
    );
}
.plan-preview {
  position: relative;
  overflow: hidden;
  margin: var(--spacing-lg);
  border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--navy) 74%, var(--purple));
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--purple) 18%, transparent);
}
.plan-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--spacing-xs);
  margin: var(--spacing-md) var(--spacing-lg) 0;
}
.plan-day {
  display: grid;
  justify-items: center;
  padding: var(--spacing-xs) 0;
  color: color-mix(in srgb, var(--white) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--white) 8%, transparent);
  line-height: 1.1;
}
.plan-day small {
  font-size: var(--type-caption-size);
}
.plan-day b {
  font-size: var(--type-h3-size);
  font-weight: var(--weight-extrabold);
}
.plan-day i {
  color: var(--amber);
  font-size: var(--type-caption-size);
  font-style: normal;
  font-weight: var(--weight-bold);
}
.plan-day--selected {
  color: var(--navy);
  border-color: var(--teal);
  background: var(--teal);
  animation: plan-day-pop 3.2s var(--easing-emphasis) infinite;
}
.plan-day--selected i {
  color: var(--navy);
}
.plan-chips {
  display: flex;
  gap: var(--spacing-xs);
  margin: var(--spacing-md) var(--spacing-lg) 0;
}
.plan-chips span {
  padding: var(--spacing-xs) var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  font-size: var(--type-caption-size);
}
.plan-event {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  padding: var(--spacing-sm);
  color: var(--text);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-4);
}
.plan-event-thumb {
  width: var(--control-lg);
  height: var(--control-lg);
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--purple), var(--teal));
}
.plan-event div {
  display: grid;
}
.plan-event small {
  color: var(--text-muted);
  font-size: var(--type-caption-size);
}
@keyframes plan-day-pop {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plan-day--selected {
    animation: none;
  }
}
.geo-preview {
  position: relative;
  overflow: hidden;
  margin: var(--spacing-lg);
  border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--navy) 78%, var(--teal));
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--teal) 14%, transparent);
}
.geo-browserbar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--space-10);
  padding-inline: var(--spacing-md);
  color: color-mix(in srgb, var(--white) 46%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  font-size: var(--type-caption-size);
}
.geo-browserbar > span {
  display: flex;
  gap: var(--spacing-xs);
}
.geo-browserbar i {
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-radius: 50%;
  background: var(--purple);
}
.geo-browserbar i:nth-child(2) {
  background: var(--amber);
}
.geo-browserbar i:nth-child(3) {
  background: var(--green);
}
.geo-browserbar b {
  padding: var(--spacing-xs) var(--spacing-md);
  color: color-mix(in srgb, var(--white) 70%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--white) 6%, transparent);
  font-family: var(--font-mono);
  font-weight: var(--weight-regular);
}
.geo-browserbar em {
  justify-self: end;
  color: var(--green);
  font-style: normal;
}
.geo-map-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.3;
  background-image:
    linear-gradient(
      32deg,
      transparent 47%,
      color-mix(in srgb, var(--teal) 50%, transparent) 48% 49%,
      transparent 50%
    ),
    linear-gradient(
      112deg,
      transparent 47%,
      color-mix(in srgb, var(--purple) 45%, transparent) 48% 49%,
      transparent 50%
    );
  background-size: 72px 64px;
  transform: rotate(-8deg);
}
.geo-search {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  inset: calc(var(--space-10) + var(--spacing-md)) var(--spacing-lg) auto;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-3);
}
.geo-search span {
  font-size: var(--type-small-size);
}
.geo-filters {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: var(--spacing-xs);
  top: calc(var(--space-10) + var(--space-16));
  left: var(--spacing-lg);
}
.geo-filters span {
  padding: var(--spacing-xs) var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  font-size: var(--type-caption-size);
}
.geo-filters span:first-child {
  color: var(--navy);
  background: var(--green);
}
.geo-country {
  position: absolute;
  z-index: 1;
  right: 10%;
  top: 43%;
  color: color-mix(in srgb, var(--white) 8%, transparent);
  font-family: var(--font-mono);
  font-size: var(--type-display2-size);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.15em;
  transform: rotate(-8deg);
}
.geo-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--control-md);
  height: var(--control-md);
  color: var(--white);
  border: 2px solid color-mix(in srgb, var(--white) 75%, transparent);
  border-radius: 50% 50% 50% 0;
  background: var(--purple);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--navy) 55%, transparent);
  transform: rotate(-45deg);
  animation: geo-pin-pop 3.2s var(--easing-emphasis) infinite;
}
.geo-pin-one {
  left: 22%;
  top: 40%;
}
.geo-pin-two {
  right: 24%;
  top: 30%;
  animation-delay: 400ms;
  background: var(--green);
}
.geo-pin-three {
  right: 38%;
  bottom: 23%;
  animation-delay: 800ms;
  background: var(--teal);
}
.geo-pin {
  font-size: 0;
}
.geo-pin::after {
  content: "";
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-radius: 50%;
  background: var(--white);
}
.geo-property {
  position: absolute;
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  right: var(--spacing-lg);
  bottom: var(--spacing-lg);
  padding: var(--spacing-sm);
  color: var(--text);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-4);
}
.geo-property-thumb {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: var(--control-lg);
  height: var(--control-lg);
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--white) 38%, transparent);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--teal), var(--green));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 30%, transparent),
    0 8px 18px color-mix(in srgb, var(--teal) 28%, transparent);
}
.geo-property-thumb::after {
  content: "";
  position: absolute;
  inset: auto -12px -16px;
  height: 24px;
  border-radius: 50% 50% 0 0;
  background: color-mix(in srgb, var(--navy) 18%, transparent);
  transform: rotate(-8deg);
}
.geo-property-thumb svg {
  position: relative;
  z-index: 1;
}
.geo-property div {
  display: flex;
  flex-direction: column;
}
.geo-property small {
  color: var(--text-muted);
  font-size: var(--type-caption-size);
}

/* ---------- Product showcase ---------- */
/* Written for the phone first: one card per row, the screenshot full width
 * and the actions stacked under the thumb. Wider screens add columns. */
.showcase {
  list-style: none;
  display: grid;
  gap: var(--spacing-lg);
}
.showcase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--lavender) 18%, transparent);
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--navy) 88%, var(--purple)),
    var(--navy) 60%
  );
  box-shadow: var(--shadow-3);
}
.showcase-shot {
  margin: var(--spacing-sm) var(--spacing-sm) 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md)
    var(--radius-md);
  background: var(--white);
}
.showcase-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: color-mix(in srgb, var(--navy) 92%, var(--white));
}
.showcase-bar span {
  display: inline-flex;
  gap: var(--spacing-xs);
}
.showcase-bar i {
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--white) 22%, transparent);
}
.showcase-bar b {
  flex: 1;
  overflow: hidden;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-family: var(--font-mono);
  font-size: max(0.75rem, var(--type-small-size));
  font-weight: var(--weight-regular);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The width and height attributes of the image and of each phone source give
 * the box its ratio before the file arrives, so the page never jumps when a
 * screenshot loads. */
.showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.showcase-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl);
}
.showcase-body h3 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  letter-spacing: -0.02em;
}
.showcase-body p {
  max-width: 36rem;
  color: color-mix(in srgb, var(--white) 74%, transparent);
  font-size: max(1rem, var(--type-body-size));
  line-height: 1.55;
  text-wrap: pretty;
}
.showcase-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding-top: var(--spacing-md);
}
.showcase-actions .aents-btn {
  justify-content: center;
  color: var(--white);
}
/* A product's two things to do sit side by side when both labels fit, and
 * stack at full width when they do not; the product page link follows. */
.showcase-pair {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.showcase-pair .aents-btn {
  flex: 1 1 auto;
}
.showcase-pair__out,
.product-cta b {
  margin-inline-start: var(--spacing-xs);
  font-weight: var(--weight-bold);
}
.product-built-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding-inline: var(--spacing-xs);
  color: var(--text-secondary);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.product-built-link:hover {
  color: var(--primary-ink);
}
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  color: var(--white);
  font-weight: var(--weight-bold);
}
.showcase-link b {
  color: var(--green);
  transition: transform var(--duration-fast) var(--easing-standard);
}
.showcase-link:hover b {
  transform: translateX(3px);
}
.showcase-link--quiet {
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-weight: var(--weight-medium);
}
.showcase-link--quiet:hover {
  color: var(--white);
}
.showcase-all {
  margin-top: var(--space-8);
}
.showcase-all a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  color: var(--primary-ink);
  font-weight: var(--weight-bold);
}
@media (min-width: 640px) {
  .showcase-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm) var(--spacing-lg);
  }
}
@media (min-width: 961px) {
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* An odd product out takes the whole row, its screen beside its copy,
   * instead of leaving half the row empty. */
  .showcase > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .showcase > li:last-child:nth-child(odd) .showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
  .showcase > li:last-child:nth-child(odd) .showcase-shot {
    margin: var(--spacing-sm);
    border-radius: var(--radius-xl);
  }
  .showcase-body {
    padding: var(--spacing-xl) var(--space-8) var(--space-8);
  }
}

/* ---------- Principles ---------- */
/* Five principles in one row left each note three words wide. On a desktop the
 * heading holds the left column while the principles stack beside it at a
 * readable measure; the connector runs down the list instead of across it. */
@media (min-width: 961px) {
  .principles {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-16);
    align-items: start;
  }
  .principles .section-head {
    position: sticky;
    top: calc(
      var(--aents-site-header-height, var(--space-16)) + var(--space-8)
    );
    margin-bottom: 0;
  }
}
.principle-grid {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}
.principle-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 5%;
  bottom: 5%;
  left: var(--space-12);
  width: 1px;
  opacity: 0.34;
  background: linear-gradient(
    180deg,
    transparent,
    var(--purple),
    var(--lavender),
    var(--green),
    transparent
  );
}
.principle-grid > li {
  position: relative;
  z-index: 1;
}
/* Cards stay equal height, but their content is top-aligned so the numbered
 * topline and the title share a baseline across the whole row. */
.principle {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--spacing-sm);
  height: 100%;
  padding: var(--spacing-lg);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--primary) 5%, transparent),
      transparent 55%
    ),
    var(--surface);
}
.principle::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 2px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--purple),
    var(--green),
    transparent
  );
  background-size: 220% 100%;
  animation: principle-signal 6s var(--easing-emphasis)
    calc(var(--principle-index) * 420ms) 1 both;
}
.principle:hover {
  box-shadow:
    var(--shadow-3),
    0 0 0 1px color-mix(in srgb, var(--purple) 18%, transparent),
    0 18px 45px color-mix(in srgb, var(--purple) 10%, transparent);
}
.principle::after {
  content: "";
  position: absolute;
  inset: auto -45px -55px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--purple) 10%, transparent);
  filter: blur(5px);
  pointer-events: none;
}
.principle-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}
.principle-index {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--control-sm);
  height: var(--control-sm);
  border: 1px solid color-mix(in srgb, var(--purple) 22%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--purple) 6%, var(--surface));
  font-family: var(--font-mono);
  font-size: var(--type-small-size);
  color: var(--primary-ink);
}
.principle-index::after {
  content: "";
  position: absolute;
  width: var(--spacing-xs);
  height: var(--spacing-xs);
  top: -2px;
  right: -2px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  opacity: 0;
  animation: principle-node 6s var(--easing-emphasis)
    calc(var(--principle-index) * 420ms) 1 both;
}
.principle-mark {
  width: var(--space-8);
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--purple), var(--primary));
  transform-origin: right;
  transition: transform var(--duration-base) var(--easing-standard);
}
.principle:hover .principle-mark {
  transform: scaleX(1.5);
}
.principle:hover .principle-index {
  animation: index-pop var(--duration-slow) var(--easing-emphasis);
}

/* ---------- Software services ---------- */
.services-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-20) 0;
  color: var(--white);
  background:
    radial-gradient(
      circle at 10% 8%,
      color-mix(in srgb, var(--purple) 22%, transparent),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 88%,
      color-mix(in srgb, var(--teal) 16%, transparent),
      transparent 28%
    ),
    var(--navy);
}
.services-section > .aents-brand-grid {
  z-index: -1;
  opacity: 0.1;
}
.services-glow {
  z-index: -1;
  inset: 20% auto auto -14%;
}
.services-frame {
  margin-bottom: var(--space-12);
}
.services-frame .aents-ancestral-frame__content {
  padding: var(--space-10);
}
.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--lavender) 25%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--white) 7%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 8%, transparent),
    0 12px 35px color-mix(in srgb, var(--purple) 12%, transparent);
  font-family: var(--font-mono);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.services-eyebrow i {
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: aents-pulse 2s var(--easing-decelerate) infinite;
}
.services-eyebrow span {
  color: var(--lavender);
  font-weight: var(--weight-medium);
}
.services-eyebrow b {
  padding-left: var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 42%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  font-weight: var(--weight-regular);
}
.services-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: end;
}
/* The page has one display headline, the hero's; the services statement takes
 * the section scale so it does not out-shout the h1. */
.services-hero h2 {
  max-width: 42rem;
  font-size: var(--type-display2-size);
  line-height: var(--type-display2-line);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.services-intro > p {
  color: color-mix(in srgb, var(--white) 68%, transparent);
  font-size: var(--type-bodyLarge-size);
  line-height: var(--type-bodyLarge-line);
}
.services-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}
.services-phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--type-body-size);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 50%, transparent);
}
/* Nine cards, not four: the home page is where the whole offer is stated, and
   two rows of two read like the studio only does four things. `auto-fit` is
   what keeps that from becoming a decision per breakpoint — three across on a
   desktop, two on a laptop, and the 960px rule below drops it to one. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--space-12);
}

/* The reveal wrapper is the grid item, not the card, so the card has to be
   told to fill it. Without this a row is as ragged as its copy, and nine
   cards make that impossible to miss. */
.services-grid > * {
  display: flex;
}

.service-card {
  flex: 1;
}

/* The grid is one column or three: a card left alone on the last row takes
   the row instead of a third of it beside two empty cells. */
.services-grid > :last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}
.services-grid > :last-child:nth-child(3n + 1) .service-card {
  min-height: 0;
}
.services-grid > :last-child:nth-child(3n + 1) .service-card p {
  max-width: 65ch;
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  /* The arrow is pinned to the bottom-right corner, so the copy has to stop
     above it. Four wide cards never came close; nine narrower ones wrap into
     that corner, and reserving the band is what keeps the last line off the
     arrow instead of trusting the text to be short. */
  padding: var(--spacing-lg) var(--spacing-lg)
    calc(var(--spacing-lg) + var(--control-md) + var(--spacing-sm));
  border: 1px solid color-mix(in srgb, var(--lavender) 22%, transparent);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--white) 10%, var(--navy)),
    color-mix(in srgb, var(--navy) 94%, var(--purple))
  );
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 9%, transparent),
    0 18px 45px color-mix(in srgb, var(--navy) 35%, transparent);
  transition:
    transform var(--duration-base) var(--easing-emphasis),
    border-color var(--duration-base) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}
.service-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  bottom: -75px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--purple) 18%, transparent);
  filter: blur(5px);
  transition: transform var(--duration-slow) var(--easing-emphasis);
}
.service-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* Only a card that leads somewhere answers the pointer. */
.service-card--link:hover,
.service-card--link:focus-visible {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--lavender) 38%, transparent);
  box-shadow: 0 22px 55px color-mix(in srgb, var(--navy) 60%, transparent);
}
.service-card--link:hover::after {
  transform: scale(1.3);
}
.service-number {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: var(--type-small-size);
}
.service-card h3 {
  margin-top: 0;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
}
.service-card p {
  margin-top: var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 72%, transparent);
}
.service-arrow {
  position: absolute;
  right: var(--spacing-lg);
  bottom: var(--spacing-lg);
  display: grid;
  place-items: center;
  width: var(--control-md);
  height: var(--control-md);
  color: var(--lavender);
  border: 1px solid color-mix(in srgb, var(--lavender) 28%, transparent);
  border-radius: 50%;
  transition:
    transform var(--duration-base) var(--easing-emphasis),
    color var(--duration-fast) var(--easing-standard);
}
.service-card--link:hover .service-arrow {
  color: var(--green);
  transform: rotate(45deg);
}
.services-reach {
  max-width: 65ch;
  margin-top: var(--space-8);
  color: color-mix(in srgb, var(--white) 72%, transparent);
}
.services-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-top: var(--space-12);
  padding-top: var(--spacing-lg);
  border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
}
.services-closing > span {
  color: color-mix(in srgb, var(--white) 65%, transparent);
}
.services-closing a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--white);
  font-weight: var(--weight-bold);
}
.services-closing a b {
  display: inline-block;
  margin-left: var(--spacing-sm);
  color: var(--green);
  transition: transform var(--duration-fast) var(--easing-standard);
}
.services-closing a:hover b {
  transform: translateX(5px);
}

/* ---------- Closing statement ---------- */
.closing-section {
  padding: var(--space-16) 0;
  background: var(--background);
}
.closing-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-10);
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--purple) 38%, transparent);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(
      circle at 15% 40%,
      color-mix(in srgb, var(--purple) 42%, transparent),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      var(--navy),
      color-mix(in srgb, var(--navy) 82%, var(--purple))
    );
  box-shadow: var(--shadow-4);
}
.closing-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--lavender) 25%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--lavender) 25%, transparent) 1px,
      transparent 1px
    );
  background-size: var(--space-8) var(--space-8);
  mask-image: linear-gradient(90deg, black, transparent 62%);
}
.closing-card .section-eyebrow {
  color: var(--lavender);
}
.closing-card h2 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  text-wrap: balance;
}
.closing-card p {
  max-width: 36rem;
  margin-top: var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 65%, transparent);
}
.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}
/* The closing CTA sits on the dark canvas: keep its label white. */
.closing-actions .aents-btn--primary {
  color: var(--white);
}
/* Under a filled button the second action still has to read as a link, not
 * as a caption: hence the underline and the brighter label. */
.closing-actions > a:not(.aents-btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  color: color-mix(in srgb, var(--white) 86%, transparent);
  font-size: var(--type-body-size);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--white) 40%, transparent);
  text-underline-offset: 0.3em;
}
.closing-actions > a:not(.aents-btn):hover {
  color: var(--white);
  text-decoration-color: currentColor;
}
.closing-actions > a:not(.aents-btn) span {
  color: var(--green);
}
.closing-apps {
  position: relative;
  width: 190px;
  height: 96px;
}
.closing-apps span {
  position: absolute;
  top: calc(var(--app-index) * 7px);
  left: calc(var(--app-index) * 38px);
  display: grid;
  place-items: center;
  width: var(--space-16);
  height: var(--space-16);
  border: 1px solid color-mix(in srgb, var(--app-accent) 65%, var(--white));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--app-accent) 32%, var(--navy));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--navy) 65%, transparent);
  transform: rotate(calc((var(--app-index) - 1.5) * 4deg));
}
.closing-apps span {
  animation: app-stack-float 4.8s var(--easing-emphasis)
    calc(var(--app-index) * 180ms) infinite;
}

/* ---------- Motion ---------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes float-back {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(10px);
  }
}
@keyframes drift-x {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}
@keyframes drift-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes index-pop {
  50% {
    transform: translateY(-3px);
    color: var(--green);
  }
}
@keyframes app-stack-float {
  0%,
  100% {
    transform: rotate(calc((var(--app-index) - 1.5) * 4deg)) translateY(0);
  }
  50% {
    transform: rotate(calc((var(--app-index) - 1.5) * 2deg)) translateY(-7px);
  }
}
@keyframes tech-ring {
  to {
    transform: rotate(360deg);
  }
}
@keyframes geo-pin-pop {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}
@keyframes principle-signal {
  0%,
  12%,
  100% {
    opacity: 0;
    background-position: 100% 0;
  }
  18%,
  32% {
    opacity: 1;
  }
  42% {
    opacity: 0;
    background-position: -120% 0;
  }
}
@keyframes principle-node {
  0%,
  14%,
  38%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  20%,
  30% {
    opacity: 1;
    transform: scale(1.25);
  }
}
@keyframes pulse-aura {
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}
@keyframes orbit-spin {
  to {
    transform: rotate(342deg);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-art {
    order: -1;
  }
  .hero-mark {
    width: 240px;
    height: 240px;
  }
  .product-stage {
    transform: scale(0.88);
    margin-block: -28px;
  }
  .value-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Below the desktop width the section links stay reachable as a row that
   * scrolls sideways inside the header; the fade on the trailing edge says
   * there is more. Its basis makes the account and language controls wrap
   * onto their own row on a phone instead of squeezing the links away. */
  .header-nav {
    flex: 1 1 12rem;
    min-width: 0;
    gap: var(--spacing-sm);
    margin-left: 0;
    /* Scrolled to the end, the last link clears the fade instead of staying
     * half transparent under it. */
    padding-inline-end: var(--space-8);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    font-size: var(--type-body-size);
    mask-image: linear-gradient(
      90deg,
      var(--navy) calc(100% - var(--space-8)),
      transparent
    );
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .live-product-link {
    grid-template-columns: 1fr;
  }
  .geo-preview {
    min-height: 300px;
  }
  .services-hero {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .aents-topbar,
  .stage-chip,
  .geo-browserbar,
  .geo-filters span,
  .services-eyebrow,
  .service-card {
    backdrop-filter: none;
  }
  .header-brand .aents-brand-symbol {
    width: 32px;
    height: 32px;
  }
  .aents-language {
    gap: 2px;
    padding: 2px;
  }
  .aents-language__icon {
    display: none;
  }
  .hero {
    padding: var(--space-8) 0 var(--space-10);
  }
  .hero-inner {
    min-height: 0;
    gap: var(--space-6);
  }
  /* Stacked full width, the two actions read as a pair under the centred
   * copy instead of hugging the left edge at different widths. */
  .hero-cta {
    flex-direction: column;
    align-self: stretch;
    margin-top: var(--space-6);
  }
  .hero-cta .aents-btn {
    justify-content: center;
  }
  /* A multi-line paragraph set centred starts every line somewhere else; on a
   * phone the hero copy lines up on the left edge like the rest of the page. */
  .hero-inner {
    text-align: start;
  }
  .hero-copy {
    align-items: flex-start;
  }
  /* Phone reading floor, as on the content pages: 16px for a paragraph that
   * is read. The 0.9 phone scale would set it at 12.6px. */
  .hero-origin,
  .live-product-copy > p:not(.live-product-kind),
  .closing-card p,
  .services-reach {
    font-size: max(1rem, var(--type-body-size));
  }
  /* Labels never drop under 12px, the smallest size the phone scale leaves
   * legible; the caption token times 0.9 is 9.9px. */
  .live-product-status {
    font-size: max(0.75rem, var(--type-small-size));
  }
  .hero-art {
    height: auto;
    min-height: 0;
    align-items: center;
    overflow: hidden;
  }
  .product-stage {
    flex: 0 0 500px;
    width: 500px;
    height: 500px;
    zoom: 0.61;
    transform: none;
    margin: 0;
  }
  .value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--space-6);
    padding: var(--spacing-md);
  }
  .value {
    gap: 2px;
  }
  .value-label {
    font-size: var(--type-body-size);
  }
  .value-note {
    font-size: max(0.75rem, var(--type-caption-size));
  }
  .section,
  .services-section {
    padding-block: var(--space-10);
  }
  .section-head {
    margin-bottom: var(--space-6);
  }
  .section-head h2 {
    margin-bottom: var(--spacing-xs);
  }
  .section-head p,
  .services-intro > p {
    font-size: max(1rem, var(--type-body-size));
    line-height: 1.5;
  }
  .value-strip {
    border-radius: var(--radius-md);
  }
  .principle-grid {
    grid-template-columns: 1fr;
  }
  .live-product {
    margin-bottom: var(--spacing-md);
  }
  .live-product-link {
    min-height: 0;
    border-radius: var(--radius-xl);
  }
  .live-product-copy {
    padding: var(--spacing-md);
  }
  .live-product-kind {
    margin-top: var(--spacing-md);
  }
  .live-product-cta {
    margin-top: var(--spacing-md);
  }
  .geo-preview {
    min-height: 210px;
  }
  /* Every product card hangs its preview the same distance under the copy. */
  .geo-preview,
  .plan-preview {
    margin: 0 var(--spacing-sm) var(--spacing-sm);
  }
  .geo-search {
    inset-inline: var(--spacing-sm);
  }
  .principle-grid {
    gap: var(--spacing-sm);
  }
  .principle {
    padding: var(--spacing-md);
  }
  .principle-topline {
    margin-bottom: var(--spacing-md);
  }
  .services-frame {
    margin-bottom: var(--space-6);
  }
  .services-frame .aents-ancestral-frame__content {
    padding: var(--spacing-md);
  }
  .services-hero {
    gap: var(--spacing-lg);
  }
  .services-eyebrow {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  .services-eyebrow b {
    padding-left: 0;
    border-left: 0;
  }
  .services-grid {
    gap: var(--spacing-sm);
    margin-top: var(--space-6);
  }
  .service-card {
    min-height: 0;
    padding: var(--spacing-md) var(--space-12) var(--spacing-md)
      var(--spacing-lg);
    border-radius: var(--radius-lg);
  }
  .service-card::before {
    inset-block: var(--spacing-sm);
  }
  .service-card::after {
    display: none;
  }
  .service-card h3 {
    margin-top: var(--spacing-sm);
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-line);
  }
  .service-card p {
    margin-top: var(--spacing-xs);
    padding-right: 0;
    font-size: max(1rem, var(--type-small-size));
    line-height: 1.5;
  }
  .service-arrow {
    right: var(--spacing-md);
    top: var(--spacing-md);
    bottom: auto;
    width: var(--control-sm);
    height: var(--control-sm);
  }
  .services-actions {
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
  }
  .services-closing {
    gap: var(--spacing-md);
    margin-top: var(--space-6);
    padding-top: var(--spacing-md);
    font-size: var(--type-bodyLarge-size);
  }
  .closing-section {
    padding-block: var(--space-8);
  }
  .closing-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
    justify-items: center;
    padding: var(--spacing-md);
  }
  .closing-apps {
    transform: scale(0.82);
    margin-block: -8px;
  }
  .services-hero h2 {
    max-width: 18ch;
    font-size: var(--type-h1-size);
    line-height: var(--type-h1-line);
    letter-spacing: -0.025em;
  }
  .services-actions,
  .services-closing {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* The home page's hand-off to the local pages. It lives on the home rather
   than only in /cobertura/ because this is the page with the most authority
   on the domain, and it is the shortest path into the city's intent pages. */
.local-section {
  padding-block: var(--space-16, 4rem);
}
.local-section h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

/* Services hub hero
   ------------------------------------------------------------------
   /servicios/ has nothing to photograph: four titles and a paragraph. So
   the band shows the work turning around the mark — two rings running
   against each other, the six words lit one after another, the symbol
   steady in the middle. It explains nothing on purpose; the page below
   it does the explaining.

   Only transform and opacity move, so six labels and two rings can turn
   without the compositor asking for layout again. Nothing is revealed by
   the motion either: all six words are on screen the whole time, which is
   what lets this rotate without a pause control. */
.services-orbit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  border-radius: var(--radius-xl, var(--radius-lg));
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--purple) 24%, transparent),
      transparent 58%
    ),
    color-mix(in srgb, var(--navy) 76%, black);
  box-shadow:
    0 28px 72px color-mix(in srgb, black 32%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 12%, transparent);
}

/* Every layer shares one origin: the middle of the square. */
.services-orbit > * {
  grid-area: 1 / 1;
}

.services-orbit__halo {
  width: 58%;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--lavender) 32%, transparent),
    transparent 64%
  );
  filter: blur(16px);
  animation: services-halo 7s ease-in-out infinite;
}

/* The rings themselves. Their width is the orbit: a point inside is
   pinned to the top edge, so the radius follows the container and the
   whole picture scales without a single hard-coded distance. */
.services-orbit__belt {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
}

.services-orbit__belt--inner {
  --spin: 26s;
  --spin-dir: reverse;
  width: 40%;
  border: 1px dashed color-mix(in srgb, var(--white) 20%, transparent);
  animation: services-turn var(--spin) linear infinite;
}

.services-orbit__belt--outer {
  --spin: 40s;
  --spin-dir: normal;
  width: 72%;
  border: 1px solid color-mix(in srgb, var(--white) 11%, transparent);
  animation: services-turn var(--spin) linear infinite reverse;
}

.services-orbit__point {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transform: rotate(var(--angle));
  pointer-events: none;
}

/* Undo the point's own angle, then lift the pill so it straddles the ring
   line instead of hanging off it. */
.services-orbit__hold {
  transform: translateY(-50%) rotate(calc(-1 * var(--angle)));
}

.services-orbit__point b {
  display: block;
  padding: 0.4rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--navy) 62%, black);
  color: color-mix(in srgb, var(--white) 76%, transparent);
  font-size: var(--type-caption-size);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  box-shadow: 0 10px 26px color-mix(in srgb, black 44%, transparent);
  /* Two jobs, two animations: the first cancels the belt's rotation so the
     word stays upright, the second is the light going round the six. */
  animation:
    services-turn var(--spin) linear infinite var(--spin-dir),
    services-lit 8.4s ease-in-out infinite;
  animation-delay: 0s, calc(var(--turn, 0) * 1.4s);
}

.services-orbit__core {
  display: grid;
  place-items: center;
  width: 6rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  border-radius: var(--radius-full);
  background:
    radial-gradient(
      circle at 34% 26%,
      color-mix(in srgb, var(--white) 20%, transparent),
      transparent 48%
    ),
    color-mix(in srgb, var(--navy) 54%, black);
  box-shadow:
    0 18px 44px color-mix(in srgb, black 46%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 18%, transparent);
  animation: services-breathe 6s ease-in-out infinite;
}

.services-orbit__core img {
  width: 3.25rem;
  height: auto;
}

@keyframes services-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes services-halo {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

@keyframes services-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* One sixth of the loop lit, handed on to the next word. Colour only: the
   transform belongs to the animation running beside this one. */
@keyframes services-lit {
  0%,
  14% {
    border-color: color-mix(in srgb, var(--accent) 88%, transparent);
    background: color-mix(in srgb, var(--accent) 22%, black);
    color: var(--white);
    box-shadow:
      0 10px 26px color-mix(in srgb, black 44%, transparent),
      0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  }
  24%,
  100% {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    background: color-mix(in srgb, var(--navy) 62%, black);
    color: color-mix(in srgb, var(--white) 76%, transparent);
    box-shadow:
      0 10px 26px color-mix(in srgb, black 44%, transparent),
      0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

@media (max-width: 960px) {
  .services-orbit {
    max-width: 24rem;
  }
}

/* On a phone the card is the width of the screen, so the rings have to come
   in and the words have to get smaller: the constraint is no longer taste, it
   is that a word passing the three o'clock position must still fit. */
@media (max-width: 640px) {
  .services-orbit__belt--inner {
    width: 42%;
  }

  .services-orbit__belt--outer {
    width: 68%;
  }

  .services-orbit__point b {
    padding: 0.3rem 0.6rem;
    font-size: 0.68rem;
  }

  .services-orbit__core {
    width: 5rem;
  }

  .services-orbit__core img {
    width: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-orbit__halo,
  .services-orbit__belt,
  .services-orbit__point b,
  .services-orbit__core {
    animation: none;
  }
}

/* Coverage page
   ------------------------------------------------------------------
   The coverage hero shows the claim as evidence: a primary reading with small,
   checkable signals beside it. */
.coverage-hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  border-radius: var(--radius-xl, var(--radius-lg));
  background:
    radial-gradient(
      circle at 18% 18%,
      color-mix(in srgb, var(--green) 20%, transparent),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--white) 14%, transparent),
      transparent 48%
    ),
    color-mix(in srgb, var(--navy) 78%, black);
  box-shadow:
    0 28px 72px color-mix(in srgb, black 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 12%, transparent);
}

.coverage-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--white) 14%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--white) 14%, transparent) 1px,
      transparent 1px
    );
  background-size: var(--space-8) var(--space-8);
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.coverage-hero-card__story {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
}

.coverage-hero-card__story::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -2.4rem;
  top: -2.1rem;
  border: 1px solid color-mix(in srgb, var(--lavender) 26%, transparent);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.coverage-hero-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: color-mix(in srgb, var(--green) 84%, var(--white));
  border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  font-size: max(0.875rem, var(--type-small-size));
  font-weight: var(--weight-semibold);
}

.coverage-hero-card__story p {
  max-width: 30rem;
  color: color-mix(in srgb, var(--white) 84%, transparent);
  font-size: var(--type-bodyLarge-size);
  line-height: 1.65;
  text-wrap: balance;
}

.coverage-hero-card__story ol {
  list-style: none;
  display: grid;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
}

.coverage-hero-card__story li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--spacing-sm);
  align-items: center;
  color: color-mix(in srgb, var(--white) 76%, transparent);
  line-height: 1.45;
}

.coverage-hero-card__story li span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--type-small-size);
  font-weight: var(--weight-bold);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 16%, transparent);
}

.coverage-hero-card__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.coverage-hero-card__signals div {
  min-width: 0;
  padding: var(--spacing-md);
  border-top: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.coverage-hero-card__signals div:nth-child(odd) {
  border-right: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.coverage-hero-card__signals div:not(:last-child) {
  border-right: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.coverage-hero-card__signals dt {
  color: color-mix(in srgb, var(--white) 52%, transparent);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
}

.coverage-hero-card__signals dd {
  margin: var(--spacing-xs) 0 0;
  color: var(--white);
  font-weight: var(--weight-bold);
  line-height: 1.25;
}

.web-contact-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.web-contact-signals li {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--white) 72%, transparent);
  color: var(--text-secondary);
  font-size: max(0.875rem, var(--type-small-size));
  font-weight: var(--weight-medium);
}
.web-contact-signals li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: var(--spacing-xs);
  border-radius: var(--radius-full);
  background: var(--green);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--green) 14%, transparent);
}

.web-contact-aside {
  display: grid;
  gap: var(--spacing-xs);
}

.web-contact-aside__head {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.web-contact-aside__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  color: var(--white);
  background:
    radial-gradient(
      circle at 30% 20%,
      color-mix(in srgb, var(--white) 28%, transparent),
      transparent 34%
    ),
    var(--green);
  box-shadow:
    0 0 0 0.45rem color-mix(in srgb, var(--green) 12%, transparent),
    0 16px 36px color-mix(in srgb, var(--green) 24%, transparent);
}

.web-contact-aside .aents-page__aside-title {
  min-width: 0;
  margin: 0;
  text-wrap: balance;
}

.web-contact-aside__actions {
  display: grid;
  gap: var(--spacing-sm);
  margin-top: calc(var(--spacing-md) - var(--spacing-xs));
}

.web-contact-aside__primary {
  width: 100%;
  min-height: 3rem;
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--green) 26%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 18%, transparent);
}

.web-contact-aside__phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  min-height: 2.75rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  border-radius: var(--radius-full);
  color: color-mix(in srgb, var(--white) 82%, transparent);
  background: color-mix(in srgb, var(--white) 7%, transparent);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.web-contact-aside__phone:hover {
  color: var(--white);
  border-color: color-mix(in srgb, var(--green) 44%, transparent);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  text-decoration: none;
}

.web-contact-aside__phone span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .coverage-hero-card__story {
    padding: var(--space-6) var(--spacing-lg);
  }
  .coverage-hero-card__signals {
    grid-template-columns: minmax(0, 1fr);
  }
  .coverage-hero-card__signals div,
  .coverage-hero-card__signals div:nth-child(odd),
  .coverage-hero-card__signals div:not(:last-child) {
    border-right: 0;
  }
  .web-contact-signals {
    align-items: stretch;
    flex-direction: column;
  }
  .web-contact-signals li {
    justify-content: center;
  }
}

/* The process strip on /servicios/
   ==================================================================
   The strip itself is @aents/ui-web's connected StepGrid. What belongs to
   this surface is the ground the panels sit on and the three scenes on their
   fronts.

   The panels are white and separated by their border alone: the section has
   no tinted band behind it, so a grey panel would be the only grey on the
   page. */
.aents-page .aents-step-card__body {
  background: var(--background);
}
[data-scheme="dark"] .aents-page .aents-step-card__body {
  background: var(--surface);
}
/* The back of the panel is the same white sheet; its brand border is what says
   the card has turned, not a change of colour under the text. */
.aents-page .aents-step-card--connected .aents-step-card__face--back {
  background: var(--background);
}
[data-scheme="dark"]
  .aents-page
  .aents-step-card--connected
  .aents-step-card__face--back {
  background: var(--surface);
}

/* The scenes
   ------------------------------------------------------------------
   A light window floating over a soft brand wash, one pass of light per loop,
   and content that resolves into its answer.

   Every scene is written as one act of a single clock — the same six seconds
   the strip's own travelling light runs on — so a scene never has to know
   where the story is. Surfaces come from the semantic tokens rather than raw
   white, because the same window has to work in light and in dark. */
.aents-page .aents-step-card__visual {
  --method-scene-cycle: 6s;
  position: relative;
  isolation: isolate;
  padding: var(--space-3);
  border-color: color-mix(in srgb, var(--lavender) 28%, transparent);
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--lavender) 16%, var(--surface-alt)),
    color-mix(in srgb, var(--teal) 8%, var(--surface-alt))
  );
}
/* The glow the window floats on, breathing on its own short loop. */
.aents-page .aents-step-card__visual::before {
  position: absolute;
  z-index: -1;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--purple) 28%, transparent),
    transparent 68%
  );
  filter: blur(18px);
  animation: method-scene-aura calc(var(--method-scene-cycle) / 2) ease-in-out
    infinite;
  content: "";
}
@keyframes method-scene-aura {
  0%,
  100% {
    opacity: 0.5;
    scale: 0.94;
  }
  50% {
    opacity: 0.9;
    scale: 1.04;
  }
}

.method-scene {
  position: relative;
  overflow: hidden;
  display: grid;
  height: 10rem;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background);
  box-shadow: var(--shadow-3);
  text-align: left;
  animation: method-scene-float var(--method-scene-cycle) var(--easing-emphasis)
    infinite;
}
[data-scheme="dark"] .method-scene {
  background: var(--surface);
}
@keyframes method-scene-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}
/* One pass of light across the window, at the moment the scene resolves. */
.method-scene__sheen {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    color-mix(in srgb, var(--white) 62%, transparent) 50%,
    transparent 62%
  );
  opacity: 0;
  animation: method-scene-sheen var(--method-scene-cycle) linear infinite;
  pointer-events: none;
}
@keyframes method-scene-sheen {
  0%,
  58% {
    opacity: 0;
    translate: -60% 0;
  }
  66% {
    opacity: 1;
  }
  82%,
  100% {
    opacity: 0;
    translate: 60% 0;
  }
}
.method-scene__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-alt);
}
.method-scene__dots {
  display: inline-flex;
  gap: 3px;
}
.method-scene__dots i {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--text-secondary) 34%, transparent);
}
.method-scene__chrome b {
  overflow: hidden;
  flex: 1;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.method-scene__stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3) var(--space-3);
  font-size: 10px;
  line-height: 1.35;
}

/* Scene one · the conversation ------------------------------------- */
.method-scene__bubble {
  max-width: 92%;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: method-scene-bubble var(--method-scene-cycle)
    var(--easing-standard) infinite;
  animation-delay: calc(var(--method-scene-order) * 1.1s);
}
.method-scene__bubble--in {
  justify-self: start;
  border-bottom-left-radius: var(--space-1);
  background: var(--surface-alt);
  color: var(--text);
}
.method-scene__bubble--out {
  justify-self: end;
  border-bottom-right-radius: var(--space-1);
  background: color-mix(in srgb, var(--green) 20%, var(--background));
  color: var(--text);
}
@keyframes method-scene-bubble {
  0%,
  4% {
    opacity: 0;
    translate: 0 6px;
    scale: 0.96;
  }
  14%,
  92% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  100% {
    opacity: 0;
  }
}
.method-scene__typing {
  display: inline-flex;
  justify-self: start;
  gap: 3px;
  padding: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  opacity: 0;
  animation: method-scene-bubble var(--method-scene-cycle)
    var(--easing-standard) infinite;
  animation-delay: calc(var(--method-scene-order) * 1.1s);
}
.method-scene__typing i {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--text-secondary) 52%, transparent);
  animation: method-scene-typing 1.2s ease-in-out infinite;
}
.method-scene__typing i:nth-child(2) {
  animation-delay: 0.16s;
}
.method-scene__typing i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes method-scene-typing {
  0%,
  100% {
    opacity: 0.35;
    translate: 0 0;
  }
  50% {
    opacity: 1;
    translate: 0 -2px;
  }
}

/* Scene two · the written agreement -------------------------------- */
.method-scene__rows {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.method-scene__row {
  display: grid;
  align-items: center;
  gap: var(--spacing-xs);
  grid-template-columns: auto auto minmax(0, 1fr);
  opacity: 0;
  animation: method-scene-row var(--method-scene-cycle) var(--easing-standard)
    infinite;
  animation-delay: calc(var(--method-scene-order) * 0.66s);
}
@keyframes method-scene-row {
  0%,
  4% {
    opacity: 0;
    translate: -6px 0;
  }
  16%,
  94% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
.method-scene__check {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: var(--white);
  border-radius: var(--radius-sm);
  background: var(--green);
}
.method-scene__row b {
  color: var(--text);
  font-weight: var(--weight-medium);
}
/* The amount is a bar, not a figure: see the note in MethodScenes.tsx. */
.method-scene__redacted {
  /* An amount, not a rule across the sheet: it stops where a figure would. */
  max-width: 4.5rem;
  height: 6px;
  border-radius: var(--radius-full);
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 34%, transparent) 0 10px,
    transparent 10px 14px
  );
}
.method-scene__sign {
  justify-self: end;
  width: 4.5rem;
  opacity: 0;
  animation: method-scene-row var(--method-scene-cycle) var(--easing-standard)
    infinite;
  animation-delay: calc(var(--method-scene-order) * 0.66s);
}
.method-scene__signature {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: method-scene-write var(--method-scene-cycle) var(--easing-standard)
    infinite;
  animation-delay: calc(var(--method-scene-order) * 0.66s);
}
@keyframes method-scene-write {
  0%,
  6% {
    stroke-dashoffset: 120;
  }
  34%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* Scene three · the thing you can open ----------------------------- */
.method-scene__page {
  display: grid;
  gap: var(--space-2);
}
.method-scene__bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--text-secondary) 22%, transparent);
  transform-origin: left center;
  scale: 0 1;
  animation: method-scene-fill var(--method-scene-cycle) var(--easing-standard)
    infinite;
  animation-delay: calc(var(--method-scene-order) * 0.5s);
}
.method-scene__bar--title {
  height: 10px;
  width: 62%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
}
.method-scene__bar--short {
  width: 74%;
}
@keyframes method-scene-fill {
  0%,
  4% {
    scale: 0 1;
  }
  22%,
  94% {
    scale: 1 1;
  }
  100% {
    scale: 0 1;
  }
}
.method-scene__cta {
  width: 3.6rem;
  height: 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  opacity: 0;
  animation: method-scene-bubble var(--method-scene-cycle)
    var(--easing-standard) infinite;
  animation-delay: calc(var(--method-scene-order) * 0.5s);
}
.method-scene__chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--spacing-xs);
  padding: 3px var(--space-2);
  color: var(--green-deep, var(--green));
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--green) 16%, transparent);
  font-weight: var(--weight-medium);
  opacity: 0;
  animation: method-scene-bubble var(--method-scene-cycle)
    var(--easing-standard) infinite;
  animation-delay: calc(var(--method-scene-order) * 0.5s);
}
.method-scene__chip i {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--green);
}

/* A scene is a loop that never asks to be watched, so reduced motion stops it
   on the frame it resolves to rather than hiding what it was saying. */
@media (prefers-reduced-motion: reduce) {
  .aents-page .aents-step-card__visual::before,
  .method-scene,
  .method-scene__sheen,
  .method-scene__bubble,
  .method-scene__typing,
  .method-scene__typing i,
  .method-scene__row,
  .method-scene__sign,
  .method-scene__signature,
  .method-scene__bar,
  .method-scene__cta,
  .method-scene__chip {
    animation: none;
  }
  .method-scene__bubble,
  .method-scene__typing,
  .method-scene__row,
  .method-scene__sign,
  .method-scene__cta,
  .method-scene__chip {
    opacity: 1;
    translate: none;
  }
  .method-scene__bar {
    scale: 1 1;
  }
  .method-scene__signature {
    stroke-dashoffset: 0;
  }
  .method-scene__sheen {
    display: none;
  }
}

/* Guides
 * ------------------------------------------------------------------
 * A guide is read on a phone first, often after a search, so the column
 * sets 17px text (18px from a tablet up) at about 68 characters a line,
 * and the contents fold into one line above the first heading instead of
 * pushing it off the first screen. */
.web-guide {
  min-width: 0;
}

.web-guide__body {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.web-guide__body > * + * {
  margin-top: 1.15em;
}

.web-guide__body h2 {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-wrap: balance;
  scroll-margin-top: var(--aents-anchor-offset);
}

.web-guide__body h2:first-child {
  margin-top: 0;
}

.web-guide__body h3 {
  margin-top: 1.9em;
  color: var(--text);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--weight-bold);
  text-wrap: balance;
}

.web-guide__body h2 + *,
.web-guide__body h3 + * {
  margin-top: 0.6em;
}

.web-guide__body strong {
  color: var(--text);
  font-weight: var(--weight-semibold);
}

.web-guide__body a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.web-guide__body a:hover {
  text-decoration-thickness: 2px;
}

.web-guide__body ul,
.web-guide__body ol {
  display: grid;
  gap: 0.55em;
  margin-inline: 0;
  padding-inline-start: 1.35em;
}

.web-guide__body li {
  padding-inline-start: 0.2em;
}

.web-guide__body li::marker {
  color: var(--primary-ink);
  font-weight: var(--weight-bold);
}

/* The one aside a guide allows: a fact the reader should not miss. Its
   links take the text colour, the tint would leave the brand violet under
   4.5:1. */
.web-guide__body .web-guide__note {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  color: var(--text);
}

.web-guide__body .web-guide__note a,
.web-guide__table a {
  color: var(--text);
}

.web-guide__table {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overscroll-behavior-inline: contain;
}

.web-guide__table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.web-guide__table th,
.web-guide__table td {
  padding: 0.75em 1em;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

.web-guide__table th {
  background: var(--surface);
  color: var(--text);
  font-weight: var(--weight-semibold);
}

.web-guide__table tr:last-child td {
  border-bottom: 0;
}

.web-guide__table td:first-child {
  color: var(--text);
  font-weight: var(--weight-semibold);
}

/* Contents (PageToc in @aents/ui-web): aents.net reads them at the size of
   its guide text and folds them on the plain surface. */
.aents-page__toc {
  background: var(--surface);
}

.aents-page__toc summary {
  font-size: 1rem;
}

.aents-page__toc-count {
  font-size: 0.9375rem;
}

.aents-page__toc a {
  padding-block: var(--spacing-sm);
  font-size: 1rem;
}

.aents-page__toc-rail h2 {
  font-size: 1rem;
}

.aents-page__toc-rail a {
  font-size: 0.9375rem;
}

/* On a phone a comparison reads as one card per row: the row's first cell is
   its title and every other value sits under its column's name, so nothing
   hides past the right edge. */
@media (max-width: 640px) {
  .web-guide__table {
    overflow: visible;
    border: 0;
  }

  .web-guide__table table {
    min-width: 0;
  }

  .web-guide__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .web-guide__table tbody {
    display: grid;
    gap: var(--spacing-sm);
  }

  .web-guide__table tr {
    display: grid;
    padding: var(--spacing-md);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--background);
  }

  .web-guide__table td {
    display: grid;
    gap: 0.15em;
    padding: 0.45em 0;
    border-bottom: 0;
  }

  .web-guide__table td::before {
    content: attr(data-label);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: var(--weight-semibold);
  }

  .web-guide__table td:first-child {
    padding-top: 0;
    font-size: 1.0625rem;
  }

  .web-guide__table td:first-child::before {
    content: none;
  }
}

@media (min-width: 768px) {
  .web-guide__body {
    font-size: 1.125rem;
  }
}

.web-guide__after {
  max-width: 68ch;
  margin-top: var(--space-12);
}

.web-guide__sources {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.web-guide__sources h2 {
  margin-bottom: var(--spacing-xs);
  color: var(--text);
  font-size: 1rem;
  font-weight: var(--weight-bold);
}

.web-guide__sources ul {
  display: grid;
  margin: var(--spacing-sm) 0 0;
  padding-inline-start: 1.1em;
}

/* A list of links stacked line after line is not running text, so the inline
   exception of WCAG 2.5.8 does not cover it: each source is a full target. */
.web-guide__sources a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--touch-target);
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.web-guide__sources a:hover {
  color: var(--primary-ink);
}

/* The hub: an index, not a wall of cards. Each shelf names what the
   reader is trying to do; each entry is a title, the question it answers
   and how long it takes, separated by a hairline. */
.web-guides__intro {
  max-width: 60ch;
  margin-bottom: var(--space-12);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.web-guides__shelf {
  display: grid;
  gap: var(--spacing-md);
  margin-bottom: var(--space-12);
  scroll-margin-top: var(--aents-anchor-offset);
}

.web-guides__shelf-title {
  color: var(--text);
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.web-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.web-guides__list > li {
  border-bottom: 1px solid var(--border-subtle);
}

.web-guides__entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--spacing-xs) var(--spacing-md);
  padding-block: var(--space-6);
  color: inherit;
  text-decoration: none;
}

.web-guides__entry h3 {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color var(--duration-fast) var(--easing-standard);
}

.web-guides__entry p {
  grid-column: 1;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.web-guides__entry-meta {
  grid-column: 1;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
}

.web-guides__entry-arrow {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  margin-top: -0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--primary-ink);
  transition:
    translate var(--duration-fast) var(--easing-standard),
    border-color var(--duration-fast) var(--easing-standard);
}

.web-guides__entry:hover h3 {
  color: var(--primary-ink);
}

.web-guides__entry:hover .web-guides__entry-arrow {
  border-color: var(--primary);
  translate: 0.25rem 0;
}

@media (min-width: 900px) {
  .web-guides__shelf {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: var(--space-10);
    align-items: start;
  }

  .web-guides__shelf-title {
    position: sticky;
    top: var(--aents-anchor-offset);
    padding-top: var(--space-6);
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-line);
  }

  .web-guides__entry h3 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-guides__entry h3,
  .web-guides__entry-arrow {
    transition: none;
  }

  .web-guides__entry:hover .web-guides__entry-arrow {
    translate: none;
  }
}

/* Product pages (/productos/ and one page per product)
   ------------------------------------------------------------------
   Designed at 375px first: one column, the call to action under the
   thumb, the real capture of the product inside a phone frame that
   bleeds off the bottom of the dark band. Wider screens only add
   columns. Every capture carries its width and height, so nothing
   moves while it loads. */
.product-phone {
  width: min(68vw, 17rem);
  padding: var(--space-2);
  border: 1px solid color-mix(in srgb, var(--white) 22%, transparent);
  border-radius: var(--radius-3xl);
  background: var(--navy);
  box-shadow: var(--shadow-5);
}

.product-phone__screen {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.product-phone img,
.product-browser img {
  display: block;
  width: 100%;
  height: auto;
}

.aents-page-hero__visual:has(.product-phone--hero),
.aents-page-hero__visual:has(.products-fan) {
  justify-self: center;
  align-self: end;
}

/* The band crops the frame: the screen reads as a phone held up to the
   page, and the next section starts sooner on a small screen. */
.product-phone--hero {
  margin-inline: auto;
  margin-bottom: calc(-1 * (var(--space-8) + 9rem));
  animation: product-rise var(--duration-slower) var(--easing-decelerate) both;
}

@keyframes product-rise {
  from {
    opacity: 0;
    translate: 0 var(--space-8);
  }
}

.products-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: calc(-1 * (var(--space-8) + 6rem));
  animation: product-rise var(--duration-slower) var(--easing-decelerate) both;
}

.products-fan__phone {
  width: min(38vw, 11rem);
  padding: var(--space-1);
  border-radius: var(--radius-2xl);
}

.products-fan__phone .product-phone__screen {
  border-radius: var(--radius-xl);
}

.products-fan__phone:nth-child(1) {
  rotate: -6deg;
  margin-right: -12%;
  margin-bottom: -1.5rem;
}

.products-fan__phone:nth-child(2) {
  position: relative;
  z-index: 1;
  width: min(44vw, 13rem);
}

.products-fan__phone:nth-child(3) {
  rotate: 6deg;
  margin-left: -12%;
  margin-bottom: -1.5rem;
}

.products-hub__intro {
  max-width: 68ch;
}

/* A product card: the phone capture as a thumbnail, the name and the
   one line that says what it does. The whole card is the link. */
.product-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-md);
}

.product-card {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard),
    translate var(--duration-fast) var(--easing-standard);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-3);
  translate: 0 calc(-1 * var(--space-1));
}

.product-card__phone {
  width: 100%;
  padding: var(--space-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}

.product-card__phone .product-phone__screen {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
}

.product-card__phone img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.product-card__body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.product-card__name {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--weight-bold);
}

.product-card__note {
  color: var(--text-secondary);
  font-size: max(1rem, var(--type-body-size));
  line-height: 1.5;
}

.product-card__go {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-ink);
}

/* The desktop capture inside a plain browser frame. */
.product-screens {
  margin: 0;
}

.product-browser {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}

.product-browser__bar {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-alt);
}

.product-browser__bar i {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--border);
}

.product-screens figcaption {
  margin-top: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: max(0.875rem, var(--type-small-size));
}

/* How it was built: the dark band the page turns on. A spec sheet, not
   a card grid: one rule between items, the heading held beside them on
   a wide screen, and the question it leads to at the end. */
.product-built {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: var(--space-16);
  padding-block: var(--space-16);
  background:
    radial-gradient(
      circle at 12% 0%,
      color-mix(in srgb, var(--purple) 32%, transparent),
      transparent 42%
    ),
    var(--navy);
  color: var(--white);
}

.product-built__grid {
  z-index: -1;
  opacity: 0.08;
}

.product-built__layout {
  display: grid;
  gap: var(--space-8);
}

.product-built__head h2 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  font-weight: var(--weight-extrabold);
  text-wrap: balance;
}

.product-built__head p {
  margin-top: var(--spacing-sm);
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-size: max(1.0625rem, var(--type-bodyLarge-size));
  line-height: var(--type-bodyLarge-line);
}

.product-built__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-built__list li {
  padding-block: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
}

.product-built__list h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--weight-bold);
}

.product-built__list h3::before {
  content: "";
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--green);
  translate: 0 calc(-1 * var(--space-1));
}

.product-built__list p {
  margin-top: var(--space-2);
  padding-left: var(--space-5);
  color: color-mix(in srgb, var(--white) 76%, transparent);
  font-size: max(1rem, var(--type-body-size));
  line-height: 1.6;
}

.product-built__close {
  display: grid;
  gap: var(--spacing-md);
  padding-top: var(--space-8);
  border-top: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
}

.product-built__close p {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--weight-bold);
  text-wrap: balance;
}

.product-others {
  margin-bottom: var(--space-12);
}

/* The call to action under the thumb: it follows the reader through the
   page and settles above the footer. Sticky inside the page body, so it
   only appears once the hero, which carries the same action, scrolls by. */
.product-dock {
  position: sticky;
  bottom: max(var(--space-3), env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  gap: var(--space-2);
  margin: var(--space-6) var(--space-4) var(--space-4);
  padding: var(--space-2);
  border: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  box-shadow: var(--shadow-4);
}

.product-dock__cta {
  flex: 1;
}

.product-dock__chat {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--success-strong);
  color: var(--background);
}

@media (min-width: 720px) {
  .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    padding: var(--spacing-lg);
  }

  .product-card__go {
    display: grid;
  }

  .product-built__close {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 961px) {
  .product-phone--hero {
    width: 18rem;
    margin-bottom: calc(-1 * (var(--space-12) + 10rem));
  }

  .products-fan {
    margin-bottom: calc(-1 * (var(--space-12) + 7rem));
  }

  .products-fan__phone {
    width: 12rem;
  }

  .products-fan__phone:nth-child(2) {
    width: 14rem;
  }

  .product-built {
    padding-block: var(--space-24);
  }

  .product-built__layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: var(--space-16);
    align-items: start;
  }

  .product-built__head {
    position: sticky;
    top: calc(var(--space-16) + var(--space-8));
  }

  .product-built__close {
    grid-column: 2;
  }
}

@media (min-width: 1080px) {
  .product-dock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-phone--hero,
  .products-fan {
    animation: none;
  }
  .product-card {
    transition: none;
  }
  .product-card:hover {
    translate: none;
  }
}

/* ---------- Portfolio ---------- */
/* Aents' own products as an index: each entry is complete on its own
 * (heading, what it is, the problem, who uses it, what was built and the
 * live link) beside a screenshot framed by the address it lives at. A rule
 * between entries, not cards: they are rows of one list. */
.portfolio-page__intro {
  max-width: 68ch;
}

/* The jump list stays open to every width here: the page has no side rail
   to carry it on a wide screen, as a guide does. */
.portfolio-page .aents-page__toc {
  display: block;
  margin-top: var(--space-8);
}

.portfolio {
  display: grid;
  margin-block: var(--space-10) var(--space-16);
}

.portfolio-entry {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-12);
  border-top: 1px solid var(--border-subtle);
}

.portfolio-entry__text {
  display: grid;
  align-content: start;
  gap: var(--spacing-md);
  min-width: 0;
}

.portfolio-entry__title {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--weight-bold);
  text-wrap: balance;
}

.portfolio-entry__summary {
  max-width: 62ch;
  font-size: max(1.0625rem, var(--type-body-size));
  line-height: 1.6;
}

.portfolio-entry__facts {
  display: grid;
  gap: var(--spacing-md);
  margin: 0;
}

.portfolio-entry__facts dt {
  color: var(--text-secondary);
  font-size: max(0.875rem, var(--type-small-size));
  font-weight: var(--weight-semibold);
}

.portfolio-entry__facts dd {
  margin: var(--space-1) 0 0;
  font-size: max(1rem, var(--type-body-size));
  max-width: 62ch;
  line-height: 1.6;
}

.portfolio-entry__facts ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-entry__facts li {
  position: relative;
  padding-left: var(--space-5);
}

.portfolio-entry__facts li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: var(--space-2);
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

.portfolio-entry__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-2);
}

.portfolio-entry__links .aents-btn {
  gap: var(--space-2);
}

.portfolio-entry__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--primary-ink);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.portfolio-entry__link:hover {
  text-decoration-thickness: 2px;
}

.portfolio-entry__hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.portfolio-entry__shot {
  margin: 0;
  min-width: 0;
}

.portfolio-entry__shot .product-browser__bar {
  align-items: center;
}

.portfolio-entry__address {
  flex: 1;
  margin-left: var(--space-2);
  overflow: hidden;
  color: var(--text-secondary);
  font-size: max(0.8125rem, var(--type-caption-size));
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 961px) {
  .portfolio-entry {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-12);
    align-items: start;
    padding-block: var(--space-16);
  }

  .portfolio-entry__shot {
    position: sticky;
    top: calc(var(--space-16) + var(--space-8));
  }
}

/* ---------- Service groups ---------- */
/* The offer grouped by the need it answers, on the home page and on
 * /servicios/: each group names the need and its first card leads in the
 * purple of the accent panels; the rest are paper tiles beside it. */
.service-groups {
  display: grid;
  gap: var(--space-10);
  margin-top: var(--space-10);
}
.service-group {
  display: grid;
  gap: var(--spacing-lg);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}
.service-group__head h3 {
  color: var(--text);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.12;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.service-group__head p {
  max-width: 40ch;
  margin-top: var(--spacing-xs);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.service-group__cards {
  display: grid;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-group__cards > li {
  display: grid;
}
.service-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--spacing-xs);
  padding: var(--spacing-lg);
  padding-inline-end: calc(var(--spacing-lg) + var(--touch-target));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 10px 28px color-mix(in srgb, var(--purple) 5%, transparent);
  transition:
    translate var(--duration-base) var(--easing-emphasis),
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}
.service-tile:hover {
  translate: 0 -3px;
  border-color: color-mix(in srgb, var(--purple) 30%, var(--border-subtle));
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 22px 44px color-mix(in srgb, var(--purple) 12%, transparent);
}
.service-tile h4 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: var(--weight-bold);
  text-wrap: balance;
}
.service-tile p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}
.service-tile__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin: var(--spacing-sm) 0 0;
  padding: 0;
  list-style: none;
}
.service-tile__points li {
  padding: var(--space-1) var(--spacing-sm);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}
.service-tile__go {
  position: absolute;
  inset-block-start: var(--spacing-md);
  inset-inline-end: var(--spacing-md);
  display: grid;
  place-items: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary-ink) 8%, var(--background));
  color: var(--primary-ink);
  transition:
    background-color var(--duration-fast) var(--easing-standard),
    color var(--duration-fast) var(--easing-standard);
}
.service-tile:hover .service-tile__go {
  background: var(--primary);
  color: var(--on-primary);
}
.service-tile--lead {
  padding: var(--space-8);
  padding-inline-end: calc(var(--space-8) + var(--touch-target));
  border-color: transparent;
  background:
    radial-gradient(
      circle at 88% 0%,
      color-mix(in srgb, var(--lavender) 42%, transparent),
      transparent 46%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--purple) 70%, var(--purple-deep)),
      color-mix(in srgb, var(--purple-deep) 85%, var(--purple))
    );
  color: var(--background);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--purple) 24%, transparent);
}
.service-tile--lead:hover {
  border-color: transparent;
  box-shadow: 0 30px 70px color-mix(in srgb, var(--purple) 32%, transparent);
}
.service-tile--lead h4 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.service-tile--lead p {
  max-width: 52ch;
  color: color-mix(in srgb, var(--background) 88%, transparent);
  font-size: 1.0625rem;
}
.service-tile--lead .service-tile__points li {
  background: color-mix(in srgb, var(--text) 22%, transparent);
  color: var(--background);
}
.service-tile--lead .service-tile__go {
  inset-block-start: var(--spacing-lg);
  inset-inline-end: var(--spacing-lg);
  background: var(--background);
  color: var(--purple-deep);
}
@media (min-width: 720px) {
  .service-group__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-group__lead,
  .service-group__cards > li:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
}
/* Only the home band is wide enough to set the need beside its cards; on
 * /servicios/ the column shares the row with the contact rail. */
@media (min-width: 1080px) {
  .services-section .service-group {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-12);
    align-items: start;
  }
  .services-section .service-group__head {
    position: sticky;
    top: calc(
      var(--aents-site-header-height, var(--space-16)) + var(--space-8)
    );
  }
}

/* ---------- Principles as a list ---------- */
/* Five statements read down a column with a hairline between them: the
 * statement large, its note beside it on a desktop, no boxes around either. */
.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.principle-list > li {
  display: grid;
  gap: var(--spacing-xs);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.principle-list h3 {
  color: var(--text);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  line-height: 1.1;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.principle-list p {
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 720px) {
  .principle-list > li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-8);
  }
}

/* ---------- Product cards with actions ---------- */
/* The name is the card's link and stretches over it; the actions sit above
 * that layer, so each control is reachable on its own and none is nested. */
.product-card {
  position: relative;
}
.product-card__link {
  color: inherit;
  text-decoration: none;
}
.product-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.product-card__link:focus-visible {
  outline: none;
}
.product-card:has(.product-card__link:focus-visible) {
  outline: 2px solid var(--primary-ink);
  outline-offset: 3px;
}
.product-card__actions {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.product-card__actions .aents-btn {
  flex: 1 1 auto;
}
.product-card__actions b {
  margin-inline-start: var(--spacing-xs);
}

@media (prefers-reduced-motion: reduce) {
  .service-tile,
  .service-tile__go {
    transition: none;
  }
  .service-tile:hover {
    translate: none;
  }
}

/* Blog
 * ------------------------------------------------------------------
 * The hub reads like a publication: the newest article leads with a
 * large picture beside its title, the rest follow as a grid of cards
 * that each open with a picture too. A post without a cover shows its
 * topic's cover instead: one brand tone per category, the brand grid and
 * the symbol, so every topic keeps its colour across the hub, the
 * article and its related reading. Designed at 375px first; wider
 * screens give the lead its two columns and the grid more of them. */
.web-blog {
  display: grid;
  gap: var(--space-12);
  padding-bottom: var(--space-8);
}

/* Topic chips (PageTopics in @aents/ui-web), in aents.net's quieter tone. */
.web-blog__topics ul {
  gap: var(--spacing-xs) var(--spacing-sm);
}

.web-blog__topics a {
  border-color: var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.web-blog__topics a:not([aria-current]):hover {
  border-color: var(--primary-ink);
  background: var(--background);
  color: var(--text);
}

/* Topic cover
 * ------------------------------------------------------------------
 * The picture of a post: its own cover when it has one, otherwise its
 * topic's tone. The topic name sits on a paper chip so it holds 4.5:1
 * over any tone or photograph. */
.web-topic {
  --topic-ground: linear-gradient(135deg, var(--purple), var(--purple-deep));
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  justify-items: start;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 82% 18%,
      color-mix(in srgb, var(--lavender) 38%, transparent),
      transparent 52%
    ),
    var(--topic-ground);
}

.web-topic--2 {
  --topic-ground: linear-gradient(
    135deg,
    var(--primary-ink),
    color-mix(in srgb, var(--primary-ink) 70%, var(--text))
  );
}

.web-topic--3 {
  --topic-ground: linear-gradient(
    135deg,
    color-mix(in srgb, var(--text) 88%, var(--purple)),
    var(--text)
  );
}

.web-topic--4 {
  --topic-ground: linear-gradient(
    135deg,
    var(--gradient-sky-to),
    color-mix(in srgb, var(--gradient-sky-to) 45%, var(--purple-deep))
  );
}

.web-topic__grid {
  z-index: -1;
  opacity: 0.5;
  background-size: var(--space-6) var(--space-6);
  mask-image: linear-gradient(120deg, transparent 20%, var(--text) 85%);
}

.web-topic__mark {
  position: absolute;
  z-index: -1;
  inset-block-start: -18%;
  inset-inline-end: -6%;
  width: 46%;
  max-width: 13rem;
  opacity: 0.22;
  rotate: -8deg;
  transition:
    rotate var(--duration-slow) var(--easing-decelerate),
    opacity var(--duration-slow) var(--easing-decelerate);
}

.web-topic__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.web-topic--photo {
  background: var(--surface);
}

.web-topic__photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--duration-slow) var(--easing-decelerate);
}

.web-topic__name {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding-inline: var(--spacing-sm);
  border-radius: var(--radius-full);
  background: var(--background);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--text) 18%, transparent);
}

a.web-topic__name {
  min-height: var(--touch-target);
  padding-inline: var(--spacing-md);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-standard);
}

a.web-topic__name:hover {
  color: var(--primary-ink);
}

/* The article's cover in the hero: wide and short on a phone so the
   text starts on the first screen, taller beside the title. */
.web-topic--hero {
  aspect-ratio: 5 / 2;
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--purple) 18%, transparent);
}

@media (min-width: 1080px) {
  .web-topic--hero {
    aspect-ratio: 4 / 3;
  }
}

/* Byline: who wrote it beside a monogram, then when and how long. */
:root .aents-page-hero__meta {
  color: var(--text-secondary);
}

.aents-page-hero__meta:has(.web-byline__avatar) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  line-height: 1.45;
}

.web-byline__avatar {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--background);
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
}

.web-byline__author {
  color: var(--text);
  font-weight: var(--weight-semibold);
}

.web-byline__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--spacing-md);
}

/* Entries */
.web-blog__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.web-blog__meta span {
  color: var(--text);
  font-weight: var(--weight-semibold);
}

.web-blog__lead-link,
.web-blog__entry-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.web-blog__lead-link {
  gap: var(--space-6);
}

.web-blog__lead-media {
  aspect-ratio: 16 / 10;
  padding: var(--spacing-lg);
  border-radius: var(--radius-2xl);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--purple) 20%, transparent);
}

.web-blog__lead-media .web-topic__mark,
.web-topic--hero .web-topic__mark {
  inset-block-start: auto;
  inset-block-end: -14%;
  width: 58%;
  max-width: 24rem;
}

.web-blog__lead-text {
  display: grid;
  justify-items: start;
  gap: var(--spacing-md);
}

.web-blog__lead h2 {
  color: var(--text);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.08;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.025em;
  text-wrap: balance;
  transition: color var(--duration-fast) var(--easing-standard);
}

.web-blog__lead-note {
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.web-blog__lead-link:hover h2,
.web-blog__entry-link:hover h3 {
  color: var(--primary-ink);
}

.web-blog__index {
  display: grid;
  gap: var(--spacing-lg);
}

.web-blog__index-title {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--weight-bold);
}

.web-blog__list {
  display: grid;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.web-blog__list > li {
  display: grid;
}

.web-blog__entry {
  display: grid;
}

.web-blog__entry-link {
  grid-template-rows: auto 1fr auto;
  gap: var(--spacing-md);
  height: 100%;
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 10px 28px color-mix(in srgb, var(--purple) 5%, transparent);
  transition:
    transform var(--duration-base) var(--easing-emphasis),
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}

.web-blog__entry-link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--purple) 30%, var(--border-subtle));
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 22px 44px color-mix(in srgb, var(--purple) 12%, transparent);
}

.web-blog__lead-link:hover .web-topic__mark,
.web-blog__entry-link:hover .web-topic__mark {
  rotate: 0deg;
  opacity: 0.32;
}

.web-blog__lead-link:hover .web-topic__photo,
.web-blog__entry-link:hover .web-topic__photo {
  scale: 1.03;
}

.web-blog__entry-text {
  display: grid;
  align-content: start;
  gap: var(--spacing-xs);
  min-width: 0;
  padding-inline: var(--spacing-sm);
}

.web-blog__entry-link > .web-blog__meta {
  padding-inline: var(--spacing-sm);
}

.web-blog__entry h3 {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.28;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color var(--duration-fast) var(--easing-standard);
}

.web-blog__entry p:not(.web-blog__meta) {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.web-blog__empty {
  display: grid;
  justify-items: start;
  gap: var(--spacing-md);
  max-width: 40rem;
  padding: var(--space-8) var(--spacing-lg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.web-blog__empty h2 {
  color: var(--text);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--weight-bold);
}

.web-blog__empty p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.web-blog__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.web-blog__page-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: var(--touch-target);
  padding-inline: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.web-blog__page-link:hover {
  border-color: var(--primary-ink);
  color: var(--primary-ink);
}

.web-blog__page-link--next {
  margin-inline-start: auto;
}

.web-blog__page-status {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.web-blog__feed a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.web-blog__feed a:hover {
  color: var(--primary-ink);
}

@media (min-width: 640px) {
  .web-blog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .web-blog__lead-link {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-12);
    align-items: center;
  }

  .web-blog__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-blog__topics a,
  .web-blog__lead h2,
  .web-blog__entry h3,
  .web-blog__entry-link,
  .web-topic__mark,
  .web-topic__photo {
    transition: none;
  }

  .web-blog__entry-link:hover {
    transform: none;
  }

  .web-blog__lead-link:hover .web-topic__mark,
  .web-blog__entry-link:hover .web-topic__mark {
    rotate: -8deg;
  }

  .web-blog__lead-link:hover .web-topic__photo,
  .web-blog__entry-link:hover .web-topic__photo {
    scale: none;
  }
}

/* Website subscription
   ------------------------------------------------------------------
   The page sells one idea: a professional website for very little up
   front. The hero states the two prices as figures, not as a sentence,
   and the visual is the product itself: the one-page site the entry
   plan delivers, on a laptop and a phone, assembling once on load. */
.subscription-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3) var(--space-4);
  flex-basis: 100%;
  margin: 0 0 var(--space-2);
}

.subscription-price__part {
  display: grid;
  gap: var(--space-1);
}

.subscription-price dt {
  color: color-mix(in srgb, var(--white) 72%, transparent);
  font-size: max(0.875rem, var(--type-small-size));
  font-weight: var(--weight-medium);
}

.subscription-price dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.subscription-price strong {
  color: var(--white);
  font-size: var(--type-h1-size);
  line-height: 1;
  font-weight: var(--weight-extrabold);
  font-variant-numeric: tabular-nums;
}

.subscription-price__part--monthly strong {
  color: color-mix(in srgb, var(--green) 82%, var(--white));
}

.subscription-price dd span {
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-weight: var(--weight-semibold);
}

/* The plus between the two figures is drawn, not written: it joins the two
   groups of the definition list, which may only hold dt/dd groups. */
.subscription-price__part--monthly {
  position: relative;
  padding-inline-start: var(--space-8);
}

.subscription-price__part--monthly::before {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-end: var(--space-1);
  color: color-mix(in srgb, var(--white) 55%, transparent);
  font-size: var(--type-h3-size);
  font-weight: var(--weight-light);
  content: "+";
}

.subscription-devices {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  padding-bottom: var(--space-8);
}

.subscription-devices__laptop {
  position: relative;
  width: 88%;
}

.subscription-devices__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--space-2) solid color-mix(in srgb, var(--white) 14%, var(--navy));
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-xs)
    var(--radius-xs);
  background: var(--background);
  box-shadow: var(--shadow-5);
}

.subscription-devices__base {
  display: block;
  height: var(--space-3);
  margin-inline: -6%;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: color-mix(in srgb, var(--white) 22%, var(--navy));
}

.subscription-devices__phone {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 30%;
  padding: var(--space-1);
  border-radius: var(--radius-2xl);
  background: color-mix(in srgb, var(--white) 18%, var(--navy));
  box-shadow: var(--shadow-5);
}

.subscription-devices__phone-screen {
  aspect-ratio: 9 / 17;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--background);
}

.subscription-site {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-3);
  color: var(--text);
  font-size: 0.625rem;
  line-height: 1.3;
}

.subscription-site__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.subscription-site__brand {
  font-weight: var(--weight-extrabold);
  color: var(--primary-strong);
}

.subscription-site__nav {
  display: flex;
  gap: var(--space-3);
  color: var(--text-secondary);
}

.subscription-site__hero {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
}

.subscription-site__headline {
  max-width: 18ch;
  margin: 0 0 var(--space-1);
  font-size: 1rem;
  line-height: 1.15;
  font-weight: var(--weight-extrabold);
  text-wrap: balance;
}

.subscription-site__line {
  width: 70%;
  height: var(--space-1);
  border-radius: var(--radius-full);
  background: var(--border);
}

.subscription-site__line--short {
  width: 46%;
}

.subscription-site__chat {
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--success-strong);
  color: var(--background);
  font-weight: var(--weight-bold);
}

.subscription-site__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.subscription-site__tile {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.subscription-site__tile b {
  font-weight: var(--weight-bold);
}

.subscription-site__tile i {
  height: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
}

.subscription-site--narrow {
  gap: var(--space-2);
  padding: var(--space-2);
  font-size: 0.5rem;
}

.subscription-site--narrow .subscription-site__headline {
  font-size: 0.75rem;
}

.subscription-site--narrow .subscription-site__tiles {
  grid-template-columns: minmax(0, 1fr);
}

.subscription-site__hero,
.subscription-site__tile {
  animation: subscription-assemble var(--duration-ultra)
    var(--easing-decelerate) both;
}

.subscription-site__tile:nth-child(1) {
  animation-delay: calc(var(--duration-base) * 2);
}

.subscription-site__tile:nth-child(2) {
  animation-delay: calc(var(--duration-base) * 3);
}

.subscription-site__tile:nth-child(3) {
  animation-delay: calc(var(--duration-base) * 4);
}

@keyframes subscription-assemble {
  from {
    opacity: 0.35;
    translate: 0 var(--space-2);
    filter: blur(2px);
  }
}

.subscription-page__intro {
  padding-top: var(--space-12);
}

.subscription-ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-md);
}

.subscription-way {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--spacing-xl) var(--spacing-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.subscription-way--subscription {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border-subtle));
  background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface));
}

.subscription-way h3 {
  font-size: var(--type-h3-size);
  font-weight: var(--weight-extrabold);
}

.subscription-way__summary {
  color: var(--text-secondary);
}

.subscription-way__points,
.subscription-monthly__includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.subscription-way__points li,
.subscription-monthly__includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.subscription-way__points svg,
.subscription-monthly__includes svg {
  flex: none;
  margin-top: 0.2em;
  color: var(--success-strong);
}

.web-alternative {
  display: grid;
  gap: var(--space-2);
  padding: var(--spacing-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border-subtle));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface));
}

.web-alternative p {
  color: var(--text-secondary);
}

.subscription-way__action,
.web-alternative__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  justify-self: start;
  min-height: var(--touch-target);
  margin-top: var(--space-2);
  color: var(--primary-strong);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.subscription-way__action:hover,
.web-alternative__action:hover {
  text-decoration-thickness: 2px;
}

.subscription-monthly {
  display: grid;
  gap: var(--space-6);
}

.subscription-monthly__includes {
  gap: var(--space-3) var(--space-8);
}

.subscription-monthly__limits {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.subscription-grow {
  display: grid;
  gap: var(--space-10);
}

.subscription-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}

.subscription-stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding-inline-start: var(--space-8);
}

.subscription-stage__marker {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.35em;
  width: var(--space-4);
  height: var(--space-4);
  border: 3px solid var(--primary);
  border-radius: var(--radius-full);
  background: var(--background);
}

.subscription-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--space-2) - 1px);
  inset-block: calc(0.35em + var(--space-4)) calc(-1 * var(--space-6));
  width: 2px;
  background: color-mix(in srgb, var(--primary) 35%, var(--border-subtle));
}

.subscription-stage:nth-child(2) .subscription-stage__marker {
  border-color: var(--teal);
}

.subscription-stage:nth-child(3) .subscription-stage__marker {
  border-color: var(--purple);
  background: var(--purple);
}

.subscription-stage h3 {
  font-size: var(--type-h3-size);
  font-weight: var(--weight-extrabold);
}

.subscription-stage p {
  color: var(--text-secondary);
}

.subscription-stage__items {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.subscription-stage__items li {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: max(0.875rem, var(--type-small-size));
  font-weight: var(--weight-semibold);
}

.subscription-options {
  display: grid;
  gap: var(--space-4);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
}

.subscription-options h3 {
  font-size: var(--type-h3-size);
  font-weight: var(--weight-extrabold);
}

.subscription-options__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.subscription-options__list h4 {
  margin-bottom: var(--space-1);
  font-weight: var(--weight-bold);
}

.subscription-options__list p {
  color: var(--text-secondary);
}

.subscription-options__action {
  justify-self: start;
}

@media (min-width: 720px) {
  .subscription-ways,
  .subscription-options__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-monthly {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: var(--space-12);
  }

  .subscription-monthly__includes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-monthly__limits {
    padding-top: 0;
    padding-inline-start: var(--space-6);
    border-top: 0;
    border-inline-start: 1px solid var(--border-subtle);
  }
}

@media (min-width: 961px) {
  .subscription-benefits .aents-page__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subscription-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .subscription-stage {
    padding-inline-start: 0;
    padding-top: var(--space-8);
  }

  .subscription-stage:not(:last-child)::after {
    inset-inline: var(--space-4) calc(-1 * var(--space-8));
    inset-block: calc(var(--space-2) - 1px) auto;
    width: auto;
    height: 2px;
  }

  .subscription-stage__marker {
    inset-block-start: 0;
  }
}

/* The dock follows the reader on every width here: on a desktop only the
   round chat button stays, at the right edge, since this page has no
   contact aside. */
@media (min-width: 1080px) {
  .subscription-page .product-dock {
    display: flex;
    width: max-content;
    margin-inline: auto var(--space-6);
  }

  .subscription-page .product-dock__cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .subscription-devices {
    max-width: 24rem;
  }

  .subscription-site {
    font-size: 0.5rem;
  }

  .subscription-site__headline {
    font-size: 0.8125rem;
  }

  .subscription-site__nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subscription-site__hero,
  .subscription-site__tile {
    animation: none;
  }
}
