/* Inner pages — /solutions/, /use-cases/, /blog/, /pricing/ and the 404 — drawn in the home
   page's own vocabulary. Linked from every page build.py generates from pages-src/; the header,
   footer, buttons, FAQ and contact drawer on those pages are the home page's shared sheets.

   The components (markup lives in pages-src/*.html; copy an existing page to start a new one):
     .page-hero      the dark band every page opens with: breadcrumb, h1, lead, actions
     .page-section   one content section — head + body; --tint for the light-grey alternate
     .page-prose     reading text              .page-panel    a card holding a list or text
     .page-checks    ✓ / ✗ list                .page-defs     label / text rows
     .page-steps     numbered timeline (the journey's dotted path)
     .page-cards     compare-style cards, --2/--3/--4 across, --dark for the one to stress
     .page-compare   the home page's comparison table, auto-height rows
     .page-chips     short labelled chips      .page-callout  the lime statement box
     .page-tiles     index cards (the industries cards), the whole card is the link
     .page-posts     the blog's article list   .page-article  a post: contents + reading column
     .page-industry  a /solutions/ industry row, with .page-terminal as its illustration
     .page-cta       the closing lime panel, and .page-explore — the links between sections */

:root { --page-section-pad: 96px; }
@media (max-width: 767px) { :root { --page-section-pad: 64px; } }

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

/* ---------- hero: the home hero's brand panel, full width ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-family: var(--font);
}
/* the journey section's logo-tile pattern, fading in from the right so the copy side stays clean */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/04-journey/pattern-tile.svg") 0 0 / 100px 100px repeat;
  opacity: .16;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, .55) 32%, transparent 68%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, .55) 32%, transparent 68%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 64px var(--page-pad) 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.page-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 400 14px/18px var(--font);
  letter-spacing: -0.56px;
  color: rgba(255, 255, 255, .7);
}
.page-crumbs a { color: inherit; text-decoration: none; transition: color .2s ease; }
.page-crumbs a:hover { color: var(--brand-accent); }
.page-crumbs [aria-current] { color: var(--text-inverse); }
.page-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; max-width: 1080px; }
.page-hero__title { margin: 0; color: var(--text-inverse); text-wrap: balance; }
.page-hero__lead {
  margin: 0;
  max-width: 900px;
  font: 400 22px/30px var(--font);
  letter-spacing: -0.44px;
  color: var(--text-inverse);
  opacity: .72;
}
.page-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 20px;
  border: 1px solid var(--text-inverse);
  border-radius: var(--radius-full);
  font: 600 12px/16px var(--font);
  letter-spacing: -0.48px;
  color: var(--text-inverse);
  white-space: nowrap;
}
.page-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
/* the home hero's pair: white demo button, ghost "Contact us" */
.page-hero__demo { background: var(--surface-white); border-color: var(--text-inverse); color: var(--brand-primary); padding: 11px 24px; }
.page-hero__demo:hover { background: var(--brand-accent); border-color: var(--brand-accent); }
.page-hero__contact { background: transparent; border-color: var(--text-inverse); color: var(--text-inverse); padding: 11px 24px; }
.page-hero__contact:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-primary); }
.page-hero--article .page-hero__title { font-size: 54px; line-height: 58px; letter-spacing: -2.16px; }
.page-hero--article .page-hero__text { max-width: 1000px; }

/* ---------- sections ---------- */
.page-section { background: var(--surface-white); font-family: var(--font); color: var(--text-ink); }
.page-section--tint { background: var(--surface-card); }
.page-section__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  box-sizing: border-box;
  padding: var(--page-section-pad) var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
}
/* two sections on the same ground read as one flow: no double padding between them
   (the closing panel is on white too, so it tucks under a white section the same way) */
