/* Layout: full-bleed bit-shift field behind a left-aligned hero; then tight sections on a 1120px column. Single dark brand look. */
:root {
  --bg: #08020F; --bg2: #0F0620; --panel: #160A2C; --line: #2E1A50;
  --fg: #EFEAF8; --muted: #A99CC2; --cyan: #A855F7; --blue: #7C3AED; --teal: #C084FC;
  --display: "Sora", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .form/.card set display, which would otherwise beat the hidden attribute */
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 600 15px/1 var(--display); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--cyan); color: #12052A; }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(22,10,44,.6); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(8,2,15,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(46,26,80,.6); }
.nav .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
.nav .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 760px) {
  .nav .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; }
  .nav .btn-primary { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 8px; justify-content: space-between; font-size: 14px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; scrollbar-width: none; }
}
@media (max-width: 400px) { .nav-links { font-size: 13px; } }
@media (max-width: 360px) { .nav .btn { padding: 9px 12px; font-size: 13px; } .nav-links { font-size: 12.5px; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
#bits { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(8,2,15,.88) 42%, rgba(8,2,15,.35) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-block: 72px 84px; display: grid; gap: 28px; }
.mark { width: min(560px, 100%); height: auto; display: block; }
.hero h1 { font-weight: 300; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.02em; max-width: 17ch; }
.hero h1 strong { font-weight: 600; color: var(--cyan); }
.hero .lede { color: var(--muted); font-size: 19px; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.promise { font: 500 15px/1.4 var(--display); color: var(--teal); }

/* Sections */
section.block { position: relative; overflow-x: clip; padding-block: 60px; }
@media (max-width: 520px) { section.block { padding-block: 44px; } }
.head { display: grid; gap: 14px; margin-bottom: 32px; max-width: 640px; }
.head:last-child { margin-bottom: 0; }
/* Binary divider between sections (Jesse 2026-10-23: larger, visible) */
section.block::after, .hero::before {
  content: "0110100111010010101101000111010010110100101100101101001011010011011010011101001010110100011101001011010010110010110100101101001101101001110100101011010001110100101101001011001011010010110100110110100111010010101101000111010010110100101100101101001011010011011010011101001010110100011101001011010010110010110100101101001101101001110100101011010001110100101101001011001011010010110100110110100111010010101101000111010010110100101100101101001011010011";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 24px; transform: translateY(50%);
  font: 600 15px/24px var(--mono); letter-spacing: .32em; color: var(--cyan); white-space: nowrap; overflow: hidden; pointer-events: none;
  text-shadow: 0 0 10px rgba(168,85,247,.7); opacity: .75;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: bitflow 40s linear infinite;
}
.hero::before { transform: none; }
@keyframes bitflow { to { text-indent: calc(-64 * (1ch + .32em)); } }
@media (prefers-reduced-motion: reduce) { section.block::after, .hero::before { animation: none; } }
.head h2 { font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.015em; }
.head p { color: var(--muted); }

.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lane { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.lane + .lane { padding-left: 28px; border-left: 1px solid var(--line); }
.lane .code { font: 12px/1 var(--mono); color: var(--cyan); letter-spacing: .08em; }
.lane h3 { font-weight: 600; font-size: 20px; }
.lane p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .lanes { grid-template-columns: 1fr; } .lane, .lane + .lane { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

.slot { border: 1px dashed var(--line); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.slot b { color: var(--fg); font-family: var(--display); font-weight: 600; font-size: 22px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 22px 22px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step .n { font: 500 13px/1 var(--mono); color: var(--cyan); }
.step .n::after { content: ""; display: block; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); margin-top: 14px; }
.step h3 { font-weight: 600; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.trust > div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.trust i { font: normal 500 13px/1.6 var(--mono); color: var(--cyan); }
.trust h3 { font: 600 17px/1.4 var(--display); margin-bottom: 4px; }
.trust p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

.closer { padding-block: 96px; text-align: left; }
.closer .wrap { display: grid; gap: 22px; }
.closer h2 { font-weight: 300; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.02em; max-width: 20ch; }
.closer h2 strong { font-weight: 600; color: var(--cyan); }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.chev { stroke-dasharray: 90; stroke-dashoffset: 0; animation: chev 3.2s cubic-bezier(.6,0,.2,1) infinite; }
.c2 { animation-delay: .18s; }
@keyframes chev { 0%, 55% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(-10px); opacity: .35; } 71% { transform: translateX(10px); opacity: 0; } 85%, 100% { transform: translateX(0); opacity: 1; } }
.shift { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 55%, 100% { filter: none; } 68% { filter: drop-shadow(0 0 8px rgba(168,85,247,.6)); } }
@media (prefers-reduced-motion: reduce) { .chev, .shift { animation: none; } }

/* Added for the multi-page code site */
.nav .brand { display: inline-flex; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--fg); }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat > div { position: relative; padding: 28px; display: grid; gap: 12px; align-content: start; border-radius: 18px; border: 1px solid transparent;
  background: linear-gradient(160deg, #1A0B35, #0C0419) padding-box, linear-gradient(140deg, rgba(168,85,247,.75), rgba(46,26,80,.6) 45%, rgba(192,132,252,.45)) border-box;
  box-shadow: 0 24px 50px -32px rgba(124,58,237,.6); transition: transform .25s ease, box-shadow .25s ease; }
.feat > div:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(168,85,247,.75); }
.feat .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(140deg, rgba(168,85,247,.32), rgba(124,58,237,.12)); border: 1px solid rgba(168,85,247,.5); box-shadow: 0 0 22px rgba(168,85,247,.35), inset 0 0 12px rgba(168,85,247,.2); }
.feat .ico svg { width: 26px; height: 26px; fill: none; stroke: #E3CCFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat .code { font: 12px/1 var(--mono); color: var(--cyan); letter-spacing: .12em; }
.feat h3 { font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.feat p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .feat > div { transition: none; } .feat > div:hover { transform: none; } }
.page-hero .wrap { padding-block: 64px 56px; }
.page-hero h1 { font-weight: 300; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; }
.page-hero h1 strong { font-weight: 600; color: var(--cyan); }
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 8px; font: 500 14px/1.3 var(--display); }
.form input, .form select, .form textarea { font: 16px/1.4 var(--body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: 14px; }
.form h2 { font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--cyan); font: 500 15px/1.3 var(--display); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--fg); }
.link-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--muted); }
.form label.check input { width: 18px; height: 18px; padding: 0; accent-color: var(--cyan); }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: rgba(22,10,44,.5); display: grid; gap: 14px; max-width: 640px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Portal: agent inbox (read-only). Two panes on desktop, one stacked pane on phones. */
.mail-block { padding-block: 56px 72px; scroll-margin-top: 72px; }
.mail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mail-title { display: grid; gap: 8px; min-width: 0; }
.mail-title h2 { font-weight: 500; font-size: 28px; letter-spacing: -.015em; }
.mail-addr { font: 13px/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.mail-tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(22,10,44,.6); }
.seg button { font: 600 13px/1 var(--display); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--cyan); color: #12052A; }
.seg button:not([aria-pressed="true"]):hover { color: var(--fg); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(22,10,44,.6); color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg button:focus-visible, .icon-btn:focus-visible, .mail-row:focus-visible, .mail-back:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.mail { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; height: min(72vh, 720px); min-height: 460px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(15,6,32,.72); }
.mail-list { overflow-y: auto; border-right: 1px solid var(--line); overscroll-behavior: contain; }
.mail-row { display: grid; gap: 4px; width: 100%; text-align: left; padding: 14px 18px 14px 16px; background: none; border: 0; border-bottom: 1px solid rgba(46,26,80,.55); border-left: 2px solid transparent; color: var(--fg); font: inherit; cursor: pointer; }
.mail-row:hover { background: rgba(168,85,247,.04); }
.mail-row.active { background: rgba(168,85,247,.08); border-left-color: var(--cyan); }
.mail-row-top { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mail-row .dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.mail-row.unread .dot { background: var(--cyan); box-shadow: 0 0 8px rgba(168,85,247,.6); }
.mail-row-who { font: 500 15px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mail-row.unread .mail-row-who { color: var(--fg); font-weight: 600; }
.mail-row-time { font: 12px/1 var(--mono); color: var(--muted); }
.mail-row-subj, .mail-row-prev { padding-left: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-subj { font-size: 14.5px; color: var(--fg); opacity: .82; }
.mail-row.unread .mail-row-subj { opacity: 1; font-weight: 500; }
.mail-row-prev { font-size: 13.5px; color: var(--muted); opacity: .8; }
.clip { display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m21 11-8.6 8.6a5 5 0 0 1-7-7l8.5-8.6a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.7 1.7 0 0 1-2.4-2.4l8-8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m21 11-8.6 8.6a5 5 0 0 1-7-7l8.5-8.6a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.7 1.7 0 0 1-2.4-2.4l8-8'/%3E%3C/svg%3E") center / contain no-repeat; }
.mail-skel { cursor: default; }
.sk { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(46,26,80,.5), rgba(46,26,80,.9), rgba(46,26,80,.5)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.sk-a { width: 45%; height: 12px; } .sk-b { width: 80%; } .sk-c { width: 60%; opacity: .6; }
@keyframes sk { to { background-position: -200% 0; } }
.mail-state { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 64px 24px; color: var(--muted); font-size: 15px; }
.mail-state-error p { color: #FCA5A5; }

.mail-read { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mail-blank { margin: auto; display: grid; gap: 12px; justify-items: center; color: var(--muted); font-size: 15px; opacity: .8; }
.mail-blank svg { color: var(--line); }
.mail-msg { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 24px; min-height: 0; flex: 1; }
.mail-back { display: none; align-items: center; gap: 4px; align-self: flex-start; background: none; border: 0; color: var(--cyan); font: 600 14px/1 var(--display); padding: 4px 0; cursor: pointer; }
.mail-subject { font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mail-meta { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--display); color: #12052A; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.mail-who { min-width: 0; display: grid; gap: 2px; font-size: 14.5px; }
.mail-who p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-from-email, .mail-to { color: var(--muted); font-size: 13px; }
.mail-when { font: 12px/1.3 var(--mono); color: var(--muted); text-align: right; }
.mail-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mail-files li { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: rgba(22,10,44,.6); max-width: 100%; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font: 11px/1 var(--mono); color: var(--muted); }
.mail-msg .note:empty { display: none; }
.mail-body { flex: 1; min-height: 0; display: flex; }
#mail-frame { flex: 1; width: 100%; min-height: 320px; border: 0; border-radius: 10px; background: #fff; }
.mail-text { flex: 1; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.65; color: var(--fg); }

@media (max-width: 860px) {
  .mail { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .mail-list { border-right: 0; max-height: none; }
  .mail[data-view="list"] .mail-read { display: none; }
  .mail[data-view="read"] .mail-list { display: none; }
  .mail-back { display: inline-flex; }
  .mail-msg { padding: 18px 16px 20px; }
  .mail-subject { font-size: 20px; }
  .mail-meta { grid-template-columns: 36px minmax(0, 1fr); }
  .avatar { width: 36px; height: 36px; font-size: 13px; }
  .mail-when { grid-column: 2; text-align: left; }
  #mail-frame { min-height: 70vh; }
  .mail-text { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .icon-btn.spin svg, .sk { animation: none; } }

/* Portal: private-server build progress. Binary stream inside a glowing fill; stages light up as it moves. */
/* Portal wizard: overall setup meter, Welcome step list, Back row (2026-10-22) */
.meter { margin: 8px 0 16px; display: grid; gap: 6px; }
.meter[hidden], .wiz-nav[hidden] { display: none; }
.meter-head { display: flex; justify-content: space-between; font: 600 13px/1 var(--mono); color: var(--muted); }
.meter-pct { color: var(--cyan); font-variant-numeric: tabular-nums; }
.meter-track { height: 10px; border-radius: 6px; border: 1px solid var(--line); background: #08020f; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, rgba(124,58,237,.7), var(--cyan)); transition: width .4s ease; }
/* Welcome step (Jesse 2026-10-23): one lead line, two meta pills, numbered step rows with a short hint. */
.welcome { gap: 18px; }
.welcome-lead { font: 600 clamp(22px, 2.4vw, 27px)/1.25 var(--display); letter-spacing: -.01em; }
.welcome-lead strong { background: linear-gradient(90deg, var(--cyan), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-meta span { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,2,15,.5); }
.welcome-steps { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 10px; }
.welcome-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, rgba(124,58,237,.10), rgba(22,10,44,.35)); animation: ws-in .45s calc(var(--i, 0) * 80ms) ease-out both; }
.ws-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--display); color: #12052A; background: var(--cyan); box-shadow: 0 0 0 4px rgba(168,85,247,.16); }
.ws-text { display: grid; gap: 2px; min-width: 0; }
.ws-text strong { font: 600 16px/1.3 var(--display); }
.ws-text small { font-size: 14px; color: var(--muted); }
@keyframes ws-in { from { opacity: 0; transform: translateY(6px); } }

/* Feature reel beside the signed-in card (Jesse 2026-10-23). */
.reel { position: sticky; top: 96px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: radial-gradient(120% 80% at 100% 0%, rgba(124,58,237,.22), transparent 60%), linear-gradient(180deg, #120728, #08020F); box-shadow: 0 30px 80px -30px rgba(124,58,237,.45); }
.reel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.reel-dots { display: flex; gap: 6px; }
.reel-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.reel-live { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reel-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.reel-stage { position: relative; height: 290px; }
.scene { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; opacity: 0; transform: translateX(24px) scale(.98); filter: blur(4px); transition: opacity .6s ease, transform .6s ease, filter .6s ease; pointer-events: none; }
.scene.on { opacity: 1; transform: none; filter: none; }
.scene .a { opacity: 0; }
.scene.on .a { animation: rise .5s var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reel.paused .scene.on *, .reel.paused .reel-seg.run span { animation-play-state: paused; }

.s-mail, .s-draft, .s-lead, .s-toast, .s-msg, .s-approve { border: 1px solid var(--line); border-radius: 12px; background: rgba(22,10,44,.85); padding: 10px 12px; font-size: 14px; }
.s-mail { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.s-mail span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font: 600 11px/1 var(--mono); font-style: normal; padding: 5px 8px; border-radius: 999px; }
.t-lead { background: rgba(168,85,247,.2); color: var(--teal); }
.t-fyi { background: rgba(169,156,194,.15); color: var(--muted); }
.t-urgent { background: rgba(244,114,182,.18); color: #F9A8D4; }
.s-draft { display: grid; gap: 4px; border-color: rgba(168,85,247,.5); }
.s-draft small { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.type { display: block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--cyan); }
.scene.on .type { animation: typing 1.6s calc(var(--d, 0s) + .35s) steps(40, end) forwards, caret .8s step-end infinite; }
@keyframes typing { to { width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }

.s-cal { display: grid; gap: 6px; }
.cal-slot { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px; height: 36px; }
.cal-slot small { font: 500 12px/1 var(--mono); color: var(--muted); }
.cal-slot > span { height: 100%; border-top: 1px dashed var(--line); position: relative; }
.evt { position: absolute; inset: 3px 0; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font: 600 13px/1 var(--display); color: #12052A; background: linear-gradient(90deg, var(--cyan), var(--teal)); opacity: 0; }
.evt2 { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: var(--fg); }
.scene.on .drop { animation: drop .55s var(--d2, .7s) cubic-bezier(.3,1.4,.5,1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.s-toast { align-self: flex-end; border-color: rgba(168,85,247,.6); box-shadow: 0 10px 30px -12px rgba(168,85,247,.6); }
.s-toast b { color: var(--cyan); margin-right: 6px; }

.s-lead { display: grid; gap: 4px; position: relative; }
.s-lead small { color: var(--muted); }
.s-lead.ok { border-color: rgba(168,85,247,.55); }
.chip { justify-self: start; margin-top: 4px; font: 600 11px/1 var(--mono); padding: 5px 9px; border-radius: 999px; }
.chip.warn { background: rgba(244,114,182,.16); color: #F9A8D4; }
.chip.good { background: rgba(134,239,172,.14); color: #86EFAC; }
.s-arrow { align-self: center; width: 2px; height: 18px; background: linear-gradient(var(--line), var(--cyan)); }

.s-chart { height: 170px; display: flex; align-items: flex-end; gap: 12px; padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(168,85,247,.85), rgba(124,58,237,.3)); transform-origin: bottom; transform: scaleY(0); }
.bar.hi { background: linear-gradient(180deg, var(--teal), var(--cyan)); box-shadow: 0 0 24px rgba(192,132,252,.45); }
.scene.on .bar { animation: grow .7s var(--d) cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes grow { to { transform: scaleY(1); } }

.s-msg { max-width: 82%; border-radius: 14px; }
.s-msg.me { align-self: flex-end; background: var(--cyan); color: #12052A; border-color: transparent; font-weight: 600; }
.s-msg.them { align-self: flex-start; }
.s-msg.bot { align-self: flex-start; display: grid; gap: 7px; min-width: 62%; }
.ln { display: block; height: 8px; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, rgba(168,85,247,.55), rgba(169,156,194,.25)); }
.typing { display: flex; gap: 5px; min-width: 0; width: auto; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.scene.on .typing { animation: rise .4s var(--d) both, gone .3s 1.4s forwards; }
@keyframes gone { to { opacity: 0; height: 0; padding: 0; margin: -5px 0; border-width: 0; } }
.s-approve { display: flex; align-items: center; gap: 12px; background: transparent; border-style: dashed; }
.btn-mini { font: 600 13px/1 var(--display); padding: 8px 14px; border-radius: 999px; background: var(--cyan); color: #12052A; }
.scene.on .btn-mini { animation: press .5s 2.5s ease both; }
@keyframes press { 50% { transform: scale(.9); box-shadow: 0 0 0 6px rgba(168,85,247,.25); } }
.sent { font-size: 13px; color: #86EFAC; opacity: 0; }
.scene.on .sent { animation: rise .4s 2.9s both; }

.reel-cap { padding: 16px 20px 6px; display: grid; gap: 4px; }
.reel-cap h3 { font-size: 19px; }
.reel-cap p { color: var(--muted); font-size: 15px; }
.reel-cap.in > * { animation: rise .5s ease both; }
.reel-cap.in p { animation-delay: .08s; }
.reel-prog { display: flex; gap: 6px; padding: 12px 20px 18px; }
.reel-seg { flex: 1; height: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.reel-seg span { display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.reel-seg span::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform-origin: left; transform: scaleX(0); }
.reel-seg.done span::after { transform: scaleX(1); }
.reel-seg.run span::after { animation: fill var(--dur, 5s) linear forwards; }
.reel-seg:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 860px) { .reel { position: static; } }
@media (max-width: 420px) { .reel-stage { height: 310px; } .scene { padding: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .welcome-steps li, .reel-pulse { animation: none; }
  .scene, .reel-cap.in > * { transition: none; animation: none; }
  .scene.on *, .scene.on .a { animation: none !important; opacity: 1; transform: none; width: auto; }
  .scene.on .typing { display: none; }
  .bar { transform: none; } .evt { opacity: 1; } .sent { opacity: 1; }
  .reel-seg.run span::after { animation: none; transform: scaleX(1); }
}
.wiz-nav { margin-top: 14px; }
.build { margin: 14px 0 18px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(15,6,32,.9), rgba(8,2,15,.9)); display: grid; gap: 12px; }
.build-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.build-title { font: 600 15px/1.3 var(--display); }
.build-pct { font: 600 15px/1 var(--mono); color: var(--cyan); font-variant-numeric: tabular-nums; }
.build-track { position: relative; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: repeating-linear-gradient(90deg, rgba(46,26,80,.35) 0 1px, transparent 1px 10px), #08020f; overflow: hidden; }
.build-fill { position: relative; height: 100%; width: 0; overflow: hidden; border-radius: 5px 0 0 5px; background: linear-gradient(90deg, rgba(124,58,237,.55), rgba(168,85,247,.75)); box-shadow: 0 0 14px rgba(168,85,247,.45); transition: width .5s linear; }
.build-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(239,234,248,.35), transparent); transform: translateX(-100%); animation: build-sweep 1.6s linear infinite; }
.build-bits { position: absolute; inset: 0; padding-left: 6px; font: 600 11px/22px var(--mono); letter-spacing: .12em; color: rgba(8,2,15,.75); white-space: nowrap; overflow: hidden; }
.build-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font: 12px/1.35 var(--mono); color: var(--muted); }
.build-stages li { padding-top: 8px; border-top: 2px solid var(--line); transition: color .3s, border-color .3s; }
.build-stages li.active { color: var(--fg); border-color: var(--cyan); }
.build-stages li.active::before { content: "> "; color: var(--cyan); }
.build-stages li.done { color: var(--teal); border-color: var(--teal); }
.build-stages li.done::before { content: "✓ "; }
.build-note { margin: 0; color: var(--muted); font-size: 13px; }
.build.is-done .build-fill { background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.build.is-done .build-fill::after { animation: none; }
@keyframes build-sweep { to { transform: translateX(100%); } }
@media (max-width: 560px) { .build-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .build-fill { transition: none; } .build-fill::after { animation: none; } }
/* Master Services Agreement (portal.html agreement step, fetched from the backend) */
.legal { max-width: 760px; display: grid; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.legal h2 { color: var(--fg); font-weight: 600; font-size: 24px; margin-top: 4px; }
.legal h3 { color: var(--fg); font-weight: 600; font-size: 18px; margin-top: 12px; }
.legal strong { color: var(--fg); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal code { font: 12px/1.4 var(--mono); word-break: break-all; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { color: var(--fg); font-weight: 600; }
.legal-table { overflow-x: auto; }
.legal-box { max-height: 460px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: rgba(22,10,44,.5); }
.legal-box:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sig-input { font-style: italic; font-size: 20px !important; }
/* Home rewrite (Jesse 2026-10-17): plain-English blocks */
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-3 .n { font-size: 22px; }
.steps-3 h3 { font-size: 22px; }
.steps-3 p { font-size: 16px; }
@media (max-width: 860px) { .steps-3 { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.checks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; max-width: none; }
@media (max-width: 760px) { .checks-2 { grid-template-columns: 1fr; } }
.checks li { position: relative; padding-left: 34px; font-size: 18px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2304121C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.chats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .chats { grid-template-columns: 1fr; } }
.chat { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--bg2); display: grid; gap: 12px; align-content: start; }
.msg { border-radius: 14px; padding: 10px 14px; font-size: 15px; max-width: 92%; display: grid; gap: 2px; }
.msg b { font: 600 12px/1.4 var(--display); color: var(--muted); }
.msg.me { justify-self: end; background: var(--blue); color: #fff; }
.msg.me b { color: rgba(255,255,255,.8); }
.msg.agent { justify-self: start; background: var(--panel); border: 1px solid var(--line); }
.price-card { max-width: 720px; }
.price-card .price { font-weight: 500; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; }
.prose { max-width: 760px; display: grid; gap: 16px; color: var(--muted); }
.prose h2 { color: var(--fg); font-weight: 600; font-size: 22px; margin-top: 14px; }
.next-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
/* Demo page: embedded Google booking calendar (Google renders it light; framed to sit on the dark page). */
.booking-block { padding-bottom: 0; }
.booking-frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 6px rgba(168,85,247,.08), 0 24px 60px -30px rgba(168,85,247,.55); }
.booking-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 860px) { .booking-frame iframe { height: 1000px; } }
.booking-block .note { margin-top: 12px; }
#demo .form-title { font-weight: 500; font-size: 24px; letter-spacing: -.01em; margin-bottom: 4px; }
#demo > .note:first-of-type { margin-bottom: 18px; }

/* Two-plan pricing (Jesse 2026-10-23) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 960px; }
.plan { position: relative; max-width: none; align-content: start; min-width: 0; }
.plan-exec { border-color: transparent; background: linear-gradient(170deg, #20103F, #0D0520) padding-box, linear-gradient(140deg, var(--cyan), rgba(46,26,80,.7) 50%, var(--teal)) border-box; box-shadow: 0 30px 70px -30px rgba(168,85,247,.7); padding-top: 38px; }
.plan-badge { position: absolute; top: -12px; left: 28px; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: #12052A; background: linear-gradient(90deg, var(--cyan), var(--teal)); padding: 7px 10px; border-radius: 999px; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.plan-price strong { font: 700 clamp(40px, 5vw, 52px)/1 var(--display); letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-size: 16px; }
.plan-save { margin: 0; color: var(--teal); font: 500 14px/1.4 var(--display); }
.plan-list { align-content: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); }
.plan-list b { font-weight: 600; color: var(--teal); }
.plan .cta-row { margin-top: auto; padding-top: 8px; }
.plan { grid-template-rows: auto auto auto auto 1fr auto; }
.fine { margin-top: 28px; max-width: 960px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Animated binary dividers (Jesse 2026-10-24, bits.js): a canvas replaces the CSS row when JS runs. */
.bitlines section.block::after, .bitlines .hero::before { content: none; }
.bitline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; width: 100%; height: 96px; transform: translateY(50%); pointer-events: none; }
.bitline-hero { transform: none; }
/* Offer line, waiting list, full-week states (Jesse 2026-10-24) */
.offer { display: block; width: fit-content; max-width: 100%; justify-self: start; align-self: flex-start; margin: 4px 0 18px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(168,85,247,.55); background: rgba(124,58,237,.16); font: 500 15px/1.3 var(--display); color: var(--fg); }
.offer strong { color: var(--teal); font-weight: 600; }
.offer-card { max-width: 960px; margin-top: 28px; display: grid; gap: 12px; }
.offer-card h2 { font-weight: 600; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
.full-card { max-width: 760px; display: grid; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spots-open { margin-bottom: 14px; }
.plan-price s { text-decoration-thickness: 3px; opacity: .6; }
.plan-free { margin: 4px 0 0; font-weight: 700; color: var(--accent, #a78bfa); }
