/* The download page.
 *
 * Same tokens as account.css and app.css, and a SEPARATE stylesheet for the
 * same reason: this page must paint before any chat machinery exists. Someone
 * arriving to install something should not wait on a model picker.
 *
 * The design job here is narrow and specific: a product that is NOT YET
 * available has to look deliberate rather than broken. A greyed button with no
 * explanation reads as a bug; a card that says plainly what it is, what it will
 * need, and what happens next reads as a company that has its house in order.
 * So the unavailable state keeps the full card — art, name, description, the
 * feature list — and changes only the action.
 */

:root {
  --bg: #06070a;
  --raised: rgba(255, 255, 255, 0.045);
  --raised-hover: rgba(255, 255, 255, 0.085);
  --line: rgba(150, 160, 235, 0.14);
  --line-subtle: rgba(150, 160, 235, 0.07);
  --text: #f1f5f9;
  --text-bright: #ffffff;
  --muted: #94a3b8;
  --faint: #7a8798;
  --accent: #38bdf8;
  --accent-purple: #818cf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --wordmark: linear-gradient(100deg, #4338ca 0%, #22d3ee 30%, #e0f2fe 52%, #d946ef 78%, #f472b6 100%);
  --good: #6ee7b7;
  --soon: #fbbf24;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
/* ⛔ 100vh, NOT 100%. A percentage min-height resolves against the PARENT'S
   height, and html is auto — so body computed to its content height and simply
   stopped. On a tall window that left a band of bare canvas below the last
   card, with the fixed aurora still glowing over it and nothing to break it up:
   it read as the background quitting halfway down the page. dvh follows mobile
   browser chrome as it hides; vh is the fallback where dvh is unknown. */
html, body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100dvh; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; }
button { font: inherit; }

.aura { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aura::before, .aura::after, .aura i { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; }
.aura::before { width: 520px; height: 520px; top: -180px; left: -140px; background: radial-gradient(circle, rgba(56,189,248,.5), transparent 68%); }
.aura::after  { width: 460px; height: 460px; top: 26%; right: -200px; background: radial-gradient(circle, rgba(168,85,247,.4), transparent 68%); }
.aura i       { width: 440px; height: 440px; bottom: -220px; left: 24%; background: radial-gradient(circle, rgba(99,102,241,.4), transparent 68%); }

.bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-subtle);
  background: rgba(6,7,10,.7); backdrop-filter: blur(22px) saturate(170%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(56,189,248,.45)); }
.wordmark {
  font-size: 15px; font-weight: 800; letter-spacing: .2em;
  background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wrap { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 40px 20px 72px; }

.hero { text-align: center; margin-bottom: 34px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 40px); font-weight: 750; letter-spacing: -.025em; line-height: 1.14;
  background: linear-gradient(180deg, #ffffff 30%, #a8b6cf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-size: 15.5px; }
.hero-link { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }

/* Two cards, side by side where there is room. `1fr 1fr` rather than auto-fit
   so the pair always share a width — one wide card next to one narrow one
   reads as one product mattering more, which is not the message. */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.card {
  position: relative; overflow: hidden;
  background: rgba(16,19,31,.72); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 13px;
}
/* A quiet wash so a card reads as a surface with light on it, not a flat box. */
.card::before {
  content: ''; position: absolute; inset: -1px -1px auto -1px; height: 130px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(56,189,248,.10), transparent 70%);
  pointer-events: none;
}
.card.note { display: block; }
.card.note h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.card.note p { margin: 0; color: var(--muted); font-size: 14px; }

.head { display: flex; align-items: center; gap: 12px; }
.glyph {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--raised); border: 1px solid var(--line);
}
.glyph svg { width: 21px; height: 21px; }
.title { min-width: 0; flex: 1; }
.title h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text-bright); }
.platform { font-size: 12px; color: var(--faint); margin-top: 2px; }

.pitch { color: var(--muted); font-size: 14px; margin: 0; }

.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.feats li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--text); }
.feats li::before {
  content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent-gradient);
}

.action { margin-top: auto; padding-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 12px 18px; border-radius: 13px;
  font-size: 14.5px; font-weight: 680; border: 1px solid var(--line);
  background: var(--raised); color: var(--text); text-decoration: none;
  cursor: pointer; transition: all .15s ease;
}
.btn:hover { background: var(--raised-hover); }
.btn.primary { background: var(--accent-gradient); border: none; color: #05070d; box-shadow: 0 8px 22px rgba(56,189,248,.26); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: none; width: auto; padding: 9px 16px; font-size: 13.5px; }
/* NOT a disabled button. A disabled control invites clicking and then does
   nothing, which is the least informative thing a page can do. This is a plain
   statement of state, and the sentence under it says what happens next. */
.btn.soon {
  background: rgba(251,191,36,.07); border-color: rgba(251,191,36,.34); color: var(--soon);
  cursor: default; font-weight: 650;
}
.btn.soon:hover { background: rgba(251,191,36,.07); }
.next { margin: 9px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.meta { margin: 9px 0 0; font-size: 12px; color: var(--faint); text-align: center; }

.muted { color: var(--muted); }
.fine { font-size: 12.5px; }
.foot { text-align: center; margin-top: 28px; }

@media (max-width: 720px) {
  /* Small screens SCALE rather than strip: both cards stay, stacked. */
  .grid { grid-template-columns: 1fr; }
  .wrap { padding: 28px 14px 60px; }
  .card { padding: 20px; border-radius: 17px; }
}
