/* =============================================================================
   X3WEB — all-inclusive
   -----------------------------------------------------------------------------
     /all-inclusive   the two all-inclusive packages and everything in them

   In the Marketing Pack manner of x3.css: flat blocks that touch, hairline
   lists, spaced-capital labels, white square cards and orange pills. The page
   uses the shared vocabulary for its blocks, headings, buttons, splits and
   questions; this file adds only the ai-* furniture.

   Every colour, shadow, space and easing comes from the tokens in x3.css.
   Cards rest on --shadow-1; the recommended package, framed screenshots and an
   open question lift to --shadow-2; the notes laid on photographs and the
   technical popups sit on --shadow-3.
   ============================================================================= */


/* ── Shared pieces ─────────────────────────────────────────────────────────── */

/*
 * A list of inclusions: hairline rows, each with a short orange tick drawn in
 * CSS. --cols / --cols3 set it in two or three columns once there is room;
 * --compact drops the rules for lists inside cards.
 */
.ai-ticks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem);
  list-style: none;
  border-top: 1px solid var(--line-strong);
  text-align: left;
}
.ai-ticks > li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.ai-ticks > li::before {
  content: '';
  position: absolute;
  top: calc(0.8rem + 0.38em);
  left: 0.3rem;
  width: 0.375rem;
  height: 0.7rem;
  border: solid var(--accent);
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}
@media (min-width: 640px) {
  .ai-ticks--cols,
  .ai-ticks--cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ai-ticks--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ai-ticks--compact { row-gap: 0.6rem; border-top: 0; }
.ai-ticks--compact > li {
  padding: 0 0 0 1.625rem;
  border-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.ai-ticks--compact > li::before { top: 0.38em; }

/* A copy column's list, button row and closing paragraphs. */
.ai-copy > .x3-lede + .ai-ticks,
.ai-copy > .ai-sub + .ai-ticks { margin-top: 1.75rem; }
.ai-copy > .ai-ticks + .x3-lede,
.ai-copy > .ai-ticks + .x3-btnrow { margin-top: 1.75rem; }
.ai-copy > .x3-lede + .ai-sub { margin-top: 2.25rem; }

/* A sub-heading over a list. */
.ai-sub {
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.5rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* A spaced-capitals label with the orange hairline, inside a card. */
.ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ai-kicker::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

/* An icon in a stone disc. */
.ai-disc {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--stone);
  color: var(--accent);
}
.ai-disc svg { width: 1.5rem; height: 1.5rem; }

/* A photograph or screenshot inside a block: framed and lifted. */
.ai-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--scene);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
}
.ai-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A white note laid on a photograph, with the orange hairline before it. */
.ai-float {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1.125rem;
  background: var(--card);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  box-shadow: var(--shadow-3);
}
.ai-float::before {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}
.ai-float--top {
  top: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  left: clamp(1rem, 0.5rem + 2vw, 2.25rem);
}
.ai-float--bottom {
  right: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  bottom: clamp(1rem, 0.5rem + 2vw, 2.25rem);
}

/* Small print under a grid, centred. */
.ai-note {
  max-width: 50rem;
  margin: clamp(2rem, 1.6rem + 1.4vw, 3rem) auto 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  text-align: center;
}
.ai-note strong { color: var(--ink); }

/* A note that must be read: a card with the orange edge. */
.ai-callout {
  max-width: 56rem;
  margin: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem) auto 0;
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem) clamp(1.375rem, 1.1rem + 1vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  box-shadow: var(--shadow-1);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  text-align: left;
}
.ai-callout strong { color: var(--ink); }

/* A phrase kept on one line, such as "10-Page" in a heading. */
.ai-nowrap { white-space: nowrap; }

/* Space between a section's head and what follows a grid. */
.ai-gap { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }


/* ── The two packages ──────────────────────────────────────────────────────── */

/*
 * Two price cards side by side. From 900px the cards share their top rows
 * (subgrid), so the names, prices and the fit line up across the pair
 * whatever the length of each. The rest of each card flows on its own, its
 * button on the card's foot, so opening one card's full list never opens a
 * gap in the middle of the other.
 */
.ai-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  max-width: 80rem;
  margin-inline: auto;
}

.ai-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem) clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.ai-plan--featured { box-shadow: inset 0 3px 0 var(--accent), var(--shadow-2); }

@media (min-width: 900px) {
  .ai-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto) 1fr;
    row-gap: 0;
  }
  .ai-plan {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 1.25rem;
    align-content: start;
  }
}

/* "Most Complete": an ink pill on the card's top edge, matching the price
   cards' flag (white 11px capitals on orange read at only 3:1). */
