/* Shared launcher design. Load last on agent pages; add .theme-skate for that brand. */
:root {
  --ws-bg: #0b0f0d;
  --ws-glow: rgba(184, 242, 166, .12);
  --ws-surface: #131916;
  --ws-raised: #1a221e;
  --ws-input: #0e1411;
  --ws-line: rgba(255, 255, 255, .11);
  --ws-line-strong: rgba(255, 255, 255, .28);
  --ws-text: #f3f5f1;
  --ws-muted: #b1bcb5;
  --ws-accent: #b8f2a6;
  --ws-accent-strong: #d3f8c7;
  --ws-accent-soft: rgba(184, 242, 166, .1);
  --ws-on-accent: #0c1a10;
  --ws-focus: #f4cf74;
  --ws-display: 'Sora', 'Trebuchet MS', sans-serif;
  --ws-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: var(--ws-accent);
  --secondary: var(--ws-muted);
  --edge: var(--ws-line);
  color-scheme: dark;
}
body.theme-skate {
  --ws-bg: #071426;
  --ws-glow: rgba(96, 165, 250, .18);
  --ws-surface: #0e2240;
  --ws-raised: #14305a;
  --ws-input: #06162c;
  --ws-line: rgba(255, 255, 255, .14);
  --ws-line-strong: rgba(255, 255, 255, .32);
  --ws-text: #fff;
  --ws-muted: #cbd5f5;
  --ws-accent: #93c5fd;
  --ws-accent-strong: #bfdbfe;
  --ws-accent-soft: rgba(147, 197, 253, .13);
  --ws-on-accent: #071426;
  --accent: var(--ws-accent);
  --secondary: var(--ws-muted);
  --edge: var(--ws-line);
}

body { min-height: 100vh; overflow-x: clip; color: var(--ws-text); background: radial-gradient(56rem 30rem at 50% -6rem, var(--ws-glow), transparent 72%), var(--ws-bg); background-repeat: no-repeat; font-family: var(--ws-body); -webkit-font-smoothing: antialiased; }
a, button { color: var(--ws-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--ws-focus); outline-offset: 3px; }
.skip-link { z-index: 1000; border-radius: 10px; color: var(--ws-on-accent); background: var(--ws-accent); font-weight: 600; }

