/* The landing page (apps/server/src/landing.ts). Tokens and chrome come from site.css. Claude Design: overhaul/Landing.dc.html */
.ld main a { color: var(--s-cyan); }
.ld main a:hover { color: #9ff3ff; }
.ld main .site-btn, .ld main .site-btn:hover { color: var(--s-text); text-decoration: none; }
.ld main .site-btn.site-pri, .ld main .site-btn.site-pri:hover { color: var(--s-cta-ink); }
.ld code { font: 500 .92em/1 var(--s-mono); color: var(--s-text); }
.ld-eyebrow { margin: 0; font: 600 12px/1.2 var(--s-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--s-cyan); }
.ld-h1 { margin: 0; font: 700 64px/1 var(--s-display); letter-spacing: .01em; text-wrap: balance; }
.ld-h1 em { font-style: normal; color: var(--s-cyan); }
.ld-h2 { margin: 0; font: 700 40px/1.05 var(--s-display); letter-spacing: .02em; text-wrap: balance; }
.ld-h3 { margin: 0; font: 700 22px/1.15 var(--s-display); letter-spacing: .04em; text-transform: uppercase; }
.ld p { margin: 0; color: var(--s-text2); text-wrap: pretty; }
.ld-lead { font-size: 19px; line-height: 1.55; max-width: 34em; }
.ld-note { font: 500 13px/1.4 var(--s-mono); color: var(--s-text3) !important; }
.ld-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* three large buttons (Get your ship, Play, Watch it live) on one row at desktop widths: a little less side padding than the site's large button */
.ld-ctas .site-btn.site-lg { padding-inline: 20px; }

/* hero */
.ld-hero { padding-block: 72px 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ld-copy { display: flex; flex-direction: column; gap: 24px; }
.ld-win { position: relative; margin: 0 3px; border: 1px solid var(--s-line); background: var(--s-n900); box-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 1px rgba(5, 8, 22, .9); }
.ld-win::before, .ld-win::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--s-cyan); z-index: 3; pointer-events: none; }
.ld-win::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.ld-win::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.ld-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--s-line3); font: 600 12px/1 var(--s-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--s-text2); min-width: 0; }
.ld-state { display: inline-flex; align-items: center; gap: 7px; color: var(--s-text3); white-space: nowrap; }
.ld-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ld-state[data-tone='live'] { color: var(--s-good); }
.ld-state[data-tone='live']::before { box-shadow: 0 0 0 3px rgba(67, 224, 160, .18); }
.ld-state[data-tone='demo'] { color: #ff8fca; }
.ld-state[data-tone='offline'] { color: var(--s-text3); }
/* Connecting: waiting for the frame's world to come on screen (landing.js). The warning tone, as the app's own connecting chip is amber; not live green, not the grey of offline, never the demo magenta */
.ld-state[data-tone='connecting'] { color: var(--s-warn); }
.ld-ship { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ld-delay { margin-left: auto; white-space: nowrap; }
.ld-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(ellipse at 60% 40%, #1b1f4a 0%, #0a0f2a 45%, #050816 80%); }
.ld-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: saturate(.55) brightness(.5); transition: opacity var(--dur-3, 320ms) ease; }
.ld-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 8px 12px; background: rgba(5, 8, 22, .8); border: 1px solid var(--s-line3); font: 600 12px/1.3 var(--s-mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--s-text2) !important; white-space: nowrap; }
.ld-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease; }
.ld-frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.ld-win.is-live .ld-frame { opacity: 1; }
.ld-win.is-live .ld-poster, .ld-win.is-live .ld-wait { opacity: 0; }
.ld-hit { position: absolute; inset: 0; z-index: 2; }
.ld-hit:focus-visible { outline: 2px solid var(--s-cyan); outline-offset: -4px; }
.ld-aboard { position: absolute; right: 14px; bottom: 14px; z-index: 1; pointer-events: none; }
.ld-view:hover .ld-aboard { border-color: var(--s-cyan); }
.ld-tick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--s-line3); font-size: 15px; color: var(--s-text) !important; min-height: 50px; }
.ld-tick [data-ld-line] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-chip { flex: none; padding: 4px 8px; border: 1px solid var(--s-line2); font: 600 12px/1 var(--s-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text2); }
.ld-ago { margin-left: auto; flex: none; font: 500 12px/1 var(--s-mono); color: var(--s-text3); white-space: nowrap; }