.ai-plan__flag {
  position: absolute;
  top: 0;
  right: clamp(1.25rem, 1rem + 1vw, 2rem);
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  translate: 0 -50%;
  box-shadow: var(--shadow-ink);
}

.ai-plan__kicker {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ai-plan__name {
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.ai-plan__desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* The price, under a hairline; the fit's own hairlines close it. */
.ai-plan__price {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.ai-plan__pay {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ai-plan__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
  font-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.ai-plan__amount small {
  font-size: 0.9375rem;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--ink-muted);
}

/* "Ideal for" and "Main outcome": two hairline-topped columns. */
.ai-plan__fit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.5rem;
}
@media (min-width: 560px) {
  .ai-plan__fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ai-plan__fit > div {
  padding-top: 0.875rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.ai-plan__fit b {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* What is included: a tick list, and the rest behind a disclosure. */
.ai-plan__list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  text-align: left;
}
.ai-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.ai-plan__tick {
  flex: none;
  width: 1rem;
  color: var(--accent-text);
  font-weight: 600;
  text-align: center;
}

.ai-more { margin-top: 1rem; }
.ai-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  color: var(--accent-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(196 63 0 / 0.45);
  transition: text-decoration-color 0.2s var(--ease);
}
.ai-more > summary:hover { text-decoration-color: currentColor; }
.ai-more > summary::-webkit-details-marker { display: none; }
.ai-more > summary svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}
.ai-more[open] > summary svg { transform: rotate(180deg); }
.ai-more__open,
.ai-more[open] .ai-more__closed { display: none; }
.ai-more[open] .ai-more__open { display: inline; }
.ai-more > .ai-plan__list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* The one line that sums the package up. */
.ai-plan__benefit {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--stone);
  border-left: 2px solid var(--accent);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ai-plan__note {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
/* Everything under the fit: the lists, the summing-up, the small print and
   the button, which keeps to the foot of the card. */
.ai-plan__foot {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
}
.ai-plan__foot > .x3-btn { width: 100%; margin-top: auto; padding-inline: 1.25rem; }
/* On a narrow phone the card gives its text the width, so the buttons'
   labels stay on one line. */
@media (max-width: 479.98px) {
  .ai-plan { padding-inline: 1.25rem; }
}


/* ── One complete system: six cards ────────────────────────────────────────── */

.ai-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.875rem, 0.6rem + 0.9vw, 1.375rem);
  counter-reset: ai-card;
}
@media (min-width: 640px) { .ai-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ai-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  counter-increment: ai-card;
}
/* The icon, and the card's number with its hairline: "01 ——". */
.ai-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.ai-card__top::after {
  content: counter(ai-card, decimal-leading-zero);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.ai-card__title {
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.ai-card p { font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }


/* ── A statement between two blocks ────────────────────────────────────────── */

.ai-statement { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.ai-statement__text {
  display: block;
  max-width: 58rem;
  margin-inline: auto;
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);
  font-weight: 420;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.ai-statement__text::before {
  content: '';
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--accent);
}


/* ── A call to action between two blocks ───────────────────────────────────── */

.ai-cta-row { padding-block: clamp(2rem, 1.4rem + 1.8vw, 3.25rem); }
.ai-cta-row__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.ai-cta-row__text {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ink);
}
@media (min-width: 768px) {
  .ai-cta-row__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .ai-cta-row__text::before {
    content: '';
    flex: none;
    width: 2.25rem;
    height: 1px;
    background: var(--accent);
  }
}


/* ── Your digital head office: the ten pages ───────────────────────────────── */

/*
 * Ten cards, each a page of the website: its screenshot, number, name, what it
 * does and what it holds. Phones show one card to a row and tablets two, the
 * screenshot on top. From 1200px each page is one row, the screenshot beside
 * the text, and the lists open into columns as the card widens.
 */
.ai-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.875rem, 0.6rem + 0.9vw, 1.375rem);
}
@media (min-width: 640px) and (max-width: 1199.98px) {
  .ai-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ai-pagecard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.ai-pagecard__shot {
  position: relative;
  flex: none;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--scene);
  border-bottom: 1px solid var(--line);
}
.ai-pagecard__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.ai-pagecard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  container-type: inline-size;
}
.ai-pagecard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.ai-pagecard__n {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.ai-pagecard__n::after {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}
.ai-pagecard__title {
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.ai-pagecard__body > p { font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }
.ai-pagecard__body > .ai-ticks {
  margin-top: auto;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
}
@container (min-width: 30rem) {
  .ai-pagecard__body > .ai-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 44rem) {
  .ai-pagecard__body > .ai-ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .ai-pagecard { flex-direction: row; }
  .ai-pagecard__shot {
    flex: 0 0 40%;
    aspect-ratio: auto;
    min-height: 15rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

/* Every other part of the website, in three columns of hairline rows. */
.ai-extras {
  margin-top: clamp(0.875rem, 0.6rem + 0.9vw, 1.375rem);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.ai-extras > .ai-sub { margin-bottom: 1.25rem; }


/* ── Turn visitors into enquiries ──────────────────────────────────────────── */

.ai-trust__visual { position: relative; }
/* The five stars and the promise, on a white card over the illustration. */
.ai-badge {
  position: absolute;
  left: clamp(1rem, 0.5rem + 2vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 2vw, 2rem);
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  max-width: min(calc(100% - 2rem), 22rem);
  padding: 1rem 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow-3);
  text-align: left;
}
.ai-badge > span {
  font-size: 1rem;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--accent-text);
}
.ai-badge > strong {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (min-width: 900px) {
  .ai-badge { bottom: -1.75rem; }
}
/* Stacked, the illustration is small: the card sits under it, overlapping
   its foot, rather than covering it. */
@media (max-width: 899.98px) {
  .ai-badge {
    position: relative;
    left: auto;
    bottom: auto;
    width: fit-content;
    margin: -1.75rem auto 0;
  }
}

.ai-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.875rem, 0.6rem + 0.9vw, 1.375rem);
}
@media (min-width: 640px) { .ai-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ai-benefit {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: left;
}
.ai-benefit h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.ai-benefit p { font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }


/* ── Google and Meta: a screenshot beside the list ─────────────────────────── */

.ai-platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 1rem + 3.5vw, 5rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .ai-platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-platform--rev > .ai-frame { order: 2; }
}
.ai-platform__copy > .ai-sub { margin-bottom: 1.25rem; }
.ai-platform__copy > p {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-muted);
}
.ai-platform__copy > .ai-ticks + p { margin-top: 1.75rem; }
.ai-platform__copy > p + p { margin-top: 1rem; }


/* ── Advertising: the two first campaigns ──────────────────────────────────── */

.ai-ads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
}
@media (min-width: 900px) { .ai-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ai-ad {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.ai-ad__shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--scene);
  border-bottom: 1px solid var(--line);
}
.ai-ad__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-ad__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  container-type: inline-size;
}
.ai-ad__body > p { font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }
.ai-ad__body > .ai-kicker { margin-top: 0.75rem; }
@container (min-width: 28rem) {
  .ai-ad__body > .ai-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ai-ad__body > p.ai-ad__outcome {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}


/* ── Built correctly: the four technical areas ─────────────────────────────── */

.ai-technical {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 1rem + 3.5vw, 5rem);
  align-items: start;
}
@media (min-width: 1024px) {
  .ai-technical { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  /* The screenshot stays in view while the four areas open and close. */
  .ai-technical > .ai-frame { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.ai-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
}
@media (min-width: 640px) { .ai-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ai-detail {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: left;
  transition: box-shadow 0.3s var(--ease);
}
.ai-detail[open] { box-shadow: var(--shadow-2); }
.ai-detail > summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 4.25rem;
  padding: 1rem 1.125rem 1rem 1.25rem;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ai-detail > summary::-webkit-details-marker { display: none; }
.ai-detail > summary > svg { flex: none; width: 1.375rem; height: 1.375rem; color: var(--accent); }
.ai-detail > summary > span { flex: 1; transition: color 0.2s var(--ease); }
.ai-detail > summary:hover > span { color: var(--accent-text); }
/* The plus turns into a cross, on an ink disc, when the area is open. */
.ai-detail > summary > b {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ai-detail[open] > summary > b { background: var(--ink); color: #fff; transform: rotate(45deg); }

.ai-detail-content {
  display: grid;
  justify-items: start;
  gap: 0.625rem;
  margin: 0 1.25rem;
  padding: 1.125rem 0 1.375rem;
  border-top: 1px solid var(--line);
}
.ai-detail-content :is(h3, h4) {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.ai-detail-content p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-muted); }
.ai-detail-content .x3-btn { margin-top: 0.5rem; }

/* What each area includes: a popup over the page. */
.ai-technical-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 0.25rem + 2.5vw, 2.5rem);
  text-align: left;
}
.ai-technical-modal[hidden] { display: none; }
.ai-technical-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(28 28 25 / 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ai-technical-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 38rem);
  max-height: calc(100dvh - 2 * clamp(0.75rem, 0.25rem + 2.5vw, 2.5rem));
  overflow-y: auto;
  background: var(--card);
  box-shadow: var(--shadow-3);
}
.ai-technical-modal-dialog:focus { outline: none; }
.ai-technical-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.ai-technical-modal-header > svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent); }
.ai-technical-modal-header h3 {
  flex: 1;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ai-technical-modal-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ai-technical-modal-close:hover { background: var(--stone-warm); transform: rotate(90deg); }
.ai-technical-modal-body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1vw, 2rem); }
.ai-technical-modal-body > .ai-kicker { margin-bottom: 1rem; }
.ai-technical-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1.125rem clamp(1.25rem, 1rem + 1vw, 2rem);
  border-top: 1px solid var(--line);
  background: var(--panel);
}
body.ai-technical-modal-open { overflow: hidden; }


