/* landing.css - the tools' landing pages (js/landing.js): hero with a live demo, feature sections that
   alternate sides, a strip of reasons, questions, and a closing call to action. Builds on theme.css. */
.landing { display: block; width: min(1120px, calc(100% - 2 * var(--gutter))); margin: 0 auto var(--space-6); font-family: var(--font); color: var(--text); }
.landing[hidden] { display: none; }
/* signed in, at /<tool>/?about: the landing instead of the tool */
html.landing-about .landing, html.landing-about #login-gate { display: block !important; }
html.landing-about body > main:not(#login-gate) { display: none !important; }

/* ---------- hero ---------- */
.ld-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-6); align-items: center; padding: var(--space-6) 0; }
.ld-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: var(--radius-pill);
  background: rgba(0, 191, 255, .12); color: var(--accent); font: 700 13px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.ld-hero h1 { margin: var(--space-4) 0 var(--space-3); font: 800 clamp(32px, 4.6vw, 52px)/1.08 var(--font); letter-spacing: -.02em; }
.ld-hero h1 em { font-style: normal; color: var(--accent); }
.ld-lede { margin: 0 0 var(--space-5); font: 18px/1.55 var(--font); color: var(--text-muted); max-width: 520px; }
.ld-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ld-btn { height: 46px; padding: 0 20px; font-size: 16px; }
.ld-btn img { width: 20px; height: 20px; }
.ld-hero-demo { position: relative; padding: var(--space-4); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 20px 60px rgba(0, 0, 0, .35); }
.ld-demo-note { margin: var(--space-3) 0 0; text-align: center; font: 13px var(--font); color: var(--text-faint); }

/* ---------- features ---------- */
.ld-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-6); align-items: center; padding: var(--space-6) 0;
  border-top: 1px solid var(--border); }
.ld-feature.flip .ld-feature-text { order: 2; }
.ld-feature h2 { margin: 0 0 var(--space-3); font: 750 clamp(22px, 2.6vw, 30px)/1.2 var(--font); letter-spacing: -.01em; }
.ld-feature p { margin: 0 0 var(--space-3); font: 16px/1.6 var(--font); color: var(--text-muted); }
.ld-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ld-points li { position: relative; padding-left: 26px; font: 15px/1.45 var(--font); }
.ld-points li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(111, 220, 140, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fdc8c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ld-visual { margin: 0; }
/* a live part that's only to look at: its buttons don't react (so nobody thinks they're meant to press them) */
.ld-inert button, .ld-inert [role="button"] { pointer-events: none; }
.ld-visual > img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--border), 0 16px 48px rgba(0, 0, 0, .35); }
.ld-live { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 16px 48px rgba(0, 0, 0, .3); padding: var(--space-4); }

/* ---------- why ---------- */
.ld-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.ld-why-item { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border-radius: var(--radius); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); }
.ld-why-item b { font: 700 16px var(--font); }
.ld-why-item span { font: 14px/1.5 var(--font); color: var(--text-muted); }

/* ---------- questions ---------- */
.ld-faq { padding: var(--space-6) 0; border-top: 1px solid var(--border); max-width: 820px; }
.ld-faq h2 { margin: 0 0 var(--space-4); font: 750 26px var(--font); }
.ld-faq details { border-bottom: 1px solid var(--border); }
.ld-faq summary { padding: 14px 0; font: 600 16px var(--font); display: flex; align-items: baseline; }
.ld-faq summary::before { color: var(--accent); opacity: 1; }
.ld-faq details p { margin: 0 0 14px; font: 15px/1.6 var(--font); color: var(--text-muted); }

/* ---------- closing call to action ---------- */
.ld-final { margin-top: var(--space-4); padding: var(--space-6) var(--space-5); border-radius: 18px; text-align: center;
  background: radial-gradient(600px 220px at 50% 0%, rgba(0, 191, 255, .18), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.ld-final h2 { margin: 0 0 var(--space-2); font: 800 clamp(24px, 3vw, 34px) var(--font); }
.ld-final p { margin: 0 0 var(--space-4); color: var(--text-muted); font: 16px var(--font); }
.ld-final .ld-cta { justify-content: center; }

@media (max-width: 860px) {
  .ld-hero, .ld-feature { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .ld-feature.flip .ld-feature-text { order: 0; }
  .ld-hero { padding-top: var(--space-5); }
}

/* the ? on a tool's own page (signed in): to its landing page */
.ld-help { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--text); font: 700 18px var(--font);
  text-decoration: none; box-shadow: var(--shadow), inset 0 0 0 1px var(--border-strong); transition: background .15s, color .15s; }
.ld-help:hover, .ld-help:focus-visible { background: var(--accent); color: var(--accent-text); }

/* a stand-in OBS window with a dock (Events, Stream Info): .ld-obs > .ld-obs-bar + .ld-obs-body > .ld-obs-scene + .ld-obs-dock > .ld-obs-title */
.ld-obs { border-radius: 10px; overflow: hidden; background: #1e1f24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ld-obs-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #2b2d33; font: 600 12px var(--font); color: #cfd2da; }
.ld-obs-bar span { width: 10px; height: 10px; border-radius: 50%; background: #555a66; }
.ld-obs-bar b { margin-left: 8px; font-weight: 600; }
.ld-obs-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 6px; padding: 6px; height: 300px; }
.ld-obs-scene { display: flex; align-items: center; justify-content: center; border-radius: 6px; background: linear-gradient(160deg, #23384a, #3a2442); color: rgba(255, 255, 255, .35); font: italic 13px var(--font); }
.ld-obs-dock { display: flex; flex-direction: column; min-height: 0; border-radius: 6px; overflow: hidden; background: #25272d; }
.ld-obs-title { padding: 5px 8px; font: 600 12px var(--font); color: #cfd2da; background: #2f3138; }
@media (max-width: 520px) { .ld-obs-body { grid-template-columns: 1fr; } .ld-obs-scene { display: none; } }
