/* Components used by the inner pages (platform, solutions, why, company, demo). */

/* Page hero: shorter than the home hero, no product shot. */
.phero { position: relative; overflow: hidden; }
.phero .wrap { position: relative; padding-top: 96px; padding-bottom: 80px; }
.phero h1 { font-size: clamp(42px, 5.2vw, 72px); max-width: 12em; }
.phero .sub { margin-top: 22px; }
.phero .actions { margin-top: 30px; }
.phero .hero-glow { top: 0; }

/* In-page jump bar under a page hero. */
.jumps { position: sticky; top: 72px; z-index: 5; background: rgba(6, 7, 26, 0.8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.jumps ul { display: flex; gap: 8px 22px; flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); list-style: none; }
.jumps a { font: 600 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.jumps a:hover { color: #fff; }
.jumps a.on { color: #fff; border-color: var(--cyan); }

/* Feature band: copy beside a visual, alternating sides. */
.feat, .section[id] { scroll-margin-top: 130px; }
.feat { position: relative; padding: 96px 0; }
.feat + .feat { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.feat .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feat:nth-of-type(even) .feat-copy { order: 2; }
.feat .sub { margin-top: 16px; }
.points { margin: 22px 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--border); font-size: 15.5px; color: var(--ink-soft); }
.points li:last-child { border-bottom: 1px solid var(--border); }
.points li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.feat .eyebrow { margin-bottom: 14px; }
.feat .regs { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.feat .regs a { color: #c6bfff; font-weight: 600; text-decoration: none; }
.feat .regs a:hover { color: #fff; }
.feat .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; font-size: 15px; color: #c6bfff; text-decoration: none; }
.feat .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Demo page: a two-column hero, so the heading is sized for half a column. */
.demo h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
#contact.demo { padding-top: 0; }
#contact.demo .wrap { padding-top: 64px; }

/* Visual panel: a surface for the diagram rows. */
.panel { padding: 24px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); }
.panel.dark { background: rgba(4, 5, 26, 0.7); border-color: var(--border-strong); }
.panel .cap { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }
.panel .vis-shot { height: 360px; border-radius: 12px; overflow: hidden; background: rgba(10, 12, 40, 0.9); padding: 8px 0 0 8px; border: 1px solid var(--border); }
.panel .vis-shot img { display: block; width: 150%; max-width: none; margin-top: -9%; margin-left: -3%; }

/* Diagram rows reused across pages. */
.vis-lease { display: grid; gap: 10px; }
.vis-lease .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(6, 7, 26, 0.55); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; }
.vis-lease .row .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.vis-lease .row .bar i { display: block; height: 100%; background: var(--cyan); border-radius: 4px; }
.vis-lease .row.off { color: var(--ink-faint); }
.vis-lease .row.off .bar i { width: 0; }
.vis-chain { display: flex; align-items: stretch; gap: 8px; font-family: var(--mono); font-size: 12px; }
.vis-chain .node { flex: 1 1 auto; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: #fff; white-space: nowrap; }
.vis-chain .node small { display: block; margin-top: 4px; font-family: var(--body); font-size: 11.5px; line-height: 1.35; color: var(--ink-faint); white-space: normal; }
.vis-chain .arrow { flex: none; align-self: center; color: var(--cyan); font-size: 16px; }
.vis-chain .node.ok { border-color: rgba(34, 211, 238, 0.6); }
.vis-session { display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; }
.vis-session .track { position: relative; height: 44px; border-radius: 10px; background: rgba(6, 7, 26, 0.55); border: 1px solid var(--border); overflow: hidden; }
.vis-session .track i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(99, 80, 247, 0.35), rgba(99, 80, 247, 0.7)); }
.vis-session .track span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #fff; }
.vis-session .track em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-faint); }

/* Key/value rows: a fact per line. */
.kv { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13.5px; }
.kv li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); }
.kv li:first-child { border-top: 0; }
.kv b { font-weight: 500; color: var(--ink-faint); }
.kv .ok { color: var(--cyan); }

