/* Start page and preview gate for Pōhaku Bridge (same palette as the demo app and /try). */
:root { --nav: #17324a; --nav-2: #20425f; --accent: #0f7f86; --ink: #1b2733; --muted: #5f6b77; --line: #d5dce3; --page: #eef1f4; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 "Segoe UI", ui-sans-serif, -apple-system, system-ui, Roboto, Arial, sans-serif; color: var(--ink); background: var(--page); }
.top { background: var(--nav); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(95, 196, 196, .16); color: #5fc4c4; border: 1px solid rgba(95, 196, 196, .45); border-radius: 999px; padding: 1px 9px; }
.back { margin-left: auto; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #355a7a; border-radius: 6px; padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.back:hover, .back:focus-visible { background: var(--nav-2); }
main { max-width: 720px; margin: 40px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 34px; box-shadow: 0 4px 14px rgba(23, 35, 47, .08), 0 1px 3px rgba(23, 35, 47, .06); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0b5a5f; margin: 0 0 6px; }
.lede { font-size: 16px; color: #3b4855; }
.flow { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.flow li { counter-increment: s; position: relative; padding: 10px 12px 10px 44px; border: 1px solid #e7ebef; border-radius: 10px; background: #f6f8fa; margin: 0; }
.flow li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.flow b { display: block; font-size: 14.5px; } .flow span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
h1 { font-size: 26px; margin: 0 0 10px; letter-spacing: -.01em; }
p, ol { margin: 0 0 12px; color: #2f3b47; }
ol { padding-left: 20px; } li { margin-bottom: 4px; }
.sim { background: #e8f0f9; color: #2c5f93; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 10px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #0b6a70; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn:focus-visible, .back:focus-visible, a:focus-visible { outline: 3px solid #5fc4c4; outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.msg { border-radius: 6px; padding: 10px 12px; }
.err { background: #fbe6e3; border: 1px solid #efbbb4; color: #8a2a20; }
.small { font-size: 13px; color: var(--muted); }
.tm { margin-top: 14px; }
.cf-turnstile { margin-top: 4px; }
@media (max-width: 560px) { main { margin: 16px auto; } .card { padding: 20px 18px; } h1 { font-size: 23px; } .row .btn { flex: 1 1 auto; } .flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background .15s, transform .08s; } .btn:active { transform: translateY(1px); } }
/* preview gate */
body.gate { min-height: 100vh; display: grid; place-items: center; background: #fff; padding: 24px; }
body.gate main { max-width: 400px; text-align: center; margin: 0; }
.orb { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 22px; background: radial-gradient(circle at 35% 30%, #8fd3d6, #2b6f73 70%); }
body.gate form { display: flex; gap: 8px; }
body.gate input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; letter-spacing: .3em; text-align: center; }
body.gate button { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
body.gate .err { background: none; border: 0; color: #b42318; font-size: 14px; min-height: 1.5em; margin-top: 14px; }
.sr { position: absolute; left: -9999px; }
.logo { display: block; width: 28px; height: 28px; border-radius: 7px; }
.hero { display: block; margin: -8px -8px 14px; } .hero img { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
@media (prefers-color-scheme: dark) { .hero img { filter: none; } }

/* the explainer video link (start page) and the watch page */
.watch { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 14px; border-radius: 999px; background: #e2f2f2; color: #0b5a5f; font-weight: 600; text-decoration: none; min-height: 44px; }
.watch:hover { background: #d0eaea; color: #0b5a5f; }
.watch .play { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0f7f86; color: #fff; font-size: 11px; padding-left: 2px; }
.watch .dur { font-weight: 400; color: #3b4855; }
.card.wide { max-width: 900px; }
.explainer { width: 100%; height: auto; border-radius: 10px; background: #0d0d0d; display: block; margin: 8px 0 12px; }
.transcript { margin-top: 16px; } .transcript summary { cursor: pointer; font-weight: 600; } .transcript p { margin: 6px 0; }

/* start actions: watch → session buttons → a quiet human check */
.actions { margin: 18px 0 8px; }
.actions .row { margin: 4px 0 0; }
.human { margin-top: 8px; }
.human .small { margin: 0; font-size: 12.5px; }
.human .small[data-tone="ok"] { color: #23633d; }
.human .small[data-tone="err"] { color: #8a2a20; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* the explainer video, in a modal over the start page (start.js); /bridge/watch is the no-JS fallback */
html.vmodal-open, html.vmodal-open body { overflow: hidden; }
dialog.vmodal { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 12px; background: #0d0d0d; color: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); overflow: auto; }
dialog.vmodal::backdrop { background: rgba(8, 14, 20, .86); }
.vmodal .vm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; }
.vmodal h2 { margin: 0; font-size: 16px; font-weight: 600; color: #fff; } .vmodal h2 span { font-weight: 400; color: #b9c4ce; font-size: 13.5px; margin-left: 6px; }
.vmodal .vm-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.vmodal .vm-close:hover { background: rgba(255, 255, 255, .16); }
.vmodal .vm-close:focus-visible { outline: 3px solid #5fc4c4; outline-offset: 2px; }
.vmodal .vm-frame { background: #000; }
.vmodal video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); background: #000; }
.vmodal .vm-note { margin: 0; padding: 10px 18px 14px; font-size: 13px; color: #b9c4ce; } .vmodal .vm-note a { color: #9fe0dd; }
@media (max-width: 560px) {
  dialog.vmodal { width: 100vw; max-height: 100vh; border-radius: 0; margin: auto 0; }
  .vmodal .vm-head { padding: 8px 8px 8px 14px; }
}
@media (prefers-reduced-motion: no-preference) { dialog.vmodal[open] { animation: vm-in .18s ease-out; } @keyframes vm-in { from { opacity: 0; transform: translateY(8px) scale(.99); } } }
