/*
 * The landing page (WEB-007) — R2 frames `#2g` (full) and W1/W2 (waitlist).
 *
 * One page, two variants, chosen by `<body data-variant="waitlist|full">`.
 * `waitlist` ships now (pre-launch, pricing hidden — 01 §10.1); flipping the
 * attribute to `full` is the whole 1.0 switch. `.only-full` / `.only-waitlist`
 * mark the parts that belong to one variant.
 *
 * Colours are tokens (tokens.css). Layout is logical-property based
 * (`inline`/`block`) so WEB-015's RTL needs no second stylesheet.
 */

body[data-variant="waitlist"] .only-full,
body[data-variant="full"] .only-waitlist { display: none !important; }

.lp-header-cta { height: 36px; padding: 0 14px; font-size: 13px; }
.lp-header-cta.btn--primary { font-family: var(--font-display); font-weight: 600; }
/* `.site-header__nav a` sets secondary ink on every nav link; a button in the nav keeps its own. */
.site-header__nav .lp-header-cta { color: var(--text); }
.site-header__nav .lp-header-cta.btn--primary { color: var(--on-primary); }

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

.lp-hero {
  padding: 32px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.lp-hero__copy { display: flex; flex-direction: column; gap: 16px; }
.lp-chip {
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}
.lp-hero h1 {
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.lp-hero__lede { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.lp-hero__lede .long { display: none; }
.lp-hero__actions { display: flex; flex-direction: column; gap: 10px; padding-block-start: 4px; }
.lp-micro { font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* ------------------------------------------------------------- waitlist */

.lp-join { display: flex; flex-direction: column; gap: 10px; }
.lp-join__row { display: flex; flex-direction: column; gap: 10px; }
.lp-join .input { height: 52px; }
.lp-join .btn { height: 54px; font-size: 15.5px; }
.lp-join__status { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.lp-join__status:empty { margin-block: -5px; }
.lp-join__status[data-tone="ok"] { color: var(--text); }
.lp-join__status[data-tone="error"] { color: var(--danger); }
.lp-join .input[aria-invalid="true"] { background: var(--danger-fill); border-color: var(--danger); }

.lp-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-platform {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.lp-platform svg { width: 14px; height: 14px; display: none; }
.lp-platform[aria-pressed="true"] { border-color: var(--border-emphasis); background: var(--raised); color: var(--text); }
.lp-platform[aria-pressed="true"] svg { display: block; }

/* -------------------------------------------------------------- artwork */

/* Abstract illustration only — no logo, still or programming (CLAUDE.md
   constraints 4–5). The caption says so on the art itself. */
.lp-art { display: flex; flex-direction: column; gap: 14px; }
.lp-art__panel {
  position: relative;
  padding: 16px;
  border-radius: var(--r-panel);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.lp-art__bars { display: flex; gap: 12px; align-items: center; }
.lp-bar { height: 10px; border-radius: var(--r-pill); background: var(--art-1); }
.lp-bar--b { background: var(--art-2); }
.lp-bar--c { background: var(--art-3); }
/* Mobile: three posters and a 24px peek of the fourth. */
.lp-posters { display: flex; gap: 10px; overflow: hidden; }
.lp-poster {
  flex: none;
  width: calc((100% - 30px - 24px) / 3);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--art-tile-from), var(--panel));
  border: 1px solid var(--border);
}
.lp-poster--lit { border-color: var(--border-emphasis); }
.lp-posters:nth-of-type(n + 3) { display: none; }
.lp-poster:nth-child(n + 5) { display: none; }
.lp-caption {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.lp-guide {
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 10px;
}
.lp-guide__row { display: flex; gap: 6px; }
.lp-guide__cell { height: 34px; border-radius: 8px; background: var(--art-2); border: 1px solid var(--border); }
.lp-guide__row + .lp-guide__row .lp-guide__cell { background: var(--art-3); }
.lp-guide__cell--lit { background: var(--raised) !important; border-color: var(--border-emphasis); }

/* ------------------------------------------------------------- sections */

.lp-section {
  padding: 36px var(--gutter);
  border-block-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lp-section h2 { font-size: 27px; line-height: 1.2; letter-spacing: -0.012em; }
.lp-section > p, .lp-section__copy > p { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.lp-section__copy { display: flex; flex-direction: column; gap: 16px; }
.lp-section__head { display: flex; flex-direction: column; gap: 10px; }
.lp-section__head p { font-size: 14.5px; color: var(--text-2); }
.lp-section__head a { font-size: 15px; }

.lp-steps { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.lp-steps li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.lp-steps span { font-family: var(--font-display); font-size: 13px; color: var(--text-2); }

.lp-sources {
  padding: 18px;
  border-radius: var(--r-panel);
  background: var(--panel);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 12px;
}
.lp-sources__row { display: flex; gap: 12px; }
.lp-sources__tile {
  flex: 1;
  height: 78px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--raised);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.lp-sources__tile .lp-bar { height: 8px; }
.lp-sources__one {
  height: 56px;
  border-radius: 14px;
  background: var(--ground);
  border: 1px solid var(--border-emphasis);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.lp-features { display: grid; gap: 12px; }
.lp-feature {
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-feature h3 { font-size: 18px; line-height: 1.25; }
.lp-feature p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.lp-feature .long { display: none; }

/* --------------------------------------------------------- pricing strip */

.lp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-price {
  position: relative;
  padding: 16px 14px;
  border-radius: var(--r-tile);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-price--recommended { border-color: var(--border-emphasis); box-shadow: var(--shadow-recommended); }
.lp-price__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.lp-price__amount { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.lp-price--recommended .lp-price__amount { color: var(--price); }
.lp-price__amount small { font-size: 13px; color: var(--text-2); font-weight: 400; font-family: var(--font-body); }
.lp-price__lines { display: none; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.lp-lifetime {
  padding: 20px;
  border-radius: var(--r-panel);
  background: var(--raised);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-lifetime__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.lp-lifetime__title span { color: var(--price); }
.lp-lifetime p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }


/* ------------------------------------------------------------ downloads */

.lp-downloads { display: grid; gap: 10px; }
.lp-download {
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--zebra);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-download--live { background: var(--panel); }
.lp-download__text { display: flex; flex-direction: column; gap: 3px; }
.lp-download__name { font-size: 16px; color: var(--text-2); }
.lp-download--live .lp-download__name { color: var(--text); }
.lp-download__meta { font-size: 12.5px; color: var(--text-2); }
.lp-download .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
.lp-download .btn--secondary { height: 34px; padding: 0 14px; font-family: var(--font-body); font-weight: 400; font-size: 13px; }

.lp-rule { height: 1px; background: var(--border); border: 0; margin: 8px 0; width: 100%; }

/* ================================================================ tablet+ */

@media (min-width: 768px) {
  .lp-header-cta { height: 40px; padding: 0 20px; font-size: 14px; }

  .lp-hero {
    padding: 88px var(--gutter) 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
  }
  .lp-hero__copy { gap: 22px; }
  .lp-chip { font-size: 12px; letter-spacing: 0.09em; padding: 6px 14px; }
  .lp-hero h1 { font-size: 64px; line-height: 1.03; letter-spacing: -0.028em; }
  body[data-variant="waitlist"] .lp-hero h1 { font-size: 62px; }
  .lp-hero__lede { font-size: 18.5px; max-width: 540px; }
  .lp-hero__lede .short { display: none; }
  .lp-hero__lede .long { display: inline; }
  .lp-hero__actions { flex-direction: row; gap: 12px; padding-block-start: 8px; }
  .lp-hero__actions .btn { height: 58px; padding: 0 32px; font-size: 17px; }
  .lp-micro { font-size: 13.5px; }

  .lp-join__row { flex-direction: row; flex-wrap: wrap; }
  .lp-join .input { flex: 1; min-width: 200px; height: 56px; }
  .lp-join .btn { flex: none; height: 56px; padding: 0 26px; font-size: 16px; }

  .lp-art__panel { padding: 20px; gap: 16px; }
  .lp-posters { gap: 12px; overflow: visible; }
  .lp-poster { width: 112px; }
  body[data-variant="waitlist"] .lp-poster { width: 104px; }
  .lp-posters:nth-of-type(n + 3) { display: flex; }
  .lp-poster:nth-child(n + 5) { display: block; }
  .lp-guide { display: flex; }
  body[data-variant="waitlist"] .lp-guide,
  body[data-variant="waitlist"] .lp-art__bars { display: none; }

  .lp-section { padding: 76px var(--gutter); gap: 28px; }
  .lp-section h2 { font-size: 38px; letter-spacing: -0.018em; }
  .lp-section__head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 40px; }
  .lp-section__head p { font-size: 15px; max-width: 430px; }

  .lp-section--problem {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }
  .lp-section--problem h2 { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; }
  .lp-section__copy { gap: 20px; }
  .lp-section__copy > p { font-size: 17px; max-width: 520px; }
  .lp-steps { flex-direction: row; gap: 36px; padding-block-start: 10px; }
  .lp-steps li { flex-direction: column; gap: 5px; }
  .lp-sources { display: flex; padding: 24px; }

  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .lp-feature { padding: 28px; gap: 10px; }
  .lp-feature h3 { font-size: 19px; }
  .lp-feature .short { display: none; }
  .lp-feature .long { display: inline; }

  .lp-prices { gap: 20px; }
  .lp-price { padding: 26px; gap: 10px; border-radius: var(--r-card); }
  .lp-price__name { font-size: 19px; }
  .lp-price__amount { font-size: 34px; }
  .lp-price__amount small { font-size: 14px; }
  .lp-price__lines { display: block; }
  .lp-lifetime { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; }
  .lp-lifetime__title { font-size: 21px; }

  .lp-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lp-download { padding: 22px; }

  .lp-section--join { max-width: 900px; }
}

@media (min-width: 1100px) {
  .lp-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Between 768 and 1100 the hero art has less room than five posters need. */
@media (min-width: 768px) and (max-width: 1099px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); }
  .lp-posters { overflow: hidden; }
}

.lp-mobile-only { display: inline; }
@media (min-width: 768px) { .lp-mobile-only { display: none; } }