.page-section:not(.page-section--tint) + .page-section:not(.page-section--tint) .page-section__inner,
.page-section--tint + .page-section--tint .page-section__inner,
.page-section:not(.page-section--tint) + .page-cta .page-cta__inner,
.page-article + .page-cta .page-cta__inner { padding-top: 0; }
.page-section__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 980px; }
.page-section__title {
  margin: 0;
  font: 500 54px/58px var(--font);
  letter-spacing: -2.16px;
  color: var(--brand-primary);
  text-wrap: balance;
}
.page-section__lead { margin: 0; max-width: 820px; font: 400 20px/28px var(--font); letter-spacing: -0.4px; color: var(--text-muted); }
.page-note { margin: 0; max-width: 820px; font: 400 14px/20px var(--font); letter-spacing: -0.28px; color: var(--text-muted); }

/* ---------- reading text, panels, lists ---------- */
.page-prose { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.page-prose p { margin: 0; font: 400 18px/28px var(--font); letter-spacing: -0.36px; color: var(--text-ink); }
.page-prose strong, .page-checks strong { font-weight: 600; }

.page-panel {
  box-sizing: border-box;
  max-width: 980px;
  padding: 32px;
  border-radius: var(--radius-16);
  background: var(--surface-section);
}
.page-section--tint .page-panel { background: var(--surface-white); }

.page-checks { display: flex; flex-direction: column; gap: 16px; }
.page-checks li { display: flex; align-items: flex-start; gap: 12px; font: 400 18px/26px var(--font); letter-spacing: -0.36px; color: var(--text-ink); }
.page-checks img { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }
.page-checks--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.page-checks--2 li { font-size: 16px; line-height: 24px; letter-spacing: -0.32px; }

/* a plain bulleted or numbered list inside a panel */
.page-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: page-list; }
.page-list li { position: relative; padding-left: 28px; font: 400 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-ink); }
.page-list strong { font-weight: 600; }
ul.page-list li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-primary); }
ol.page-list li { counter-increment: page-list; }
ol.page-list li::before { content: counter(page-list) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand-primary); }
.page-panel__title { margin: 0 0 16px; font: 500 24px/28px var(--font); letter-spacing: -0.72px; color: var(--brand-primary); }

.page-defs { margin: 0; max-width: 980px; display: flex; flex-direction: column; }
.page-defs__row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border-divider);
}
.page-defs__row:last-child { border-bottom: 1px solid var(--border-divider); }
.page-defs dt { font: 600 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-ink); }
.page-defs dd { margin: 0; font: 400 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-muted); }
.page-defs--compact .page-defs__row { grid-template-columns: 96px minmax(0, 1fr); padding: 14px 0; }
.page-defs--compact .page-defs__row:first-child { border-top: 0; padding-top: 0; }
.page-defs--compact .page-defs__row:last-child { border-bottom: 0; padding-bottom: 0; }
.page-defs--compact dd { color: var(--text-ink); }

.page-callout {
  box-sizing: border-box;
  max-width: 980px;
  padding: 32px;
  border-radius: var(--radius-16);
  background: var(--brand-accent);
  color: var(--text-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-callout__title { margin: 0; font: 500 24px/28px var(--font); letter-spacing: -0.72px; color: var(--text-ink); }
.page-callout p { margin: 0; font: 400 18px/28px var(--font); letter-spacing: -0.36px; }

.page-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1240px; }
.page-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-12);
  background: var(--surface-section);
  font: 600 16px/20px var(--font);
  letter-spacing: -0.64px;
  color: var(--text-ink);
}
.page-section--tint .page-chip { background: var(--surface-white); }
.page-chip img { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- steps: the journey's numbered nodes on a dotted path ---------- */
.page-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.page-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.page-step__num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font: 600 16px/20px var(--font);
  letter-spacing: -0.32px;
}
.page-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 68px;
  right: -20px;
  border-top: 2px dotted var(--brand-secondary);
}
.page-step__title { margin: 0; font: 500 24px/28px var(--font); letter-spacing: -0.72px; color: var(--brand-primary); }
.page-step__text { margin: 0; font: 400 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-muted); }