/* proof */
.ld-proof { display: flex; flex-wrap: wrap; margin: 0; border-block: 1px solid var(--s-line3); }
.ld-proof > div { flex: 1 1 200px; padding: 22px 24px; border-right: 1px solid var(--s-line3); display: flex; flex-direction: column-reverse; gap: 4px; }
.ld-proof > div:last-child { border-right: 0; }
.ld-proof dd { margin: 0; font: 700 36px/1 var(--s-display); color: var(--s-text); }
.ld-proof dt { font-size: 14px; color: var(--s-text3); }
.ld-proof[hidden], .ld-proof [hidden] { display: none; }

/* sections */
.ld-sec { padding-top: 96px; }
.ld-hd { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.ld-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ld-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ld-card { background: linear-gradient(180deg, rgba(14, 24, 50, .7), rgba(7, 12, 30, .7)); border: 1px solid var(--s-line3); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ld-k { font: 600 12px/1 var(--s-mono) !important; letter-spacing: .14em; color: var(--s-cyan) !important; text-transform: uppercase; }
.ld-demo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); border: 1px solid var(--s-line2); background: var(--s-n800); }
.ld-demo-l { padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.ld-demo-r { position: relative; min-height: 300px; overflow: hidden; border-left: 1px solid var(--s-line3); }
.ld-demo-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.ld-tag { position: absolute; left: 12px; top: 12px; background: var(--s-demo); color: #fff; font: 700 11px/1 var(--s-mono); letter-spacing: .12em; padding: 5px 8px; text-transform: uppercase; }
.ld-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--s-line3); }
.ld-col { padding: 24px; border-right: 1px solid var(--s-line3); display: flex; flex-direction: column; gap: 10px; }
.ld-col:last-child { border-right: 0; }
.ld-col ul { margin: 0; padding: 0 0 0 18px; color: var(--s-text2); display: flex; flex-direction: column; gap: 6px; }
.ld-read { border-top: 3px solid var(--s-cyan); }
.ld-sent { border-top: 3px solid var(--s-good); }
.ld-never { border-top: 3px solid var(--s-bad); }
.ld-after { margin-top: 20px !important; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ld-steps li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-top: 2px solid var(--s-line); }
.ld-num { font: 700 13px/1 var(--s-mono); color: var(--s-cyan); letter-spacing: .14em; }
.ld-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.ld-faq > div { padding: 20px 0; border-top: 1px solid var(--s-line3); display: flex; flex-direction: column; gap: 8px; }
.ld-faq h3 { margin: 0; font: 600 17px/1.3 var(--s-body); color: var(--s-text); }
.ld-band { margin-top: 112px; padding-block: 64px; background: radial-gradient(ellipse at 70% 0%, rgba(62, 230, 255, .10), transparent 60%), var(--s-n800); border-block: 1px solid var(--s-line2); }
.ld-band-in { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.ld-band-in > div:first-child { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1000px) {
  .ld-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
  .ld-h1 { font-size: 52px; }
  .ld-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ld-hero { padding-block: 28px 40px; gap: 28px; }
  .ld-h1 { font-size: 42px; }
  .ld-h2 { font-size: 32px; }
  .ld-lead { font-size: 17px; }
  .ld-g3, .ld-g4, .ld-cols, .ld-steps, .ld-faq { grid-template-columns: 1fr; }
  .ld-col { border-right: 0; border-bottom: 1px solid var(--s-line3); }
  .ld-col:last-child { border-bottom: 0; }
  .ld-demo { grid-template-columns: 1fr; }
  .ld-demo-l { padding: 24px; }
  .ld-demo-r { min-height: 200px; border-left: 0; border-top: 1px solid var(--s-line3); }
  .ld-sec { padding-top: 72px; }
  .ld-proof > div { flex-basis: 50%; border-right: 0; border-bottom: 1px solid var(--s-line3); }
  .ld-ctas .site-lg { flex: 1 1 100%; }
  .ld-band { margin-top: 80px; padding-block: 48px; }
  .ld-delay { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ld-frame, .ld-poster { transition: none; } }
