/* learnfromx — landing page (ld-* namespace).
 * Extends lav.css. Hero + floating cards + how-it-works.
 */

body.lav { padding: 0; }

.ld-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* NAV */
.ld-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.ld-brand {
  font-family: var(--lav-display);
  font-style: italic;
  font-size: 18px;
  color: var(--lav-purple);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.ld-nav-links { display: flex; gap: 24px; align-items: center; }
.ld-login-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--lav-ink-soft);
  font-family: var(--lav-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.15s;
}
.ld-login-btn:hover { color: var(--lav-purple); }
.ld-signup-btn {
  padding: 8px 18px;
  background: var(--lav-ink);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--lav-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.15s;
}
.ld-signup-btn:hover { background: var(--lav-purple); }

/* HERO */
.ld-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 80px;
}
.ld-eyebrow {
  font-family: var(--lav-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lav-purple);
  margin-bottom: 18px;
  display: block;
}
.ld-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--lav-purple);
  vertical-align: middle;
  margin-right: 10px;
}
.ld-h1 {
  font-family: var(--lav-display);
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lav-ink);
  margin: 0 0 18px;
}
.ld-h1 em {
  color: var(--lav-purple);
  font-style: italic;
}
.ld-lede {
  font-family: var(--lav-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--lav-ink-soft);
  max-width: 460px;
  margin: 0 0 32px;
}
.ld-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ld-cta-primary {
  padding: 16px 26px;
  background: linear-gradient(135deg, #7d5de8 0%, #5a3fc0 50%, #4527a0 100%);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--lav-ui);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 30px rgba(90,63,192,0.34);
  transition: all 0.2s ease;
}
.ld-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 18px 38px rgba(90,63,192,0.42);
}
.ld-cta-link {
  font-family: var(--lav-display);
  font-style: italic;
  font-size: 14px;
  color: var(--lav-ink-soft);
  text-decoration: none;
}
.ld-cta-link:hover { color: var(--lav-purple); }

/* HERO RIGHT — floating demo cards */
.ld-hero-right {
  position: relative;
  height: 480px;
}
.ld-floating-card {
  position: absolute;
  background: var(--lav-panel);
  border: 1px solid var(--lav-hairline);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 18px 48px rgba(40,30,80,0.10);
  transition: transform 0.4s cubic-bezier(.2,.8,.3,1);
}
.ld-floating-card:hover { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0)) translateY(-4px); }
.ld-floating-card--1 {
  top: 20px; left: 0;
  --rot: -3deg;
  transform: rotate(-3deg);
  width: 280px;
  z-index: 3;
}
.ld-floating-card--2 {
  top: 80px; right: 30px;
  --rot: 4deg;
  transform: rotate(4deg);
  width: 240px;
  z-index: 2;
}
.ld-floating-card--3 {
  bottom: 40px; left: 60px;
  --rot: -1deg;
  transform: rotate(-1deg);
  width: 280px;
  z-index: 1;
}
.ld-fc__src {
  font-family: var(--lav-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lav-purple);
  margin-bottom: 8px;
}
.ld-fc__kanji {
  font-family: var(--lav-jp);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--lav-ink);
  margin-bottom: 4px;
}
.ld-fc__reading {
  font-family: var(--lav-jp);
  font-size: 12px;
  color: var(--lav-green);
  font-weight: 600;
  margin-bottom: 6px;
}
.ld-fc__meaning {
  font-family: var(--lav-display);
  font-style: italic;
  font-size: 18px;
  color: var(--lav-ink);
  line-height: 1.1;
  margin-bottom: 10px;
}
.ld-fc__sentence {
  font-family: var(--lav-jp);
  font-size: 13px;
  color: var(--lav-ink-soft);
  line-height: 1.5;
  margin: 0;
}
.ld-fc__sentence em {
  font-style: normal;
  color: var(--lav-purple);
  font-weight: 600;
}

/* HOW IT WORKS */
.ld-section {
  padding: 80px 0;
  border-top: 1px solid var(--lav-hairline);
}
.ld-section-eyebrow {
  font-family: var(--lav-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lav-purple);
  margin-bottom: 12px;
  display: block;
}
.ld-section-h {
  font-family: var(--lav-display);
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lav-ink);
  margin: 0 0 12px;
  max-width: 600px;
}
.ld-section-h em { color: var(--lav-purple); }
.ld-section-sub {
  font-family: var(--lav-ui);
  font-size: 16px;
  color: var(--lav-ink-soft);
  line-height: 1.5;
  margin: 0 0 40px;
  max-width: 540px;
}

.ld-how {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.ld-step {
  position: relative;
}
.ld-step__num {
  font-family: var(--lav-display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--lav-purple);
  line-height: 1;
  margin-bottom: 14px;
}
.ld-step__num::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--lav-purple);
  margin-top: 8px;
}
.ld-step__h {
  font-family: var(--lav-display);
  font-style: italic;
  font-size: 22px;
  color: var(--lav-ink);
  margin: 0 0 8px;
  line-height: 1.1;
}
.ld-step__p {
  font-family: var(--lav-ui);
  font-size: 13px;
  color: var(--lav-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* BOTTOM CTA */
.ld-cta {
  text-align: center;
  padding: 100px 0 80px;
  border-top: 1px solid var(--lav-hairline);
}
.ld-cta-h {
  font-family: var(--lav-display);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lav-ink);
  margin: 0 0 16px;
}
.ld-cta-h em { color: var(--lav-purple); }
.ld-cta-sub {
  font-family: var(--lav-ui);
  font-size: 16px;
  color: var(--lav-ink-soft);
  margin: 0 0 32px;
}

/* FOOTER */
.ld-foot {
  padding: 40px 0;
  border-top: 1px solid var(--lav-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--lav-ui);
  font-size: 12px;
  color: var(--lav-ink-muted);
}
.ld-foot a { color: var(--lav-ink-soft); text-decoration: none; }
.ld-foot a:hover { color: var(--lav-purple); }
.ld-foot-links { display: flex; gap: 20px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .ld-shell { padding: 0 24px; }
  .ld-hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px; }
  .ld-h1 { font-size: 44px; }
  .ld-cta-h { font-size: 40px; }
  .ld-section-h { font-size: 32px; }
  .ld-hero-right { height: 420px; }
  .ld-floating-card--1 { width: 240px; }
  .ld-floating-card--2 { width: 220px; right: 0; }
  .ld-floating-card--3 { width: 240px; left: 20px; }
  .ld-how { grid-template-columns: 1fr; gap: 24px; }
  .ld-nav-links { gap: 16px; }
}

@media (max-width: 480px) {
  .ld-hero-right { display: none; }
  .ld-hero { padding: 32px 0 48px; }
  .ld-h1 { font-size: 36px; }
  .ld-cta-h { font-size: 32px; }
  .ld-cta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
