/* download.theboo.ai — Boo's design language (docs/design-language.md in the app repo):
   one base color, surfaces and lines are the ink at low alpha, light weights,
   Geist for the interface and Newsreader for the one big line, a violet accent. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #131417;
  --ink: 226 227 233;
  --text: rgb(var(--ink));
  --text-2: rgb(var(--ink) / 0.66);
  --text-3: rgb(var(--ink) / 0.44);
  --layer-1: rgb(var(--ink) / 0.035);
  --layer-2: rgb(var(--ink) / 0.055);
  --layer-3: rgb(var(--ink) / 0.09);
  --line: rgb(var(--ink) / 0.1);
  --line-strong: rgb(var(--ink) / 0.16);
  --accent: #a394ff;
  --accent-strong: #7c6cf0;
  --accent-glow: rgb(124 108 240 / 0.28);
  --on-accent: #ffffff;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --ease-move: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --ink: 23 24 28;
    --text-2: rgb(var(--ink) / 0.68);
    --text-3: rgb(var(--ink) / 0.48);
    --layer-1: rgb(var(--ink) / 0.03);
    --layer-2: rgb(var(--ink) / 0.05);
    --layer-3: rgb(var(--ink) / 0.08);
    --line-strong: rgb(var(--ink) / 0.18);
    --accent: #5a48e0;
    --accent-strong: #5a48e0;
    --accent-glow: rgb(90 72 224 / 0.16);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

/* The hidden attribute beats every display rule below (.steps is a grid). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

b {
  font-weight: 500;
  color: var(--text);
}

.top {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.brand-mark {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

.halo {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
  border-radius: 30px;
  background:
    radial-gradient(120% 120% at 50% 15%, rgb(124 108 240 / 0.38), transparent 62%),
    linear-gradient(180deg, #22202c, #0f1013);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.07) inset,
    0 24px 64px -24px var(--accent-glow);
}

.hero-mark {
  width: 56px;
  height: 56px;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(40px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--text-2);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px 0 22px;
  border-radius: 9999px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12) inset,
    0 10px 30px -10px var(--accent-glow);
  transition:
    transform 160ms var(--ease-move),
    filter 160ms ease-out;
}

.primary:hover {
  filter: brightness(1.08);
}

.primary:active {
  transform: scale(0.98);
}

.primary:focus-visible,
.others a:focus-visible,
.switch button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.primary[aria-disabled='true'] {
  pointer-events: none;
  background: var(--layer-3);
  color: var(--text-2);
  box-shadow: none;
}

.os-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.meta {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.others {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
}

.others a {
  color: var(--text-2);
  text-decoration: none;
  border-radius: 4px;
}

.others a:hover {
  color: var(--text);
}

.dot {
  margin: 0 8px;
  color: var(--text-3);
}

/* ------------------------------------------------------------ first open */

.first-open {
  margin-top: 72px;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--layer-1);
}

.first-open-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9999px;
  background: var(--layer-2);
  border: 1px solid var(--line);
}

.switch button {
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-2);
  font: 450 13px/20px var(--font-sans);
  cursor: pointer;
  transition:
    background 160ms ease-out,
    color 160ms ease-out;
}

.switch button[aria-selected='true'] {
  background: var(--layer-3);
  color: var(--text);
}

.steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}

.steps li:first-child {
  border-top: 0;
}

.steps p {
  margin: 0;
  color: var(--text-2);
}

.n {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-radius: 9999px;
  background: var(--layer-3);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 12px 4px 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- footer */

.foot {
  display: flex;
  justify-content: center;
  padding: 24px;
  font-size: 12.5px;
  color: var(--text-3);
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--text-2);
}

@media (max-width: 520px) {
  .top {
    padding: 0 20px;
  }
  .hero {
    padding-top: 16px;
  }
  .first-open {
    padding: 20px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
