@font-face {
  font-family: Inter;
  src: url('/fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --new-bg: #050505;
  --new-panel: #111111;
  --new-line: #2b2b2b;
  --new-muted: #9a9a9a;
  --new-soft: #d9d9d9;
  --new-white: #ffffff;
  --new-radius: clamp(18px, 2.4vw, 30px);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  min-width: 280px;
  background: var(--new-bg);
  color: var(--new-white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.launch-new {
  width: 100%;
  height: 100dvh;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 120px);
  padding: clamp(28px, 6vw, 88px) clamp(24px, 8vw, 140px);
  overflow: hidden;
  position: relative;
}

.launch-new::before {
  content: "";
  position: absolute;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  left: -18vw;
  bottom: -40%;
  border-radius: 50%;
  background: #191919;
  filter: blur(1px);
  pointer-events: none;
}

.launch-new::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.04) 42.2%, transparent 42.5%);
  pointer-events: none;
}

.launch-new-copy,
.launch-new-panel { position: relative; z-index: 1; }
.launch-new-copy { max-width: 700px; }
.launch-new-mark { display: flex; align-items: flex-end; gap: 4px; height: 23px; margin-bottom: 22px; }
.launch-new-mark span { display: block; width: 5px; border-radius: 99px; background: var(--new-white); }
.launch-new-mark span:nth-child(1) { height: 12px; opacity: .45; }
.launch-new-mark span:nth-child(2) { height: 21px; }
.launch-new-mark span:nth-child(3) { height: 16px; opacity: .7; }
.launch-new-kicker, .launch-new-step {
  margin: 0;
  color: var(--new-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
}
.launch-new-copy h1 {
  max-width: 660px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 690;
}
.launch-new-lede {
  max-width: 570px;
  margin: 0;
  color: var(--new-soft);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.48;
  letter-spacing: -.012em;
}
.launch-new-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(28px, 5vw, 62px);
  color: var(--new-muted);
  font-size: 12px;
}
.launch-new-proof span { white-space: nowrap; }
.launch-new-proof b { color: var(--new-white); margin-right: 7px; }

.launch-new-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(17,17,17,.92);
  border: 1px solid var(--new-line);
  border-radius: var(--new-radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.launch-new-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.launch-new-status { color: var(--new-muted); font-size: 12px; min-height: 18px; }
.launch-new-panel h2 { margin: 32px 0 10px; font-size: clamp(25px, 3vw, 38px); line-height: 1.02; letter-spacing: -.045em; }
.launch-new-hint { margin: 0 0 28px; color: var(--new-muted); font-size: 14px; line-height: 1.5; }
.launch-new-field { display: block; margin-bottom: 18px; }
.launch-new-field > span { display: block; margin-bottom: 8px; color: var(--new-soft); font-size: 12px; font-weight: 600; }
.launch-new-field em { color: var(--new-muted); font-style: normal; font-weight: 400; }
.launch-new-field input,
.launch-new-field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--new-line);
  border-radius: 13px;
  outline: 0;
  background: #080808;
  color: var(--new-white);
  font: inherit;
  font-size: 16px;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.launch-new-field input { height: 54px; padding: 0 16px; }
