/* Cracked v5 — Static SSR Stylesheet (2-Theme System: Warm Paper Light / Obsidian OLED Dark) */
@font-face {
  font-family: "Allo";
  src: url("/assets/AlloVariable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root,
[data-theme="dark"] {
  --sidebar: #060608;
  --canvas: #060608;
  --surface: #101015;
  --elevated: #181820;
  --surface-hover: #22222d;
  --control-active: #282834;
  --hairline: #1b1b24;
  --line: #272733;
  --line-hover: #383848;
  --ink: #fafafa;
  --ink-soft: #e4e4ec;
  --ink-secondary: #9d9daa;
  --ink-muted: #868696;
  --brand: #ff5c16;
  --brand-hover: #ff7838;
  --brand-ink: #060608;
  --brand-bg: rgba(255, 92, 22, 0.16);
  --win: #28d16f;
  --win-bg: rgba(40, 209, 111, 0.14);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.52);
  --shadow-pill: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 4px 14px rgba(0, 0, 0, 0.48);
  --shadow-cta: 0 6px 24px rgba(255, 92, 22, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --stage-bg: #040406;
  --stage-glow: radial-gradient(ellipse 68% 60% at 50% 48%, rgba(255, 110, 32, 0.30) 0%, rgba(255, 92, 22, 0.10) 46%, rgba(6, 6, 8, 0) 76%);
  --font-sans: "Inter", "Allo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="light"] {
  --sidebar: #f6f4ef;
  --canvas: #f6f4ef;
  --surface: #ffffff;
  --elevated: #ece8df;
  --surface-hover: #e2ddd2;
  --control-active: #ffffff;
  --hairline: #e6e1d7;
  --line: #d8d2c6;
  --line-hover: #c4bdb0;
  --ink: #141311;
  --ink-soft: #2b2824;
  --ink-secondary: #57534e;
  --ink-muted: #69635b;
  --brand: #c83f06;
  --brand-hover: #a93404;
  --brand-ink: #ffffff;
  --brand-bg: rgba(200, 63, 6, 0.08);
  --win: #126d38;
  --win-bg: rgba(21, 122, 64, 0.10);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 1px 2px rgba(17, 15, 12, 0.045), 0 10px 28px rgba(17, 15, 12, 0.065);
  --shadow-pill: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 6px rgba(17, 15, 12, 0.08), 0 1px 2px rgba(17, 15, 12, 0.04);
  --shadow-cta: 0 6px 22px rgba(200, 63, 6, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --stage-bg: #060608;
  --stage-glow: radial-gradient(ellipse 68% 60% at 50% 48%, rgba(200, 63, 6, 0.16) 0%, rgba(200, 63, 6, 0.05) 48%, rgba(246, 244, 239, 0) 76%);
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scrollbar-width: thin; scrollbar-color: var(--control-active) var(--canvas); }
html, body { margin: 0; padding: 0; background: var(--canvas); color: var(--ink); font: 14px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--brand); color: var(--brand-ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a, button, img, svg, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable="true"], pre, code, [data-selectable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
button { font-family: inherit; color: inherit; border: 0; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-win { color: var(--win); }
.text-brand { color: var(--brand); }
.text-muted { color: var(--ink-muted); }
.row-gap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted-note { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.brand-word { font-size: 17px; font-weight: 700; letter-spacing: -0.035em; }
.version-pill { font: 500 12px/1 var(--font-mono); color: var(--ink-secondary); background: var(--elevated); box-shadow: var(--shadow-pill); border-radius: 9999px; padding: 5px 10px; white-space: nowrap; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; background: var(--elevated); color: var(--ink-secondary); box-shadow: var(--shadow-pill); cursor: pointer; flex-shrink: 0; transition: transform 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease); }
.theme-toggle:active { transform: scale(0.95); }
.crumb-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); background: var(--elevated); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); border-radius: 9999px; padding: 5px 12px; margin-bottom: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-pill strong { color: var(--ink-soft); font-weight: 600; }
.page-title { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; text-wrap: balance; }
.page-sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-secondary); line-height: 1.55; }
.btn-outline, .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; min-height: 44px; padding: 9px 18px; border-radius: 9999px; cursor: pointer; white-space: nowrap; transition: transform 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease); }
.btn-outline:active, .btn-primary:active { transform: scale(0.97); }
.btn-outline { background: var(--elevated); color: var(--ink-soft); box-shadow: var(--shadow-pill); }
.btn-primary { background: var(--brand); color: var(--brand-ink); font-weight: 700; letter-spacing: -0.015em; box-shadow: var(--shadow-cta); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 12px; border-radius: 9999px; }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15px; border-radius: 9999px; }
.card { background: var(--surface); border-radius: 22px; padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 500 12px/1 var(--font-mono); padding: 5px 10px; border-radius: 9999px; background: var(--elevated); color: var(--ink-soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill-win { color: var(--win); background: var(--win-bg); }
.pill-brand { color: var(--brand); background: var(--brand-bg); }
.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-strip.kpi-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi-strip.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-cell { padding: 16px 18px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); min-width: 0; }
.card .kpi-cell { background: var(--elevated); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.kpi-label { font-size: 11px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-val { font: 700 26px/1.12 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.035em; color: var(--ink); margin-top: 6px; }
.kpi-val.text-win { color: var(--win); }
.kpi-unit { font-size: 14px; color: var(--ink-muted); font-weight: 500; margin-left: 3px; }
.kpi-sub { font: 12px/1.4 var(--font-mono); color: var(--ink-muted); margin-top: 6px; }
.pitch-body { background: var(--canvas); min-height: 100vh; overflow-x: clip; }
.pitch-shell { max-width: 1000px; margin: 0 auto; padding: 24px 20px 64px; }
.pitch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; margin-bottom: 28px; }
.pitch-grid { display: grid; grid-template-columns: 332px minmax(0, 1fr); gap: 32px; align-items: start; }
.pitch-stage-wrap { position: relative; display: flex; justify-content: center; align-items: center; isolation: isolate; }
.pitch-stage-wrap::before { content: ""; position: absolute; inset: -28px -22px; background: var(--stage-glow); border-radius: 40px; pointer-events: none; z-index: 0; }
.pitch-ambient { position: absolute; inset: -10px; background-size: cover; background-position: center; filter: blur(44px) saturate(1.45); opacity: 0.36; border-radius: 32px; pointer-events: none; z-index: 0; }
[data-theme="light"] .pitch-ambient { opacity: 0.12; filter: blur(34px) saturate(1.2); }
.pitch-stage { position: relative; z-index: 1; width: 100%; background: var(--stage-bg); border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 16; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 64px rgba(0, 0, 0, 0.72); }
[data-theme="light"] .pitch-stage { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 46px rgba(17, 15, 12, 0.24); }
.pitch-stage-badge { position: absolute; top: 14px; left: 14px; z-index: 2; max-width: calc(100% - 28px); display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9999px; background: rgba(6, 6, 8, 0.80); color: #fafafa; font: 600 11px/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 16px rgba(0, 0, 0, 0.56); pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-stage-dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--brand); box-shadow: 0 0 10px rgba(255, 92, 22, 0.75); flex-shrink: 0; }
.pitch-video { width: 100%; height: 100%; object-fit: contain; background: var(--stage-bg); display: block; }
.pitch-card { margin-bottom: 0; min-width: 0; }
.pitch-actions { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.pub-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.pub-header { position: sticky; top: 0; z-index: 40; background: var(--sidebar); }
.pub-header-inner { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.pub-header-inner .brand-lockup { justify-self: start; }
.pub-nav { display: inline-flex; align-items: center; justify-self: center; gap: 4px; background: var(--elevated); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); padding: 4px; border-radius: 9999px; }
.pub-nav-link { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 9999px; font-size: 13px; font-weight: 500; color: var(--ink-secondary); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.pub-nav-link.active { color: var(--ink); font-weight: 600; background: var(--control-active); box-shadow: var(--shadow-pill); }
.pub-actions { display: inline-flex; align-items: center; justify-self: end; gap: 8px; flex-shrink: 0; }
.pub-mobile-nav { display: none; }
.pub-main { flex: 1; width: 100%; padding: 0 28px 68px; }
.pub-container { max-width: 1240px; margin: 0 auto; width: 100%; }
.pub-page-pad { padding-top: 32px; }
.pub-footer { margin-top: auto; background: var(--sidebar); }
.pub-footer-inner { max-width: 1240px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.pub-footer-brand { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pub-footer-sep { color: var(--line); }
.pub-footer-links { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pub-footer-link { color: var(--ink-secondary); font-size: 13px; }
@media (hover: hover) {
  .theme-toggle:hover { background: var(--surface-hover); color: var(--ink); }
  .btn-outline:hover { background: var(--surface-hover); color: var(--ink); }
  .btn-primary:hover { background: var(--brand-hover); }
  .pub-nav-link:hover { color: var(--ink); }
  .pub-footer-link:hover { color: var(--ink); }
}
@media (max-width: 860px) {
  .pub-header { padding-top: env(safe-area-inset-top); }
  .pub-header-inner { display: flex; justify-content: space-between; padding: 0 14px; height: 58px; gap: 8px; }
  .pub-nav { display: none; }
  .pub-mobile-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px 14px 10px; background: var(--sidebar); }
  .pub-mnav-link { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ink-secondary); border-radius: 9999px; }
  .pub-mnav-link.active { color: var(--ink); font-weight: 600; background: var(--elevated); box-shadow: var(--shadow-pill); }
  .pub-main { padding: 0 14px 48px; }
  .pub-page-pad { padding-top: 18px; }
  .pub-footer-inner { padding: 20px 14px; }
  .btn-outline, .btn-primary, .btn-sm { min-height: 44px; }
  .page-title { font-size: 24px; }
  .kpi-strip.kpi-2, .kpi-strip.kpi-3 { grid-template-columns: minmax(0, 1fr); }
  .pill { font-size: 11px; padding: 5px 9px; white-space: normal; line-height: 1.3; }
  .pitch-shell { padding: calc(12px + env(safe-area-inset-top)) 14px calc(44px + env(safe-area-inset-bottom)); }
  .pitch-head { margin-bottom: 12px; }
  .pitch-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pitch-card { padding: 18px 16px; }
  .pitch-stage-wrap { max-width: 212px; width: 100%; margin: 0 auto; }
  .pitch-stage-wrap::before { inset: -14px -14px; }
  .pitch-ambient { inset: -6px; }
  .pitch-stage { max-width: 212px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