/* Comparison table. */
.cmp { width: 100%; margin-top: 56px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.cmp th, .cmp td { padding: 20px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); font-size: 15.5px; }
.cmp th { font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; border-top: 0; background: var(--surface-2); }
.cmp td:first-child { width: 22%; font-weight: 600; color: #fff; }
.cmp td:nth-child(2) { color: var(--ink-soft); }
.cmp td:nth-child(3) { background: rgba(34, 211, 238, 0.06); color: #fff; }
.cmp th:nth-child(3) { color: var(--cyan); }

/* Architecture diagram. */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.5fr) 56px minmax(0, 1fr); gap: 0; align-items: stretch; margin-top: 56px; }
.arch .col { display: grid; gap: 12px; align-content: start; }
.arch .box { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.arch .box b { display: block; font-family: var(--display); font-size: 16px; }
.arch .box span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
.arch .core { padding: 24px; border-radius: 20px; background: linear-gradient(180deg, rgba(79, 139, 255, 0.18), rgba(99, 80, 247, 0.06)); border: 1px solid var(--border-strong); color: #fff; }
.arch .core b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.arch .core ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; color: var(--ink-soft); }
.arch .core ul li::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cyan); }
.arch .core .keep { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--ink-faint); }
.arch .arrow { display: grid; place-items: center; color: #9d93ff; font-size: 26px; }

/* Values: three short statements. */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.values div { padding: 28px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); }
.values h3 { font-size: 22px; }
.values p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* Card grids that read left-aligned inside a centred section. */
.grid-3.left, .grid-4.left { text-align: left; }

/* Framework grid at the top of the compliance page: one tile per framework, linking to its table. */
.fw { padding: 22px; }
.fw h3 { font-size: 18px; }
.fw p { margin-top: 8px; font-size: 14px; }
.fw .more { margin-top: 14px; font-size: 14px; }

/* Outlined problem cards on the platform page. */
.card.outline { background: none; }
.card[id] { scroll-margin-top: 130px; }

/* Tighter section rhythm for pages that are mostly tables. */
.section.tight { padding: 72px 0; }
.section.tight .cmp { margin-top: 40px; }
.legend, .note { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); max-width: 60em; }
.phero .note { margin-top: 26px; }

