/* The landing page.
   It loads app/styles.css first and adds only what the marketing surface needs,
   so the tokens, type and colours are literally the app's own — the usual
   failure here is a front door that looks like a different company than the
   product behind it. check:colors covers this file too. */

.landing {
  /* The page is its own screen, not a part of the library, so it holds the
     product's indigo throughout rather than taking a part accent. */
  --accent: var(--p1);
  --accent-tint: var(--p1-tint);
  background: var(--bg);
  /* app/styles.css pins the body to height: 100% for the app's fixed shell. The
     landing page is a long scrolling document, and a body one viewport tall is
     also the containing block for the sticky bar — so the bar stopped sticking
     roughly 600px down, which is exactly where it is most needed. */
  height: auto;
}

.landing main { display: block; }

/* ── Bar ────────────────────────────────────────────────────────────────── */

/* The bar rides on the page with no ground of its own, then takes one the
   moment it leaves the top — otherwise the wordmark sits on top of whatever
   section happens to be passing under it. The band has to span the viewport,
   so the bar is full-width and the 1240px measure moves to an inner row. */
.lp-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: var(--s5) var(--s6);
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}
.lp-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  max-width: 1240px;
  margin: 0 auto;
}
/* Tighter once it is a band rather than part of the page — at the full top
   padding the two-line free card makes a 99px slab over the content. */
.lp-bar.is-stuck {
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  background: var(--veil);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}
.lp-bar .brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.lp-bar .wordmark { font-size: var(--t-xl); white-space: nowrap; }

.lp-free {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  border-radius: var(--r-md);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: var(--t-sm);
  line-height: 1.35;
}
.lp-free svg { width: 20px; height: 20px; flex: none; }
.lp-free strong { display: block; font-weight: 600; }
/* The second line is the qualifier, so it sits back a step. */
.lp-free > span { opacity: 0.85; }
.lp-free strong { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 8fr);
  align-items: center;
  gap: var(--s12);
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s16) var(--s6) var(--s12);
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: var(--s6);
}
.lp-badge svg { width: 16px; height: 16px; }

/* Sized so "Get Better Every Day." holds one line at every width — the <br>
   fixes the first break, and the cap keeps the second from orphaning "Day." */
.lp-hero h1 {
  font-size: clamp(32px, 3.9vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lp-hero h1 span { color: var(--accent); }

.lp-lede {
  margin-top: var(--s5);
  max-width: 46ch;
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--text-2);
}

#start { scroll-margin-top: 92px; }

.lp-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s6);
  border-radius: var(--r-md);
  font-size: var(--t-md);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lp-btn svg { width: 19px; height: 19px; }

.lp-btn-primary {
  background: var(--accent);
  color: var(--on-fill);
  box-shadow: var(--shadow-2);
}
@media (hover: hover) and (pointer: fine) {
  .lp-btn-primary:hover { transform: translateY(-1px); }
}

.lp-btn-ghost {
  background: var(--card);
  color: var(--text-2);
  box-shadow: var(--shadow-1);
  font-weight: 500;
}

/* Three figures, divided by hairlines rather than boxed into cards. Each takes
   a part hue, so the numbers carry the same colour code as the app. */
.lp-facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--s8);
  padding: 0;
  list-style: none;
}
.lp-facts li {
  flex: none;
  padding: 0 var(--s6);
  border-left: 1px solid var(--line);
}
.lp-facts li:first-child { padding-left: 0; border-left: none; }
.lp-facts b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
/* The label is capped on the label itself, not the item: box-sizing is
   border-box here, so a cap on the item is eaten by its 24px side padding and
   the longest label ("Band 8 vs Band 5 examples") fell to three lines. */
.lp-facts span {
  display: block;
  max-width: 15ch;
  font-size: var(--t-sm);
  color: var(--text-2);
}
.f-a { color: var(--p1); }
.f-b { color: var(--p2); }
.f-c { color: var(--p3); }

/* ── Screenshots ────────────────────────────────────────────────────────── */

.lp-shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.lp-shot img { display: block; width: 100%; height: auto; }

/* The hero shot is a whole screen of the app, held complete inside its own card
   — all four corners visible. Its height is what makes the hero tall. */