.ws-header, .brand-banner { position: sticky; top: 0; z-index: 20; width: 100%; border-bottom: 1px solid var(--ws-line); background: color-mix(in srgb, var(--ws-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.ws-header-inner { display: flex; width: min(100% - 32px, 1200px); min-height: 72px; margin-inline: auto; align-items: center; }
.ws-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ws-text); font-family: var(--ws-display); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.ws-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--ws-on-accent); background: var(--ws-accent); font-size: .875rem; font-weight: 800; letter-spacing: -.04em; }
.brand-banner { min-height: 72px; padding-block: 10px; padding-inline: max(16px, calc((100vw - 1200px) / 2)); }
.brand-banner > a:first-child { color: var(--ws-text); font-family: var(--ws-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -.035em; }
.brand-banner > a:last-child { padding: 0 18px; border: 1px solid var(--ws-line-strong); border-radius: 999px; color: var(--ws-text); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.brand-banner > a:last-child:hover { border-color: var(--ws-accent); color: var(--ws-on-accent); background: var(--ws-accent); }

main { width: min(100% - 32px, 720px); max-width: none; margin: clamp(36px, 7vh, 72px) auto 0; }
.agent-intro { margin-bottom: 30px; }
.flow-label { color: var(--ws-accent); font-family: var(--ws-display); font-size: .75rem; font-weight: 600; letter-spacing: .14em; }
.agent-title h1 { color: var(--ws-text); font-family: var(--ws-display); font-size: clamp(2rem, 5.4vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.agent-badge { margin-left: 12px; padding: 5px 11px; border: 1px solid color-mix(in srgb, var(--ws-accent) 45%, transparent); border-radius: 999px; color: var(--ws-accent); background: var(--ws-accent-soft); font-family: var(--ws-body); font-size: .75rem; font-weight: 600; letter-spacing: .03em; line-height: 1.4; }
.agent-intro > p:last-child { max-width: 54ch; margin-top: 16px; color: var(--ws-muted); font-size: 1.0625rem; line-height: 1.65; }
.agent-help summary { border-radius: 50%; }
.agent-help summary span { width: 36px; height: 36px; border-color: var(--ws-line-strong); color: var(--ws-accent); font-size: .9375rem; }
.agent-help summary:hover span { background: var(--ws-accent-soft); }
.agent-help-panel { padding: 22px; border: 1px solid var(--ws-line-strong); border-radius: 16px; color: var(--ws-text); background: var(--ws-raised); font-size: .9375rem; line-height: 1.65; }
.agent-help-panel h2 { font-family: var(--ws-display); }
.agent-help-panel p { color: var(--ws-muted); font-size: .9375rem; }

.flow-steps { gap: 6px; margin: 0 0 16px; padding: 6px; border: 1px solid var(--ws-line); border-radius: 16px; background: var(--ws-surface); }
.flow-steps button { min-height: 50px; padding: 8px 12px; border: 0; border-radius: 11px; color: var(--ws-muted); font-size: .9375rem; font-weight: 600; }
.flow-steps button:disabled { color: var(--ws-muted); opacity: .78; }
.flow-steps [aria-current=step] { color: var(--ws-text); background: var(--ws-raised); }
.step-circle { width: 30px; height: 30px; border-color: var(--ws-line-strong); font-size: .75rem; font-weight: 700; }
.flow-steps [aria-current=step] .step-circle { border-color: var(--ws-accent); color: var(--ws-on-accent); background: var(--ws-accent); }

.phase { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--ws-line); border-radius: 22px; background: var(--ws-surface); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.phase-number { color: var(--ws-accent); font-family: var(--ws-display); font-size: .75rem; font-weight: 600; letter-spacing: .13em; }
.phase h2 { margin: 10px 0 20px; color: var(--ws-text); font-family: var(--ws-display); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.phase p, .hint, #lead-type-hint, #location-hint, #status, small { color: var(--ws-muted); }
label, .location-heading > span { color: var(--ws-text); font-size: .9375rem; font-weight: 600; }
#location-form label { margin-bottom: 8px; }
#usage-count, #usage-count.usage-emphasis { color: var(--ws-accent); }
.field { border: 1px solid var(--ws-line-strong); border-radius: 12px; background: var(--ws-input); transition: border-color .2s; }
.field:hover { border-color: color-mix(in srgb, var(--ws-accent) 55%, transparent); }
.field:focus-within { border-color: var(--ws-accent); outline: 3px solid var(--ws-focus); outline-offset: 2px; }
.field input, .field textarea { border: 0; color: var(--ws-text); background: transparent; font-size: 1rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
input::placeholder, .field textarea::placeholder { color: var(--ws-muted); opacity: .82; }
#locate { color: var(--ws-accent); border-left: 1px solid var(--ws-line); }
#locate:hover { background: var(--ws-accent-soft); }
.location-tooltip, .location-control:has(#locate:hover) .location-tooltip, .location-control:has(#locate:focus-visible) .location-tooltip { color: var(--ws-text); background: var(--ws-raised); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.location-tooltip::after, .location-control:has(#locate:hover) .location-tooltip::after, .location-control:has(#locate:focus-visible) .location-tooltip::after { border-top-color: var(--ws-raised); }

#location-submit { min-height: 52px; margin-top: 16px; border: 0; border-radius: 999px; color: var(--ws-on-accent); background: var(--ws-accent); box-shadow: none; font-size: 1rem; font-weight: 650; transition: background .2s, transform .2s; }
#location-submit:hover { background: var(--ws-accent-strong); transform: translateY(-1px); }
.scope-note { border-top-color: var(--ws-line); color: var(--ws-muted); font-size: .875rem; }
#location-results { border-color: var(--ws-line-strong); border-radius: 12px; background: var(--ws-input); }
#location-results button { color: var(--ws-text); border-bottom-color: var(--ws-line); }
#location-results button:hover { background: var(--ws-raised); }

.selected-location { padding: 14px 16px; border: 1px solid var(--ws-line); border-radius: 12px; background: var(--ws-accent-soft); color: var(--ws-text) !important; font-size: .9375rem; }
.harness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; border: 0; }
.harness-grid > div { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--ws-line); border-radius: 16px; background: var(--ws-raised); }
.harness-grid .copy-prompt { min-height: 48px; margin: 0; border: 1px solid var(--ws-accent); border-radius: 999px; color: var(--ws-on-accent); background: var(--ws-accent); font-weight: 650; transition: background .2s; }
.harness-grid .copy-prompt:hover { border-color: var(--ws-accent-strong); background: var(--ws-accent-strong); }
.harness-grid .copy-prompt.is-copied { border-color: var(--ws-accent-strong); color: var(--ws-on-accent); background: var(--ws-accent-strong); box-shadow: 0 0 0 3px var(--ws-accent-soft); }
.harness-grid > div > a { flex: 1; align-items: center; padding: 12px; border: 1px solid var(--ws-line); border-radius: 12px; color: var(--ws-text); background: transparent; font-weight: 600; }
.harness-grid > div > a:hover { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.harness-grid a small, .harness-grid small { color: var(--ws-muted); font-weight: 400; }
.harness-mark { border-color: color-mix(in srgb, var(--ws-accent) 40%, transparent); border-radius: 10px; color: var(--ws-accent); background: var(--ws-accent-soft); }
.harness-arrow { color: var(--ws-accent); }
.flow-back { color: var(--ws-muted); font-weight: 500; }
.flow-back:hover { color: var(--ws-accent); }

#app-help { margin: 18px 0; padding: 22px; border: 1px solid #c79a4b; border-radius: 16px; color: #fff2dc; background: #30281b; box-shadow: none; }
#app-help h2 { color: #fff2dc; font-family: var(--ws-display); }
#app-help p { color: #fff2dc; }
.help-actions a, .help-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--ws-accent); border-radius: 999px; color: var(--ws-on-accent); background: var(--ws-accent); font: inherit; font-weight: 600; text-decoration: none; }
.help-actions button { color: #fff2dc; border-color: #d9c493; background: transparent; }
.help-actions a:hover { background: var(--ws-accent-strong); }
.help-actions button:hover { background: rgba(255, 255, 255, .1); }
#copy-fallback { width: 100%; margin-top: 12px; padding: 14px; border: 1px solid var(--ws-line-strong); border-radius: 12px; color: var(--ws-text); background: var(--ws-input); }
.investment-notice { color: var(--ws-muted); }

.workspace-footer { width: min(100% - 32px, 720px); margin: 28px auto 36px; padding-top: 16px; border-top: 1px solid var(--ws-line); color: var(--ws-muted); font-size: .875rem; }
.workspace-footer a { color: var(--ws-muted); }
.workspace-footer a:hover { color: var(--ws-accent); }
.workspace-footer nav a { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 600px) {
  .harness-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-badge { display: block; width: max-content; margin: 10px 0 0; }
}
@media (max-width: 400px) {
  .brand-banner { gap: 10px; }
  .brand-banner > a:first-child { font-size: 1.125rem; }
  .brand-banner > a:last-child { padding: 0 12px; font-size: .8125rem; }
  .flow-steps button { gap: 6px; padding: 8px 6px; font-size: .875rem; }
}
@media (forced-colors: active) {
  .phase, .field, .flow-steps, .harness-grid > div, .harness-grid > div > a, .copy-prompt, #location-submit { border: 1px solid ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #location-submit:hover { transform: none; }
}
