/* Welcome - the public landing (web/screens/welcome.js) - 4.0, T5-014.

   Phone first (320 / 390 px): one column, full-width buttons, the screenshots
   cropped to a fixed frame so no card is taller than the screen. From 768 px the
   evidence cards go two-wide - the phone screenshot's card spans both rows on the
   left, the two desktop ones stack on the right - and the steps and the privacy
   points sit side by side. The column is capped at 1040 px on a wide screen -
   the public header's own width (shell.css .public-wrap), so the brand and the
   hero share one left edge (FV23).

   Load order (web/index.html): tokens -> components -> shell -> per-screen, this
   file among the five 4.0 screens that load last - so a rule here may override
   shell.css and components.css, never the other way round. Every var() used here
   is defined in tokens.css (tests/test_web.py). Reuses .card / .card-title /
   .eyebrow / .btn / .tag from components.css; nothing is redefined. */

.welcome {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: 1040px; min-width: 0; margin: 0 auto;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .welcome { gap: 20px; }
}

/* ---------- hero ---------- */

.welcome-hero {
  padding: 24px 18px;
  border-radius: 20px;
  border-color: var(--line-2);
  background:
    radial-gradient(120% 100% at 0% 0%, var(--gold-soft) 0%, transparent 60%),
    linear-gradient(160deg, var(--s2) 0%, var(--s1) 70%);
}
.welcome-hero .eyebrow { color: var(--gold); }
.welcome-title {
  margin: 10px 0 14px; max-width: 18em; text-wrap: balance;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 8.4vw, 48px); line-height: 1.04; letter-spacing: -0.03em;
}
.welcome-lede {
  margin: 0 0 22px; max-width: 60ch;
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
}
.welcome-cta { display: flex; flex-direction: column; gap: 10px; }
.welcome-cta .btn { height: 48px; font-size: 15px; text-decoration: none; }
.welcome .btn:not(.primary):hover { color: var(--ink); border-color: var(--gold); }
.welcome-signup-note { margin: 14px 0 0; }
@media (min-width: 480px) {
  .welcome-cta { flex-direction: row; flex-wrap: wrap; }
  .welcome-cta .btn { min-width: 168px; }
}
@media (min-width: 768px) {
  .welcome-hero { padding: 44px 40px; }
  .welcome-lede { font-size: 17px; }
}

/* ---------- evidence: three screens, three questions ---------- */

.welcome-evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.welcome-shot-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; }
.welcome-shot-card .card-title { margin: 0; }
.welcome-note { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* A fixed frame the screenshot fills: `cover` crops from the top-left, so the
   desktop captures (16:10, the frame's own ratio) show whole and the tall phone
   capture shows its top - the session, the goal and the trophy chart. */
.welcome-shot {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: 12px; background: var(--s2);
}
.welcome-shot.tall { aspect-ratio: 4 / 5; }
.welcome-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
}

@media (min-width: 768px) {
  .welcome-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-shot-card.is-phone { grid-row: span 2; }
  /* The phone card is as tall as the two stacked beside it; its frame takes
     whatever the text leaves. */
  .welcome-shot-card.is-phone .welcome-shot { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
}

/* ---------- the three text sections ---------- */

.welcome-sec { padding: 18px; }
.welcome-sec .card-title { margin: 0 0 14px; }
.welcome-aside { margin: 16px 0 0; font-size: 13px; line-height: 1.5; }
.welcome-aside a { text-decoration: underline; text-underline-offset: 2px; }

/* How it works: numbered steps (a CSS counter, so the list stays a real <ol>). */
.welcome-steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.welcome-step { display: flex; align-items: flex-start; gap: 12px; counter-increment: step; min-width: 0; }
.welcome-step::before {
  content: counter(step); flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold);
  font-family: var(--display); font-weight: 800; font-size: 14px;
}
.welcome-step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.welcome-step-text strong { color: var(--ink); font-weight: 800; }
.welcome-step-text span { font-size: 13px; line-height: 1.45; }

/* What it can't do: each limit a plain statement with its reason under it. */
.welcome-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 72ch; }
.welcome-limit {
  display: flex; flex-direction: column; gap: 3px;
  padding-left: 14px; border-left: 2px solid var(--line-2);
}
.welcome-limit strong { color: var(--ink); font-weight: 800; }
.welcome-limit span { font-size: 13px; line-height: 1.55; }

/* Private by design: four short points with a tick. */
.welcome-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.welcome-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; color: var(--ink-2); }
.welcome-check .i { color: var(--good); margin-top: 2px; }

@media (min-width: 768px) {
  .welcome-sec { padding: 24px; }
  .welcome-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .welcome-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
}

/* ---------- footer ---------- */

.welcome-foot { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 8px; }
.welcome-notice { margin: 0; max-width: 70ch; line-height: 1.5; }
.welcome-support { margin: 0; }
.welcome-support a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* The buttons again, after the last section (the hero's pair, outside a card). */
.welcome > .welcome-cta { padding: 4px 2px; }
.welcome-meta { display: flex; align-items: center; gap: 10px; }