/* ---------- cards: the compare cards (eyebrow, title, rule, text) ---------- */
.page-cards { display: grid; gap: 24px; }
.page-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius-16);
  background: var(--surface-section);
}
.page-section--tint .page-card { background: var(--surface-white); }
.page-card__eyebrow { color: var(--text-muted); }
.page-card__title { margin: 0; font: 500 24px/28px var(--font); letter-spacing: -0.72px; color: var(--brand-primary); }
.page-card__rule { width: 100%; height: 1px; background: var(--border-divider); flex-shrink: 0; }
.page-card__text { margin: 0; font: 400 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-muted); }
.page-card__list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.page-card__list li { position: relative; padding-left: 20px; font: 400 16px/22px var(--font); letter-spacing: -0.32px; color: var(--text-ink); }
.page-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.page-card__defs { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.page-card__defs dt { font: 600 14px/18px var(--font); letter-spacing: -0.56px; color: var(--text-ink); }
.page-card__defs dd { margin: 2px 0 0; font: 400 16px/22px var(--font); letter-spacing: -0.32px; color: var(--text-muted); }
.page-cards .page-card--dark, .page-section--tint .page-card--dark { background: var(--brand-primary); }
.page-card--dark .page-card__eyebrow, .page-card--dark .page-card__text { color: var(--text-inverse); opacity: .75; }
.page-card--dark .page-card__title { color: var(--brand-accent); }
.page-card--dark .page-card__rule { background: rgba(255, 255, 255, .2); }
.page-card--dark .page-card__list li { color: var(--text-inverse); }
.page-card--dark .page-card__list li::before { background: var(--brand-accent); }

/* ---------- comparison: the home page's table (09-comparison.css), rows sized by their text ---------- */
.page-compare {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 300fr) minmax(0, 470fr) minmax(0, 470fr);
}
.page-compare__row { display: contents; }
.page-compare__cell {
  box-sizing: border-box;
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-divider);
  font: 400 16px/22px var(--font);
  letter-spacing: -0.64px;
}
.page-compare__cell img { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.page-compare__cell p { margin: 0; flex: 1 0 0; min-width: 0; }
.page-compare__cell--crit { background: var(--surface-card); font-weight: 600; color: var(--text-ink); }
.page-compare__cell--lb { background: var(--brand-primary); color: var(--text-inverse); }
.page-compare__cell--alt { background: var(--surface-section); font-size: 15px; color: var(--text-muted); }
.page-section--tint .page-compare__cell--crit { background: var(--surface-white); }
.page-section--tint .page-compare__cell--alt { background: #e9eef1; }
.page-compare__row--head .page-compare__cell { min-height: 80px; justify-content: center; border-bottom: 0; font: 500 20px/24px var(--font); letter-spacing: -0.4px; text-align: center; }
.page-compare__row--head .page-compare__cell--crit { background: transparent; }
.page-compare__row--head .page-compare__cell--lb { border-radius: var(--radius-16) var(--radius-16) 0 0; background: var(--brand-accent); color: var(--text-ink); }
.page-compare__row--head .page-compare__cell--alt { min-height: 64px; margin-top: 16px; border-top-right-radius: var(--radius-16); color: var(--text-muted); }
.page-compare__row--head + .page-compare__row .page-compare__cell--crit { border-top-left-radius: var(--radius-16); }
.page-compare__row:nth-last-child(2) .page-compare__cell { border-bottom: 0; }
.page-compare__row:nth-last-child(2) .page-compare__cell--crit { border-bottom-left-radius: var(--radius-16); }
.page-compare__row--foot .page-compare__cell { min-height: 32px; padding: 0; border-bottom: 0; }
.page-compare__row--foot .page-compare__cell--crit { background: transparent; }
.page-compare__row--foot .page-compare__cell--lb { min-height: 40px; border-radius: 0 0 var(--radius-16) var(--radius-16); }
.page-compare__row--foot .page-compare__cell--alt { min-height: 24px; align-self: start; border-bottom-right-radius: var(--radius-16); }

/* ---------- index tiles: the industries cards, each one a link ---------- */
.page-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.page-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-12);
  background: var(--surface-section);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.page-section--tint .page-tile { background: var(--surface-white); }
.page-tile:hover { transform: scale(1.02); }
.page-tile__strip { height: 40px; flex-shrink: 0; background: var(--surface-subtle); }
.page-tile:nth-child(3n + 2) .page-tile__strip { background: var(--brand-accent); }
.page-tile:nth-child(3n) .page-tile__strip { background: var(--brand-primary); }
.page-tile__body {
  position: relative;
  flex: 1 0 auto;
  margin-top: -16px;
  border-radius: var(--radius-12) var(--radius-12) 0 0;
  background: inherit;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.page-tile__chip {
  display: flex;
  padding: 12px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), background-color .35s ease;
}
.page-tile:hover .page-tile__chip { transform: scale(1.08); background: var(--brand-accent); }
.page-tile__chip img { display: block; width: 32px; height: 32px; }
.page-tile__title { margin: 24px 0 0; font: 500 24px/28px var(--font); letter-spacing: -0.72px; color: var(--text-ink); text-wrap: balance; }
.page-tile__title a { color: inherit; text-decoration: none; }
.page-tile__title a::after { content: ""; position: absolute; inset: -40px 0 0; border-radius: var(--radius-12); } /* the whole card, strip included, is the link */
.page-tile__title a:focus-visible { outline: none; }
.page-tile__title a:focus-visible::after { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.page-tile__rule { width: 100%; height: 1px; background: var(--border-divider); flex-shrink: 0; }
.page-tile__text { margin: 0; font: 400 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-muted); }
.page-tile__foot { margin-top: auto; padding-top: 8px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-more { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font: 600 16px/20px var(--font); letter-spacing: -0.64px; color: var(--brand-primary); white-space: nowrap; }
.page-more img { width: 16px; height: 16px; transition: transform .25s ease; }
.page-tile:hover .page-more img, .page-post:hover .page-more img, a.page-more:hover img { transform: translateX(4px); }
a.page-more { text-decoration: none; }

.page-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.page-pills li {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  font: 600 12px/16px var(--font);
  letter-spacing: -0.48px;
  color: var(--text-ink);
  white-space: nowrap;
}

/* ---------- the blog's article list: the FAQ's divided rows ---------- */
.page-posts { display: flex; flex-direction: column; border-top: 1px solid var(--border-divider); }
.page-post {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 56px;
  gap: 24px 48px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-divider);
}
.page-post__meta { margin: 0; padding-top: 6px; display: flex; flex-direction: column; gap: 4px; font: 400 14px/18px var(--font); letter-spacing: -0.56px; color: var(--text-muted); }
.page-post__main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.page-post__title { margin: 0; font: 500 32px/36px var(--font); letter-spacing: -0.96px; color: var(--brand-primary); text-wrap: balance; }
.page-post__title a { color: inherit; text-decoration: none; }
.page-post__title a::after { content: ""; position: absolute; inset: 0; }
.page-post__title a:focus-visible { outline: none; }
.page-post__title a:focus-visible::after { outline: 2px solid var(--brand-primary); outline-offset: 4px; border-radius: var(--radius-8); }
.page-post__text { margin: 0; max-width: 760px; font: 400 16px/24px var(--font); letter-spacing: -0.32px; color: var(--text-muted); }
.page-post__go {
  width: 56px;
  height: 40px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface-section);
  transition: background-color .25s ease;
}
.page-post__go img { width: 20px; height: 20px; transition: transform .25s ease; }
.page-post:hover .page-post__go { background: var(--brand-accent); }
.page-post:hover .page-post__go img { transform: translateX(3px); }
.page-post:hover .page-post__title { color: var(--text-ink); }

