/* Throwcast landing page.
 *
 * Deliberately NOT sharing styles.css with the app: this page has no build step, and coupling
 * marketing type scale to editor UI density would fight both. The palette is copied, because
 * the two should look like the same product. */

:root {
  --bg: #141619;
  --panel: #1c1f23;
  --panel-2: #16181c;
  --border: #2a2e33;
  --border-2: #2f343a;
  --text: #d8dce0;
  --dim: #8b9298;
  --faint: #5c636b;
  --accent: #4a9eff;
  --accent-hi: #7db8ff;
  --amber: #ffb347;
  --ink: #0d1117;
  --pad: 48px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Sora, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::selection { background: rgba(74, 158, 255, 0.35); }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  background: rgba(20, 22, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand span { font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; }

/* `:not(.btn)` is load-bearing, not tidiness. Plain `.nav-links a` is (0,1,1) and outranks
   `.btn` at (0,1,0), so without it the CTA inside the nav inherits this muted grey and renders
   near-invisible on its own blue fill — while the identical button in the hero, matched only by
   the weaker `a` selector, looks correct. Two buttons, same class, different colours. */
.nav-links a:not(.btn) { color: var(--dim); }
.nav-links a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 600;
}
.btn:hover { background: var(--accent-hi); color: var(--ink); }

.btn-lg { padding: 13px 28px; border-radius: 8px; font-size: 15px; }
.btn-ghost {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 8px;
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---- hero ---- */
.hero { padding-block: 96px 64px; text-align: center; }
.pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid #3a3f44;
  border-radius: 100px;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--dim);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 72px; }

.shot { border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot-hero { border-radius: 12px; box-shadow: 0 40px 120px -20px rgba(74, 158, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6); }
.caption { font-size: 13px; color: var(--dim); margin-top: 12px; }
.caption b { color: var(--text); font-weight: 600; }

/* ---- sections ---- */
section { padding-block: 72px; }
.band { border-top: 1px solid var(--border); background: var(--panel-2); }
.band-b { border-bottom: 1px solid var(--border); }
.lede { max-width: 620px; margin-bottom: 44px; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; margin-bottom: 14px; color: var(--accent); }
.eyebrow.amber { color: var(--amber); }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.lede p { font-size: 16px; line-height: 1.65; color: var(--dim); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.card h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.card p { font-size: 14px; line-height: 1.65; color: var(--dim); margin: 0; }
.card .step { font-size: 12px; color: var(--amber); margin-bottom: 14px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  margin-top: 56px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 700; color: var(--accent); }
.stat span { font-size: 13px; color: var(--dim); }

/* alternating image/text rows */
.rows { display: flex; flex-direction: column; gap: 64px; }
.row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.row.wide-left { grid-template-columns: 1.4fr 1fr; }
.row h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; }
.row p { font-size: 15px; line-height: 1.7; color: var(--dim); margin: 0; }

.bullets { display: flex; flex-direction: column; gap: 10px; font-size: 14px; margin-top: 20px; }
.bullets div { display: flex; gap: 10px; align-items: baseline; }
.bullets i { color: var(--amber); font-style: normal; }

/* ---- wizard ---- */
.wizard-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.wizard-steps button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.wizard-steps button[aria-selected='true'] { background: #22282e; border-color: #3a444f; }
.wizard-steps .n { font-size: 12px; color: var(--faint); }
.wizard-steps button[aria-selected='true'] .n { color: var(--accent); }

.wizard-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.wizard-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s;
  cursor: zoom-in;
}
.wizard-stage img[data-on='1'] { opacity: 1; }

/* ---- CTA ---- */
.cta { padding-block: 110px; text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta > p { font-size: 16px; color: var(--dim); max-width: 520px; margin: 0 auto 32px; }
.join { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
/* `display: flex` above outranks the UA stylesheet's `[hidden] { display: none }`, so without
   this the form stays on screen after a successful submit, under its own thank-you. */
.join[hidden] { display: none; }
.join input {
  width: 300px;
  max-width: 100%;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid #3a3f44;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.join input:focus { border-color: var(--accent); }
.join button {
  padding: 13px 26px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.join button:hover:not(:disabled) { background: var(--accent-hi); }
.join button:disabled { opacity: 0.6; cursor: default; }
.fineprint { font-size: 12.5px; color: var(--faint); margin-top: 16px; }
.said { font-size: 15px; color: var(--text); margin-top: 20px; min-height: 22px; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--dim);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .hint { position: fixed; top: 20px; right: 28px; font-size: 15px; color: var(--dim); }
.lightbox[hidden] { display: none; }

/* ---- responsive ----
   The mockup was desktop-only. Most people who click a link to this page are on a phone, so
   every fixed grid has to collapse and the nav has to survive without its section links. */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .cards, .duo { grid-template-columns: 1fr; }
  .row, .row.wide-left { grid-template-columns: 1fr; gap: 24px; }
  /* Image first on every row: on one column the alternation is invisible anyway, and a
     picture reads faster than a heading. */
  .row > .shot { order: -1; }
  .hero { padding-block: 56px 40px; }
  .hero-actions { margin-bottom: 48px; }
  section { padding-block: 48px; }
  .cta { padding-block: 72px; }
  .stats { gap: 28px; padding: 24px; }
  .rows { gap: 48px; }
}

@media (max-width: 700px) {
  /* Section links go; sign-in and the CTA stay, because they are the only two things anyone
     arrives wanting to do. Both must stay on ONE line — a wrapped label inside a pill button
     overflows it, and a two-line "Sign in" makes the whole bar look broken. */
  .nav-links a:not(.btn):not(.signin) { display: none; }
  .nav { padding-inline: 16px; gap: 10px; }
  .nav-links { gap: 14px; }
  .nav-links a { white-space: nowrap; }
  .brand span { font-size: 15px; }
  .btn { padding: 8px 13px; font-size: 13px; }
  .join input { width: 100%; }
  .join button { width: 100%; }
}

/* Below this the wordmark is what has to give — the mark alone still identifies us, and
   dropping the CTA or sign-in would cost an actual visitor something. */
@media (max-width: 380px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-stage img { transition: none; }
  html { scroll-behavior: auto; }
}