.launch-new-field textarea { min-height: 82px; padding: 13px 16px; resize: none; line-height: 1.4; }
.launch-new-field input::placeholder,
.launch-new-field textarea::placeholder { color: #626262; }
.launch-new-field input:focus,
.launch-new-field textarea:focus { border-color: #858585; background: #0d0d0d; box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
.launch-new-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #5c3030; border-radius: 10px; color: #ffb4b4; background: #221010; font-size: 13px; line-height: 1.4; }
.launch-new-error[hidden] { display: none; }
.launch-new-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 20px;
  border: 1px solid var(--new-white);
  border-radius: 13px;
  background: var(--new-white);
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s, background .16s, color .16s;
}
.launch-new-go span { font-size: 22px; line-height: 1; }
.launch-new-go:hover { background: #d8d8d8; }
.launch-new-go:active { transform: scale(.98); }
.launch-new-go:disabled { opacity: .58; cursor: wait; }
.launch-new-footnote { margin: 18px 0 0; color: #666; font-size: 11px; text-align: center; }

@media (max-width: 820px) {
  .launch-new { grid-template-columns: 1fr; align-content: center; gap: 26px; padding: 28px 22px; }
  .launch-new-copy { max-width: 620px; }
  .launch-new-copy h1 { max-width: 560px; margin: 14px 0 14px; font-size: clamp(42px, 10vw, 68px); }
  .launch-new-lede { max-width: 560px; font-size: 15px; }
  .launch-new-proof { margin-top: 20px; }
  .launch-new-panel { max-width: 620px; justify-self: stretch; padding: 24px; }
  .launch-new-panel h2 { margin-top: 22px; font-size: 28px; }
  .launch-new-hint { margin-bottom: 20px; }
}

@media (max-height: 700px) and (min-width: 821px) {
  .launch-new { padding-top: 24px; padding-bottom: 24px; gap: 40px; }
  .launch-new-copy h1 { font-size: clamp(40px, 5.2vw, 68px); margin: 12px 0 14px; }
  .launch-new-lede { font-size: 15px; }
  .launch-new-proof { margin-top: 24px; }
  .launch-new-panel { padding: 24px; }
  .launch-new-panel h2 { margin-top: 20px; font-size: 28px; }
  .launch-new-hint { margin-bottom: 16px; }
  .launch-new-field { margin-bottom: 12px; }
  .launch-new-field textarea { min-height: 66px; }
}

@media (max-width: 560px) {
  .launch-new { min-height: 560px; padding: 22px 16px; gap: 18px; }
  .launch-new-mark { margin-bottom: 14px; }
  .launch-new-copy h1 { font-size: clamp(38px, 12vw, 54px); }
  .launch-new-lede { font-size: 14px; line-height: 1.4; }
  .launch-new-proof { display: none; }
  .launch-new-panel { padding: 20px; border-radius: 20px; }
  .launch-new-panel h2 { font-size: 25px; }
  .launch-new-footnote { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.launch-new-brand {
  position: absolute;
  top: clamp(20px, 4vw, 46px);
  left: clamp(24px, 8vw, 140px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.launch-new-brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.launch-new-brand-mark i { display:block; width:3px; border-radius:99px; background:#fff; }
.launch-new-brand-mark i:nth-child(1) { height:9px; opacity:.42; }
.launch-new-brand-mark i:nth-child(2) { height:17px; }
.launch-new-brand-mark i:nth-child(3) { height:13px; opacity:.7; }
@media (max-width: 820px) {
  .launch-new-brand { left:22px; }
}
@media (max-width: 560px) {
  .launch-new-brand { left:16px; font-size:12px; }
}

/* Application light surface: the launch page follows the rest of My AI Model Manager. */
:root {
  color-scheme: light;
  --new-bg: #ffffff;
  --new-panel: #ffffff;
  --new-line: #dedede;
  --new-muted: #707070;
  --new-soft: #343434;
  --new-white: #111111;
}
body { background: #fff; color: #111; }
.launch-new { background: #fff; color: #111; }
.launch-new::before { background: #f1f1f1; }
.launch-new::after { background: linear-gradient(115deg, transparent 0 42%, rgba(0,0,0,.035) 42.2%, transparent 42.5%); }
.launch-new-brand { color: #111; }
.launch-new-brand-mark i { background: #111; }
.launch-new-copy h1 { color: #111; }
.launch-new-lede { color: #555; }
.launch-new-proof { color: #777; }
.launch-new-proof b { color: #111; }
.launch-new-panel { background: rgba(255,255,255,.96); border-color: #dedede; box-shadow: 0 24px 80px rgba(0,0,0,.09); }
.launch-new-panel h2 { color: #111; }
.launch-new-hint { color: #707070; }
.launch-new-field > span { color: #3f3f3f; }
.launch-new-field em { color: #818181; }
.launch-new-field input,
.launch-new-field textarea { border-color: #d7d7d7; background: #fafafa; color: #111; }
.launch-new-field input::placeholder,
.launch-new-field textarea::placeholder { color: #a0a0a0; }
.launch-new-field input:focus,
.launch-new-field textarea:focus { border-color: #111; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.07); }
.launch-new-go { border-color: #111; background: #111; color: #fff; }
.launch-new-go:hover { background: #303030; }
.launch-new-footnote { color: #898989; }
.launch-new-status { color: #707070; }

.launch-new-agents {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 110px);
  justify-self: center;
  align-self: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #dedede;
  border-radius: var(--new-radius);
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 80px rgba(0,0,0,.08);
  overflow: hidden;
}
.launch-new-agents-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:20px; }
.launch-new-agents-head h2 { margin:10px 0 7px; color:#111; font-size:clamp(28px,4vw,48px); line-height:1; letter-spacing:-.055em; }
.launch-new-agents-head .launch-new-hint { max-width:560px; margin:0; }
.launch-new-secondary { flex:0 0 auto; min-height:44px; padding:0 16px; border:1px solid #111; border-radius:11px; background:#fff; color:#111; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.launch-new-secondary:hover { background:#111; color:#fff; }
.launch-new-agents-status { min-height:18px; margin-bottom:12px; color:#777; font-size:12px; }
.launch-new-agent-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:calc(100dvh - 260px); overflow:auto; padding:1px 3px 3px 1px; }
.launch-new-agent-card { display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:13px; min-width:0; padding:13px; border:1px solid #e1e1e1; border-radius:14px; background:#fff; }
.launch-new-agent-card:hover { border-color:#999; }
.launch-new-agent-card.is-building { border-color:#111; }
.launch-new-agent-avatar { width:56px; height:56px; display:grid; place-items:center; overflow:hidden; border-radius:14px; background:#f0f0f0; color:#111; }
.launch-new-agent-avatar img { width:100%; height:100%; object-fit:cover; }
.launch-new-agent-placeholder { font-size:22px; font-weight:700; }
.launch-new-agent-body { min-width:0; }
.launch-new-agent-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
.launch-new-agent-body h3 { min-width:0; margin:0; overflow:hidden; color:#111; font-size:15px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.launch-new-agent-body p { margin:6px 0 0; overflow:hidden; color:#666; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.launch-new-agent-body small { display:block; margin-top:5px; color:#999; font-size:10px; }
.launch-new-agent-status { flex:0 0 auto; padding:4px 7px; border-radius:99px; background:#111; color:#fff; font-size:9px; font-weight:700; }
.launch-new-agent-status.is-warning { background:#8a5b00; }
.launch-new-agent-status.is-muted { background:#ededed; color:#555; }
.launch-new-agent-status.is-building { background:#111; }
.launch-new-agent-open { display:inline-flex; align-items:center; gap:5px; color:#111; font-size:11px; font-weight:700; text-decoration:none; white-space:nowrap; }
.launch-new-agent-open:hover { text-decoration:underline; }
.launch-new-agents-error { margin-top:12px; }

@media (max-width: 820px) {
  .launch-new { background:#fff; }
  .launch-new-agents { max-height:calc(100dvh - 92px); padding:22px; }
  .launch-new-agents-head { align-items:flex-start; flex-direction:column; gap:14px; }
  .launch-new-secondary { align-self:stretch; }
  .launch-new-agent-grid { grid-template-columns:1fr; max-height:calc(100dvh - 300px); }
}
@media (max-width: 560px) {
  .launch-new { min-height:520px; padding:18px 14px; }
  .launch-new-brand { left:14px; }
  .launch-new-brand-logo { width:30px; height:30px; }
  .launch-new-brand-name { font-size:11px; }
  .launch-new-copy { padding-top:35px; }
  .launch-new-copy h1 { font-size:clamp(34px,11vw,50px); }
  .launch-new-panel { padding:18px; }
  .launch-new-agents { width:100%; max-height:calc(100dvh - 72px); padding:18px; }
  .launch-new-agents-head h2 { font-size:34px; }
  .launch-new-agent-grid { max-height:calc(100dvh - 295px); }
  .launch-new-agent-card { grid-template-columns:44px minmax(0,1fr); gap:10px; padding:10px; }
  .launch-new-agent-avatar { width:44px; height:44px; border-radius:11px; }
  .launch-new-agent-open { grid-column:2; justify-self:start; margin-top:2px; }
}

/* ── "I don't have a website": the niche picker ─────────────────────────────
   The second path through the same panel. It has to read as an equal answer to
   the URL box, not as a fallback — a visitor without a site is the one who
   needs this product most. See `config/launch-starter-niches.js`. */
.launch-new-mode[hidden] { display: none; }
.launch-new-mode > .launch-new-field:last-of-type { margin-bottom: 10px; }

.launch-new-switch {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #555;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.launch-new-switch:hover { color: #111; }
.launch-new-switch:disabled { opacity: .5; cursor: wait; }

.launch-new-niches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}
.launch-new-niche {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 11px;
  background: #fafafa;
  color: #333;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.launch-new-niche i { flex: 0 0 auto; font-size: 15px; opacity: .65; }
.launch-new-niche:hover { border-color: #999; background: #fff; color: #111; }
/* The picked chip is the one inverted element in this group — same emphasis
   system the rest of the funnel uses. */
.launch-new-niche.is-picked { border-color: #111; background: #111; color: #fff; }
.launch-new-niche.is-picked i { opacity: 1; }
.launch-new-niche:disabled { opacity: .5; cursor: wait; }
.launch-new-niche:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* Two columns hold all the way down to a 375px phone — twelve chips in ONE
   column is a scroll, and this picker has to be scannable at a glance to read
   as an equal answer to the URL box. The labels wrap instead. */
@media (max-width: 560px) {
  .launch-new-niches { gap: 7px; }
  .launch-new-niche { min-height: 46px; padding: 0 9px; font-size: 12px; }
  .launch-new-niche i { font-size: 14px; }
}
@media (max-width: 330px) {
  .launch-new-niches { grid-template-columns: 1fr; }
}

/* Responsive safety: preserve the single-frame composition when it fits, but let
   the document grow on short phones or long agent lists rather than clipping. */
html, body { overflow-x: hidden; overflow-y: auto; }
.launch-new { min-height: 100dvh; height: auto; overflow: visible; }
.launch-new-agents { max-height: none; overflow: visible; }
.launch-new-agent-grid { max-height: none; overflow: visible; }
@media (max-width: 820px) {
  .launch-new { align-content: start; padding-top: 88px; padding-bottom: 28px; }
  .launch-new-copy { margin-bottom: 4px; }
  .launch-new-agents { max-height: none; }
  .launch-new-agent-grid { max-height: none; }
}
@media (max-width: 560px) {
  .launch-new { padding-top: 74px; }
  .launch-new-panel { margin-bottom: 4px; }
}
