/* ==========================================================================
   pages.css  -  styles for solutions, demo, roadmap, FAQ, contact, legal, 404.
   Owned by the "pages" agent. Everything is prefixed pg- so it can't collide
   with main.css or other area stylesheets. Uses only tokens from main.css.
   ========================================================================== */

/* Let grid children shrink so wide tables scroll inside their panel instead of widening the page */
.feature-row > *, .pg-hero-grid > *, .pg-step-grid > *, .pg-form-grid > *, .pg-two > *, .pg-legal > *, .pg-faq-layout > * { min-width: 0; }

/* ---------- Hero helpers ---------- */
.pg-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pg-hero-grid h1 { max-width: none; }
.page-hero:not(.center) .hero-meta { justify-content: flex-start; margin-top: 28px; }
.page-hero .btn-row { margin-top: 28px; }
@media (max-width: 960px) { .pg-hero-grid { grid-template-columns: 1fr; } }
.pg-hero-meta-note { display: block; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Generic small pieces ---------- */
.pg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  font-family: var(--mono); font-size: 0.74rem; color: var(--text-2); white-space: nowrap; line-height: 1.5;
}
.pg-chip.g { color: var(--accent-hi); border-color: rgba(196, 255, 77,0.3); background: var(--accent-wash); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
  text-align: center; color: var(--muted); background: rgba(255,255,255,0.015);
}
.pg-empty .i { width: 26px; height: 26px; color: var(--muted); margin: 0 auto 12px; display: block; }
.pg-empty h3 { color: var(--text-2); font-size: 1.1rem; margin: 0 0 8px; }
.pg-empty p { max-width: 560px; margin: 0 auto; font-size: 0.92rem; }
.pg-kicker { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-hi); letter-spacing: 0.04em; }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .pg-two { grid-template-columns: 1fr; } }
.pg-card-list { margin-top: 14px; display: grid; gap: 8px; }
.pg-card-list li { font-size: 0.88rem; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.pg-card-list li .i { width: 14px; height: 14px; margin-top: 5px; color: var(--accent-hi); }
.pg-link-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }

/* ---------- Blueprint panels (illustrative visuals) ---------- */
.pg-vis { position: relative; min-width: 0; }
.pg-bp {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  background-color: #0a1621;
  background-image:
    linear-gradient(rgba(56,189,248,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.pg-bp svg { width: 100%; height: auto; position: relative; }
.pg-tag {
  position: absolute; z-index: 4; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  color: var(--violet); border: 1px solid rgba(167,139,250,0.35); background: rgba(10,22,33,0.85);
}

/* App-window chrome used in demo + hero visuals */
.pg-win { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.pg-win-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #0c1217; border-bottom: 1px solid var(--line); font-size: 0.74rem; color: var(--muted); }
.pg-win-bar .dots { display: flex; gap: 6px; }
.pg-win-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #26323b; display: block; }
.pg-win-bar .ttl { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-menu { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 7px 14px; border-bottom: 1px solid var(--line); background: #0f161c; font-size: 0.72rem; color: var(--text-2); }
.pg-win-main { display: grid; grid-template-columns: 112px 1fr; min-height: 0; }
.pg-win-side { border-right: 1px solid var(--line); background: #0d1318; padding: 10px 8px; display: grid; gap: 8px; align-content: start; }
.pg-thumb { border: 1px solid var(--line-2); border-radius: 5px; padding: 6px 6px 5px; background: #0a1621; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); }
.pg-thumb i { display: block; height: 34px; margin-bottom: 4px; border-radius: 2px; background:
  linear-gradient(#7fa6c4 0 0) 14% 30%/58% 1px no-repeat,
  linear-gradient(#7fa6c4 0 0) 14% 60%/72% 1px no-repeat,
  linear-gradient(#7fa6c4 0 0) 14% 85%/40% 1px no-repeat,
  rgba(127,166,196,0.06); }
.pg-thumb.on { border-color: rgba(196, 255, 77,0.6); color: var(--accent-hi); }
.pg-win-canvas { min-width: 0; }
.pg-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: #0c1217; font-size: 0.72rem; color: var(--muted); }
.pg-status .sp { flex: 1; }
.pg-scale { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: 0.68rem; border: 1px solid var(--line-2); }
.pg-scale.warn { color: var(--warn); border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.pg-scale.ok { color: var(--accent-hi); border-color: rgba(196, 255, 77,0.4); background: var(--accent-wash); }
.pg-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #0d1318; }
.pg-tool { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 0.72rem; color: var(--text-2); }
.pg-tool .i { width: 13px; height: 13px; }
.pg-tool.on { color: var(--accent-hi); border-color: rgba(196, 255, 77,0.45); background: var(--accent-wash); }
@media (max-width: 640px) { .pg-win-main { grid-template-columns: 1fr; } .pg-win-side { display: none; } }

/* SVG drawing language */
.pg-ln { fill: none; stroke: #7fa6c4; stroke-width: 2.4; stroke-linecap: square; }
.pg-ln.th { stroke-width: 3.4; }
.pg-ln.dim { stroke: #5f86a3; stroke-width: 1.4; }
.pg-tx { fill: #5f86a3; font: 500 12px var(--mono); letter-spacing: 0.04em; }
.pg-tx.g { fill: #C4FF4D; font-weight: 600; }
.pg-meas { fill: none; stroke: #A6FF00; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pg-meas-fill { fill: rgba(166, 255, 0,0.22); stroke: #A6FF00; stroke-width: 2.4; stroke-dasharray: 8 5; }
.pg-pillbox { fill: #04170b; stroke: #A6FF00; stroke-width: 1.5; }
.pg-pilltx { fill: #C4FF4D; font: 600 15px var(--mono); }
.pg-dot { fill: #0a1621; stroke: #C4FF4D; stroke-width: 2.4; }
.pg-red { stroke: #ef4444; fill: none; stroke-width: 2.4; }
.pg-blue { stroke: #3b82f6; fill: none; stroke-width: 2.4; }
.pg-gray { stroke: #94a3b8; fill: none; stroke-width: 2.4; }
.pg-amber { stroke: #f59e0b; fill: none; stroke-width: 2.2; }

/* SVG animations (restart when a tab panel is un-hidden) */
.pg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pgDraw 1.3s var(--ease) var(--d, 0s) forwards; }
@keyframes pgDraw { to { stroke-dashoffset: 0; } }
.pg-pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pgPop 0.5s var(--ease) var(--d, 0s) forwards; }
@keyframes pgPop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
.pg-fade { opacity: 0; animation: pgFade 0.7s ease var(--d, 0s) forwards; }
@keyframes pgFade { to { opacity: 1; } }
.pg-rowin { opacity: 0; transform: translateY(6px); animation: pgRow 0.5s var(--ease) var(--d, 0s) forwards; }
@keyframes pgRow { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pg-draw { animation: none; stroke-dashoffset: 0; }
  .pg-pop, .pg-fade, .pg-rowin { animation: none; opacity: 1; transform: none; }
}

/* ---------- Day-in-the-life strip ---------- */
.pg-day { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.pg-day::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line-2) 90%); }
.pg-day-item { position: relative; padding: 32px 18px 0 0; }
.pg-day-item::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.pg-day-time { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-hi); display: block; margin-bottom: 8px; }
.pg-day-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pg-day-item p { font-size: 0.88rem; margin: 0 0 10px; }
@media (max-width: 1000px) { .pg-day { grid-template-columns: repeat(3, 1fr); row-gap: 40px; } .pg-day::before { display: none; } }
@media (max-width: 640px) {
  .pg-day { grid-template-columns: 1fr; row-gap: 0; padding-left: 26px; border-left: 1px solid var(--line-2); margin-left: 7px; }
  .pg-day-item { padding: 0 0 30px 0; }
  .pg-day-item::before { left: -35px; top: 3px; }
}

/* ---------- Trade cards (subcontractors) ---------- */
.pg-trade-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.pg-trade-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 0.88rem; background: rgba(255,255,255,0.02); transition: all 0.2s; }
.pg-trade-nav a:hover { color: var(--accent-hi); border-color: rgba(196, 255, 77,0.4); background: var(--accent-wash); }
.pg-trades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .pg-trades { grid-template-columns: 1fr; } }
.pg-trade { padding: 26px; scroll-margin-top: 96px; display: flex; flex-direction: column; }
.pg-trade header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pg-trade header h3 { margin: 0; font-size: 1.18rem; }
.pg-trade header .ico { flex: none; }
.pg-trade header small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 500; margin-top: 2px; }
.pg-trade p { font-size: 0.92rem; margin-bottom: 14px; }
.pg-trade dl { margin: 0; display: grid; gap: 12px; }
.pg-trade dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pg-trade dd { margin: 0; }
.pg-trade .pg-formula { margin-top: auto; padding-top: 16px; }
.pg-trade .pg-formula code { display: block; padding: 10px 12px; border-radius: 9px; background: var(--ink-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; color: var(--accent-hi); overflow-x: auto; }
.pg-trade .pg-formula span { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; }

/* ---------- Capability cards ---------- */
.pg-cap { padding: 24px; }
.pg-cap h3 { font-size: 1.05rem; margin-top: 14px; }
.pg-cap p { font-size: 0.9rem; }
.pg-cap .pg-chips { margin-top: 14px; }

/* ---------- Roadmap ---------- */
.pg-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pg-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pg-cols { grid-template-columns: 1fr; } }
.pg-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pg-col > header { padding: 18px 18px 14px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.pg-col.next > header { border-top-color: var(--info); }
.pg-col.later > header { border-top-color: var(--violet); }
.pg-col.exploring > header { border-top-color: var(--warn); }
.pg-col h3 { margin: 0 0 4px; font-size: 1.1rem; }
.pg-col header p { font-size: 0.82rem; margin: 0; color: var(--muted); }
.pg-col ul { padding: 8px 10px 12px; }
.pg-col li { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.pg-col li:last-child { border-bottom: 0; }
.pg-col li b { display: block; color: var(--text); font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.pg-col li span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.pg-col li .badge { margin-top: 8px; height: 20px; font-size: 0.64rem; padding: 0 8px; }
.pg-pillar-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-pillar-nav a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 0.88rem; background: rgba(255,255,255,0.02); transition: all 0.2s; }
.pg-pillar-nav a b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-wash); color: var(--accent-hi); font-size: 0.78rem; border: 1px solid rgba(196, 255, 77,0.25); }
.pg-pillar-nav a:hover { color: var(--text); border-color: rgba(196, 255, 77,0.4); }
.pg-pillar { scroll-margin-top: 96px; }
.pg-letter { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-hi); border: 1px solid rgba(196, 255, 77,0.3); font-weight: 700; margin-right: 10px; vertical-align: middle; font-family: var(--mono); }
.pg-pillar .feature-copy h2 { display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 4px 0; }
.pg-pillar .feature-copy .badge { margin: 4px 0 18px; }
.pg-fig { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.pg-fig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-fig-badge { position: static; width: fit-content; margin: 12px 12px 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(9,13,17,0.88); border: 1px solid rgba(167,139,250,0.45); color: var(--violet); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; backdrop-filter: blur(6px); }
.pg-fig-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pg-fig figcaption { padding: 12px 16px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); }
.pg-fig-pair { display: grid; gap: 16px; }
.pg-principles { counter-reset: pgp; }
.pg-principles .card { padding: 24px; }
.pg-principles .card::before { counter-increment: pgp; content: "0" counter(pgp); font-family: var(--mono); font-size: 0.78rem; color: var(--accent-hi); display: block; margin-bottom: 14px; }
.pg-principles .card h3 { margin-top: 0; font-size: 1.05rem; }

/* Roles matrix visual (pillar E) */
.pg-matrix { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.pg-matrix th, .pg-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; color: var(--text-2); white-space: nowrap; }
.pg-matrix th:first-child, .pg-matrix td:first-child { text-align: left; }
.pg-matrix thead th { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pg-matrix tr:last-child td { border-bottom: 0; }
.pg-matrix .y { color: var(--accent-hi); font-weight: 700; }
.pg-matrix .n { color: #3b4954; }

/* ---------- Demo / concept tour ---------- */
.pg-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background-color: #0a1621; background-image: linear-gradient(rgba(56,189,248,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.07) 1px, transparent 1px); background-size: 28px 28px; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9); }
.pg-video > svg.poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 50%, transparent, rgba(9,13,17,0.6)); pointer-events: none; }
.pg-play { position: absolute; z-index: 3; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(196, 255, 77,0.5); background: rgba(166, 255, 0,0.14); color: var(--accent-hi); box-shadow: 0 0 0 10px rgba(166, 255, 0,0.06), 0 0 60px rgba(166, 255, 0,0.25); }
.pg-play svg { width: 30px; height: 30px; margin-left: 4px; }
.pg-play[aria-disabled="true"], .pg-play:disabled { cursor: not-allowed; opacity: 0.85; }
.pg-video-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(transparent, rgba(9,13,17,0.9)); font-size: 0.8rem; color: var(--text-2); }
.pg-video-bar .track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.pg-video-bar .mono { color: var(--muted); font-size: 0.74rem; }
@media (max-width: 560px) { .pg-play { width: 62px; height: 62px; } .pg-play svg { width: 22px; height: 22px; } .pg-video-bar > span:first-child { display: none; } }

.pg-stepper { margin-top: 8px; }
.pg-stepper .tabbar { margin-bottom: 20px; }
.pg-stepper .tabbar button .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem; font-family: var(--mono); border: 1px solid var(--line-2); }
.pg-stepper .tabbar button[aria-selected="true"] .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 640px) { .pg-stepper .tabbar { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .pg-stepper .tabbar button { flex: none; } }
.pg-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.pg-progress i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width 0.5s var(--ease); }
.pg-step-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .pg-step-grid { grid-template-columns: 1fr; } }
.pg-step-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 8px; }
.pg-step-copy .checks { margin-top: 16px; }
.pg-step-copy .pg-chips { margin-top: 18px; }
.pg-step-ctl { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.pg-step-ctl .count { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.pg-step-ctl .btn[disabled], .pg-step-ctl .btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.pg-auto { background: none; border: 0; color: var(--muted); font-size: 0.82rem; display: inline-flex; gap: 6px; align-items: center; padding: 6px 4px; }
.pg-auto:hover { color: var(--text); }
.pg-auto[aria-pressed="true"] { color: var(--accent-hi); }
.pg-auto .i { width: 14px; height: 14px; }

.pg-table-wrap { overflow-x: auto; }
.pg-formula-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d1318; font-size: 0.76rem; color: var(--muted); }
.pg-formula-bar code { font-family: var(--mono); color: var(--accent-hi); background: var(--accent-wash); border: 1px solid rgba(196, 255, 77,0.25); border-radius: 6px; padding: 2px 8px; }
.pg-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #0b1015; border-top: 1px solid var(--line-2); font-size: 0.8rem; color: var(--muted); }
.pg-totals b { color: var(--accent-hi); font-family: var(--mono); font-size: 0.95rem; }
.vtable td.cost { color: var(--accent-hi); }
.vtable th.fx::after { content: " \0192"; color: var(--accent-hi); font-style: italic; }

.pg-export { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 720px) { .pg-export { grid-template-columns: 1fr; } }
.pg-menu-list { padding: 12px; border-right: 1px solid var(--line); background: #0d1318; display: grid; gap: 2px; align-content: start; font-size: 0.8rem; }
@media (max-width: 720px) { .pg-menu-list { border-right: 0; border-bottom: 1px solid var(--line); } }
.pg-menu-list .it { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 7px; color: var(--text-2); }
.pg-menu-list .it .i { width: 15px; height: 15px; color: var(--muted); }
.pg-menu-list .it.on { background: var(--accent-wash); color: var(--accent-hi); outline: 1px solid rgba(196, 255, 77,0.35); }
.pg-menu-list .it.on .i { color: var(--accent-hi); }
.pg-menu-list .hd { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 4px 10px 6px; }
.pg-sheet { min-width: 0; overflow-x: auto; background: #0f1519; }
.pg-sheet table { width: 100%; border-collapse: collapse; font-size: 0.76rem; font-family: var(--mono); }
.pg-sheet th, .pg-sheet td { border: 1px solid rgba(255,255,255,0.08); padding: 6px 10px; white-space: nowrap; color: var(--text-2); text-align: left; }
.pg-sheet thead th { background: #172129; color: var(--muted); font-weight: 500; text-align: center; font-size: 0.68rem; }
.pg-sheet tbody th { background: #172129; color: var(--muted); font-weight: 500; text-align: center; width: 30px; }
.pg-sheet tr.h td { color: var(--text); font-weight: 600; background: #141d24; }
.pg-sheet td.r { text-align: right; }
.pg-sheet tfoot td { color: var(--accent-hi); font-weight: 600; background: #11231a; }
.pg-sheet-tab { display: flex; gap: 2px; padding: 6px 10px 0; background: #0c1217; border-top: 1px solid var(--line); font-size: 0.7rem; font-family: var(--mono); }
.pg-sheet-tab span { padding: 5px 12px; border-radius: 6px 6px 0 0; color: var(--muted); }
.pg-sheet-tab span.on { background: #0f1519; color: var(--accent-hi); }

.pg-not-yet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .pg-not-yet { grid-template-columns: 1fr; } }

/* ---------- Forms layout (contact + demo request) ---------- */
.pg-form-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .pg-form-grid { grid-template-columns: 1fr; } }
.pg-panel { background: linear-gradient(180deg, var(--panel), rgba(18,26,33,0.6)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.pg-panel h2, .pg-panel h3 { margin-top: 0; }
.pg-form-note-box { margin-top: 6px; }
.pg-contact-list { display: grid; gap: 18px; margin: 0; }
.pg-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.pg-contact-list .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-wash); color: var(--accent-hi); border: 1px solid rgba(196, 255, 77,0.2); }
.pg-contact-list .ico .i { width: 20px; height: 20px; }
.pg-contact-list b { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.pg-contact-list span, .pg-contact-list a { font-size: 0.9rem; color: var(--text-2); }
.pg-contact-list a { color: var(--accent-hi); font-weight: 500; word-break: break-word; }
.pg-contact-list a:hover { color: #fff; }
.field .hint { font-size: 0.76rem; color: var(--muted); margin-top: 5px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4c0c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }

/* ---------- FAQ page ---------- */
.pg-faq-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .pg-faq-layout { grid-template-columns: 1fr; } }
.pg-faq-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.pg-faq-nav a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 0.92rem; font-weight: 500; border: 1px solid transparent; }
.pg-faq-nav a small { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; }
.pg-faq-nav a:hover, .pg-faq-nav a.on { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--line); }
@media (max-width: 900px) { .pg-faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; } .pg-faq-nav a { border-color: var(--line); border-radius: 999px; } }
.pg-search { position: relative; margin-bottom: 36px; }
.pg-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.pg-search input { width: 100%; height: 50px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); font: inherit; }
.pg-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.pg-faq-group { scroll-margin-top: 96px; margin-bottom: 64px; }
.pg-faq-group > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pg-faq-group > h2 .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-hi); border: 1px solid rgba(196, 255, 77,0.2); }
.pg-faq-group > h2 .ico .i { width: 18px; height: 18px; }
.pg-faq-group > p.sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.pg-faq-layout .faq { max-width: none; margin: 0; }
.pg-faq-layout .faq summary { font-size: 1rem; }
.pg-faq-layout .faq details > div p { margin-bottom: 0.8em; }
.pg-faq-layout .faq details > div ul { margin: 0 0 0.8em 1.1em; list-style: disc; color: var(--text-2); }
.pg-faq-layout .faq details > div li { margin: 4px 0; }
.pg-faq-layout .faq details > div a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196, 255, 77,0.4); }
.pg-faq-none { display: none; text-align: center; padding: 40px 0; color: var(--muted); }
.pg-faq-none.show { display: block; }

/* ---------- Legal ---------- */
.pg-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .pg-legal { grid-template-columns: 1fr; } }
.pg-toc { position: sticky; top: 92px; font-size: 0.88rem; }
.pg-toc h2 { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.pg-toc ol { list-style: none; counter-reset: pgt; display: grid; gap: 2px; padding: 0; margin: 0; }
.pg-toc li { counter-increment: pgt; }
.pg-toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--text-2); }
.pg-toc a::before { content: counter(pgt) "."; font-family: var(--mono); color: var(--muted); font-size: 0.78rem; min-width: 1.5em; }
.pg-toc a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
@media (max-width: 900px) { .pg-toc { position: static; } }
.pg-prose { max-width: 760px; min-width: 0; counter-reset: pgh; }
.pg-prose section { scroll-margin-top: 96px; padding-top: 8px; }
.pg-prose h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; letter-spacing: -0.02em; }
.pg-prose section:first-of-type h2 { margin-top: 0.4em; }
.pg-prose h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.pg-prose p, .pg-prose li { color: var(--text-2); font-size: 0.98rem; }
.pg-prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.pg-prose li { margin: 6px 0; }
.pg-prose a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196, 255, 77,0.4); }
.pg-prose .intent { border-left: 3px solid var(--accent); background: var(--accent-wash); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; color: var(--text); font-size: 0.95rem; }
.pg-prose .intent b { color: var(--accent-hi); }
.pg-prose .todo { display: inline-block; font-family: var(--mono); font-size: 0.74rem; padding: 1px 8px; border-radius: 6px; color: var(--warn); border: 1px solid rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.pg-draft-banner { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); color: var(--text-2); font-size: 0.92rem; margin-bottom: 36px; align-items: flex-start; }
.pg-draft-banner .i { color: var(--warn); width: 20px; height: 20px; margin-top: 2px; }
.pg-draft-banner strong { color: var(--text); }

/* ---------- 404 ---------- */
.pg-nf { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); text-align: center; position: relative; overflow: hidden; }
.pg-nf::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% -10%, rgba(166, 255, 0,0.14), transparent 70%); pointer-events: none; }
.pg-nf .container { position: relative; }
.pg-nf-art { max-width: 520px; margin: 0 auto 28px; }
.pg-nf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.pg-nf .lead { max-width: 560px; margin: 0 auto 28px; }
.pg-nf .btn-row { justify-content: center; }
.pg-nf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 880px; margin: 56px auto 0; text-align: left; }
@media (max-width: 760px) { .pg-nf-links { grid-template-columns: 1fr; } }
.pg-nf-links .card { padding: 20px; display: flex; gap: 14px; align-items: center; }
.pg-nf-links .card .ico { width: 38px; height: 38px; flex: none; }
.pg-nf-links .card .ico svg { width: 18px; height: 18px; }
.pg-nf-links .card b { display: block; color: var(--text); font-size: 0.98rem; }
.pg-nf-links .card span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Licensing diagram (subcontractors) ---------- */
.pg-ppl { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); }
.pg-ppl .who b { display: block; color: var(--text); font-size: 0.9rem; }
.pg-ppl .who span { font-size: 0.74rem; color: var(--muted); }
.pg-ppl .icons { display: flex; flex-wrap: wrap; gap: 4px; color: var(--text-2); }
.pg-ppl .icons .i { width: 16px; height: 16px; }
@media (max-width: 560px) { .pg-ppl { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.pg-split-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.pg-offline { display: grid; gap: 10px; padding: 22px; }
.pg-flow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 0.8rem; color: var(--text-2); }
.pg-flow-row .box { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); display: inline-flex; gap: 8px; align-items: center; }
.pg-flow-row .box .i { width: 15px; height: 15px; color: var(--accent-hi); }
.pg-flow-row .arrow { color: var(--muted); }
.pg-flow-row .arrow .i { width: 14px; height: 14px; }
.pg-flow-row .box.off { border-style: dashed; color: var(--muted); }
.pg-flow-row .box.off .i { color: var(--muted); }
.pg-out-cards { display: grid; gap: 12px; padding: 20px; }
.pg-out { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); }
.pg-out .ext { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--accent-hi); background: var(--accent-wash); border: 1px solid rgba(196, 255, 77,0.25); }
.pg-out b { display: block; color: var(--text); font-size: 0.92rem; }
.pg-out span { font-size: 0.8rem; color: var(--muted); }
.pg-out .i { width: 16px; height: 16px; color: var(--muted); }