/* ---------- a blog post: contents on the left, the reading column on the right ---------- */
.page-article { background: var(--surface-white); font-family: var(--font); color: var(--text-ink); }
.page-article__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 80px var(--page-pad) var(--page-section-pad);
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
  column-gap: 96px;
  align-items: start;
}
.page-article__aside { align-self: stretch; }
.page-toc { position: sticky; top: calc(80px + var(--announce-h, 0px) + 32px); }
.page-toc__title { margin: 0 0 12px; color: var(--text-muted); }
.page-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--surface-subtle); }
.page-toc li { border-bottom: 1px solid var(--surface-subtle); }
/* the legal pages' contents list (15-legal.css) */
.page-toc a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  font: 600 14px/18px var(--font);
  letter-spacing: -0.56px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease, padding-left .3s cubic-bezier(.23, 1, .32, 1);
}
.page-toc__num { flex: none; width: 24px; font: 500 12px/16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--brand-secondary); letter-spacing: 0; }
.page-toc a:hover { color: var(--brand-primary); padding-left: 6px; }
.page-toc a.is-active, .page-toc a.is-active .page-toc__num { color: var(--brand-primary); }
.page-article__body { min-width: 0; max-width: 760px; }
.page-article__body > h2 {
  margin: 56px 0 16px;
  font: 500 32px/36px var(--font);
  letter-spacing: -0.96px;
  color: var(--brand-primary);
  scroll-margin-top: calc(80px + var(--announce-h, 0px) + 24px);
}
.page-article__body > h2:first-child { margin-top: 0; }
.page-article__body > h3 { margin: 32px 0 8px; font: 600 20px/26px var(--font); letter-spacing: -0.4px; color: var(--text-ink); }
.page-article__body > p { margin: 0 0 20px; font: 400 18px/30px var(--font); letter-spacing: -0.2px; color: var(--text-ink); }
.page-article__body > p:last-child { margin-bottom: 0; }
.page-article__body strong { font-weight: 600; }
.page-article__body a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-secondary); transition: text-decoration-color .2s ease; }
.page-article__body a:hover { text-decoration-color: var(--brand-primary); }
.page-article__body > ul, .page-article__body > ol { margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.page-article__body > ul > li, .page-article__body > ol > li { position: relative; padding-left: 28px; font: 400 18px/28px var(--font); letter-spacing: -0.2px; }
.page-article__body > ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.page-article__body > ol { counter-reset: page-ol; }
.page-article__body > ol > li { counter-increment: page-ol; }
.page-article__body > ol > li::before {
  content: counter(page-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--brand-primary);
}
.page-article__body > .page-panel,
.page-article__body > .page-compare,
.page-article__body > .page-callout,
.page-article__body > .page-cards { margin: 32px 0; }
.page-article__body .page-compare { grid-template-columns: minmax(0, 220fr) minmax(0, 270fr) minmax(0, 270fr); }
.page-article__body .page-compare__cell { padding: 16px 18px; min-height: 64px; }
.page-article__body .page-compare__row--head .page-compare__cell { font-size: 18px; min-height: 64px; }
.page-article__body .page-compare__row--head .page-compare__cell--alt { min-height: 52px; margin-top: 12px; }
.page-article__body .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- /solutions/: one row per industry, copy beside an illustration ---------- */
.page-industries { display: flex; flex-direction: column; gap: 24px; }
.page-industry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.page-industry__copy {
  box-sizing: border-box;
  padding: 40px;
  border-radius: var(--radius-16);
  background: var(--surface-section);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.page-section--tint .page-industry__copy { background: var(--surface-white); }
.page-industry__chip { display: flex; padding: 12px; border-radius: var(--radius-full); background: var(--surface-subtle); }
.page-industry__chip img { display: block; width: 40px; height: 40px; }
.page-industry__title { margin: 8px 0 0; font: 500 38px/42px var(--font); letter-spacing: -1.14px; color: var(--brand-primary); }
.page-industry__lead { margin: 0; font: 400 18px/28px var(--font); letter-spacing: -0.36px; color: var(--text-muted); }
.page-industry .page-checks li { font-size: 16px; line-height: 24px; letter-spacing: -0.32px; }
.page-industry--flip .page-industry__aside { order: -1; }
.page-industry__aside { display: flex; flex-direction: column; }
.page-industry__aside > * { flex: 1 0 auto; }

/* an illustration in the bento's terminal voice: monospace lines on the brand panel */
.page-terminal {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 40px;
  border-radius: var(--radius-16);
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
/* the hero's logo-tile pattern, so the panel reads as a surface rather than an empty box */
.page-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/04-journey/pattern-tile.svg") 0 0 / 100px 100px repeat;
  opacity: .1;
  pointer-events: none;
}
.page-terminal > * { position: relative; }
.page-terminal__bar { display: flex; align-items: center; gap: 10px; font: 500 12px/16px ui-monospace, "SF Mono", Menlo, monospace; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.page-terminal__tag { padding: 2px 8px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .12); color: var(--text-inverse); }
.page-terminal__title { margin: 0; font: 600 12px/16px var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.page-terminal__lines { display: flex; flex-direction: column; gap: 14px; font: 500 15px/22px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; color: rgba(255, 255, 255, .8); }
.page-terminal__lines li::before { content: "→ "; color: var(--brand-accent); }
.page-terminal__lines .is-done { color: var(--brand-accent); }
.page-terminal__lines .is-done::before { content: "✓ "; }
.page-terminal .page-checks li { color: var(--text-inverse); font-size: 16px; line-height: 24px; }
.page-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-badges li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(205, 255, 140, .45);
  border-radius: var(--radius-12);
  font: 600 14px/18px var(--font);
  letter-spacing: -0.28px;
  color: var(--brand-accent);
  text-align: center;
}

/* ---------- the closing call to action: the acquisition section's lime panel ---------- */
.page-cta { background: var(--surface-white); font-family: var(--font); }
.page-cta__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  box-sizing: border-box;
  padding: var(--page-section-pad) var(--page-pad) 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.page-cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
  padding: 48px;
  border-radius: var(--radius-16);
  background: var(--brand-accent);
  color: var(--text-ink);
}
.page-cta__copy { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.page-cta__eyebrow { margin: 0; letter-spacing: -0.56px; }
.page-cta__title { margin: 0; font: 500 54px/58px var(--font); letter-spacing: -2.16px; color: var(--text-ink); text-wrap: balance; }
.page-cta__lead { margin: 0; font: 400 20px/28px var(--font); letter-spacing: -0.4px; color: var(--text-ink); opacity: .75; }
.page-cta__actions { display: flex; align-items: center; gap: 12px; }
.page-cta__actions .btn { padding: 11px 24px; }
/* on the accent panel a button cannot turn accent on hover — it goes white (11b-acquisition.css) */
.page-cta .btn-primary:hover, .page-cta .btn-outline:hover { background: var(--surface-white); border-color: var(--surface-white); color: var(--brand-primary); }

.page-explore { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-explore__label { margin-right: 4px; color: var(--text-muted); }
/* the FAQ's category tabs (12-faq.css) */
.page-explore a {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  font: 600 16px/20px var(--font);
  letter-spacing: -0.64px;
  color: var(--text-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.page-explore a:hover { background: #cfd7dc; }
.page-explore a[aria-current] { background: var(--brand-primary); color: var(--text-inverse); }
.page-explore a[aria-current]:hover { background: var(--brand-accent); color: var(--brand-primary); }

/* ---------- 404 ---------- */
.page-hero--404 .page-hero__inner { min-height: calc(100vh - 80px - var(--announce-h, 0px)); min-height: calc(100svh - 80px - var(--announce-h, 0px)); justify-content: center; }
.page-404__code { margin: 0; font: 500 120px/1 var(--font); letter-spacing: -0.05em; color: var(--brand-accent); }
.page-hero--404 .page-explore a { background: rgba(255, 255, 255, .1); color: var(--text-inverse); }
.page-hero--404 .page-explore a:hover { background: var(--brand-accent); color: var(--brand-primary); }
.page-hero--404 .page-explore__label { color: rgba(255, 255, 255, .7); }

/* ---------- ≤1200 ---------- */
@media (max-width: 1200px) {
  .page-hero__title.h1 { font-size: 54px; line-height: 58px; letter-spacing: -0.05em; }
  .page-hero--article .page-hero__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; }
  .page-section__title { font-size: 42px; line-height: 46px; letter-spacing: -1.5px; }
  .page-cta__title { font-size: 42px; line-height: 46px; letter-spacing: -1.5px; }
  .page-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-article__inner { column-gap: 56px; grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr); }
}

/* ---------- ≤1100: steps turn vertical, grids narrow ---------- */
@media (max-width: 1100px) {
  .page-steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
  .page-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; padding-bottom: 40px; }
  .page-step:last-child { padding-bottom: 0; }
  .page-step__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .page-step__title { margin-top: 14px; }
  .page-step:not(:last-child)::before { top: 68px; bottom: 12px; left: 27px; right: auto; border-top: 0; border-left: 2px dotted var(--brand-secondary); }
  .page-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-industry { grid-template-columns: minmax(0, 1fr); }
  .page-industry--flip .page-industry__aside { order: 0; }
  .page-cta__panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page-article__inner { display: flex; flex-direction: column; gap: 40px; }
  .page-toc { position: static; max-width: 560px; }
}

/* ---------- mobile (375) ---------- */
@media (max-width: 767px) {
  .page-hero__inner { padding: 40px 16px 56px; gap: 28px; }
  .page-hero__text { gap: 16px; }
  .page-hero__title.h1, .page-hero--article .page-hero__title { font-size: 36px; line-height: 40px; letter-spacing: -1.44px; }
  .page-hero__lead { font-size: 18px; line-height: 26px; letter-spacing: -0.36px; opacity: .8; }
  .page-hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .page-hero__actions .btn { width: 100%; box-sizing: border-box; }
  .page-hero::after { -webkit-mask-image: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, .6)); mask-image: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, .6)); }

  .page-section__inner { gap: 28px; }
  .page-section__title, .page-cta__title { font-size: 32px; line-height: 36px; letter-spacing: -0.96px; }
  .page-section__lead { font-size: 18px; line-height: 24px; letter-spacing: -0.54px; }
  .page-prose p { font-size: 17px; line-height: 26px; }
  .page-panel, .page-callout { padding: 24px; border-radius: var(--radius-12); }
  .page-checks li { font-size: 16px; line-height: 24px; }
  .page-defs__row, .page-defs--compact .page-defs__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .page-checks--2 { grid-template-columns: minmax(0, 1fr); }
  .page-cards--2, .page-cards--3, .page-cards--4, .page-tiles, .page-chips, .page-badges { grid-template-columns: minmax(0, 1fr); }
  .page-cards { gap: 16px; }
  .page-card { padding: 24px; border-radius: var(--radius-12); }
  .page-card__title, .page-step__title, .page-tile__title, .page-callout__title { font-size: 20px; line-height: 24px; letter-spacing: -0.4px; }

  /* the home comparison's mobile rows (09-comparison.css): criterion across, the two answers side by side */
  .page-compare { display: flex; flex-direction: column; width: calc(100% + 32px); max-width: none; margin: 0 -16px; }
  .page-compare__row { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
  .page-compare__row--foot { display: none; }
  .page-compare__cell { border: 0 !important; border-radius: 0 !important; margin: 0 !important; min-height: 0 !important; }
  .page-compare__cell--crit { width: 100%; justify-content: center; padding: 12px 16px; text-align: center; }
  .page-compare__row--head .page-compare__cell--crit { display: none; }
  .page-compare__cell--lb, .page-compare__cell--alt { flex: 1 0 0; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 16px; font-size: 14px; line-height: 18px; letter-spacing: -0.56px; }
  .page-compare__cell img { width: 20px; height: 20px; }
  .page-compare__cell p { flex: none; width: 100%; }
  .page-compare__row--head .page-compare__cell--lb, .page-compare__row--head .page-compare__cell--alt { flex-direction: row; align-items: center; justify-content: center; padding: 16px; font: 600 16px/20px var(--font); letter-spacing: -0.64px; text-align: center; }
  .page-article__body .page-compare { grid-template-columns: none; }
  .page-article__body > .page-compare { margin: 32px -16px; } /* keep the full bleed the rule above gives every table */

  .page-tile__foot { flex-direction: column; align-items: flex-start; }
  .page-post { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .page-post__meta { flex-direction: row; gap: 8px; padding-top: 0; }
  .page-post__meta span + span::before { content: "· "; }
  .page-post__title { font-size: 24px; line-height: 28px; letter-spacing: -0.72px; }
  .page-post__go { display: none; }

  .page-article__inner { padding: 40px 16px var(--page-section-pad); }
  .page-article__body > h2 { font-size: 26px; line-height: 30px; letter-spacing: -0.78px; margin-top: 40px; }
  .page-article__body > p, .page-article__body > ul > li, .page-article__body > ol > li { font-size: 17px; line-height: 28px; }
  .page-article__body .page-cards { grid-template-columns: minmax(0, 1fr); }

  .page-industry__copy, .page-terminal { padding: 24px; border-radius: var(--radius-12); }
  .page-industry__title { font-size: 28px; line-height: 32px; letter-spacing: -0.84px; }
  .page-industry__lead { font-size: 16px; line-height: 24px; }

  .page-cta__panel { padding: 24px; gap: 24px; border-radius: var(--radius-12); }
  .page-cta__lead { font-size: 18px; line-height: 24px; letter-spacing: -0.54px; }
  .page-cta__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .page-cta__actions .btn { width: 100%; box-sizing: border-box; }
  .page-explore { gap: 8px; }
  .page-explore__label { width: 100%; }
  .page-explore a { padding: 8px 16px; font-size: 14px; line-height: 18px; letter-spacing: -0.56px; }

  .page-404__code { font-size: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-tile, .page-tile__chip, .page-more img, .page-post__go img { transition: none; }
  .page-tile:hover, .page-tile:hover .page-tile__chip { transform: none; }
}

/* ---------- in-text links: every page links across to the others inside its copy ---------- */
.page-prose a, .page-panel a, .page-card__text a, .page-step__text a, .page-checks a,
.page-compare a, .page-hero__lead a, .page-section__lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-secondary);
  transition: text-decoration-color .2s ease;
}
.page-prose a:hover, .page-panel a:hover, .page-card__text a:hover, .page-step__text a:hover,
.page-checks a:hover, .page-compare a:hover, .page-hero__lead a:hover, .page-section__lead a:hover {
  text-decoration-color: currentColor;
}

/* ---------- wider comparisons: legacy bridge against two (--4) or three (--5) alternatives ---------- */
.page-compare--4 { grid-template-columns: minmax(0, 240fr) minmax(0, 380fr) repeat(2, minmax(0, 320fr)); }
.page-compare--5 { grid-template-columns: minmax(0, 220fr) minmax(0, 300fr) repeat(3, minmax(0, 250fr)); }
/* only the last column carries the table's right-hand corners */
.page-compare--4 .page-compare__cell--alt:not(:last-child),
.page-compare--5 .page-compare__cell--alt:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
