/* ============================================================
   NITRO RABBIT LABS — INTELLIGENT SERVICES PLATFORMS PAGE
   Page-scoped styles for intelligent-services-platforms.html only.

   Link order on that page:
     main.css (tokens + base)
       -> site.css (shared components)
       -> product-page.css (.concept / .panel / .chip / .section--sunken)
       -> platform-page.css (this file)

   Everything below is either a brand-new class or scoped under
   .plat-page (set on <main>), so no other page can be affected.
   All colour comes from the tokens in main.css.
   ============================================================ */

/* ============================================================
   ACCENT SCOPE
   <main class="product product--blue plat-page"> inherits the blue
   accent set from product-page.css, including --accent-ink (the
   --accent-ink-blue token — sunken-safe, see main.css). This file
   used to re-pin the identical value here; that override did nothing
   and is gone.

   Per-block accent rotation. Set on a card / way / strip item; the
   element's own declaration beats the inherited page value, so
   .card__accent, .card__icon and .plat-link all follow suit. */
.plat-page .plat-acc-red {
  --accent:      var(--nrl-nitro-red);
  --accent-ink:  var(--nrl-red-700);
  --accent-tint: var(--nrl-red-100);
}
.plat-page .plat-acc-blue {
  --accent:      var(--nrl-rabbit-blue);
  --accent-ink:  var(--accent-ink-blue);
  --accent-tint: var(--nrl-blue-100);
}
.plat-page .plat-acc-green {
  --accent:      var(--nrl-labs-green);
  --accent-ink:  var(--accent-ink-green);
  --accent-tint: var(--nrl-green-100);
}

/* Inline accent link used inside cards and the proof band */
.plat-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 14px;
  /* 20px line box + 2px top/bottom = a 24px pointer target */
  padding: 2px 0;
  color: var(--accent-ink);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-out);
}
.plat-link:hover { text-decoration: underline; gap: 11px; }
.plat-link .icon { width: 15px; height: 15px; flex: none; }

/* Two accent links in one card. The row owns the 14px lead-in so a wrapped
   second link does not stack margin on top of the row gap. */
.plat-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }
.plat-links .plat-link { margin-top: 0; }

/* ============================================================
   HERO  (extends .page-hero.nrl-on-carbon)
   ============================================================ */
.plat-hero h1 { max-width: 26ch; margin-bottom: 18px; }
.plat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

/* Quiet third action beside the two hero buttons. It is an in-page jump,
   so it carries a down arrow rather than the buttons' forward arrow, and
   .link-on-carbon supplies the 7.2:1 rabbit blue plus the underline —
   colour alone can't carry a link sitting next to two buttons. */
.plat-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 22px line box + 11px top/bottom = a 44px pointer target */
  padding: 11px 4px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 15px;
  line-height: 22px;
}
.plat-hero__link .icon { width: 16px; height: 16px; flex: none; }

/* ============================================================
   CONCEPT DIAGRAM — CSS-only, lives inside the shared .panel shell
   Three stacked layers: channels -> agent ecosystem -> core system
   ============================================================ */
.plat-dia { display: flex; flex-direction: column; }

.plat-dia__band {
  padding: 12px 13px;
  border: 1px solid var(--nrl-carbon-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.plat-dia__band--core { background: rgba(255, 255, 255, 0.06); }

.plat-dia__title {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* soft, not faint: --nrl-on-carbon-faint lands at ~4.1:1 on this panel */
  color: var(--nrl-on-carbon-soft);
}

/* Layer connector: hairline rule with a label riding on it */
.plat-dia__link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nrl-on-carbon-soft);
}
.plat-dia__link::before,
.plat-dia__link::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nrl-carbon-line);
}

/* Core system: three equal tiles */
.plat-dia__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.plat-dia__tile {
  padding: 9px 6px;
  text-align: center;
  border: 1px solid var(--nrl-carbon-line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  color: var(--nrl-on-carbon);
}

/* Agent ecosystem: roster of roles, plus the human gate */
.plat-dia__agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.plat-dia__agent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--nrl-carbon-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--nrl-on-carbon);
}
.plat-dia__agent span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plat-dia__pip {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--radius-circle);
  background: var(--accent-lift);
}
.plat-dia__agent--human {
  border-color: color-mix(in srgb, var(--nrl-spark-yellow) 38%, var(--nrl-carbon));
  color: var(--nrl-spark-yellow);
}
.plat-dia__agent--human .plat-dia__pip { background: var(--nrl-spark-yellow); }

/* ============================================================
   WAYS IN — the two entry paths (build new / overhaul)
   Namespaced plat-* because site.css owns a different .path component.
   ============================================================ */
.plat-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 26px); }

