/* State-aware public landing page and conversion paths. */
.lp-personalized {
  --lp-state-ink: #151b2c;
  --lp-state-navy: #14224a;
  --lp-state-blue: #176eb5;
  --lp-state-teal: #16877f;
  --lp-state-paper: #f4f1ea;
  --lp-state-soft: #f8f8f5;
  --lp-state-line: #d8d5ce;
  --lp-state-muted: #6f7582;
}

.lp-state-hero {
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
}

.lp-state-hero--member {
  background:
    linear-gradient(135deg, rgba(20, 34, 74, 0.04), transparent 54%),
    var(--lp-state-paper);
}

.lp-state-hero--learner {
  background:
    linear-gradient(145deg, rgba(22, 135, 127, 0.08), transparent 48%),
    var(--lp-state-paper);
}

.lp-learning-summary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 27, 44, 0.12);
  border-radius: 18px;
  background: #fff;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 24px 64px rgba(20, 34, 74, 0.12);
}

.lp-learning-summary::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--lp-state-blue), var(--lp-state-teal));
  content: "";
}

.lp-learning-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.lp-learning-summary__head span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(22, 135, 127, 0.1);
  color: #0d6963;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

.lp-learning-summary__head small {
  color: var(--lp-state-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.lp-learning-summary__course {
  margin: 0 0 8px;
  color: var(--lp-state-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-learning-summary h2 {
  margin: 0;
  color: var(--lp-state-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.lp-learning-summary > p:not(.lp-learning-summary__course) {
  margin: 18px 0 0;
  color: var(--lp-state-muted);
  line-height: 1.8;
}

.lp-learning-summary__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 30px 0 22px;
}

.lp-learning-summary__progress > div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e8e8e4;
}

.lp-learning-summary__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-state-blue), var(--lp-state-teal));
}

.lp-learning-summary__progress strong {
  color: var(--lp-state-ink);
  font-size: 1rem;
}

.lp-learning-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}

.lp-learning-summary dl div {
  border: 1px solid var(--lp-state-line);
  border-radius: 10px;
  background: var(--lp-state-soft);
  padding: 14px 12px;
}