/* Audit follow-ups 2026-10-22: badges sit at their own width and never break mid-label; band headings balance. */
.pg-col .badge { justify-self: start; width: fit-content; }
.badge { white-space: nowrap; }
.cta-band h2 { text-wrap: balance; }

/* Legal pages (ui-audit 2026-11-05-legal-pages-audit.md): readable line length, a contents list that folds on phones,
   less space under the hero, no price bar. */
.legal-page .page-hero { padding-bottom: 8px; }
.legal-page .page-hero + .section-tight { padding-top: 32px; }
.legal-page .sticky-cta { display: none !important; }
.legal-page .pg-prose { max-width: 68ch; }
.pg-toc a::before { min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.pg-toc-fold > summary { list-style: none; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.pg-toc-fold > summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) { .pg-toc-fold > summary { pointer-events: none; } }
@media (max-width: 900px) {
  .pg-toc-fold { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
  .pg-toc-fold > summary { cursor: pointer; margin: 0; font-size: 0.82rem; }
  .pg-toc-fold > summary::after { content: " +"; }
  .pg-toc-fold[open] > summary { margin-bottom: 10px; }
  .pg-toc-fold[open] > summary::after { content: " 2"; }
}
.pg-back { font-size: 0.85rem; margin-top: 10px; }
@media (min-width: 901px) { .pg-back { display: none; } }
@media (min-width: 901px) { .privacy-summary.summary-3 dl { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