/* ── Which package, and everything in each ─────────────────────────────────── */

.ai-compare,
.ai-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.875rem, 0.6rem + 0.9vw, 1.375rem);
}
@media (min-width: 768px) { .ai-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .ai-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ai-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-compare { max-width: 72rem; margin-inline: auto; }

.ai-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.ai-box__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ai-box__head h3 {
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.ai-box > .ai-ticks--compact { padding-top: 1.25rem; border-top: 1px solid var(--line); }


/* ── From planning to launch: six steps ────────────────────────────────────── */

.ai-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.875rem, 0.6rem + 0.9vw, 1.375rem);
}
@media (min-width: 640px) { .ai-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ai-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ai-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
/* The step's number, large and orange, with its hairline: "1 ——". */
.ai-step > b {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(2.25rem, 1.8rem + 1.2vw, 2.875rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
  color: var(--accent);
}
.ai-step > b::after {
  content: '';
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}
.ai-step h3 {
  font-size: 1.0625rem;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.ai-step p { font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }


/* ── Photographs next door: notes and figures laid on them ─────────────────── */

/* The brand kit is a still life: it stays centred in its panel. */
.x3-media.ai-photo--centre img { object-position: 50% 50%; }

/*
 * Beside a long column of copy the photograph's panel grows far taller than
 * the photograph, and filling it would crop the picture to a sliver. From
 * 900px the photograph is held in a window one screen high that stays in view
 * while the copy beside it scrolls past. (overflow: clip, not hidden, so the
 * panel does not become a scroll container and the window can stick.)
 */
@media (min-width: 900px) {
  .x3-media.ai-pin { overflow: clip; }
  .x3-media.ai-pin img {
    position: sticky;
    inset: auto;
    top: var(--header-h);
    display: block;
    height: calc(100svh - var(--header-h));
    max-height: 100%;
  }
}

/* The team's figures, on white cards along the foot of the photograph. */
.ai-stat {
  position: absolute;
  bottom: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  left: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  min-width: 9.5rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow-3);
  text-align: left;
}
.ai-stat--two { left: auto; right: clamp(1rem, 0.5rem + 2vw, 2.25rem); }
.ai-stat strong {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.ai-stat span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* The closing line under the final call to action. */
.ai-final__line {
  display: block;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}


/* ── Phones: the page's own parts on the centre line ───────────────────────── */

@media (max-width: 767.98px) {
  .ai-plan__amount { justify-content: center; }
  .ai-plan__benefit {
    border-left: 0;
    border-top: 2px solid var(--accent);
  }

  .ai-card { align-items: center; text-align: center; }
  .ai-card__top { justify-content: center; }

  .ai-cta-row__text { justify-content: center; text-align: center; }

  .ai-pagecard__head { justify-content: center; }

  .ai-benefit { flex-direction: column; align-items: center; text-align: center; }

  .ai-box__head { flex-direction: column; text-align: center; }

  .ai-step { align-items: center; }
  .ai-step > b::before {
    content: '';
    flex: none;
    width: 2.5rem;
    height: 1px;
    background: var(--accent);
  }

  .ai-ad__body > .ai-kicker { align-self: center; }
  .ai-ad__body > .ai-kicker::after {
    content: '';
    flex: none;
    width: 1.75rem;
    height: 1px;
    background: var(--accent);
  }

  .ai-float { font-size: 0.875rem; padding: 0.625rem 0.875rem; }
  .ai-stat { gap: 0.35rem; min-width: 0; padding: 0.625rem 0.875rem; }
  .ai-stat strong { font-size: 1.5rem; }
  .ai-stat span { letter-spacing: 0.08em; }
}


/* ── Print ─────────────────────────────────────────────────────────────────── */

@media print {
  .ai-technical-modal { display: none; }
  .ai-plan, .ai-card, .ai-pagecard, .ai-box, .ai-step, .ai-ad, .ai-detail, .ai-benefit { box-shadow: none; }
}
