/* Throwcast landing and download pages. The throwcast.net look: navy and
   blue, Overpass headings, IBM Plex for text, square room-sign corners.
   Plex Mono only where the product itself shows the text (the code, the
   address, file names). */

:root {
  --navy: #0A1536;
  --navy-2: #1A2547;
  --navy-line: #24325E;
  --blue: #1E6FBE;
  --blue-dark: #1E2E78;
  --cyan: #34C5E9;
  --mint: #85F6F7;
  --soft: #F2F7FD;
  --soft-2: #E6F1FC;
  --line: #DCE6F2;
  --field: #B9C9DE;
  --text: #0A1536;
  --body: #34425E;
  --muted: #56637C;
  --on-dark: #C3CFE4;
  --display: #1B2536;
  --heading: "Overpass", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--body); font: 17px/1.6 "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--heading); color: var(--text); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
kbd { font-family: var(--mono); font-size: 0.85em; border: 1px solid var(--field); border-bottom-width: 2px; border-radius: 2px; padding: 0 6px; background: #FFFFFF; color: var(--text); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--soft-2); color: var(--blue-dark); padding: 1px 6px; border-radius: 2px; overflow-wrap: anywhere; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 3px; border: 2px solid transparent; font: 600 16px/1.2 "IBM Plex Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; color: var(--text); border-color: var(--field); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-on-dark { background: var(--cyan); color: var(--navy); }
.btn-on-dark:hover { background: var(--mint); color: var(--navy); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo img { width: 42px; height: 38px; object-fit: contain; }
.logo span { font-family: var(--heading); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; padding: 10px 0; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { color: var(--blue); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-inner a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Landing: hero ---------- */
.hero { padding: 64px 0 40px; background: linear-gradient(var(--soft), #FFFFFF 70%); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero-copy .lede { margin-top: 22px; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* The room display, drawn from the receiver's own welcome screen. Sizes
   follow the display's width (container units), as the real one scales
   with the screen. */
.scene { position: relative; padding-bottom: 112px; }
.tv { background: var(--navy); padding: 10px; border-radius: 6px; box-shadow: 0 30px 60px -28px rgba(10, 21, 54, 0.55); }
.screen { container-type: inline-size; aspect-ratio: 16 / 10; background: var(--display); color: #FFFFFF; position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: 4.2cqi 4.6cqi 3.4cqi; overflow: hidden; }
.screen-room .sep { display: inline-block; width: 0.17em; height: 0.17em; margin: 0 0.32em; border-radius: 50%; background: currentColor; vertical-align: 0.26em; }
.screen-room { font-family: var(--heading); font-weight: 700; font-size: 4.4cqi; line-height: 1.1; letter-spacing: -0.01em; }
.screen-mid { display: grid; place-content: center; justify-items: center; text-align: center; }
.screen-prompt { font-size: 2.4cqi; color: #DCE3EE; }
.screen-code { font-family: var(--heading); font-weight: 800; font-size: 15cqi; line-height: 1; letter-spacing: -0.01em; margin-top: 1.4cqi; font-variant-numeric: tabular-nums; }
.screen-ring { width: 7.6cqi; height: 7.6cqi; margin-top: 3cqi; }
.screen-foot { text-align: center; font-size: 1.75cqi; color: #C9D2E0; }
.screen-addr { display: block; margin-top: 0.8cqi; font-family: var(--mono); font-size: 2.5cqi; color: #FFFFFF; }
.stand { width: 18%; height: 18px; margin: 0 auto; background: linear-gradient(var(--navy-2), var(--navy)); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }

/* The presenter app in front of it, typing the code. */
.app { position: absolute; left: -44px; bottom: 0; width: min(244px, 38%); background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 50px -20px rgba(10, 21, 54, 0.45); padding: 18px 18px 16px; font-size: 14px; }
.app-title { font-family: var(--heading); font-weight: 800; font-size: 19px; color: var(--text); }
.app-sub { color: var(--muted); font-size: 13px; }
.app-field { margin-top: 12px; }
.app-label { display: block; font-weight: 600; color: var(--text); font-size: 13px; }
.app-input { margin-top: 4px; min-height: 36px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--field); border-radius: 4px; background: var(--soft); font-family: var(--mono); font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; }
.app-input.is-typing::after { content: ""; width: 2px; height: 1.1em; margin-left: 2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
.app-share { margin-top: 14px; width: 100%; min-height: 38px; border: 0; border-radius: 4px; background: #2563EB; color: #FFFFFF; font: 700 14px "IBM Plex Sans", system-ui, sans-serif; transition: background .2s, transform .2s; }
.app-share.is-pressed { background: #1D4ED8; transform: scale(0.97); }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Landing: sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 40em; }
.section-head p { margin-top: 14px; font-size: 19px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--navy); }
.steps li { padding: 26px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; font-family: var(--heading); font-weight: 800; font-size: 44px; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.steps p { margin-top: 8px; }

.free { background: var(--soft); }
.free-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.free-list h3 { font-size: 18px; }
.free-list p { margin-top: 6px; font-size: 16px; }
.free-list li { padding-top: 16px; border-top: 1px solid var(--field); }
.faq-list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.faq-list li { padding-top: 18px; border-top: 1px solid var(--line); }
.faq-list h3 { font-size: 19px; }
.faq-list p { margin-top: 8px; }
.free-catch { margin-top: 18px; font-size: 16px; color: var(--muted); }

.soon { background: var(--navy); color: var(--on-dark); padding: 88px 0; }
.soon h2 { color: #FFFFFF; }
.soon-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.soon-intro p { margin-top: 16px; font-size: 19px; }
.soon-intro .btn { margin-top: 28px; }
.soon-list { list-style: none; margin: 0; padding: 0; }
.soon-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--navy-line); }
.soon-list li:first-child { border-top: 1px solid var(--navy-line); }
.soon-list h3 { color: #FFFFFF; font-size: 19px; }
.soon-list p { margin-top: 4px; font-size: 16px; }
.soon-list svg { margin-top: 2px; }

/* ---------- Downloads ---------- */
.dl-hero { padding: 56px 0 8px; }
.dl-hero .lede { margin-top: 16px; font-size: 19px; max-width: 36em; }
.dl-group { padding: 48px 0 8px; }
.dl-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 3px solid var(--navy); }
.dl-group-head p { font-size: 17px; color: var(--muted); }
.dl-rows { list-style: none; margin: 0; padding: 0; }
.dl-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl-os { display: flex; align-items: center; gap: 12px; }
.dl-os h3 { font-size: 21px; }
.dl-os svg { flex: none; }
.dl-mine { display: none; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--blue-dark); background: var(--soft-2); padding: 2px 8px; border-radius: 2px; }
.dl-row.is-mine .dl-mine { display: inline-block; }
.dl-row.is-mine { background: linear-gradient(90deg, var(--soft) 0%, #FFFFFF 70%); box-shadow: inset 3px 0 0 var(--blue); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.dl-req { font-size: 15px; color: var(--muted); }
.dl-files { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dl-files .btn { flex-direction: column; align-items: flex-start; gap: 0; min-height: 56px; padding: 8px 18px; }
.dl-files .btn small { font: 500 12px/1.4 var(--mono); opacity: 0.85; }
.dl-files .btn-primary small { color: #DCE8F7; }
.dl-files .btn > span { display: flex; align-items: center; gap: 8px; }
.dl-none { font-size: 15px; color: var(--muted); max-width: 26em; justify-self: end; text-align: right; }
.setup { padding: 64px 0 88px; }
.setup .steps { margin-top: 28px; }
.ports { margin-top: 28px; max-width: 46em; font-size: 15px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .free-grid, .soon-grid { grid-template-columns: 1fr; gap: 40px; }
  .scene { max-width: 640px; }
  .app { left: -12px; }
}
@media (max-width: 760px) {
  .nav-links li:not(.nav-keep) { display: none; }
  .hero { padding: 40px 0 64px; }
  .section, .soon { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 18px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .free-list, .faq-list { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 1fr; }
  .dl-row.is-mine { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .dl-files { justify-content: flex-start; }
  .dl-files .btn { flex: 1 1 100%; }
  .dl-none { justify-self: start; text-align: left; }
  .app { position: relative; left: auto; right: auto; width: 74%; max-width: 260px; margin: -34px 0 0 -6px; }
  .scene { padding-bottom: 0; }
  .hero { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
