/* Sealed: light editorial pages, sans headlines, mono labels, black pill buttons. */
:root {
  --bg: #f6f5f3; --card: #ffffff; --panel-2: #f1f0ed; --ink: #111111; --muted: #6f6d69; --soft-ink: #4a4845; --line: #e3e1dd;
  --accent: #111111; --accent-ink: #ffffff; --focus: #ff6b1a; --brand: #ff6b1a;
  --ok: #1f7a46; --ok-bg: #e8f4ec; --bad: #b42318; --bad-bg: #fbeceb; --warn: #8a5a00; --warn-bg: #fbf3e2;
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", ui-monospace, monospace;
  --radius: 2px; --rail: 232px; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--mono); letter-spacing: .01em; }
h1, h2, h3 { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: .95rem; font-weight: 700; letter-spacing: .08em; }
h3 { font-size: .85rem; }
p { margin: 8px 0 14px; }
a { color: var(--accent); text-underline-offset: 4px; }
code { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 20; background: var(--card); padding: 12px; }
.skip-link:focus { top: 12px; }
.accent { color: var(--accent); }
.muted, .field-note { color: var(--muted); }
.field-note { font-size: .76rem; margin-top: -8px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .72rem; overflow-wrap: anywhere; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--muted); }
.page-title { margin-bottom: 24px; max-width: 680px; }
.page-title .eyebrow { color: var(--accent); }