/* Supported-systems matrix: a cmp table with a check per cell, scrollable when narrow. */
.scroll { overflow-x: auto; margin-top: 40px; }
.scroll .cmp { margin-top: 0; min-width: 680px; }
.cmp.matrix th, .cmp.matrix td { padding: 16px 18px; font-size: 14.5px; }
.cmp.matrix th { font-size: 16px; }
.cmp.matrix td { color: var(--ink-soft); }
.cmp.matrix td:first-child { color: #fff; }
.cmp.matrix td:nth-child(3), .cmp.two td:nth-child(3) { background: none; color: var(--ink-soft); }
.cmp.matrix th:nth-child(3) { color: inherit; }
.cmp .yes { color: var(--cyan); font-weight: 600; }
.cmp .no { color: var(--ink-faint); }
.cmp.two th:nth-child(2), .cmp.two td:nth-child(2) { color: var(--ink-soft); }
.cmp.two th:nth-child(2) { color: #fff; }

/* Tables of one kind share one column grid, so columns line up table to table down the page. */
.section.tight .cmp { table-layout: fixed; }
.section.tight .cmp:not(.matrix):not(.two) th:nth-child(1) { width: 17%; }
.section.tight .cmp:not(.matrix):not(.two) th:nth-child(2) { width: 31%; }
.section.tight .cmp:not(.matrix):not(.two) th:nth-child(3) { width: 52%; }
/* A control's title leads its "What it asks" cell, so the control column stays short. */
.cmp td:nth-child(2) b { display: block; font-weight: 600; color: #fff; }
.cmp td:nth-child(2) b + span { display: block; margin-top: 4px; }

/* Official-source link under a framework heading, and the group header for a run of sections. */
.src { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: #c6bfff; text-decoration: none; }
.src:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.src + .src { margin-left: 28px; }
.group-head { padding: 72px 0 0; }
.group-head .sub { margin-top: 14px; }

/* Company contact block: a few plain lines on a panel. */
.contact { margin-top: 40px; padding: 28px; max-width: 640px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.contact p + p { margin-top: 12px; }
.contact b { color: #fff; font-weight: 600; }
.contact a { color: #c6bfff; text-decoration: none; }
.contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.section.tight .contact { margin-top: 0; }
#details.section.tight { padding-top: 0; }

/* Long-form legal pages: a readable column of headings, paragraphs and lists on the dark theme. */
.prose { max-width: 70ch; }
.prose .meta { margin-bottom: 40px; font-size: 14px; color: var(--ink-faint); }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.prose h3 { margin-top: 28px; font-size: 19px; }
.prose p, .prose li { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose a { color: #c6bfff; text-decoration: none; }
.prose a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose b { color: #fff; font-weight: 600; }
.prose .ph { color: #fff; background: rgba(34, 211, 238, 0.12); border: 1px dashed rgba(34, 211, 238, 0.45); border-radius: 6px; padding: 0 6px; font-family: var(--mono); font-size: 0.9em; }
.prose h2[id] { scroll-margin-top: 100px; }
.cmp.matrix th:nth-child(1) { width: 15%; }
.cmp.matrix th:nth-child(2) { width: 33%; }
.cmp.matrix th:nth-child(n+3) { width: 17.33%; }
.cmp.two th:nth-child(1) { width: 25%; }
.cmp.two th:nth-child(2) { width: 75%; }

/* Numbered weeks on the proof-of-value page, on top of the .prod card grid. */
.weeks ul { text-align: left; }
.weeks li { position: relative; padding-top: 28px; }
.weeks .num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--brand); font: 700 15px/1 var(--display); color: #fff; }

/* Numbered success criteria: a list the buyer agrees to, in the style of the week badges. */
.checklist { margin: 48px 0 0; padding: 0; list-style: none; max-width: 760px; counter-reset: crit; }
.checklist li { position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--border); font-size: 17px; color: #fff; counter-increment: crit; }
.checklist li:last-child { border-bottom: 1px solid var(--border); }
.checklist li::before { content: counter(crit); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); font: 700 13px/1 var(--display); color: #fff; }

/* Two panels side by side. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.pair .panel h3 { font-size: 20px; }
.pair .points { margin-top: 16px; }

/* The brand band with two actions. */
.band .actions { flex: none; }

@media (max-width: 1080px) {
  .feat .wrap { grid-template-columns: 1fr; gap: 36px; }
  .pair { grid-template-columns: 1fr; }
  .feat:nth-of-type(even) .feat-copy { order: 0; }
  .arch { grid-template-columns: 1fr; }
  .arch .arrow { transform: rotate(90deg); padding: 8px 0; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .jumps { display: none; }
}
@media (max-width: 560px) {
  .feat { padding: 64px 0; }
  .cmp th, .cmp td { padding: 14px 10px; font-size: 14px; }
  .kv li { grid-template-columns: 1fr; gap: 2px; }
  .vis-chain { flex-direction: column; align-items: stretch; }
  .vis-chain .node { white-space: normal; }
  .vis-chain .arrow { transform: rotate(90deg); }
  /* On a phone the control reference needs more of the row so it stays on one line. */
  .section.tight .cmp:not(.matrix):not(.two) th:nth-child(1) { width: 24%; }
  .section.tight .cmp:not(.matrix):not(.two) th:nth-child(2) { width: 30%; }
  .section.tight .cmp:not(.matrix):not(.two) th:nth-child(3) { width: 46%; }
}

/* Print: the compliance page saved as a PDF reads as a plain black-on-white document. */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  body::before, .glow, .hero-glow, .jumps, .tabs, .top .nav, .top .actions, .menu-btn, .phero .actions, .brandband, .foot .cols > div:not(.about), .foot .about .btn { display: none !important; }
  .top { position: static; background: none; backdrop-filter: none; border-bottom: 1px solid #999; }
  .top .wrap { height: 56px; }
  .wordmark, .foot, .sub, .eyebrow, .legend, .note, .cmp td, .cmp th, h1, h2, h3, a { color: #000; }
  .hl { background: none; color: #000; -webkit-text-fill-color: #000; }
  .phero .wrap { padding: 24px 0 8px; }
  .phero h1 { font-size: 24pt; }
  .section, .section.tight { padding: 18px 0; break-inside: avoid; }
  .section-head .sub { margin-top: 6px; }
  h2 { font-size: 16pt; }
  .cmp, .section.tight .cmp { margin-top: 12px; border-color: #999; border-radius: 0; }
  .cmp th, .cmp td { padding: 8px 10px; font-size: 10.5pt; border-color: #999; background: none; }
  .cmp th { font-size: 11pt; }
  .cmp td:first-child, .cmp td:nth-child(2), .cmp td:nth-child(3), .cmp th:nth-child(3) { color: #000; background: none; }
  tr { break-inside: avoid; }
  .foot { background: none; border-top: 1px solid #999; padding: 16px 0 0; }
  .foot .cols { grid-template-columns: 1fr; }
  .foot .legal { margin-top: 12px; border-color: #999; }
  a[href]::after { content: none; }
  /* The official-source link prints its address, so a saved PDF stays traceable. */
  .src { color: #000; font-size: 9.5pt; }
  .src::after { content: " " attr(href); font-weight: 400; }
  .group-head { padding-top: 18px; }
  .cmp td:nth-child(2) b { color: #000; }
}

/* A real console screenshot in a feature band. */
.panel.shotpanel { padding: 10px; }
.panel.shotpanel img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
.panel.shotpanel .cap { margin: 12px 4px 2px; }
.feat.wide-shot .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; }
.feat.wide-shot:nth-of-type(even) .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.panel.shotpanel .zoom { display: block; cursor: zoom-in; }
.panel.shotpanel .zoom:hover img { border-color: var(--border-strong); }
@media (max-width: 1080px) {
  .feat.wide-shot .wrap, .feat.wide-shot:nth-of-type(even) .wrap { grid-template-columns: 1fr; }
}
