/* ============================================================================
   Interior pages — How It Operates + Capabilities
   Shared content styles for the two interior pages. All chrome (nav, page
   head, CTA band, footer) comes from base.css; only page content lives here.
   Desktop reference width 1160px; px values from the design handoff.
   ========================================================================== */

/* Both prototypes close the page head 24px above the content section. */
.page-head { padding-bottom: 24px; }

/* ============================================================================
   How It Operates — the eight principle articles
   ========================================================================== */

.principles { padding: 48px 0 64px; }
.principles .wrap { display: flex; flex-direction: column; gap: 56px; }

/* Article = right-aligned ghost number (90px column) + bordered body column */
.principle { display: flex; gap: 36px; }
.principle__no {
  font-family: var(--serif);
  font-size: 44px; font-weight: 600; line-height: 1.1;
  color: var(--accentSoft2);
  width: 90px; flex: none; text-align: right;
}
.principle__body {
  flex: 1; max-width: 720px;
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.principle__body h2 {
  font-size: 27px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em;
}
.principle__body > p {
  font-size: 15.5px; line-height: 1.7;
  color: var(--inkSoft);
  margin-top: 12px;
}

/* ---- 01: danger-tint callout (border hex is a one-off from the prototype) */
.callout--danger {
  margin-top: 16px;
  background: var(--dangerSoft);
  border: 1px solid #E5C9BC;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px; line-height: 1.6; color: var(--inkSoft);
  max-width: 34em;
}
.callout--danger strong { color: var(--danger); }

/* ---- 02 + 04: chip rows ------------------------------------------------- */
.chip-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Provenance chips (02) reuse .tag--* hues at this page's larger size */
.chip-row .tag { font-size: 11px; padding: 3px 10px; }
.chip-row .tag--verified { color: var(--accentDeep); }

/* Matter-workspace chips (04) */
.kchip {
  font-size: 11.5px; font-weight: 600; color: var(--inkSoft);
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 11px;
}
.kchip--sage {
  color: var(--accentDeep);
  background: var(--accentSoft);
  border-color: var(--accentSoft2);
}

/* ---- 05: mini drafting-pipeline cards ------------------------------------ */
.pipeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px;
}
.pipeline__step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
}
.pipeline__n { font-size: 10px; font-weight: 700; color: var(--mut); }
.pipeline__t {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  margin-top: 3px;
}
.pipeline__d { font-size: 12px; line-height: 1.5; color: var(--inkSoft); margin-top: 4px; }

/* ---- 08: mini task-list card --------------------------------------------- */
.task-card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 30em;
  display: flex; flex-direction: column; gap: 9px;
}
.task-card__label {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--inkSoft);
}
.task-card__label--amber { color: var(--amber); }
.task-card__label:not(:first-child) { margin-top: 2px; }
.task-card__row {
  display: flex; gap: 9px; align-items: center;
  font-size: 12.5px; color: var(--inkSoft);
}
.task-card__row--amber {
  color: var(--ink);
  background: var(--amberSoft);
  border: 1px solid var(--amberLine);
  border-radius: 8px;
  padding: 8px 11px;
}
.task-card .livedot { background: var(--amber); }   /* waiting-on-you pulse */
.task-card .spinner { width: 11px; height: 11px; }  /* prototype runs it 11px */
.task-card__check { color: var(--accent); font-weight: 700; }

/* ============================================================================
   Capabilities — the 9-card grid + note card
   ========================================================================== */

.section-caps { padding: 48px 0 72px; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

/* Each card sits inside a .reveal wrapper so the scroll-reveal transition
   (opacity/transform, 760ms + stagger) never fights the card's own quick
   hover-lift transition. */
.cap {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cap:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
}
/* Coarse pointers: the lift becomes a quick press instead */
@media (hover: none), (pointer: coarse) {
  .cap:active { transform: scale(0.99); }
}
.cap h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-top: 14px; }
.cap > p { font-size: 14px; line-height: 1.65; color: var(--inkSoft); margin-top: 10px; }
.cap ul {
  margin: 12px 0 0; padding-left: 18px;
  font-size: 13px; line-height: 1.7; color: var(--inkSoft);
}

/* ---- Category chips ------------------------------------------------------- */
.chip {
  display: inline-block;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 9px;
  padding: 3px 10px;
}
.chip--sage   { color: var(--accentDeep); background: var(--accentSoft); }
.chip--danger { color: var(--danger);     background: var(--dangerSoft); }
.chip--blue   { color: var(--blue);       background: var(--blueSoft); }
.chip--pit    { color: var(--pit);        background: var(--pitSoft); }
.chip--amber  { color: var(--amber);      background: var(--amberSoft); }

/* ---- Sage-tint note card below the grid ------------------------------------ */
.note-card {
  max-width: 720px;
  margin: 44px 0 0;
  background: var(--accentSoft);
  border: 1px solid var(--accentSoft2);
  border-radius: var(--r-card);
  padding: 18px 22px;
  font-size: 14.5px; line-height: 1.65; color: var(--inkSoft);
}
.note-card strong { color: var(--accentDeep); }

/* ============================================================================
   Responsive
   ========================================================================== */

/* Mobile (≤760px) — values from the mobile prototype's interior screens.
   Global chrome (wrap 20px, sec-head 18px, page-head h1 32px, cta-band,
   footer) is handled in base.css. */
@media (max-width: 760px) {
  /* Prototype closes the page head 20px above the content section */
  .page-head { padding-bottom: 20px; }

  /* ---- How It Operates ---------------------------------------------- */
  .principles { padding: 20px 0 48px; }
  .principles .wrap { gap: 36px; }

  /* The 90px number column folds: the ghost numeral sits above the H2
     inside the same left-bordered block */
  .principle {
    flex-direction: column; gap: 6px;
    border-left: 1px solid var(--line);
    padding-left: 18px;
  }
  .principle__no {
    width: auto; text-align: left;
    font-size: 26px; line-height: 1.2;
  }
  .principle__body { border-left: 0; padding-left: 0; max-width: none; }
  .principle__body h2 { font-size: 21px; }
  .principle__body > p { font-size: 14px; margin-top: 9px; }

  /* Asides go full-width */
  .callout--danger {
    margin-top: 12px;
    padding: 11px 13px;
    font-size: 12.5px;
    max-width: none;
  }
  .chip-row { margin-top: 12px; }
  .pipeline { grid-template-columns: 1fr; margin-top: 12px; }

  .task-card {
    margin-top: 12px;
    padding: 12px 14px;
    gap: 8px;
    max-width: none;
  }
  .task-card__label { font-size: 9px; }
  .task-card__row { font-size: 12px; gap: 8px; }
  .task-card__row--amber { padding: 7px 10px; }
  .task-card .livedot { width: 6px; height: 6px; }
  .task-card .spinner { width: 10px; height: 10px; }

  /* ---- Capabilities -------------------------------------------------- */
  .section-caps { padding: 20px 0 48px; }

  .cap-grid { grid-template-columns: 1fr; gap: 12px; }
  .cap { padding: 20px 22px; }
  .cap:active { transform: scale(0.99); box-shadow: none; }
  .cap h3 { font-size: 18px; margin-top: 11px; }
  .cap > p { font-size: 13px; line-height: 1.6; margin-top: 8px; }

  .chip { font-size: 9.5px; padding: 3px 9px; }

  .note-card {
    margin-top: 12px;
    padding: 14px 16px;
    font-size: 13px; line-height: 1.6;
    max-width: none;
  }
}
