/* Every page except the home page: service pages, methodology, guides, industries, comparisons, FAQ, About,
   Privacy and the translated pages. Loaded after base.css. Light hero, a 740px reading column, a navy CTA panel. */

/* ---------- Hero ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse 560px 260px at 18% 0%, var(--glow), transparent 70%),
    radial-gradient(#E4E4EA 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero-inner { display: grid; justify-items: start; gap: 16px; }
.page-hero h1 { max-width: 20em; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; }
.crumbs { font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.lead { max-width: 40em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.updated { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.byline a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--signal); }
.byline-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.byline-avatar-mono { display: grid; place-items: center; font-weight: 700; color: var(--ember); background: var(--tint); }

.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }

/* ---------- Reading column ---------- */
.prose { max-width: 740px; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--ink); }
.prose h3 { margin: 32px 0 10px; font-size: 1.25rem; color: var(--ink); }
.prose p { margin: 0 0 16px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0 0 8px; padding-left: 4px; line-height: 1.65; }
.prose li::marker { color: var(--ember); font-weight: 700; }
.prose li > p { margin-bottom: 8px; }
.prose li > ul, .prose li > ol { margin: 8px 0 8px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ember); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--ink); }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--border); }
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--signal); border-radius: 0 12px 12px 0; background: var(--tint); color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 0.9em; color: var(--ink); }

/* Checklists: a visual box, no form controls */
.prose li.todo { position: relative; list-style: none; margin-left: -1.4rem; padding-left: 2.1rem; }
.prose li.todo::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px;
  border: 2px solid var(--ink-2); border-radius: 5px; background: var(--white);
}

/* Tables scroll inside their own box on phones */
.table-wrap { margin: 24px 0 28px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.table-wrap thead th { padding: 12px 16px; background: var(--surface); text-align: left; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--border); }
.table-wrap td, .table-wrap tbody th { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--border-soft); }
.table-wrap tbody th { text-align: left; font-weight: 700; color: var(--ink); }
.table-wrap tbody tr:first-child > * { border-top: 0; }
.table-wrap tr > :first-child { min-width: 8.5rem; }

/* "What's ready" table on the FAQ */
.avail { margin: 24px 0 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); overflow-x: auto; }
.avail-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.avail-table caption { padding: 14px 20px; text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.avail-table th, .avail-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border-soft); }
.avail-table thead th { border-top: 0; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.avail-table tbody th { color: var(--ink); font-weight: 700; }
.av-note { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 400; line-height: 1.45; color: var(--muted); }

/* Status words, the same four as the console: Live, Recorded, Simulated, Next (plus Preview) */
.status {
  display: inline-block; padding: 3px 10px; border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; white-space: nowrap;
}
.st-live { background: var(--ink); color: var(--white); }
.st-recorded { background: var(--tint); color: var(--ember); }
.st-simulated { background: var(--white); color: var(--ember); border-color: var(--ember); }
.st-next { background: var(--surface-2); color: var(--ink-2); border: 1px dashed #9A9EAD; }
.st-preview { background: var(--white); color: var(--ink); border-color: var(--ink-2); }
.cell-note { display: block; margin-top: 8px; font-size: 0.875rem; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.avail-table td .status + .cell-note { margin-top: 8px; }

/* Platform page: legend and module cards */
.legend { display: grid; gap: 10px; margin: 20px 0 8px; }
.legend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink-2); font-size: 0.9375rem; }
.legend .status { min-width: 5.5rem; text-align: center; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.rm-col { padding: 24px 24px 12px; background: var(--white); border: 1px solid var(--border-soft); border-top: 4px solid var(--ink); border-radius: var(--radius-card); }
.rm-preview { border-top-color: var(--signal); }
.rm-next { border-top-color: var(--border-strong); }
.rm-col h3 { margin: 0; font-size: 1.75rem; letter-spacing: -0.025em; }
.rm-sub { margin: 4px 0 16px; font-size: 0.875rem; color: var(--muted); }
.rm-col ul { display: grid; }
.rm-col li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); font-size: 0.9375rem; line-height: 1.4; color: var(--ink); }
.rm-col li .status { flex: none; margin-top: 1px; }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }

/* Console viewer: one frame, five real views (lab data), CSS-only tabs (radio inputs, no JavaScript) */
.viewer {
  position: relative; z-index: 1; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(15, 18, 34, 0.12); overflow: hidden;
}
.viewer-input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border-soft); overflow-x: auto; }
.viewer-tabs { display: flex; flex: 1; gap: 4px; min-width: 0; }
.viewer-tabs label { flex: none; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius-pill); color: var(--muted); font-size: 0.875rem; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.viewer-tabs label:hover { color: var(--ink); background: var(--white); border-color: var(--border); }
.viewer-tag { flex: none; padding-left: 8px; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.viewer-panel { display: none; margin: 0; }
.viewer-panel img { display: block; width: 100%; height: auto; }
.viewer-scroll { overflow-x: auto; }
.viewer-narrow .viewer-scroll img { width: min(100%, 640px); margin-inline: auto; }
.viewer-panel figcaption { padding: 14px 20px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 1rem; line-height: 1.5; }
.viewer-panel figcaption strong { color: var(--ink); }
#v-overview:checked ~ .viewer-panels #pn-overview,
#v-conversation:checked ~ .viewer-panels #pn-conversation,
#v-passport:checked ~ .viewer-panels #pn-passport,
#v-languages:checked ~ .viewer-panels #pn-languages,
#v-replay:checked ~ .viewer-panels #pn-replay { display: block; }
#v-overview:checked ~ .viewer-bar label[for="v-overview"],
#v-conversation:checked ~ .viewer-bar label[for="v-conversation"],
#v-passport:checked ~ .viewer-bar label[for="v-passport"],
#v-languages:checked ~ .viewer-bar label[for="v-languages"],
#v-replay:checked ~ .viewer-bar label[for="v-replay"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
#v-overview:focus-visible ~ .viewer-bar label[for="v-overview"],
#v-conversation:focus-visible ~ .viewer-bar label[for="v-conversation"],
#v-passport:focus-visible ~ .viewer-bar label[for="v-passport"],
#v-languages:focus-visible ~ .viewer-bar label[for="v-languages"],
#v-replay:focus-visible ~ .viewer-bar label[for="v-replay"] { outline: 3px solid var(--ember); outline-offset: 2px; }
@media (max-width: 760px) { .viewer-bar { flex-wrap: wrap; row-gap: 6px; } .viewer-tabs { flex: 1 1 100%; overflow-x: auto; } .viewer-tag { padding-left: 8px; } .viewer-scroll img { min-width: 720px; } .viewer-narrow .viewer-scroll img { min-width: 560px; margin-inline: 0; } }

/* The viewer overlaps the bottom edge of the hero (the framed-product-cropped-by-the-fold pattern) */
.doc:has(.viewer) .page-hero { padding-bottom: clamp(96px, 12vw, 150px); }
.doc:has(.viewer) .page-body { padding-top: 0; }
.wide > .viewer { margin-top: calc(-1 * clamp(80px, 10vw, 128px)); }

/* Optional video (only built when public/video/<name>.mp4 exists) */
.gal { margin: 32px 0 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 24px 64px rgba(15, 18, 34, 0.08); overflow: hidden; }
.gal video { display: block; width: 100%; height: auto; background: var(--ink); }
.gal figcaption { padding: 14px 20px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 1rem; }
.gal figcaption strong { color: var(--ink); }
/* Pages with their own full-width layout (About, Platform) */
.wide > h2 { margin: 64px 0 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--ink); }
.wide > h2:first-child { margin-top: 0; }
.wide > p { max-width: 46rem; margin: 0 0 16px; color: var(--ink-2); line-height: 1.7; }
.wide > p a { color: var(--ember); text-underline-offset: 3px; }
.wide .avail { margin-top: 24px; }
.wide .avail-table { min-width: 720px; table-layout: fixed; }
.wide .avail-table thead th:first-child { width: 28%; }
.wide .avail-table tbody th { padding-block: 18px; }
.prose .avail-foot, .avail-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--border-soft); font-size: 0.875rem; color: var(--muted); background: var(--surface); }

/* ---------- About: founders and values ---------- */
.founders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.founder { display: grid; align-content: start; gap: 20px; padding: 28px; background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.avatar { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; background: var(--surface-2); }
.avatar-mono { display: grid; place-items: center; font-size: 1.75rem; font-weight: 700; color: var(--ember); background: var(--tint); }
.founder h3 { font-size: 1.375rem; }
.founder-role { margin-top: 4px; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ember); }
.founder-bio { margin-top: 12px; color: var(--ink-2); line-height: 1.6; }
.founder-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9375rem; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.founder-link:hover { color: var(--ember); }
.about-values { margin-top: 72px; }
.about-values h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.values li { display: grid; align-content: start; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.values p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 960px) { .founders { grid-template-columns: 1fr; } .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Call to action, related pages ---------- */
.doc-cta {
  display: grid; justify-items: center; gap: 20px; margin-top: clamp(56px, 8vw, 88px); text-align: center;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px);
  border-radius: 28px; color: var(--white); background-color: var(--ink);
  background-image: radial-gradient(ellipse 520px 240px at 50% 120%, var(--glow-deep), transparent 70%);
}
.doc-cta h2 { color: var(--white); font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.doc-cta p { max-width: 36em; font-size: 1.0625rem; line-height: 1.55; color: var(--on-ink-muted); }

.related { margin-top: 56px; }
.related h2 { margin-bottom: 16px; font-family: var(--mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related a {
  display: block; height: 100%; padding: 16px 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--white); color: var(--ink); font-weight: 600; line-height: 1.4; text-decoration: none;
}
.related a:hover { border-color: var(--ink-2); background: var(--surface); }
@media (max-width: 700px) { .related ul { grid-template-columns: 1fr; } }