.lp-learning-summary dt {
  color: var(--lp-state-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.lp-learning-summary dd {
  margin: 5px 0 0;
  color: var(--lp-state-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.lp-learning-summary .lp-btn {
  width: 100%;
  min-height: 50px;
}

.lp-learning-summary--recommendation h2 {
  margin-bottom: 18px;
}

.lp-benefit-strip {
  border-top: 1px solid var(--lp-state-line);
  border-bottom: 1px solid var(--lp-state-line);
  background: #fff;
}

.lp-benefit-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-benefit-strip__grid > div {
  min-width: 0;
  border-right: 1px solid var(--lp-state-line);
  padding: 24px clamp(18px, 3vw, 32px);
}

.lp-benefit-strip__grid > div:first-child {
  border-left: 1px solid var(--lp-state-line);
}

.lp-benefit-strip strong,
.lp-benefit-strip span {
  display: block;
}

.lp-benefit-strip strong {
  color: var(--lp-state-ink);
  font-size: 0.92rem;
}

.lp-benefit-strip span {
  margin-top: 6px;
  color: var(--lp-state-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.lp-demo-priority {
  background: #fff;
}

.lp-demo-after-cta {
  margin-top: 22px;
  border-top: 1px solid rgba(21, 27, 44, 0.12);
  padding-top: 20px;
}

.lp-demo-after-cta[hidden] {
  display: none;
}

.lp-demo-after-cta p {
  margin: 0 0 14px;
  color: var(--lp-state-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.lp-demo-after-cta .lp-btn {
  width: 100%;
}

.lp-curated-catalog {
  background: var(--lp-state-soft);
}

.lp-personalized #course-filter-form {
  max-width: 720px;
  margin: 34px auto 42px;
}

.lp-curated-course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-curated-course-grid .lp-course-card {
  height: 100%;
}

.lp-course-card__progress {
  margin: 18px 0 0;
}

.lp-course-card__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--lp-state-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.lp-course-card__progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e8e8e4;
}

.lp-course-card__progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-state-blue), var(--lp-state-teal));
}

.lp-catalog-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin-top: 42px;
}

.lp-catalog-more .lp-btn {
  min-height: 48px;
  padding-inline: 26px;
}

.lp-home-faq {
  background: #fff;
}

.lp-home-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.1fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: start;
}

.lp-home-faq h2 {
  margin: 0;
  color: var(--lp-state-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.lp-home-faq__grid > div > p:last-child {
  margin: 20px 0 0;
  color: var(--lp-state-muted);
  line-height: 1.9;
}

.lp-home-faq__items {
  border-top: 1px solid var(--lp-state-line);
}

.lp-home-faq details {
  border-bottom: 1px solid var(--lp-state-line);
  padding: 0;
}

.lp-home-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  color: var(--lp-state-ink);
  font-weight: 800;
  line-height: 1.6;
}

.lp-home-faq summary::-webkit-details-marker {
  display: none;
}

.lp-home-faq summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 20px;
  height: 20px;
  color: var(--lp-state-blue);
  content: "+";
  font-size: 1.3rem;
  line-height: 20px;
  text-align: center;
  transform: translateY(-50%);
}

.lp-home-faq details[open] summary::after {
  content: "−";
}

.lp-home-faq details p {
  margin: -6px 0 24px;
  color: var(--lp-state-muted);
  line-height: 1.85;
}

.lp-mobile-sticky-cta {
  display: none;
}

@media (max-width: 980px) {
  .lp-state-hero {
    min-height: auto;
  }

  .lp-benefit-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-benefit-strip__grid > div:nth-child(odd) {
    border-left: 1px solid var(--lp-state-line);
  }

  .lp-benefit-strip__grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--lp-state-line);
  }

  .lp-curated-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-home-faq__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lp-personalized {
    padding-bottom: 76px;
  }

  .lp-state-hero {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .lp-state-hero .lp-studio-hero__grid {
    gap: 38px;
  }

  .lp-state-hero .lp-studio-hero__actions {
    align-items: stretch;
  }

  .lp-state-hero .lp-studio-hero__actions .lp-btn {
    width: 100%;
  }

  .lp-state-hero .lp-studio-text-link {
    align-self: flex-start;
  }

  .lp-learning-summary {
    padding: 28px 22px 24px;
  }

  .lp-learning-summary__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lp-learning-summary dl {
    grid-template-columns: 1fr;
  }

  .lp-benefit-strip__grid {
    grid-template-columns: 1fr;
  }

  .lp-benefit-strip__grid > div,
  .lp-benefit-strip__grid > div:first-child,
  .lp-benefit-strip__grid > div:nth-child(odd) {
    border-right: 1px solid var(--lp-state-line);
    border-bottom: 1px solid var(--lp-state-line);
    border-left: 1px solid var(--lp-state-line);
    padding: 18px 20px;
  }

  .lp-benefit-strip__grid > div:last-child {
    border-bottom: 0;
  }

  .lp-curated-course-grid {
    grid-template-columns: 1fr;
  }

  .lp-personalized #course-filter-form {
    margin: 28px 0 34px;
  }

  .lp-catalog-more {
    align-items: stretch;
    flex-direction: column;
  }

  .lp-catalog-more .lp-btn,
  .lp-catalog-more .lp-studio-text-link {
    width: 100%;
    justify-content: center;
  }

  .lp-home-faq summary {
    padding-block: 20px;
    font-size: 0.92rem;
  }

  .lp-mobile-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: block;
    border-top: 1px solid rgba(21, 27, 44, 0.12);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-shadow: 0 -14px 34px rgba(20, 34, 74, 0.12);
    backdrop-filter: blur(12px);
  }

  .lp-mobile-sticky-cta[hidden] {
    display: none;
  }

  .lp-mobile-sticky-cta a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--lp-state-navy, #14224a);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-learning-summary__progress span,
  .lp-course-card__progress-track span {
    transition: none;
  }
}

/* Authentication and public course-detail conversion helpers. */
.lp-auth-consent {
  margin: 14px 0 0;
  color: #6f7582;
  font-size: 0.76rem;
  line-height: 1.7;
  text-align: center;
}

.lp-auth-consent a {
  color: #0d4f89;
  font-weight: 700;
  text-underline-offset: 3px;
}

.lp-course-detail-actions--focused {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.lp-course-detail-actions--focused .lp-btn {
  min-width: min(100%, 300px);
}

.lp-course-detail-auth-note,
.lp-course-detail-auth-links {
  margin: 0;
  color: #6f7582;
  font-size: 0.8rem;
  line-height: 1.7;
}

.lp-course-detail-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.lp-course-detail-auth-links a {
  color: #0d4f89;
  font-weight: 700;
  text-underline-offset: 3px;
}

.lp-course-side__cta .lp-btn {
  width: 100%;
}

.lp-course-side__cta .lp-course-detail-auth-note {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .lp-course-detail-actions--focused .lp-btn {
    width: 100%;
  }

  .lp-course-detail-auth-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .lp-course-detail-auth-links span {
    display: none;
  }
}
