/* Landing page layout (TK-106, FR-20).
   Only existing tokens; spacing stays on the app's literal 4/8/12/16/24/32/48
   scale. Logical properties throughout, so RTL needs no overrides at all.

   The two rules that keep 320px honest, applied everywhere below:
     · min-inline-size: 0 on every flex/grid child
     · minmax(min(Npx, 100%), 1fr) on every grid track  */

.lb-nav-ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;   /* .theme-toggle itself is 30px; the new pages meet the bar */
  min-inline-size: 44px;
}

.lb-section { padding-block: 56px; }
.lb-section + .lb-section { border-block-start: 1px solid var(--border); }
.lb-h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 8px; }
.lb-lede { color: var(--text2); font-size: .95rem; line-height: 1.7; margin: 0 0 24px; max-inline-size: 62ch; overflow-wrap: anywhere; }

/* ── hero ───────────────────────────────────────────────────────────────────
   The radial wash is copied from .auth-wrapper rather than reused: that class
   forces min-height:100vh and centres, which is wrong for a hero. Centred at
   50% because 60% reads as the wrong side once the page mirrors. */
.lb-hero {
  background: radial-gradient(ellipse at 50% 20%, var(--accent-glow) 0%, transparent 60%);
  padding-block: 64px 56px;
}
.lb-hero .container { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.lb-hero-copy { flex: 1 1 380px; min-inline-size: 0; }
.lb-hero-media { flex: 1 1 420px; min-inline-size: 0; }

.lb-eyebrow {
  display: inline-block;
  margin-block-end: 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lb-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.lb-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 20px; }
.lb-note { color: var(--text3); font-size: .82rem; margin: 0 0 18px; }

.lb-trustline { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-trustline .badge { min-block-size: 28px; display: inline-flex; align-items: center; }

/* ── proof tiles ────────────────────────────────────────────────────────── */
.lb-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.lb-proof-tile {
  min-inline-size: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
}
.lb-proof-tile strong { display: block; margin-block-end: 6px; font-size: 1.05rem; }
.lb-proof-tile span { color: var(--text2); font-size: .85rem; line-height: 1.6; }

/* ── how it works ───────────────────────────────────────────────────────── */
.lb-steps { counter-reset: lb-step; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.lb-steps li { counter-increment: lb-step; min-inline-size: 0; padding-inline-start: 42px; position: relative; }
.lb-steps li::before {
  content: counter(lb-step);
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  inline-size: 30px; block-size: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--mono); font-size: .85rem; font-weight: 700;
}
.lb-steps strong { display: block; margin-block-end: 4px; }
.lb-steps span { color: var(--text2); font-size: .88rem; line-height: 1.6; }

/* ── the twelve chapters ────────────────────────────────────────────────── */
.lb-chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.lb-chapter-tile {
  min-inline-size: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.lb-chapter-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.lb-chapter-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-chapter-emoji { font-size: 1.4rem; line-height: 1; }
.lb-chapter-title { font-weight: 600; font-size: .98rem; overflow-wrap: anywhere; }
.lb-chapter-outcome { color: var(--text2); font-size: .84rem; line-height: 1.55; flex: 1 1 auto; overflow-wrap: anywhere; }
.lb-chapter-count { color: var(--text3); font-family: var(--mono); font-size: .74rem; }

/* ── deep bands ─────────────────────────────────────────────────────────── */
.lb-feature-band { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-block: 40px; }
.lb-feature-band + .lb-feature-band { border-block-start: 1px solid var(--border); }
/* row-reverse mirrors correctly under dir=rtl with no override needed. */
.lb-feature-band:nth-of-type(even) { flex-direction: row-reverse; }
.lb-band-copy, .lb-band-media { flex: 1 1 340px; min-inline-size: 0; }
.lb-band-copy h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.lb-band-copy > p { color: var(--text2); font-size: .9rem; line-height: 1.7; margin: 0 0 14px; overflow-wrap: anywhere; }
.lb-band-bullets { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.lb-band-bullets li { min-inline-size: 0; padding-inline-start: 22px; position: relative; color: var(--text2); font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.lb-band-bullets li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--success); font-weight: 700; }
.lb-band-proof {
  margin: 0 0 16px; padding: 10px 14px;
  border-inline-start: 3px solid var(--accent);
  background: var(--bg3);
  border-radius: var(--radius);
  color: var(--text2); font-size: .84rem; line-height: 1.6;
}

/* ── the other chapters ─────────────────────────────────────────────────── */
.lb-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px 24px; }
.lb-more-item { min-inline-size: 0; }
.lb-more-item a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem; }
.lb-more-item a:hover { color: var(--accent); }
.lb-more-item p { margin: 4px 0 0; color: var(--text2); font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }

/* ── trust ──────────────────────────────────────────────────────────────── */
.lb-trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.lb-trust-card { min-inline-size: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg2); }
.lb-trust-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.lb-trust-card p { margin: 0; color: var(--text2); font-size: .86rem; line-height: 1.65; overflow-wrap: anywhere; }

/* ── bilingual band ─────────────────────────────────────────────────────── */
.lb-lang-band .container { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.lb-lang-copy, .lb-lang-media { flex: 1 1 320px; min-inline-size: 0; }
.lb-lang-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.lb-token-row { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 12px; }
.lb-token {
  font-family: var(--mono); font-size: .78rem;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: var(--bg3);
  color: var(--text2);
  unicode-bidi: isolate;
}

/* ── cta + footer ───────────────────────────────────────────────────────── */
.lb-cta { text-align: center; }
.lb-cta .card { max-inline-size: 620px; margin-inline: auto; }
.lb-cta .lb-cta-row { justify-content: center; }
.lb-cta p { color: var(--text2); font-size: .9rem; line-height: 1.7; margin: 0 0 18px; }

.lb-footer { border-block-start: 1px solid var(--border); padding-block: 32px 48px; color: var(--text3); font-size: .82rem; }
.lb-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.lb-footer a { color: var(--text2); }
.lb-footer-note { flex-basis: 100%; margin: 0; line-height: 1.6; }

@media (max-width: 640px) {
  .lb-section { padding-block: 40px; }
  .lb-hero { padding-block: 40px 36px; }
  .lb-hero .container, .lb-lang-band .container { gap: 26px; }
  .lb-feature-band { gap: 22px; padding-block: 28px; }
  /* Alternating sides is a wide-screen idea; stacked, it just reorders text. */
  .lb-feature-band:nth-of-type(even) { flex-direction: row; }
}
