/* OpenCaption Live · shared site system, built from design/website.pen (master).
   Desktop frames are 1440 wide with a 1200 content column; mobile frames are 402 wide with 20 px margins. */

:root {
  --ground: #07080a;
  --panel: #080b0f;
  --white: #ffffff;
  --text: #f5f6f8;
  --text-2: #b0b4bc;
  --text-3: #8d939d;
  --prose: #d6d9df;
  --ink: #08080a;
  --rule: #ffffff24;
  --line: #ffffff29;
  --control: #ffffff52;
  --focus: #7aa2f7;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 8.34vw, 120px);
  --edge: clamp(20px, 3.34vw, 48px);
  --max: 1440px;
  --r: 4px;
  --grain: linear-gradient(#0000, #0000);
  /* the twelve Brand pairs; rules run left to right, covers run corner to corner */
  --p1: #f7cfdc, #1f7a3a;  --p2: #c9a9e8, #ee79a1;  --p3: #28164b, #7a1530;  --p4: #f3e6c4, #e3a21a;
  --p5: #1f4dd6, #3aa35c;  --p6: #e94b27, #5a1122;  --p7: #7eb6e3, #ee79a1;  --p8: #9ce8a7, #bd7ff0;
  --p9: #f3b49e, #1f4ed4;  --p10: #f2d95f, #4fbcba; --p11: #c2c2e8, #5e3450; --p12: #4db9b7, #3aa35c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--white); font: 400 16px/1.6 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 60; left: var(--edge); top: -5rem; padding: .8rem 1rem; background: #fff; color: #111; }
.skip:focus { top: 1rem; }
.ic { width: 16px; height: 16px; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.mono { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.h2 { font: 600 72px/75px var(--display); letter-spacing: -.04em; color: var(--white); }
.lede { font: 400 18px/29px var(--font); color: var(--text-2); }
.t-2 { color: var(--text-2); } .t-3 { color: var(--text-3); }

/* ---------- pair gradients ---------- */
[class*="pair-"] { --pair: var(--p9); }
.pair-1 { --pair: var(--p1); } .pair-2 { --pair: var(--p2); } .pair-3 { --pair: var(--p3); } .pair-4 { --pair: var(--p4); }
.pair-5 { --pair: var(--p5); } .pair-6 { --pair: var(--p6); } .pair-7 { --pair: var(--p7); } .pair-8 { --pair: var(--p8); }
.pair-9 { --pair: var(--p9); } .pair-10 { --pair: var(--p10); } .pair-11 { --pair: var(--p11); } .pair-12 { --pair: var(--p12); }
.rule { display: inline-block; flex: none; width: 32px; height: 3px; background: linear-gradient(90deg, var(--pair)); }
.cover { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: linear-gradient(135deg, var(--pair)); }
.cover::after, .grain::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: var(--grain) 0 0 / 462px 462px; mix-blend-mode: overlay; opacity: .55; }
.cover > * { position: relative; z-index: 1; }
.grain { position: relative; isolation: isolate; }

/* ---------- cue slate ---------- */
.slate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 400 12px/24px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.slate .cue { color: var(--white); }
.slate .tc { color: var(--text-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--text); color: var(--ink); font: 600 16px/1 var(--font); white-space: nowrap; cursor: pointer; }
.btn:hover { background: #fff; }
.btn-2 { background: #ffffff14; color: var(--white); box-shadow: inset 0 0 0 1px var(--control); }
.btn-2:hover { background: #ffffff24; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.link-u { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid #ffffff73; color: var(--white); font: 500 17px/1.2 var(--font); }
.link-u:hover { border-color: var(--white); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--edge); background: var(--ground); border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; gap: 8px; font: 600 20px/1 var(--display); letter-spacing: -.035em; color: var(--white); white-space: nowrap; }
.wordmark span { color: var(--text-2); }
.site-header nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { position: relative; padding: 12px 0; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links svg, .menu-now, .menu-small, .menu-rundown { display: none; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: var(--r); background: var(--text); color: var(--ink); font: 600 14px/1 var(--font); white-space: nowrap; }
.nav-cta:hover { background: #fff; }
.mobile-header-cta, .menu-toggle { display: none; }
.site-header [hidden] { display: none !important; }

/* ---------- close (Earth horizon) ---------- */
.close { position: relative; background: var(--ground); text-align: center; }
.close-stage { position: relative; isolation: isolate; overflow: hidden; height: 820px; }
.close-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--grain) 0 0 / 462px 462px; mix-blend-mode: overlay; opacity: .5; }
.close-stage.has-earth::after { -webkit-mask-image: linear-gradient(#000 var(--et), #0000 calc(var(--et) + var(--eh) * .683)); mask-image: linear-gradient(#000 var(--et), #0000 calc(var(--et) + var(--eh) * .683)); }
.close-stage:not(.has-earth) { background: var(--ground) url(/assets/img/v8/earth-footer.webp) center bottom / cover no-repeat; }
.earth-bg { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.earth-bg canvas, .hero-bg canvas { position: absolute; left: 0; width: 100%; display: none; }
.earth-bg canvas { -webkit-mask-image: none; mask-image: none; }
.close-stage.has-earth::after { display: none; }
.has-earth .earth-bg canvas, .hero-bg.has-earth canvas { display: block; }
.menu-rundown a[aria-current] { position: relative; color: var(--white); font-weight: 600; }
.menu-rundown a[aria-current]::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: linear-gradient(90deg, var(--p9)); } .menu-rundown a[aria-current] span { color: var(--white); }
.close-stage > .slate { position: absolute; z-index: 1; left: var(--edge); top: 30px; }
.close-inner { position: relative; z-index: 1; padding: 120px var(--edge) 0; }
.close-inner > .slate { display: none; }
.close-title { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 72px/79px var(--display); letter-spacing: -.04em; color: var(--white); }
.close-title .live { display: inline-block; padding: 8px 20px 12px; border-radius: var(--r); background: linear-gradient(90deg, var(--p5)); line-height: 75px; }
.close-lead { margin-top: 26px; font: 400 22px/33px var(--font); color: var(--text-2); }
.signup-form { width: min(680px, 100%); margin: 27px auto 0; }
.form-row { display: flex; gap: 12px; }
.form-row input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 18px; background: #07080acc; border: 0; box-shadow: inset 0 0 0 1px var(--control); border-radius: var(--r); color: var(--white); font: 400 16px/1 var(--font); }
.form-row input::placeholder { color: var(--text-3); }
.form-row button { flex: none; width: 188px; height: 52px; border: 0; border-radius: var(--r); background: var(--text); color: var(--ink); font: 600 16px/1 var(--font); cursor: pointer; }
.form-row button:hover { background: #fff; } .form-row button:disabled { opacity: .6; cursor: progress; }
.signup-consent { width: min(560px, 100%); margin: 16px auto 0; padding: 10px 16px; border-radius: var(--r); background: #07080acc; font: 400 14px/21px var(--font); color: var(--text-2); }
.signup-consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.status { min-height: 1.6em; margin-top: 8px; font-size: 14px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.site-footer { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 50px; display: flex; align-items: center; gap: 24px; padding: 0 var(--edge); border-top: 1px solid #ffffff1f; text-align: left; }
.site-footer .legal { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.site-footer nav { margin-left: auto; display: flex; gap: 28px; }
.site-footer nav a { padding: 8px 0; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.site-footer nav a:hover { color: var(--white); }
/* mini footer (404) */
.mini-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px var(--edge); border-top: 1px solid var(--rule); }
.mini-footer .legal { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.mini-footer nav { display: flex; gap: 28px; }
.mini-footer nav a { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }

/* section boundaries */
.band { border-top: 1px solid var(--rule); }

/* =================== mobile (Pen 402 frames) =================== */
@media (max-width: 760px) {
  :root { --gutter: 20px; --edge: 20px; }
  html { scroll-padding-top: 72px; }
  .h2 { font-size: 40px; line-height: 1.05; letter-spacing: -.04em; }
  .lede { font-size: 16px; line-height: 26px; }
  .slate { gap: 8px 12px; }
  .slate .tc { display: none; }
  .site-header { height: 56px; gap: 12px; padding: 0 20px; }
  .wordmark { gap: 6px; font-size: 17px; letter-spacing: -.035em; }
  .mobile-header-cta { flex: none; display: inline-flex; align-items: center; height: 44px; margin-left: auto; padding: 0 14px; border-radius: var(--r); background: var(--text); color: var(--ink); font: 600 14px/1 var(--font); white-space: nowrap; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: none; border: 0; box-shadow: inset 0 0 0 1px var(--control); border-radius: var(--r); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: var(--white); content: ""; }
  .menu-icon { position: relative; } .menu-icon::before { position: absolute; top: -6px; } .menu-icon::after { position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  html.menu-open { overflow: hidden; }
  .menu-open .mobile-header-cta { display: none; }
  .menu-open .site-header { padding-right: 14px; }
  .site-header nav { position: fixed; z-index: 39; top: 56px; bottom: 0; left: 0; right: 0; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 24px; padding: 20px 20px 32px; background: var(--ground); }
  .menu-now { display: flex; align-items: center; gap: 12px; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
  .menu-now b { font-weight: 400; color: var(--white); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0; border-bottom: 1px solid var(--rule); font: 600 28px/1 var(--display); letter-spacing: -1px; text-transform: none; color: var(--white); }
  .nav-links a[aria-current="page"]::after { content: none; }
  .nav-links svg { display: block; width: 20px; height: 20px; color: var(--text-3); }
  .menu-rundown { display: grid; gap: 10px; }
  .menu-rundown .head { display: flex; justify-content: space-between; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
  .menu-rundown .head span:last-child { color: var(--text-3); }
  .menu-rundown ol { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(6, auto); column-gap: 16px; }
  .menu-rundown a { display: flex; align-items: center; gap: 10px; height: 36px; border-bottom: 1px solid var(--rule); font: 500 16px/1 var(--font); color: var(--text-2); }
  .menu-rundown a span { font: 400 12px/1 var(--mono); letter-spacing: .1em; color: var(--text-3); }
  .site-header nav .nav-cta { flex: none; margin-top: auto; height: 52px; font-size: 16px; }
  .menu-small { display: flex; gap: 24px; margin-top: -10px; }
  .menu-small a { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 8px 0; }

  .close { border-top: 1px solid var(--rule); }
  .close-stage { height: 700px; }
  .close-stage > .slate { display: none; }
  .close-inner { padding: 48px 20px 0; }
  .close-inner > .slate { display: flex; justify-content: center; margin-bottom: 22px; }
  .close-title { gap: 6px; font-size: 36px; line-height: 1.1; letter-spacing: -1.4px; }
  .close-title .live { padding: 4px 10px 6px; font-size: 30px; line-height: 1.15; letter-spacing: -1.1px; }
  .close-lead { margin-top: 22px; font-size: 16px; line-height: 26px; color: var(--prose); }
  .signup-form { margin-top: 22px; }
  .form-row { flex-direction: column; gap: 10px; }
  .form-row input { background: #080b0fe6; padding: 0 16px; }
  .form-row button { width: 100%; }
  .signup-consent { margin-top: 10px; padding: 0; background: none; }
  .earth-bg canvas { left: calc(50% - 475px); width: 950px; -webkit-mask-image: linear-gradient(#0000 0, #0000 44%, #000 78%); mask-image: linear-gradient(#0000 0, #0000 44%, #000 78%); }
  .close-stage::after { opacity: .18; }
  .close-stage:not(.has-earth) { background: linear-gradient(var(--ground) 0, var(--ground) 400px, #07080a00 560px), url(/assets/img/v8/earth-footer.webp) center bottom / 950px auto no-repeat, var(--ground); }
  .site-footer { position: static; height: auto; flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 20px 36px; border-top: 1px solid var(--rule); background: var(--ground); }
  .site-footer .wordmark { order: 1; }
  .site-footer nav { order: 2; margin: 0; gap: 20px; }
  .site-footer nav a { color: var(--text-2); }
  .site-footer .legal { order: 3; }
  .mini-footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- price block (homepage cue 10 R1dA9 / dbCP6; reused on /pricing/) ---------- */
.price { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--control); }
.price::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(55% 130% at 0% 25%, #07080a 0%, #07080ae6 35%, #07080a00 75%), radial-gradient(70% 95% at 42% 112%, #c88c1a 0%, #b07a14 40%, #b07a1400 80%), linear-gradient(180deg, #3e2a08 0%, #6f4c0d 45%, #8c6111 100%); }
.price::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--grain) 0 0 / 462px 462px; mix-blend-mode: overlay; opacity: .28; pointer-events: none; }
.price-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 96px; padding-top: 128px; padding-bottom: 128px; }
.price-copy { display: flex; flex-direction: column; gap: 24px; }
.price-copy h1, .price-copy h2 { font: 600 72px/75px var(--display); letter-spacing: -.04em; }
.price-fig { display: flex; align-items: flex-end; gap: 16px; padding-top: 24px; }
.price-fig b { font: 600 190px/171px var(--display); letter-spacing: -8px; }
.price-fig .mono { padding-bottom: 14px; }
.price-lic { display: flex; flex-direction: column; gap: 24px; width: 520px; flex: none; }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seat { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--r); background: #080b0fcc; box-shadow: inset 0 0 0 1px var(--line); }
.seat svg { width: 24px; height: 24px; color: var(--white); }
.seat span { display: flex; flex-direction: column; gap: 6px; }
.seat .mono { color: var(--text-3); }
.seat b { font: 600 22px/1.1 var(--display); letter-spacing: -.5px; }
.terms-list { display: flex; flex-direction: column; }
.terms-list div { display: flex; align-items: center; min-height: 48px; padding: 12px 0; border-bottom: 1px solid #ffffff33; }
.terms-list dt { flex: 0 0 150px; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ffffffcc; }
.terms-list dd { font: 400 16px/22px var(--font); color: var(--white); }
.price-lic .btn { align-self: flex-start; padding: 0 24px; margin-top: 8px; }
@media (max-width: 1180px) and (min-width: 761px) { .price-in { flex-direction: column; align-items: flex-start; gap: 56px; } .price-lic { width: 100%; } }
@media (max-width: 760px) {
  .price::before { background: radial-gradient(120% 70% at 0% 0%, #07080a 0%, #07080ae6 30%, #07080a00 75%), radial-gradient(110% 70% at 50% 108%, #c88c1a 0%, #b07a14 40%, #b07a1400 85%), linear-gradient(180deg, #3e2a08 0%, #6f4c0d 45%, #8c6111 100%); }
  .price-in { flex-direction: column; align-items: stretch; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .price-copy { gap: 14px; }
  .price-copy h1, .price-copy h2 { font-size: 40px; line-height: 42px; letter-spacing: -1.6px; }
  .price-fig { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; }
  .price-fig b { font-size: 112px; line-height: 101px; letter-spacing: -4.48px; }
  .price-fig .mono { padding-bottom: 0; }
  .price-lic { width: auto; gap: 28px; }
  .seats { grid-template-columns: 1fr; gap: 8px; }
  .seat { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .seat span { flex-direction: row; align-items: center; gap: 12px; }
  .seat b { font-size: 20px; }
  .terms-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .terms-list div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .terms-list dt { flex: none; }
  .price-lic .btn { align-self: stretch; }
}

/* menu sheet fades in (Pen menu note); reduced motion removes it via the global rule */
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) { .site-header nav:not([hidden]) { animation: menuIn 200ms ease-out; } }

/* Keep the shared header usable on narrow phones. */
@media (max-width: 360px) {
  .site-header { gap: 6px; padding-inline: 12px; }
  .site-header .wordmark { font-size: 15px; gap: 4px; }
  .mobile-header-cta { padding-inline: 9px; font-size: 12px; }
}
