/* Landing-page-specific styles layered on top of tm.org's compiled CSS.
   Everything here is namespaced lp- to avoid colliding with tm.css. */

/* ===== Header ===== */
.lp-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 1rem;
  background: rgb(var(--tm-off-white));
  position: sticky;
  top: 0;
  z-index: 50;
}
@media (min-width: 1024px) {
  .lp-header { padding: 1rem 2rem; }
}
.lp-logo img { display: block; width: 74px; height: 33px; }
.lp-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2.25rem;
  font-size: 16px;
}
@media (min-width: 1024px) { .lp-nav { display: flex; } }
.lp-nav a { color: rgb(var(--tm-text-1)); text-decoration: none; }
.lp-nav a:hover { opacity: 0.75; }
.lp-chev { font-size: 10px; vertical-align: 2px; color: rgb(var(--tm-text-3)); }
.lp-header-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.lp-header-right .text-cta { font-size: 15px; }

/* ===== Layout ===== */
/* tm.css sets main{white-space:pre-line}, which works on tm.org because their
   HTML is minified — but it turns every source newline here into a rendered
   line break. Restore normal collapsing; use .whitespace-pre-line locally. */
.lp-main { white-space: normal; }

.lp-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.25rem 1rem 4rem;
  max-width: 1440px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .lp-main {
    flex-direction: row;
    gap: 3.5rem;
    padding: 2rem 2.5rem 5rem;
  }
  .lp-panel { width: 500px; flex-shrink: 0; }
  .lp-right { flex: 1; min-width: 0; }
}
@media (min-width: 1536px) {
  .lp-main { gap: 5rem; padding-left: 3rem; padding-right: 3rem; }
  .lp-panel { width: 540px; }
}

/* ===== Teacher block (mockup addition) ===== */
.lp-teacher {
  display: flex;
  gap: 1rem;
  align-items: stretch; /* photo matches the full height of the text+box column */
  margin: 0.25rem 0 1rem;
}
.lp-teacher img {
  width: 96px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.lp-teacher-info { display: flex; flex-direction: column; }
.lp-teacher-line { font-size: 15px; margin: 0 0 0.5rem; }
.lp-teacher-box {
  background: #6e5a78;
  color: #fff;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 13.5px;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap; /* button drops to its own right-aligned row when narrow */
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex: 1;
}
.lp-teacher-box p { margin: 0; flex: 1 1 11rem; }
.lp-teacher-box .lp-call-btn { flex-shrink: 0; white-space: nowrap; margin-left: auto; }
.lp-call-btn {
  display: inline-block;
  background: rgb(var(--tertiary) / 0.85);
  color: rgb(var(--on-primary));
  border-radius: 999px;
  padding: 0.4rem 1.4rem;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.3s;
}
.lp-call-btn:hover { background: rgb(var(--tertiary-hover)); }

/* ===== Course / intro cards ===== */
.lp-card-link { text-decoration: none; color: inherit; display: block; }

/* Course card responsive split: desktop/tablet keep the thumbnail layout;
   mobile uses the compact layout from the 2026-07-16 mobile mockup.
   768px = tm.org's `md` breakpoint. */
.lp-course-mobile { display: none; }
@media (max-width: 767px) {
  .lp-course-desktop { display: none; }
  .lp-course-mobile { display: block; }
}
.lp-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lp-course-dateline { font-size: 17px; line-height: 1.3; }
.lp-reserve-btn {
  display: inline-block;
  flex-shrink: 0;
  background: #c3cadf;
  color: #2f3b4c;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s;
}
.lp-reserve-btn:hover { background: #b3bcd6; }
.lp-desc-toggle { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: flex; align-items: center; font: inherit; }
.lp-desc-body { overflow: hidden; transition: height 0.3s ease-out; height: 0; }
.lp-desc-body ul { list-style: disc; }
.lp-intro-icon {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgb(var(--tm-text-3) / 0.5);
  border-radius: 16px;
  flex-shrink: 0;
  color: rgb(var(--tm-text-3));
}
@media (max-width: 500px) { .lp-intro-icon { width: 72px; height: 72px; } }

/* ===== Trustpilot card ===== */
.lp-trust-card {
  background: #fffdf4;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgb(70 40 80 / 0.06);
}
.lp-trust-head { text-align: center; margin-bottom: 1.5rem; }
.lp-trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Neue Haas Unica Pro Regular", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #191919;
}
.lp-trust-sub { margin: 0.5rem 0 0; font-size: 22px; color: rgb(var(--tm-text-1)); }
.lp-trust-sub em { font-family: "Louize Italic", serif; }

/* ===== Guarantee ===== */
.lp-guarantee {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 0 1rem;
}
.lp-badge { width: 170px; height: 170px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgb(70 40 80 / 0.25)); }
.lp-guarantee-text { font-size: 19px; line-height: 1.45; margin: 0; max-width: 640px; }
.lp-guarantee-text a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .lp-guarantee { flex-direction: column; text-align: center; gap: 1.25rem; }
}

/* ===== Option 2: compact padding, more Trustpilot visible ===== */
body.lp-o2 .lp-main { padding-top: 0.75rem; }
@media (min-width: 1024px) {
  body.lp-o2 .lp-main { padding-top: 1rem; gap: 2rem; }
}
body.lp-o2 .lp-trust-card { padding: 1rem 0.75rem; }
body.lp-o2 .lp-trust-head { margin-bottom: 0.5rem; }
body.lp-o2 .lp-trust-logo { font-size: 24px; }
body.lp-o2 .lp-trust-logo svg { width: 28px; height: 28px; }
body.lp-o2 .lp-trust-sub { font-size: 18px; margin-top: 0.25rem; }
body.lp-o2 .lp-guarantee { margin-top: 1.5rem; }
/* Option 2: wider Trustpilot area — slimmer left panel and gutters */
@media (min-width: 1024px) {
  body.lp-o2 .lp-main { padding-left: 1.5rem; padding-right: 1.5rem; }
  body.lp-o2 .lp-panel { width: 440px; }
}
@media (min-width: 1536px) {
  body.lp-o2 .lp-main { gap: 2rem; }
  body.lp-o2 .lp-panel { width: 460px; }
}
/* Option 2 badge: darker 100%; band words balanced (see arcTop2/arcBot2).
   SATISFACTION and GUARANTEE are tunable independently below. */
body.lp-o2 .lp-badge .lp-pct { fill: #2F3B4C; stroke: none; }
body.lp-o2 .lp-badge .lp-band-sat { font-size: 19px; font-weight: 900; letter-spacing: 2px; }
body.lp-o2 .lp-badge .lp-band-gua { font-size: 19px; font-weight: 900; letter-spacing: 2px; }

/* ===== Prototype switcher (remove before launch) ===== */
.lp-switcher {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgb(var(--tm-midnight) / 0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 100;
}
.lp-switcher a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