/* forms */
label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: #0e0e0e; border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 14px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
input[type=file] { padding: 8px; }
input[type=file]::file-selector-button { font: inherit; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; margin-right: 10px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-weight: 400; }
button, .btn { font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button:hover:not(:disabled), .btn:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: default; }
button.secondary, .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.secondary:hover:not(:disabled), .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* status pieces */
.badge { display: inline-block; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 3px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.ok, .dot.live { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 10px 16px; border-radius: 4px; box-shadow: 0 6px 32px #0006; }
.verdict { font: 700 1.05rem var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 16px; border-radius: var(--radius); margin: 16px 0; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #1d4a31; } .verdict.bad { background: var(--bad-bg); color: var(--bad); border: 1px solid #4d1d19; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: 24px; margin: 16px 0; } .panel { padding: 22px; }
.card h2 { margin-top: 24px; } .card h2:first-child { margin-top: 0; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

/* app shell */
.app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; background: linear-gradient(to right, #0f0f0f var(--rail), transparent var(--rail)); }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 28px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 36px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.brand-mark { display: block; color: var(--accent); font-weight: 800; font-size: 1.3rem; letter-spacing: .1em; }
.brand-sub { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; }
.workspace-nav { display: grid; gap: 6px; }
.workspace-nav button { justify-content: flex-start; gap: 12px; background: transparent; color: #b8b6b2; font-size: .78rem; padding: 12px; }
.workspace-nav button:hover { color: var(--ink); background: #1a1a1a; }
.workspace-nav button[aria-current=page] { background: var(--accent); color: var(--accent-ink); }
.nav-number { font-size: .7rem; opacity: .7; }
.sidebar-foot { margin-top: auto; }
.status-box { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; overflow-wrap: anywhere; }
.status-box p { margin: 4px 0; color: var(--muted); }
.status-box .status-title { color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.status-box span:not(.dot) { color: #c9c7c3; }
.status-box a { display: inline-block; margin-top: 10px; }
.worker-app main { width: 100%; max-width: 1280px; padding: 0 32px 48px; }
.workspace-header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  background: #0d0d0dee; backdrop-filter: blur(6px); margin: 0 -32px 28px; padding: 22px 32px; border-bottom: 1px solid var(--line); }
.crumb { font-size: .78rem; letter-spacing: .12em; color: var(--muted); } .crumb b { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.last-sync { font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
.app-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 48px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.capture-footer { padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* command center */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dash-grid .span-2 { grid-column: span 2; }
.panel-title { font-size: .85rem; margin: 0 0 18px; letter-spacing: .1em; }
.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 18px; }
.stat-trio strong { display: block; font-size: 1.7rem; font-weight: 800; } .stat-trio span { font-size: .7rem; color: var(--muted); }
.day-list, .activity { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.day-list li { display: flex; gap: 12px; align-items: center; background: var(--panel-2); border-radius: 4px; padding: 10px 12px; }
.day-list b { display: block; font-size: .78rem; } .day-list small { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.activity { max-height: 300px; overflow-y: auto; padding-right: 6px; scrollbar-color: #444 transparent; }
.activity li { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; }
.activity time { font-size: .68rem; color: var(--muted); } .activity p { margin: 2px 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.alert-item p { margin: 2px 0; }
.info-list p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 7px 0; font-size: .8rem; color: var(--soft-ink); overflow-wrap: anywhere; }
.info-list b { color: var(--ink); text-align: right; }
.info-list .info-head { justify-content: flex-start; align-items: center; color: var(--ink); font-weight: 700; margin-top: 8px; }
.info-list .info-head .dot { background: var(--ink); } .info-list .info-head.bad { color: var(--bad); } .info-list .info-head.bad .dot { background: var(--bad); }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow li { background: var(--panel-2); border-radius: 4px; padding: 14px; border-top: 2px solid var(--accent); }
.flow b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 6px; }
.flow span { color: var(--soft-ink); font-size: .75rem; line-height: 1.6; }
.countdown { font: 800 2.2rem/1.1 var(--mono); text-align: center; letter-spacing: .06em; margin: 8px 0; }
.countdown.big { font-size: clamp(2.4rem, 9vw, 4.6rem); color: var(--accent); }
.countdown-sm { font: 700 1.1rem var(--mono); color: var(--accent); letter-spacing: .06em; margin: 4px 0; }

/* seal form */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.mode { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 4px; padding: 14px; cursor: pointer; background: var(--panel-2); margin: 0; }
.mode:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mode b { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; } .mode small { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.preset-row, .share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.preset-row button, .share-row button, .share-row .btn { min-height: 38px; padding: 0 12px; font-size: .7rem; }
.holders { display: grid; gap: 10px; margin-top: 8px; }
.holder-row { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px 2px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.holder-row legend { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); padding: 0 6px; }
.holder-row input { margin-bottom: 4px; }
.resolve { grid-column: 1 / -1; font-size: .7rem; color: var(--muted); margin: 0 0 6px; }
.resolve.ok { color: var(--ok); } .resolve.bad { color: var(--bad); }
.share-block { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; margin: 12px 0; }
.qr-wrap { display: grid; gap: 8px; justify-items: center; }
.qr-box { width: 132px; background: #fff; border-radius: 4px; padding: 4px; } .qr-box svg { display: block; width: 100%; height: auto; }
.warn-note { background: var(--warn-bg); color: var(--warn); border: 1px solid #4a3a10; border-radius: 4px; padding: 10px 12px; font-size: .8rem; }
.holder-links { display: grid; gap: 10px; padding-left: 20px; }
.holder-links li { background: var(--panel-2); border-radius: 4px; padding: 10px 12px; }
.link-preview { display: block; color: var(--muted); font-size: .7rem; margin: 4px 0; overflow-wrap: anywhere; }
.progress { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.progress.center { justify-content: center; }
.pip { width: 18px; height: 18px; border-radius: 3px; border: 1px solid #555; background: #1a1a1a; }
.pip.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px #ff6b1a88; }
.progress small { color: var(--muted); font-size: .72rem; }
.seal-card .day-head h2 { margin: 0; }
.seal-card details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.seal-card summary { cursor: pointer; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }

/* open / holder / verify pages */
.open-main { max-width: 860px; margin: 0 auto; padding: 32px 24px 48px; }
.open-main h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); margin: 8px 0 20px; }
.lock-panel { text-align: center; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: #141109; padding: 12px 14px; border-radius: 4px; font-size: .78rem; color: #d8d2c4; margin: 16px 0; }
.open-actions { margin: 16px 0; } .open-actions details { margin-top: 12px; }
.wallet-box { border: 1px dashed var(--line); border-radius: 4px; padding: 12px 14px; margin: 12px 0; }
.result { margin: 16px 0; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.result h2 { margin-top: 0; }
.result.locked { border-color: #4a3a10; background: var(--warn-bg); } .result.locked h2 { color: var(--warn); }
.result.tampered { border-color: #4d1d19; background: var(--bad-bg); } .result.tampered h2 { color: var(--bad); font-size: 1.6rem; letter-spacing: .1em; }
.result.open { border-color: #1d4a31; } .verified { color: var(--ok); font-size: .8rem; }
.pdf-view { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.media-view { width: 100%; max-height: 70vh; border-radius: 4px; background: #000; }
.text-view { white-space: pre-wrap; background: #0e0e0e; border: 1px solid var(--line); border-radius: 4px; padding: 14px; max-height: 60vh; overflow: auto; font-size: .8rem; }

/* landing */
.landing { min-height: 100dvh; }
.landing main:not(.open-main) { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; }
.land-top { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.land-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.land-nav a:not(.btn) { color: var(--soft-ink); text-decoration: none; } .land-nav a:not(.btn):hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 16px 0 20px; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.lede { color: var(--soft-ink); font-size: .95rem; max-width: 58ch; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: .1em; font-size: .8rem; margin-bottom: 18px; }
.feed { margin: 0; font: .72rem/1.7 var(--mono); color: #cfcdc9; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 120px; }
.terminal .feed { min-height: 170px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat strong { font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; } .stat strong.mono-sm { font-size: 1rem; }
.stat small { color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.stat-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.section-title { color: var(--accent); font-size: .85rem; letter-spacing: .1em; margin: 0 0 18px; }
.steps { margin-top: 56px; }
.step-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-grid h3 { margin: 10px 0 8px; } .step-grid p { color: var(--soft-ink); font-size: .8rem; line-height: 1.7; margin: 0; }
.step-n { color: var(--accent); font-weight: 800; font-size: 1.4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tick, .cross { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .82rem; color: #cfcdc9; }
.tick li::before { content: "\2713  "; color: var(--ok); font-weight: 700; } .cross li::before { content: "\2715  "; color: var(--bad); font-weight: 700; }
.deploy { margin-top: 16px; } .deploy p { color: var(--soft-ink); font-size: .85rem; }
.deploy-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.deploy-links a { display: flex; flex-direction: column; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 12px; text-decoration: none; min-width: 0; }
.deploy-links a:hover { border-color: var(--accent); } .deploy-links code { color: var(--ink); }
.leak-table { display: grid; gap: 8px; margin-bottom: 12px; }
.leak-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: baseline; background: var(--panel-2); border-radius: 4px; padding: 12px 14px; font-size: .8rem; }
.leak-row span { color: var(--soft-ink); }
.land-foot { max-width: 1200px; margin: 24px auto 0; padding: 20px 24px; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr 1fr; } .dash-grid .span-2 { grid-column: 1 / -1; }
  .step-grid, .stat-row, .flow { grid-template-columns: 1fr 1fr; }
  .holder-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; background: none; }
  .sidebar { position: static; height: auto; padding: 20px 16px 0; border: 0; display: block; }
  .brand-sub, .sidebar-foot { display: none; }
  .workspace-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; background: #0f0f0f; border-top: 1px solid var(--line); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); }
  .workspace-nav button { flex-direction: column; justify-content: center; gap: 2px; font-size: .56rem; letter-spacing: .02em; padding: 6px 2px; min-height: 48px; }
  .worker-app main { padding: 0 16px 96px; }
  .workspace-header { margin: 0 -16px 20px; padding: 14px 16px; position: static; }
  .last-sync { display: none; }
  .card { padding: 20px 16px; } .panel { padding: 18px 16px; }
  .dash-grid, .hero, .split, .step-grid, .stat-row, .flow, .mode-pick, .holder-row, .share-block { grid-template-columns: 1fr; }
  .dash-grid .span-2 { grid-column: auto; }
  .hero { padding: 36px 0 24px; gap: 28px; }
  .land-top { padding: 16px; } .landing main:not(.open-main) { padding: 0 16px 32px; }
  .land-nav { gap: 14px; font-size: .68rem; } .land-nav .btn { display: none; }
  .leak-row { grid-template-columns: 1fr; gap: 4px; }
    .open-main { padding: 20px 16px 40px; }
}


/* exam mode */
textarea { resize: vertical; font-size: .8rem; line-height: 1.5; }
.version-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.version-grid article { background: var(--panel-2); border-radius: 4px; padding: 12px; }
.version-grid pre { white-space: pre-wrap; font-size: .7rem; max-height: 200px; overflow: auto; margin: 8px 0; color: var(--soft-ink); }
.trace-big { font: 800 1.6rem var(--mono); color: var(--accent); margin: 4px 0 8px; }


/* plain, guided layout */
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; margin-right: 10px; vertical-align: middle; }
.drop { display: block; border: 2px dashed #444; border-radius: 6px; padding: 22px 16px; text-align: center; cursor: pointer; margin-bottom: 8px; }
.drop:hover, .drop:focus-within { border-color: var(--accent); }
.drop span { display: block; font-weight: 700; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.drop input { margin: 0; }
.big-btn { min-height: 52px; padding: 0 24px; font-size: .9rem; }
.start-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.when { background: var(--panel-2); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 4px; font-size: .85rem; }
.when:empty { display: none; }
.preset-row.big button { min-height: 48px; font-size: .78rem; }
details.more { margin: 18px 0 6px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
details.more summary { cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--soft-ink); }
details.more[open] summary { margin-bottom: 12px; }
details.tech summary { cursor: pointer; color: var(--muted); }
@media (max-width: 760px) { .big-btn { width: 100%; } .start-row .btn { flex: 1; } }

/* proof page */
.proof-main { max-width: 1100px; }
.table-wrap { overflow-x: auto; }
.proof-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.proof-table th, .proof-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.proof-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.proof-table td:first-child { white-space: nowrap; color: var(--soft-ink); }
@media (max-width: 760px) { .proof-table th:nth-child(3), .proof-table td:nth-child(3) { display: none; } }

.danger-row { margin-top: 8px; }
button.danger { color: var(--bad); border-color: #4d1d19; }
.seal-card.cancelled { opacity: .6; }

/* secret messages */
.message-bubble { background: var(--panel-2); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.6; }
.message-photo { max-width: 100%; border-radius: 6px; margin: 12px 0 14px; display: block; }

/* plans */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.plan .price { font-size: 1.8rem; font-weight: 800; margin: 4px 0 14px; }
.plan.premium { border-color: var(--accent); }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
#planNote { margin-top: 12px; }

/* ===== Light editorial skin ===== */
body { font: 15px/1.65 var(--sans); letter-spacing: 0; background: var(--bg); }
h1, h2, h3 { font-family: var(--sans); text-transform: none; letter-spacing: -.02em; font-weight: 500; }
h1 { font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: 1.25rem; } h3 { font-size: 1rem; }
a { color: var(--ink); }
.eyebrow, .badge, .crumb, .nav-number, .stat-label, .last-sync, .app-footer, .mono, code, .countdown, .countdown-sm, .feed, .link-preview { font-family: var(--mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: .78rem; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--muted); }
.hero .eyebrow::before { display: none; }
.page-title .eyebrow { color: var(--muted); }
.accent { color: var(--muted); }
input, textarea, select { background: #fff; border-radius: 2px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
input[type=file]::file-selector-button { border-radius: 999px; background: var(--panel-2); }
button, .btn { font: 500 .88rem var(--sans); text-transform: none; letter-spacing: 0; border-radius: 999px; padding: 0 22px; transition: background .15s, border-color .15s; }
button:hover:not(:disabled), .btn:hover { filter: none; background: #2a2a2a; }
button.secondary, .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.secondary:hover:not(:disabled), .btn.ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.badge { border-radius: 2px; background: #fff; letter-spacing: .04em; }
.dot.ok, .dot.live { box-shadow: 0 0 0 3px #1f7a4622; }
.toast { background: var(--ink); color: #fff; border-radius: 999px; font-weight: 500; box-shadow: 0 10px 30px #0002; }
.verdict { font-family: var(--sans); text-transform: none; letter-spacing: -.01em; font-weight: 500; }
.verdict.ok { border-color: #bfe0cb; } .verdict.bad { border-color: #f1c4bf; }
.card { padding: 32px; } .panel { padding: 28px; }

/* app shell */
.app-shell { background: linear-gradient(to right, #fbfaf8 var(--rail), transparent var(--rail)); }
.brand-mark { color: var(--ink); font: 500 1.35rem var(--sans); letter-spacing: -.02em; }
.brand-sub { font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.workspace-nav button { color: var(--soft-ink); background: transparent; border-radius: 999px; font-size: .88rem; }
.workspace-nav button:hover:not(:disabled) { color: var(--ink); background: #eceae6; }
.workspace-nav button[aria-current=page] { background: var(--ink); color: #fff; }
.status-box { text-transform: none; letter-spacing: 0; font-family: var(--mono); background: #fff; }
.status-box span:not(.dot) { color: var(--soft-ink); }
.workspace-header { background: #f6f5f3e6; backdrop-filter: blur(10px); }
.crumb b { color: var(--ink); }
.app-footer { text-transform: none; letter-spacing: 0; }
.panel-title { font-size: 1rem; letter-spacing: -.01em; }
.stat-trio strong, .stat strong { font-weight: 400; letter-spacing: -.03em; font-size: 2rem; }
.day-list li, .flow li, .holder-links li, .version-grid article, .leak-row, .deploy-links a { background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.day-list small, .flow b, .mode b, .seal-card summary, details.more summary, .drop span { text-transform: none; letter-spacing: 0; }
.flow b { font-size: .95rem; font-weight: 500; }
.activity { scrollbar-color: #ccc transparent; }
.activity li { border-left: 1px solid var(--ink); }
.countdown { font-weight: 400; letter-spacing: -.02em; }
.countdown.big, .countdown-sm, .trace-big { color: var(--ink); font-weight: 400; }
.mode { background: #fff; border-radius: 2px; }
.mode:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.holder-row legend { color: var(--muted); font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.warn-note { border-color: #ead7ad; }
.pip { border-color: #bbb; background: #fff; border-radius: 50%; }
.pip.on { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.notice { background: #fff; color: var(--soft-ink); border-left-color: var(--brand); }
.result.locked { border-color: #ead7ad; } .result.tampered { border-color: #f1c4bf; } .result.open { border-color: #bfe0cb; }
.result.tampered h2 { letter-spacing: -.02em; }
.text-view { background: #fff; }
.drop { border: 1px dashed #bdbab5; border-radius: 2px; background: #fff; }
.drop:hover, .drop:focus-within { border-color: var(--ink); }
.drop span { color: var(--ink); font-weight: 500; }
.step { background: none; color: var(--muted); font: .78rem var(--mono); width: auto; height: auto; border-radius: 0; margin-right: 14px; }
.step::before { content: "0"; }
.when { background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--ink); }
details.more { border-radius: 2px; background: #fff; }
.message-bubble { background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--ink); }
.plan.premium { border-color: var(--ink); }
.plan .price { font-weight: 400; letter-spacing: -.03em; }
button.danger { color: var(--bad); border-color: #f1c4bf; }
.proof-table th { font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.tick, .cross { color: var(--soft-ink); }

/* landing: floating rounded nav, big light headline, numbered rows */
.land-top { position: sticky; top: 16px; z-index: 10; margin: 16px auto 0; max-width: 1160px; background: #fbfaf8f2; backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px #0000000d; padding: 14px 22px; }
.land-nav { text-transform: none; letter-spacing: 0; font-size: .9rem; gap: 30px; }
.land-nav a:not(.btn) { color: var(--soft-ink); } .land-nav a:not(.btn):hover { color: var(--ink); }
.land-nav .btn { min-height: 38px; padding: 0 18px; color: #fff; }
.hero { padding: 96px 0 72px; gap: 56px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.lede { font-size: 1.12rem; color: var(--soft-ink); }
.terminal { background: #fff; }
.panel-head { font: 500 .78rem var(--mono); letter-spacing: 0; }
.feed { color: var(--soft-ink); }
.section-title { color: var(--muted); font: 400 .8rem var(--mono); letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 36px; height: 1px; background: var(--muted); }
.steps { margin-top: 96px; }
.step-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.step-grid > li { display: grid; grid-template-columns: 80px 1fr; column-gap: 24px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.step-grid > li > :not(.step-n) { grid-column: 2; }
.step-grid h3 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 400; letter-spacing: -.03em; margin: 0 0 10px; }
.step-grid p { font-size: 1.02rem; max-width: 60ch; }
.step-n { grid-row: 1 / span 3; color: var(--muted); font: 400 .8rem var(--mono); padding-top: 10px; }
.stat-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }

/* ===== Sealed paper animation: sealed, encrypted, split into 3, rejoined, opened on time ===== */
.seal-anim { width: 220px; max-width: 100%; margin: 0 auto 16px; color: var(--ink); }
.seal-anim.small { width: 150px; }
.seal-anim svg { display: block; width: 100%; height: auto; overflow: visible; }
.seal-anim .frame { fill: none; stroke: var(--line); stroke-dasharray: 3 4; }
.seal-anim .sheet { fill: #fff; stroke: currentColor; stroke-width: 1.2; }
.seal-anim .plain rect { fill: currentColor; opacity: .75; }
.seal-anim .cipher line { stroke: currentColor; stroke-width: 3; animation: sa-scramble .6s steps(4) infinite; }
.seal-anim .pn { font: 500 9px var(--mono); fill: var(--muted); text-anchor: middle; }
.seal-anim .lock rect { fill: var(--ink); } .seal-anim .lock circle { fill: #fff; }
.seal-anim .shackle { fill: none; stroke: var(--ink); stroke-width: 3; }
.seal-anim .cap { font: 400 10px var(--mono); fill: var(--muted); text-anchor: middle; }
.seal-anim .pc, .seal-anim .plain, .seal-anim .cipher, .seal-anim .pn, .seal-anim .cap, .seal-anim .lock, .seal-anim .shackle {
  transform-box: fill-box; transform-origin: center; animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
.seal-anim .plain { animation-name: sa-plain; } .seal-anim .cipher { opacity: 0; animation-name: sa-cipher; }
.seal-anim .pc1 { animation-name: sa-left; } .seal-anim .pc2 { animation-name: sa-mid; } .seal-anim .pc3 { animation-name: sa-right; }
.seal-anim .pn { opacity: 0; animation-name: sa-num; }
.seal-anim .lock { animation-name: sa-lock; } .seal-anim .shackle { animation-name: sa-shackle; transform-origin: 100% 100%; }
.seal-anim .cap { opacity: 0; }
.seal-anim .c1 { animation-name: sa-c1; } .seal-anim .c2 { animation-name: sa-c2; } .seal-anim .c3 { animation-name: sa-c3; } .seal-anim .c4 { animation-name: sa-c4; }
@keyframes sa-scramble { 25% { stroke-dashoffset: 3; } 50% { stroke-dashoffset: 7; } 75% { stroke-dashoffset: 2; } }
@keyframes sa-plain { 0%, 14% { opacity: 1; } 22%, 78% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes sa-cipher { 0%, 14% { opacity: 0; } 22%, 78% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes sa-left { 0%, 30% { transform: none; } 42%, 62% { transform: translate(-26px, 6px) skewY(6deg) scaleX(.86); } 72%, 100% { transform: none; } }
@keyframes sa-mid { 0%, 30% { transform: none; } 42%, 62% { transform: translateY(-12px) scale(.96); } 72%, 100% { transform: none; } }
@keyframes sa-right { 0%, 30% { transform: none; } 42%, 62% { transform: translate(26px, 6px) skewY(-6deg) scaleX(.86); } 72%, 100% { transform: none; } }
@keyframes sa-num { 0%, 36% { opacity: 0; } 44%, 60% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes sa-lock { 0%, 30% { opacity: 1; transform: none; } 38%, 66% { opacity: 0; transform: translateY(-8px); } 74%, 100% { opacity: 1; transform: none; } }
@keyframes sa-shackle { 0%, 80% { transform: none; } 88%, 100% { transform: translateY(-5px) rotate(-18deg); } }
@keyframes sa-c1 { 0%, 14% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes sa-c2 { 0%, 16% { opacity: 0; } 20%, 34% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes sa-c3 { 0%, 38% { opacity: 0; } 42%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes sa-c4 { 0%, 76% { opacity: 0; } 82%, 98% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .workspace-nav { background: #fbfaf8; }
  .land-top { top: 8px; margin: 8px 12px 0; border-radius: 14px; }
  .hero { padding: 48px 0 32px; }
  .step-grid > li { grid-template-columns: 1fr; padding: 28px 0; } .step-grid > li > :not(.step-n) { grid-column: 1; } .step-n { grid-row: auto; padding: 0 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .seal-anim * { animation: none !important; }
  .seal-anim .c1 { opacity: 1; }
}
.step-grid > li.panel, .step-grid > li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding-left: 0; padding-right: 0; }
.step-n::before { content: "0"; }

/* ===================== Landing page (editorial layout) ===================== */
.lp { background: var(--bg); overflow-x: hidden; }
.lp-wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.lp-section { padding-top: 128px; padding-bottom: 32px; }
.lp .eyebrow { margin-bottom: 28px; }
.muted-ink { color: #8a8782; }
.lp-h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 40px; }
.lp-display { font-size: clamp(3.2rem, 10vw, 9rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; margin: 0 0 48px; }
.lp-display-2 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; margin: 0 0 28px; }
.land-top { display: grid; grid-template-columns: auto 1fr auto; }
.land-nav { justify-content: center; }
.land-actions { display: flex; align-items: center; gap: 22px; }
.nav-quiet { color: var(--soft-ink); text-decoration: none; font-size: .9rem; }
.land-actions .btn { min-height: 38px; padding: 0 18px; color: #fff; }
.tm { font: 600 .55rem var(--mono); color: var(--muted); margin-left: 6px; }

/* hero */
.lp-hero { position: relative; min-height: min(100dvh, 980px); margin-top: -90px; padding-top: 200px; padding-bottom: 80px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 130px 130px; background-position: center top; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 48% 60% at 22% 55%, var(--bg) 30%, #f6f5f399 60%, transparent 100%); pointer-events: none; }
.lp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; color: #2b2a28; z-index: 0; }
.lp-hero-copy { position: relative; z-index: 1; pointer-events: none; }
.lp-hero-copy a, .lp-hero-copy button { pointer-events: auto; }
.rotator { display: inline-block; position: relative; transition: opacity .35s, transform .35s, filter .35s; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em; background: #d9d6d1; transform-origin: left; animation: rot-bar 2.6s linear infinite; }
.rotator.out { opacity: 0; transform: translateY(.18em); filter: blur(6px); }
@keyframes rot-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-hero-foot { display: grid; gap: 36px; max-width: 600px; }
.lp-hero-foot .lede { margin: 0; font-size: 1.2rem; }
.lp-hero-foot .hero-cta { margin: 0; }
.stage-label { margin-top: 56px; color: var(--muted); font-size: .8rem; min-height: 1.2em; }

/* ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 1; }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.tick-item { display: flex; align-items: baseline; gap: 14px; padding: 34px 56px; border-right: 1px solid var(--line); white-space: nowrap; }
.tick-item strong { font-size: 3rem; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.tick-item span { color: var(--soft-ink); display: flex; flex-direction: column; }
.tick-item small { font: .72rem var(--mono); color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* capabilities */
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cap-list li { display: grid; grid-template-columns: 96px 1fr 140px; gap: 24px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.cap-n { font: .82rem var(--mono); color: var(--muted); align-self: start; padding-top: 14px; }
.cap-list h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 400; letter-spacing: -.035em; margin: 0 0 14px; }
.cap-list p { color: var(--soft-ink); font-size: 1.08rem; max-width: 58ch; margin: 0; }
.cap-ic { width: 120px; height: 120px; fill: none; stroke: var(--ink); stroke-width: 2; justify-self: end; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.cap-ic .fill { fill: var(--ink); } .cap-ic .bg { fill: var(--bg); } .cap-ic .shade { fill: #dedbd6; stroke: none; }
.cap-ic text { font: 600 13px var(--sans); fill: var(--ink); stroke: none; text-anchor: middle; }
.cap-list li:hover .cap-ic { transform: rotate(-6deg) scale(1.06); }

/* dark how-it-works */
.lp-dark { background: #0d0c0b; color: #f1efea; margin-top: 128px;
  background-image: repeating-linear-gradient(135deg, #ffffff06 0 1px, transparent 1px 22px); }
.lp-dark .lp-section { padding-top: 120px; padding-bottom: 120px; }
.lp-dark .eyebrow { color: #8f8c86; } .lp-dark .eyebrow::before { background: #8f8c86; }
.lp-dark .muted-ink { color: #77736d; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 30px 0; border-bottom: 1px solid #2a2826; cursor: pointer; opacity: .35; transition: opacity .4s; }
.how-steps li.active { opacity: 1; }
.roman { font: 1.1rem var(--mono); color: #8f8c86; padding-top: 6px; }
.how-steps h3 { font-size: 1.9rem; font-weight: 400; letter-spacing: -.03em; margin: 0 0 8px; color: #fff; }
.how-steps p { color: #a9a59e; margin: 0 0 16px; font-size: 1.02rem; }
.how-steps .bar { display: block; height: 2px; background: #2a2826; }
.how-steps .bar i { display: block; height: 100%; width: 0; background: #f1efea; }
.how-steps li.active .bar i { animation: fill-bar 4s linear forwards; }
@keyframes fill-bar { to { width: 100%; } }

/* chat illustration (generic messenger look) */
.chat { background: #efeae2; color: #111; border: 1px solid #2a2826; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px #0008; max-width: 440px; justify-self: center; width: 100%; }
.chat-head { display: flex; align-items: center; gap: 12px; background: #0f5c4d; color: #fff; padding: 14px 16px; }
.chat-head b { display: block; font-weight: 500; } .chat-head small { color: #cfe9e2; font-size: .75rem; }
.chat-av { width: 38px; height: 38px; border-radius: 50%; background: #d9fdd3; color: #0f5c4d; display: grid; place-items: center; font: 600 .8rem var(--sans); }
.chat-clock { margin-left: auto; font-size: .95rem; color: #e7f5f1; }
.chat-body { height: 420px; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none;
  background-image: radial-gradient(#00000010 1px, transparent 1px); background-size: 16px 16px; }
.chat-b { max-width: 78%; padding: 8px 10px 6px; border-radius: 10px; font-size: .93rem; line-height: 1.4; box-shadow: 0 1px 1px #0000001a; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s, transform .35s cubic-bezier(.2,.9,.3,1.3); }
.chat-b.show, .chat-sys.show { opacity: 1; transform: none; }
.chat-b.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.chat-b.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.chat-meta { display: block; text-align: right; font-size: .66rem; color: #667781; margin-top: 2px; white-space: pre; }
.chat-b.out .chat-meta { color: #4f9b8a; }
.chat-b.typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-b.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typing 1s infinite; }
.chat-b.typing i:nth-child(2) { animation-delay: .15s; } .chat-b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-file { display: flex; gap: 10px; align-items: center; background: #c4ecbd; border-radius: 6px; padding: 10px; margin-bottom: 2px; }
.chat-file b { display: block; font-weight: 500; font-size: .9rem; } .chat-file small { color: #3b6b4f; font-size: .76rem; }
.chat-lock { width: 34px; height: 40px; border-radius: 4px; background: #111; position: relative; flex-shrink: 0; }
.chat-lock::before { content: ""; position: absolute; left: 10px; top: 17px; width: 14px; height: 11px; background: #fff; border-radius: 2px; }
.chat-lock::after { content: ""; position: absolute; left: 12px; top: 9px; width: 10px; height: 9px; border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }
.chat-sys { align-self: center; max-width: 90%; text-align: center; font-size: .78rem; padding: 6px 12px; border-radius: 8px; background: #fff8c5; color: #54470c; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.chat-sys.bad { background: #ffe3e0; color: #8a1c12; } .chat-sys.ok { background: #dff5e6; color: #145c33; }
.chat-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #00000014; background: #f7f5f1; font: .75rem var(--mono); color: #4a4845; }

/* public record panel */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.status-panel { background: #fff; border: 1px solid var(--line); }
.sp-head { display: flex; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.ok-ink { color: var(--ok); display: inline-flex; align-items: center; gap: 8px; }
.sp-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 14px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.sp-row b { display: block; font-weight: 500; } .sp-row small { color: var(--muted); overflow-wrap: anywhere; }
.status-panel .feed { padding: 16px 24px; min-height: 0; border-bottom: 1px solid var(--line); }
.status-panel .deploy-links { padding: 16px 24px; }

/* big numbers */
.num-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.live-clock { color: var(--soft-ink); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.live-clock .sep { color: var(--line); }
.num-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.num-grid > div { padding: 56px; border-bottom: 1px solid var(--line); }
.num-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.num-grid strong { display: block; font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.num-grid span { color: var(--soft-ink); font-size: 1.1rem; }

/* security */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.chips span { font: .85rem var(--mono); border: 1px solid var(--line); padding: 10px 16px; background: #fff; }
.sec-cards { display: grid; gap: 22px; }
.sec-card { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.sec-card:hover { border-color: var(--ink); }
.sec-card b { font-weight: 500; font-size: 1.2rem; } .sec-card p { margin: 6px 0 0; color: var(--soft-ink); }
.sec-ic { width: 46px; height: 46px; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s; }
.sec-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sec-card:hover .sec-ic { background: var(--ink); } .sec-card:hover .sec-ic svg { stroke: #fff; }

/* quote */
.quote-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: center; }
.quote { margin: 0; font-size: clamp(1.8rem, 3.8vw, 3.4rem); letter-spacing: -.035em; line-height: 1.12; min-height: 4.6em; }
.key-card { border: 1px solid var(--line); background: #fff; padding: 32px; display: grid; gap: 14px; }
.key-card .mono { color: var(--muted); letter-spacing: .1em; }
.key-card b { font-size: 2rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.q-dots { display: flex; gap: 8px; margin-top: 18px; }
.q-dot { min-height: 0; width: 10px; height: 6px; padding: 0; border-radius: 0; background: #d5d2cd; transition: width .3s; }
.q-dot.on, .q-dot.on:hover:not(:disabled) { width: 36px; background: var(--ink); }

/* use cases marquee */
.uses .lp-h2 { text-align: center; } .center-block { margin: 0 auto 56px; text-align: center; }
.marquee { overflow: hidden; margin-bottom: 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; }
.marquee.reverse .mq-track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .mq-track { animation-play-state: paused; }
.use { border: 1px solid var(--line); background: #fff; padding: 26px 34px; min-width: 180px; transition: background .2s; }
.use:hover { background: var(--panel-2); }
.use b { display: block; font-weight: 500; font-size: 1.2rem; } .use span { color: var(--muted); }
.limits ul { font-size: 1rem; gap: 14px; }

/* CTA */
.cta-box { position: relative; border: 1px solid var(--ink); min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fbfaf8; }
.cta-copy { padding: 80px 72px; position: relative; z-index: 1; align-self: center; }
.cta-copy .mono { margin-top: 26px; }
.cta-canvas { position: absolute; right: 0; top: 0; width: 55%; height: 100%; color: #2b2a28; }

.lp-foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 80px; padding-bottom: 48px; margin-top: 64px; border-top: 1px solid var(--line); }
.lp-foot nav { display: flex; gap: 28px; flex-wrap: wrap; } .lp-foot a { color: var(--soft-ink); text-decoration: none; } .lp-foot a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .land-top { grid-template-columns: auto auto; justify-content: space-between; } .land-nav { display: none; }
  .lp-hero-foot, .how-grid, .split-2, .quote-grid, .cta-box { grid-template-columns: 1fr; }
  .cap-list li { grid-template-columns: 56px 1fr; } .cap-ic { display: none; }
}
@media (max-width: 760px) {
  .lp-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-section { padding-top: 80px; }
  .lp-hero { padding-top: 150px; min-height: 0; }
  .lp-canvas { opacity: .35; }
  .land-actions .nav-quiet { display: none; } .land-nav .btn, .land-actions .btn { display: inline-flex; }
  .tick-item { padding: 22px 28px; } .tick-item strong { font-size: 2.2rem; }
  .cap-list li { padding: 32px 0; grid-template-columns: 40px 1fr; gap: 12px; }
  .num-grid { grid-template-columns: 1fr; } .num-grid > div { padding: 32px 0; border-right: 0 !important; }
  .chat-body { height: 380px; }
  .cta-copy { padding: 48px 24px 24px; } .cta-canvas { position: relative; width: 100%; height: 300px; }
  .cta-box { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .mq-track, .rotator::after, .how-steps li.active .bar i { animation: none; }
  .how-steps li { opacity: 1; } .how-steps .bar { display: none; }
}

/* landing: full-bleed sections */
.lp main { max-width: none !important; padding: 0 !important; margin: 0; }
.cta-box .lp-display-2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.btn span[aria-hidden] { margin-left: 10px; }
/* app: secret messages with the chat illustration beside the form */
.msg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.msg-aside { position: sticky; top: 100px; }
.small-chat .chat-body { height: 400px; }
.small-chat { border-color: var(--line); box-shadow: 0 20px 50px #0000001f; }
@media (max-width: 1100px) { .msg-layout { grid-template-columns: 1fr; } .msg-aside { position: static; max-width: 440px; margin: 0 auto; } }

/* ===================== Live chat (WhatsApp-style) ===================== */
.chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chat-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.chat-row:hover { border-color: var(--ink); }
.chat-row b { display: block; font-weight: 500; } .chat-row small { color: var(--muted); }
.chat-open { font-size: .85rem; color: var(--soft-ink); }
.msg-layout { grid-template-columns: minmax(0, 760px); }
#secretLink .card { margin: 12px 0 0; }

.chat-page { margin: 0; background: #d1d7db; height: 100dvh; overflow: hidden; }
.wa { max-width: 860px; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: #efeae2; box-shadow: 0 0 40px #0002; position: relative; }
.wa-head { display: flex; align-items: center; gap: 12px; background: #0f5c4d; color: #fff; padding: 10px 14px; flex-shrink: 0; }
.wa-back { color: #fff; text-decoration: none; font-size: 1.4rem; padding: 4px 8px 4px 0; }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: #d9fdd3; color: #0f5c4d; display: grid; place-items: center; font: 600 1rem var(--sans); flex-shrink: 0; }
.wa-who { min-width: 0; flex: 1; } .wa-who b { display: block; font-weight: 500; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who small { color: #cfe9e2; font-size: .78rem; } .wa-who small.typing { color: #9ff5c7; font-style: italic; }
.wa-e2e { opacity: .8; }
.wa-body { flex: 1; overflow-y: auto; padding: 14px 6% 10px; display: flex; flex-direction: column; gap: 4px;
  background-image: radial-gradient(#00000012 1px, transparent 1px); background-size: 18px 18px; }
.wa-note { align-self: center; max-width: 520px; text-align: center; background: #fff3c4; color: #54470c; font-size: .78rem; padding: 6px 12px; border-radius: 8px; margin: 4px 0 10px; }
.wa-day { align-self: center; background: #fff; color: #54656f; font-size: .74rem; padding: 4px 12px; border-radius: 8px; margin: 10px 0 6px; box-shadow: 0 1px 1px #0000001a; }
.wa-msg { max-width: min(75%, 520px); padding: 6px 9px 4px; border-radius: 8px; font-size: .95rem; line-height: 1.38; box-shadow: 0 1px 1px #0000001a; position: relative; animation: wa-pop .22s ease-out; overflow-wrap: anywhere; }
.wa-msg p { margin: 0; white-space: pre-wrap; }
.wa-msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-msg.locked { background: #1f2c34; color: #e9edef; }
.wa-msg.locked .wa-meta { color: #8696a0; }
.wa-msg.gone { color: #667781; font-style: italic; }
.wa-meta { display: flex; justify-content: flex-end; gap: 4px; font-size: .68rem; color: #667781; margin-top: 2px; }
.wa-tick { letter-spacing: -3px; padding-right: 3px; } .wa-tick.read { color: #53bdeb; }
.wa-img { display: block; max-width: 100%; max-height: 340px; border-radius: 6px; margin-bottom: 4px; cursor: zoom-in; }
.wa-count { display: block; color: #9ff5c7; margin-top: 2px; }
.wa-unsealed { font-size: .74rem; color: #128c7e; margin-bottom: 2px !important; }
.wa-once { min-height: 0; background: transparent; color: #027eb5; padding: 4px 0; border-radius: 0; font: 500 .92rem var(--sans); }
.wa-once:hover:not(:disabled) { background: transparent; text-decoration: underline; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.wa-invite { margin: 0 6% 10px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px #0000001a; }
.wa-invite p { font-size: .85rem; color: #54656f; margin: 6px 0 10px; }
.wa-link { background: #f0f2f5; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.wa-invite .btn { background: #25d366; color: #fff; } .wa-invite .btn:hover { background: #1ebe5b; }
.wa-compose { background: #f0f2f5; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); flex-shrink: 0; }
.wa-bar { display: flex; align-items: flex-end; gap: 6px; }
.wa-bar textarea { flex: 1; margin: 0; border: 0; border-radius: 22px; padding: 11px 16px; font: .98rem/1.35 var(--sans); resize: none; max-height: 140px; background: #fff; }
.wa-icon { min-height: 0; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: #54656f; display: grid; place-items: center; font-size: 1.25rem; padding: 0; cursor: pointer; margin: 0; }
.wa-icon:hover:not(:disabled) { background: #e2e5e9; } .wa-icon.on { background: #d9fdd3; }
.wa-send { min-height: 0; width: 46px; height: 46px; border-radius: 50%; background: #00a884; color: #fff; padding: 0; font-size: 1.1rem; }
.wa-send:hover:not(:disabled) { background: #029273; }
.wa-opts { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.wa-opts .mono { font-size: .74rem; color: #54656f; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wa-chips button { min-height: 32px; padding: 0 12px; font-size: .82rem; background: #f0f2f5; color: #111; }
.wa-chips button.on, .wa-chips button.on:hover:not(:disabled) { background: #00a884; color: #fff; }
.wa-chips button:hover:not(:disabled) { background: #e2e5e9; }
.wa-opts input[type=datetime-local] { margin: 4px 0 8px; }
.wa-opts .check-row { margin: 4px 0 0; font-size: .88rem; }
.wa-pending { margin: 6px 4px 0; font-size: .74rem; color: #128c7e; }
.wa-modal { position: fixed; inset: 0; background: #0b141acc; display: grid; place-items: center; z-index: 30; padding: 16px; }
.wa-card { background: #fff; border-radius: 16px; padding: 28px; width: min(420px, 100%); }
.wa-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.wa-card .big-btn { width: 100%; background: #00a884; } .wa-card .big-btn:hover:not(:disabled) { background: #029273; }
.wa-viewer { background: #111b21; color: #e9edef; border-radius: 16px; padding: 20px; width: min(560px, 100%); display: grid; gap: 14px; }
.wa-viewer img { max-width: 100%; max-height: 65vh; border-radius: 8px; justify-self: center; }
.wa-viewer p { white-space: pre-wrap; font-size: 1.05rem; margin: 0; }
.chat-page .toast { bottom: 90px; }
@media (max-width: 760px) { .wa-body { padding: 10px 10px; } .wa-msg { max-width: 85%; } .wa-invite { margin: 0 10px 10px; } }

/* lock flow: one person + merge hides the people presets */
#splitBox.pair > .field-note, #splitBox.pair > .preset-row, #splitBox.pair > details.more { display: none; }

/* chat attachments */
.wa-file { font-size: .88rem; color: #54656f; }
.wa-video { display: block; width: 100%; max-width: 420px; max-height: 360px; border-radius: 6px; background: #000; margin-bottom: 4px; }
.wa-audio { display: block; width: 260px; max-width: 100%; height: 40px; margin: 2px 0; }
.wa-doc { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: #00000008; border-radius: 6px; padding: 8px 10px; text-decoration: none; color: #111; margin-top: 2px; min-width: 220px; }
.wa-msg.out .wa-doc { background: #c4ecbd; }
.wa-doc-ic { font-size: 1.6rem; text-align: center; }
.wa-doc b { display: block; font-weight: 500; font-size: .88rem; overflow-wrap: anywhere; } .wa-doc small { color: #667781; font-size: .72rem; }
.wa-icon.rec { background: #e53935; color: #fff; animation: rec-pulse 1s infinite; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px #e5393533; } }
.wa-viewer .wa-doc { background: #ffffff14; color: #e9edef; } .wa-viewer .wa-doc small { color: #8696a0; }

/* ===================== "Watch how it works" 3D story ===================== */
.story-sec { padding-top: 96px; }
.story { border: 1px solid var(--ink); background: #fbfaf8; }
.st-stage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; perspective: 1400px; perspective-origin: 50% 20%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #ffffff 0%, #f3f1ed 70%); }
.st-floor { position: absolute; left: -30%; right: -30%; top: 52%; height: 90%; transform: rotateX(72deg); transform-origin: top;
  background-image: linear-gradient(#d8d5cf 1px, transparent 1px), linear-gradient(90deg, #d8d5cf 1px, transparent 1px); background-size: 6cqw 6cqw;
  mask-image: linear-gradient(#000, transparent 70%); }

/* every actor fades in/out between scenes */
.st-person, .st-choice, .st-clock, .st-thief, .st-stamp, .st-phone, .st-net, .st-pen { position: absolute; opacity: 0; transition: opacity .6s, transform .9s cubic-bezier(.6, 0, .2, 1); pointer-events: none; }

/* people */
.st-person { width: 9cqw; text-align: center; transform: translateY(2cqw); }
.st-person span { display: grid; place-items: center; width: 5.4cqw; height: 5.4cqw; margin: 0 auto .6cqw; border-radius: 50%; background: #fff; border: .15cqw solid #111; font: 500 max(10px, 2cqw) var(--sans); box-shadow: 0 1.2cqw 2cqw #0000001a; }
.st-person small { font: max(9px, 1.15cqw) var(--mono); color: var(--soft-ink); }
.st-person.you { left: 66cqw; top: 13cqw; } .st-person.recv { left: 7cqw; top: 13cqw; }
.st-person.h1 { left: 13.5cqw; top: 41cqw; } .st-person.h2 { left: 45.5cqw; top: 43.5cqw; } .st-person.h3 { left: 77.5cqw; top: 41cqw; }
.story:is([data-scene=write], [data-scene=seal]) .st-person.you,
.story:is([data-scene=timeA], [data-scene=openA]) .st-person.recv,
.story:is([data-scene=splitB], [data-scene=mergeB]) :is(.st-person.h1, .st-person.h2, .st-person.h3) { opacity: 1; transform: none; }
.story[data-scene=openA] .st-person.recv span, .story[data-scene=mergeB] .st-person:is(.h1, .h2, .h3) span { background: #e8f4ec; border-color: var(--ok); }

/* the paper: three pieces side by side */
.st-paper { position: absolute; left: 41cqw; top: 7cqw; width: 18cqw; height: 26cqw; display: flex; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.6, 0, .2, 1), opacity .6s; transform: rotateX(14deg) rotateY(-12deg); }
.st-piece { position: relative; flex: 1; background: #fff; border: .12cqw solid #111; padding: 3.6cqw .7cqw 0; display: flex; flex-direction: column; gap: 1.45cqw;
  transition: transform 1.1s cubic-bezier(.6, 0, .2, 1), border-color .4s; box-shadow: 0 2cqw 3cqw #00000014; }
.st-piece.p2, .st-piece.p3 { border-left: .12cqw dashed #c9c6c0; }
.st-piece.p1 { border-right: 0; } .st-piece.p2 { border-right: 0; }
.st-head { position: absolute; top: 1.3cqw; left: .8cqw; font: 600 max(7px, .95cqw) var(--mono); letter-spacing: .08em; white-space: nowrap; }
.ln { position: relative; display: block; height: .75cqw; background: #1b1b1b; border-radius: .4cqw; transform-origin: left; }
.ln::after { content: ""; position: absolute; inset: -.2cqw 0; border-radius: .2cqw; opacity: 0; transition: opacity .5s;
  background: repeating-linear-gradient(90deg, #d14b1f 0 .45cqw, transparent .45cqw .9cqw), #fff; }
.st-key { position: absolute; left: 50%; bottom: 1cqw; transform: translateX(-50%) scale(.6); white-space: nowrap; font: max(7px, .9cqw) var(--mono);
  background: #111; color: #fff; padding: .3cqw .6cqw; border-radius: 1cqw; opacity: 0; transition: opacity .4s, transform .4s; }

/* encrypted look: lines become scrambling cipher blocks */
.story:is([data-scene=seal], [data-scene=choose], [data-scene=timeA], [data-scene=splitB]) .ln::after { opacity: 1; animation: st-scr .4s steps(2) infinite; }
.story[data-scene=seal] .ln::after { transition-delay: .9s; }
.story:is([data-scene=openA], [data-scene=mergeB]) .ln::after { animation: st-dec 2.2s both; }
@keyframes st-scr { 50% { background-position: .45cqw 0; } }
@keyframes st-dec { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* paper position per scene */
.story[data-scene=seal] .st-paper { transform: scale(1.06); }
.story[data-scene=choose] .st-paper { transform: translateY(1cqw) scale(.84); }
.story[data-scene=timeA] .st-paper { transform: translate(-23cqw, 4cqw) scale(.6) rotateY(22deg); }
.story[data-scene=openA] .st-paper { transform: translate(-23cqw, 4cqw) scale(.66); }
.story[data-scene=splitB] .st-paper { transform: translateY(-2cqw) scale(.86); }
.story[data-scene=mergeB] .st-paper { transform: translateY(-1cqw) scale(.98); }
.story[data-scene=chat] .st-paper { transform: translateY(-8cqw) scale(.4); opacity: 0; }
.story[data-scene=splitB] .st-piece { border: .12cqw solid #111; }
.story[data-scene=splitB] .st-piece.p1 { transform: translate(-22cqw, 6cqw) rotateY(32deg) rotateZ(-6deg); }
.story[data-scene=splitB] .st-piece.p2 { transform: translate(0, 7cqw) translateZ(3cqw); }
.story[data-scene=splitB] .st-piece.p3 { transform: translate(22cqw, 6cqw) rotateY(-32deg) rotateZ(6deg); }
.story[data-scene=splitB] .st-key { opacity: 1; transform: translateX(-50%) scale(1); transition-delay: .8s; }

/* padlock on the paper */
.st-lock { position: absolute; left: calc(50% - 3cqw); top: -3.4cqw; width: 6cqw; height: 7cqw; opacity: 0; transform: translateY(-14cqw); transition: opacity .4s, transform .5s; transform-style: preserve-3d; }
.st-lock .sh { position: absolute; left: 1.2cqw; top: 0; width: 3.6cqw; height: 3.8cqw; border: .7cqw solid #111; border-bottom: 0; border-radius: 2cqw 2cqw 0 0; transform-origin: 100% 100%; transition: transform .5s; }
.st-lock .bd { position: absolute; left: 0; bottom: 0; width: 6cqw; height: 4.4cqw; background: #111; border-radius: .6cqw; transition: background .5s; }
.st-lock .bd::after { content: ""; position: absolute; left: 2.6cqw; top: 1.4cqw; width: .8cqw; height: 1.6cqw; background: #fff; border-radius: .4cqw; }
.story:is([data-scene=choose], [data-scene=timeA]) .st-lock { opacity: 1; transform: none; }
.story[data-scene=seal] .st-lock { animation: st-drop 1.2s .3s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes st-drop { 0% { opacity: 0; transform: translateY(-16cqw) rotateY(80deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.story[data-scene=seal] .st-lock .sh { animation: st-click .5s 1.1s both; }
@keyframes st-click { 0% { transform: translateY(-1.4cqw); } 100% { transform: none; } }
.story:is([data-scene=openA], [data-scene=mergeB]) .st-lock { opacity: 1; transform: none; }
.story:is([data-scene=openA], [data-scene=mergeB]) .st-lock .sh { animation: st-unlock .6s 1s both; }
.story:is([data-scene=openA], [data-scene=mergeB]) .st-lock .bd { animation: st-green .6s 1s both; }
@keyframes st-unlock { to { transform: translateY(-1.6cqw) rotate(-32deg); } }
@keyframes st-green { to { background: var(--ok); } }
.story[data-scene=mergeB] .st-lock { animation: st-fadein .4s 1s both; }
@keyframes st-fadein { from { opacity: 0; } }
.st-glow { position: absolute; inset: -2cqw; border-radius: 1cqw; border: .3cqw solid var(--ok); opacity: 0; pointer-events: none; }
.story:is([data-scene=mergeB], [data-scene=openA]) .st-glow { animation: st-glow 1.4s 1s both; }
@keyframes st-glow { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }

/* pen */
.st-pen { left: 0; top: 0; width: 2.4cqw; height: 7.2cqw; margin-top: -7.2cqw; transform-origin: 0 100%; filter: drop-shadow(.6cqw .8cqw .6cqw #0003); }
.story[data-scene=write] .st-pen { opacity: 1; }

/* option cards */
.st-choice { top: 11cqw; width: 22cqw; padding: 1.8cqw; background: #fff; border: .12cqw solid #111; display: grid; gap: .6cqw; box-shadow: 0 2cqw 3cqw #00000014; }
.st-choice .mono { font-size: max(8px, .95cqw); color: var(--muted); letter-spacing: .1em; }
.st-choice b { font: 500 max(11px, 1.9cqw) var(--sans); letter-spacing: -.02em; }
.st-choice small { font-size: max(9px, 1.2cqw); color: var(--soft-ink); }
.st-choice.a { left: 5cqw; transform: rotateY(28deg) translateX(-4cqw); }
.st-choice.b { left: 73cqw; transform: rotateY(-28deg) translateX(4cqw); }
.story[data-scene=choose] .st-choice { opacity: 1; }
.story[data-scene=choose] .st-choice.a { transform: rotateY(18deg); transition-delay: .3s; }
.story[data-scene=choose] .st-choice.b { transform: rotateY(-18deg); transition-delay: .6s; }

/* clock (path A) */
.st-clock { left: 66cqw; top: 6cqw; width: 16cqw; text-align: center; transform: rotateY(-20deg) scale(.9); }
.st-face { position: relative; width: 14cqw; height: 14cqw; margin: 0 auto 1cqw; border-radius: 50%; background: #fff; border: .25cqw solid #111; box-shadow: 0 2cqw 3cqw #0000001a; }
.st-face i { position: absolute; left: calc(50% - .25cqw); bottom: 50%; width: .5cqw; background: #111; border-radius: .3cqw; transform-origin: 50% 100%; }
.st-face .hh { height: 3.6cqw; transform: rotate(255deg); } .st-face .mh { height: 5.4cqw; width: .35cqw; left: calc(50% - .175cqw); transform: rotate(250deg); }
.st-face b { position: absolute; left: calc(50% - .7cqw); top: calc(50% - .7cqw); width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #d14b1f; }
.st-time { font-size: max(9px, 1.3cqw); }
.story[data-scene=timeA] .st-time::after { content: "14 Nov · 08:42 · locked"; }
.story[data-scene=openA] .st-time::after { content: "14 Nov · 09:00 · open ✓"; color: var(--ok); }
.story:is([data-scene=timeA], [data-scene=openA]) .st-clock { opacity: 1; transform: rotateY(-20deg); }
.story[data-scene=timeA] .st-face .mh { animation: st-spin 1s linear infinite; }
.story[data-scene=timeA] .st-face .hh { animation: st-hour 6s linear both; }
@keyframes st-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes st-hour { from { transform: rotate(250deg); } to { transform: rotate(268deg); } }
.story[data-scene=openA] .st-face .hh { transform: rotate(270deg); } .story[data-scene=openA] .st-face .mh { transform: rotate(360deg); }
.story[data-scene=openA] .st-face { border-color: var(--ok); }

/* early attempt (path A) */
.st-thief { left: 70cqw; top: 35cqw; width: 12cqw; text-align: center; }
.st-thief span { display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; margin: 0 auto .5cqw; border-radius: 50%; background: #fbeceb; border: .15cqw solid var(--bad); color: var(--bad); font: 600 max(10px, 1.8cqw) var(--sans); }
.st-thief small { font: max(8px, 1.05cqw) var(--mono); color: var(--bad); }
.story[data-scene=timeA] .st-thief { animation: st-thief 1.4s 1s both; }
@keyframes st-thief { 0% { opacity: 0; transform: translateX(8cqw); } 100% { opacity: 1; transform: none; } }
.st-stamp { left: 30cqw; top: 37cqw; width: 40cqw; text-align: center; padding: 1cqw; border: .25cqw solid var(--bad); color: var(--bad); background: #fff;
  font: 600 max(9px, 1.4cqw) var(--mono); transform: rotate(-4deg) scale(1.4); }
.story[data-scene=timeA] .st-stamp { animation: st-stamp .5s 2.6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes st-stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }

/* chat (two phones) */
.st-phone { top: 3cqw; width: 22cqw; height: 44cqw; border-radius: 2.4cqw; background: #efeae2; border: .5cqw solid #111; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 3cqw 5cqw #00000026; }
.st-phone.l { left: 8cqw; transform: rotateY(24deg) translateX(-4cqw); } .st-phone.r { left: 70cqw; transform: rotateY(-24deg) translateX(4cqw); }
.story[data-scene=chat] .st-phone { opacity: 1; } .story[data-scene=chat] .st-phone.l { transform: rotateY(16deg); } .story[data-scene=chat] .st-phone.r { transform: rotateY(-16deg); }
.st-ph-head { display: flex; align-items: center; gap: .8cqw; background: #0f5c4d; color: #fff; padding: 1.2cqw; font: 500 max(9px, 1.3cqw) var(--sans); }
.st-ph-head span { display: grid; place-items: center; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #d9fdd3; color: #0f5c4d; font-size: max(8px, 1.1cqw); }
.st-ph-head small { margin-left: auto; font-size: max(7px, .9cqw); color: #cfe9e2; }
.st-ph-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .7cqw; padding: 1cqw; overflow: hidden;
  background-image: radial-gradient(#00000012 1px, transparent 1px); background-size: 1.4cqw 1.4cqw; }
.st-bub { max-width: 85%; padding: .7cqw .9cqw; border-radius: .8cqw; font: max(8px, 1.15cqw)/1.35 var(--sans); box-shadow: 0 .15cqw .2cqw #0000001a; display: none; }
.st-bub.out { align-self: flex-end; background: #d9fdd3; } .st-bub.in { align-self: flex-start; background: #fff; }
.story[data-scene=chat] .st-stage.run .st-bub { display: block; animation: st-pop .35s var(--t) both; }
@keyframes st-pop { from { opacity: 0; transform: translateY(1cqw) scale(.9); max-height: 0; padding-block: 0; } to { opacity: 1; transform: none; max-height: 12cqw; } }
.st-unlock { display: inline-block; margin-right: .4cqw; animation: st-fadeout 1.2s calc(var(--t) + .3s) both; }
@keyframes st-fadeout { 0%, 60% { opacity: 1; } 100% { opacity: .35; } }
.st-doc { display: grid; grid-template-columns: auto 1fr; column-gap: .6cqw; align-items: center; background: #00000008; padding: .5cqw; border-radius: .5cqw; }
.st-doc b { font-weight: 500; } .st-doc small { grid-column: 2; color: #667781; font-size: max(7px, .9cqw); }
.st-photo { display: block; width: 14cqw; height: 8cqw; border-radius: .5cqw; margin-bottom: .4cqw; background: linear-gradient(135deg, #f6c177, #d14b1f 55%, #3b2a4a); }
.st-vid { display: grid; place-items: center; width: 14cqw; height: 8cqw; border-radius: .5cqw; margin-bottom: .4cqw; background: #111; color: #fff; font-size: max(10px, 2cqw); }
.st-voice { display: inline-flex; align-items: center; gap: .6cqw; } .st-voice i { width: 8cqw; height: 1.4cqw; background: repeating-linear-gradient(90deg, #4f9b8a 0 .25cqw, transparent .25cqw .55cqw); mask-image: linear-gradient(0deg, #000 30%, transparent 30%, transparent 70%, #000 70%); }
.st-net { left: 31cqw; width: 38cqw; top: 20cqw; height: 12cqw; border-top: .15cqw dashed #b9b5ae; text-align: center; }
.story[data-scene=chat] .st-net { opacity: 1; }
.st-net small { position: absolute; left: 0; right: 0; top: 7cqw; font-size: max(8px, 1.1cqw); color: var(--muted); }
.st-pkt { position: absolute; top: -1.7cqw; left: 0; padding: .4cqw .8cqw; background: #111; color: #fff; border-radius: 1.4cqw; font: max(8px, 1.05cqw) var(--mono); white-space: nowrap; opacity: 0; }
.story[data-scene=chat] .st-stage.run .st-pkt.to-r { animation: st-fly-r 1s var(--t) ease-in-out both; }
.story[data-scene=chat] .st-stage.run .st-pkt.to-l { animation: st-fly-l 1s var(--t) ease-in-out both; }
@keyframes st-fly-r { 0% { opacity: 0; transform: translateX(-2cqw); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(30cqw); } }
@keyframes st-fly-l { 0% { opacity: 0; transform: translateX(30cqw); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-2cqw); } }

/* NEAR block row */
.st-chain { position: absolute; left: 2cqw; right: 2cqw; bottom: 1.6cqw; display: flex; align-items: center; gap: 1cqw; }
.st-chain > .mono { font-size: max(8px, 1cqw); background: #111; color: #fff; padding: .4cqw .8cqw; }
.st-blocks { display: flex; gap: .8cqw; flex-wrap: wrap; }
.st-blk { font: max(8px, 1cqw) var(--mono); padding: .4cqw .8cqw; border: .12cqw solid var(--line); background: #fff; }
.st-blk.ok { border-color: #bfe0cb; color: var(--ok); } .st-blk.bad { border-color: #f1c4bf; color: var(--bad); }
.st-blk.new { animation: st-blk .6s .4s both; }
@keyframes st-blk { from { opacity: 0; transform: translateY(1cqw); } }

/* caption, controls, chapters */
.st-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; border-top: 1px solid var(--line); }
.st-cap { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; min-height: 64px; }
.st-n { color: var(--muted); padding-top: 4px; }
.st-title { display: block; font: 400 1.6rem var(--sans); letter-spacing: -.03em; }
.st-text { margin: 4px 0 0; color: var(--soft-ink); max-width: 70ch; }
.st-play { flex-shrink: 0; }
.st-chapters { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--line); }
.st-chap { position: relative; min-height: 58px; border-radius: 0; background: transparent; color: var(--muted); font: 400 .82rem var(--sans); padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; border-right: 1px solid var(--line); text-align: left; }
.st-chap:last-child { border-right: 0; }
.st-chap .mono { font-size: .7rem; }
.st-chap:hover:not(:disabled) { background: var(--panel-2); color: var(--ink); }
.st-chap.on, .st-chap.on:hover:not(:disabled) { color: var(--ink); background: #fff; }
.st-chap i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.st-chap.done i { background: var(--ink); }
.st-chap.on i { background: var(--ink); transform-origin: left; animation: st-prog var(--scene-ms, 5s) linear both; }
.story.paused .st-chap.on i { animation: none; }
@keyframes st-prog { from { transform: scaleX(0); } }

@media (max-width: 760px) {
  .st-bar { flex-direction: column; align-items: stretch; padding: 16px; }
  .st-title { font-size: 1.25rem; }
  .st-chapters { grid-template-columns: repeat(4, 1fr); }
  .st-chap { min-height: 48px; font-size: .72rem; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .story * { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* audit fixes */
h1, .lp-h2, .lp-display-2 { text-wrap: balance; }
.card.empty { text-align: center; padding: 48px 24px; } .card.empty .btn { margin-top: 8px; }
.land-top > .badge, .land-top > #state { justify-self: end; width: auto; }
@media (max-width: 760px) {
  .app-shell { background: none; }
  .workspace-nav .nav-number { display: none; }
  .workspace-nav button { font-size: .62rem; line-height: 1.15; padding: 4px 2px; text-align: center; }
  .start-row .btn { flex: 1 1 100%; }
}

/* brand logo */
.brand { align-items: center; }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; margin-right: -2px; }
.sidebar .brand-logo { width: 38px; height: 38px; }
