/* Post-install onboarding.
   Same tokens as styles.css so this reads as one site, but self-contained —
   the extension opens this page directly on install and it must be right on
   the very first paint. */
:root {
  color-scheme: light;
  --page-bg: #f6f2eb;
  --card: #fffdfa;
  --text: #111116;
  --muted: #625f6d;
  --line: rgba(17, 17, 22, 0.1);
  --accent: #cf9dff;
  --accent-deep: #7b46b8;
  --ink: #16141c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Shared type ── */
.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.serif {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
}
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0; max-width: 56ch; }

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.topbar .eyebrow { margin: 0; }

/* ── Hero ── */
.hero { padding: 40px 0 70px; text-align: center; }
.hero .lead { margin: 0 auto; }

.installed-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(28, 139, 98, 0.1);
  border: 1px solid rgba(28, 139, 98, 0.28);
  color: #16704f;
  font-size: 0.84rem;
  font-weight: 700;
}
.installed-chip svg { flex-shrink: 0; }


/* ── Steps ── */
.steps { padding: 20px 0 80px; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.step:nth-child(even) .step-copy { order: 2; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700; }
.step p { color: var(--muted); margin: 0 0 14px; }
.step p:last-child { margin-bottom: 0; }
.step b { color: var(--text); font-weight: 600; }

/* No card, no crop: every shot is a transparent PNG/WebP that already has its
   own corners. drop-shadow (not box-shadow) follows the alpha channel, so the
   lift traces the artwork instead of a rectangle around it. */
.shot { display: flex; justify-content: center; }
/* height:auto is load-bearing: the HTML height attribute lands as a
   presentational `height:<n>px`, so width:100% alone squashes every shot
   to the column width at its original pixel height.
   Each shot is then capped at its own natural size — never upscaled past it,
   which is what turns a crisp asset into a soft one. */
.shot img { width: 100%; height: auto; }
.shot-panel img  { max-width: 360px; filter: drop-shadow(0 18px 40px rgba(17,17,22,.22)); }
.shot-modes img  { max-width: 334px; border-radius: 12px; }
.shot-youtube img { max-width: 228px; }
.shot-select img { max-width: 593px; }
.shot-text img   { max-width: 631px; }

/* Inline key caps, matching the settings page. */
kbd {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #efeae2;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  white-space: nowrap;
}

/* ── Chrome toolbar illustration (step 1) ──
   A drawing of Chrome's own extensions menu, not of AnyDub — there is no
   screenshot of another app's chrome we could legitimately ship. */
.toolbar-demo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(17, 17, 22, 0.1);
  max-width: 380px;
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.88rem;
}
.toolbar-row.is-anydub { background: #f4eefb; font-weight: 600; }
.toolbar-row img { width: 20px; height: 20px; border-radius: 5px; }
.toolbar-dot { width: 20px; height: 20px; border-radius: 5px; background: #e6e2ea; flex-shrink: 0; }
.toolbar-row span { flex: 1; }
.toolbar-head {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 12px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.pin-glyph { color: var(--accent-deep); flex-shrink: 0; }
.pin-glyph.is-off { color: #b7b2bd; }

/* ── Settings CTA ── */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: clamp(44px, 6vw, 76px) 28px;
  text-align: center;
  margin-bottom: 60px;
}
.cta .eyebrow { color: var(--accent); }
.cta p { color: rgba(255, 255, 255, 0.66); max-width: 50ch; margin: 0 auto 28px; }
.cta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  max-width: 640px;
}
.cta-list li {
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: #fff;
  color: #111116;
  transition: transform 180ms ease, opacity 180ms ease;
}
.button:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { font-weight: 600; }

@media (max-width: 800px) {
  .step { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .step:nth-child(even) .step-copy { order: 0; }
  .toolbar-demo { max-width: none; }
}

/* The panel is a narrow 360px surface — letting it stretch to fill a grid
   column would blow a 2x asset past its native size and go soft. */
.hero-shot { max-width: 360px; margin: 44px auto 0; }
.hero-shot img { width: 100%; height: auto; filter: drop-shadow(0 22px 50px rgba(17,17,22,.24)); }