.plat-way {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface-card);
  border: var(--border-hairline);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.plat-way:hover { box-shadow: var(--shadow-md); }

.plat-way__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.plat-way h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 12px; }
.plat-way__intro { font-size: 1rem; line-height: 1.6; color: var(--text-body); margin: 0 0 22px; max-width: 46ch; }

/* Included-in list (build new) */
.plat-way__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.plat-way__list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.plat-way__list .icon { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent-ink); }
.plat-way__list strong { color: var(--text-strong); font-weight: var(--fw-semibold); }

/* Phased route (overhaul) — numbered, with a connecting rule */
.plat-way__steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: phase; }
.plat-way__steps li {
  position: relative;
  counter-increment: phase;
  padding: 0 0 16px 40px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}
.plat-way__steps li:last-child { padding-bottom: 0; }
.plat-way__steps li::before {
  content: counter(phase, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}
.plat-way__steps li::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 21px;
  bottom: 4px;
  width: 1px;
  background: var(--border-subtle);
}
.plat-way__steps li:last-child::after { display: none; }
.plat-way__steps strong { display: block; color: var(--text-strong); font-weight: var(--fw-semibold); margin-bottom: 2px; }

.plat-way__note {
  margin: auto 0 0;
  padding: 14px 16px;
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.plat-way__note strong { color: var(--text-strong); }

/* The "Built for budgets" strip (.plat-strip / __item / __icon) is a
   shared component and lives in site.css — nothing about it was
   page-specific. This page supplies its accents via .plat-acc-*. */

/* ============================================================
   ECONOMICS — the saves / earns two-column band (#economics)
   Two card-like panels, each carrying its own plat-acc-* accent:
   green for the cost side, red for the revenue side. The strip
   underneath reuses .note-strip from site.css.
   ============================================================ */
/* The sticky header is ~70px tall, so an in-page jump to #economics or
   #compliance would tuck the eyebrow underneath it. Push the landing point down. */
#economics,
#compliance { scroll-margin-top: 88px; }

.plat-econ { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 26px); }

.plat-econ__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface-card);
  border: var(--border-hairline);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}

.plat-econ__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plat-econ__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--accent-ink);
}
.plat-econ__icon .icon { width: 23px; height: 23px; }
.plat-econ__col h3 { margin: 0; font-size: clamp(19px, 2.2vw, 23px); }

.plat-econ__lead { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 40ch; }

/* Dot markers rather than the check icons used by .plat-way__list —
   these are ledger lines, not a feature checklist. The dot is
   decoration, so --accent (not --accent-ink) is fine here. */
.plat-econ__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.plat-econ__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
}
.plat-econ__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  background: var(--accent);
}
.plat-econ__list strong { color: var(--text-strong); font-weight: var(--fw-semibold); }

/* .note-strip already carries margin-top: 20px; match the grid gap. */
.plat-econ__honest { margin-top: clamp(18px, 2.4vw, 26px); }

/* ============================================================
   PROOF — worked example band
   ============================================================ */
.plat-proof {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 44px);
  background: var(--surface-card);
  border: var(--border-hairline);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.plat-proof__copy { min-width: 0; }
.plat-proof__copy h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.plat-proof__copy p:not(.eyebrow) { font-size: 1rem; line-height: 1.6; color: var(--text-body); max-width: 52ch; }
.plat-proof__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.plat-proof__facts { list-style: none; margin: 0; padding: 0; min-width: 0; }
.plat-proof__facts li {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}
.plat-proof__facts li:last-child { border-bottom: 1px solid var(--border-subtle); }
.plat-proof__facts .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--accent-ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* Between 561px and 860px the nav wraps under the brand and the header
     measures ~104px — taller than the ~70px the 88px default assumes, so
     the #economics eyebrow landed under it. 120px clears it with margin. */
  #economics,
  #compliance { scroll-margin-top: 120px; }

  .plat-ways { grid-template-columns: 1fr; }
  .plat-econ { grid-template-columns: 1fr; }
  .plat-proof { grid-template-columns: 1fr; }
  .plat-hero h1 { max-width: none; }
}

@media (max-width: 560px) {
  /* The header stacks brand over a wrapping nav here, so it is far taller. */
  #economics,
  #compliance { scroll-margin-top: 168px; }
  .plat-hero__actions .btn { width: 100%; justify-content: center; }
  .plat-proof__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .plat-dia__agents { grid-template-columns: 1fr; }
}

/* Motion: this page adds no keyframe animation. The transitions above
   are already neutralised by the prefers-reduced-motion block in
   main.css; restated here for anything loading this file standalone. */
@media (prefers-reduced-motion: reduce) {
  .plat-way,
  .plat-link { transition: none; }
  .plat-link:hover { gap: 7px; }
}