/* ── Sections ───────────────────────────────────────────────────────────── */

.lp-section { max-width: 1240px; margin: 0 auto; padding: var(--s16) var(--s6); }

.lp-section h2, .lp-final h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  text-align: center;
}
.lp-section > h2 { margin-bottom: var(--s12); position: relative; padding-bottom: var(--s4); }
.lp-section > h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--accent);
  transform: translateX(-50%);
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s5);
}
.lp-card {
  padding: var(--s6);
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.lp-card h3 { font-size: var(--t-lg); margin: var(--s4) 0 var(--s2); }
.lp-card p { font-size: var(--t-sm); line-height: 1.6; color: var(--text-2); }

.lp-card-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
}
.lp-card-mark svg { width: 22px; height: 22px; }
/* One card per part hue, in order, so the four colours introduce themselves
   before you meet them in the app. */
.m-a { background: var(--p1-tint); color: var(--p1); }
.m-b { background: var(--p2-tint); color: var(--p2); }
.m-c { background: var(--p3-tint); color: var(--p3); }
.m-d { background: var(--p4-tint); color: var(--p4); }

/* ── Split sections ─────────────────────────────────────────────────────── */

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s12);
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s12) var(--s6);
}
.lp-split-flip .lp-split-copy { order: 2; }

.lp-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.lp-split h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}
.lp-split p { color: var(--text-2); line-height: 1.7; max-width: 48ch; }
.lp-split p + p { margin-top: var(--s4); }
.lp-note { font-size: var(--t-sm); color: var(--text-3); }

/* ── Refusals ───────────────────────────────────────────────────────────── */

/* The section a competitor cannot copy without changing their business. */
.lp-refusals ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s5);
  padding: 0;
  list-style: none;
}
.lp-refusals li {
  display: grid;
  gap: var(--s2);
  padding: var(--s5);
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--text-2);
}
.lp-refusals strong { color: var(--text); font-size: var(--t-base); }

.lp-no-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: var(--s1);
}
.lp-no-mark svg { width: 19px; height: 19px; }

/* A tinted block behind the section, so the page changes ground once rather
   than running one flat colour from top to bottom. */
.lp-panel {
  background: var(--accent-tint);
  border-radius: var(--r-lg);
  padding: var(--s16) var(--s12);
  margin-top: var(--s8);
  margin-bottom: var(--s8);
}

/* ── Final ──────────────────────────────────────────────────────────────── */

.lp-final {
  display: grid;
  justify-items: center;
  gap: var(--s4);
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s16) var(--s6);
  text-align: center;
}
.lp-final p { color: var(--text-2); }
.lp-final .lp-btn { margin-top: var(--s4); }

.lp-foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s8) var(--s6) var(--s16);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--text-3);
}
.lp-foot p + p { margin-top: var(--s1); }

/* ── Narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .lp-hero, .lp-split { grid-template-columns: 1fr; gap: var(--s8); }
  .lp-hero { padding-top: var(--s12); }
  .lp-shot-hero { margin-right: 0; }
  /* The picture follows the words it illustrates, in both split directions. */
  .lp-split-flip .lp-split-copy { order: 0; }
  .lp-section, .lp-split, .lp-final { padding-left: var(--s4); padding-right: var(--s4); }
  .lp-panel { padding: var(--s8) var(--s5); margin-left: var(--s4); margin-right: var(--s4); }
  .lp-facts li { padding: 0 var(--s4); }
  .lp-bar { padding: var(--s4); }
}

@media (max-width: 560px) {
  .lp-bar .wordmark { font-size: var(--t-md); }
  .lp-pill { padding: var(--s2) var(--s3); }
  .lp-actions .lp-btn { width: 100%; justify-content: center; }
  /* At this width the card was taking three lines and pushing the wordmark
     onto two. The qualifier is the line that can go: the button below it
     already says "No account needed". */
  .lp-free-note { display: none; }
  .lp-facts li { max-width: none; flex: 1; }
  .lp-facts b { font-size: 24px; }
}

/* ── Not found ──────────────────────────────────────────────────────────── */

.lp-notfound {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(4rem, 18vh, 9rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.lp-notfound h1 { margin: 0; }
.lp-notfound-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
