/* ============================================
   LMS PERKS — MAIN CSS
   No gradients. Ever.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&display=swap');

/* ── VARIABLES ── */
:root {
  --bg-page:        #09090A;
  --bg-nav:         #09090A;
  --bg-card:        #FFFFFF;
  --bg-card-alt:    #FFF8F8;
  --bg-dark-surface:#111113;
  --bg-dark-raised: #17171B;

  --text-light:     #F7F4F4;
  --text-muted:     #E7DFDF;
  --text-subtle:    #CFC4C4;
  --text-dark:      #1A0A0A;
  --text-dark-body: #4C3D3F;
  --text-dark-muted:#65575A;

  --red:            #E80C14;
  --red-hover:      #C00A10;
  --red-soft:       #FFF0F0;
  --gold:           #C9A84C;
  --gold-soft:      #FDF6E3;
  --green:          #22C55E;
  --green-soft:     #F0FDF4;

  --border-dark:    #1F1F24;
  --border-darker:  #2A2A31;
  --border-card:    #EDEDED;
  --border-card-strong: #D8D0D0;

  /* LMS accent colours */
  --ld-blue:        #378ADD;
  --ld-blue-soft:   #E6F1FB;
  --ld-blue-text:   #185FA5;
  --ms-green:       #1D9E75;
  --ms-green-soft:  #E1F5EE;
  --ms-green-text:  #0F6E56;
  --tl-amber:       #BA7517;
  --tl-amber-soft:  #FAEEDA;
  --tl-amber-text:  #854F0B;
  --lp-orange:      #D4580A;
  --lp-orange-soft: #FEF0E7;
  --lp-orange-text: #9A3E07;
  --ll-purple:      #7F77DD;
  --ll-purple-soft: #EEEDFE;
  --ll-purple-text: #534AB7;

  --font-display:   'DM Serif Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --radius-pill:    100px;

  --shadow-card:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.12);
  --transition:     0.18s ease;
  --section-space:  5rem;
}

body[data-theme="espresso"] {
  --bg-page:        #161110;
  --bg-nav:         #161110;
  --bg-dark-surface:#1B1413;
  --bg-dark-raised: #241B1A;
  --text-light:     #F7F1EE;
  --text-muted:     #E1D3CC;
  --text-subtle:    #CDB9B0;
  --border-dark:    #2B211F;
  --border-darker:  #3A2D2A;
  --red:            #C93A32;
  --red-hover:      #AE2E28;
  --red-soft:       #2B1C1B;
  --gold:           #C8A46A;
  --gold-soft:      #34281D;
}

body[data-theme="oxblood"] {
  --bg-page:        #170F12;
  --bg-nav:         #170F12;
  --bg-dark-surface:#201417;
  --bg-dark-raised: #28191D;
  --text-light:     #F7EFF1;
  --text-muted:     #E2D0D5;
  --text-subtle:    #D0BBC2;
  --border-dark:    #301F24;
  --border-darker:  #422A31;
  --red:            #C64648;
  --red-hover:      #A93639;
  --red-soft:       #311A20;
  --gold:           #C7A36A;
  --gold-soft:      #35271F;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  background: var(--bg-page);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.display-xl {
  font-size: clamp(3rem, 5vw, 4.6rem);
  letter-spacing: -0.5px;
}
.display-lg {
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  letter-spacing: -0.5px;
}
.display-md {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.3px;
}
.display-sm {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--text-muted);
}

.text-light   { color: var(--text-light); }
.text-muted   { color: var(--text-muted); }
.text-subtle  { color: var(--text-subtle); }
.text-red     { color: var(--red); }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-dark    { color: var(--text-dark); }
.text-dark-body { color: var(--text-dark-body); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #DDD0D3;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.6rem;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.btn-red:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.btn-maroon {
  background: #6E2430;
  color: #fff;
  border: 1px solid #6E2430;
}

.btn-maroon:hover {
  background: #5C1D28;
  border-color: #5C1D28;
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(245,240,240,0.25);
}
.btn-outline-light:hover {
  border-color: rgba(245,240,240,0.5);
  background: rgba(245,240,240,0.05);
  color: var(--text-light);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-card-strong);
}
.btn-outline-dark:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.btn-gold {
  background: var(--gold);
  color: #1A0A0A;
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: #b8973e;
  border-color: #b8973e;
  color: #1A0A0A;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 18px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.65rem 1.05rem;
  font-size: 16px;
}

.page-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BADGES ── */
.lms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
}

.lms-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-ld    { background: var(--ld-blue-soft);   color: var(--ld-blue-text); }
.badge-ld .badge-dot { background: var(--ld-blue); }
.badge-ms    { background: var(--ms-green-soft);  color: var(--ms-green-text); }
.badge-ms .badge-dot { background: var(--ms-green); }
.badge-tl    { background: var(--tl-amber-soft);  color: var(--tl-amber-text); }
.badge-tl .badge-dot { background: var(--tl-amber); }
.badge-lp    { background: var(--lp-orange-soft); color: var(--lp-orange-text); }
.badge-lp .badge-dot { background: var(--lp-orange); }
.badge-ll    { background: var(--ll-purple-soft); color: var(--ll-purple-text); }
.badge-ll .badge-dot { background: var(--ll-purple); }

.save-badge {
  background: var(--gold);
  color: #1A0A0A;
  font-size: 13px;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-card-strong);
  box-shadow: var(--shadow-card-hover);
}

.card-dark {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--text-light);
}

/* ── DIVIDERS ── */
.divider-dark  { border: none; border-top: 1px solid var(--border-dark); }
.divider-card  { border: none; border-top: 1px solid var(--border-card); }

/* ── SECTION WRAPPERS ── */
.section-dark {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--section-space) 0;
}

.section-surface {
  background: var(--bg-dark-surface);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--section-space) 0;
}

.section-white {
  background: #fff;
  border-bottom: 1px solid var(--border-card);
  padding: calc(var(--section-space) - 0.5rem) 0;
  color: var(--text-dark);
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-dark);
  padding: 0.7rem 0;
  font-size: 15px;
  color: var(--text-subtle);
}

.breadcrumb-bar a,
.breadcrumb-bar span.bc-link {
  color: var(--text-subtle);
  cursor: pointer;
  transition: color var(--transition);
}

.breadcrumb-bar a:hover,
.breadcrumb-bar span.bc-link:hover {
  color: var(--text-light);
}

.breadcrumb-bar .bc-sep {
  margin: 0 0.4rem;
  color: var(--border-darker);
}

.breadcrumb-bar .bc-current {
  color: var(--text-muted);
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--bg-dark-surface);
  border-bottom: 1px solid var(--border-dark);
}

.stats-strip .stat-item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-dark);
}

.stats-strip .stat-item:last-child {
  border-right: none;
}

.stats-strip .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  color: var(--text-light);
  display: block;
}

.stats-strip .stat-label {
  font-size: 15px;
  color: var(--text-subtle);
  margin-top: 0.1rem;
  display: block;
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--bg-dark-surface);
  border-bottom: 1px solid var(--border-dark);
  padding: 0.9rem 0;
}

.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 17px;
  color: var(--text-muted);
}

.trust-strip .trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-darker);
  flex-shrink: 0;
}

/* ── PROBLEM CARDS (homepage grid) ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problem-item {
  background: var(--bg-dark-surface);
  padding: 1.25rem 1.5rem;
}

.problem-item .p-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.problem-item .p-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── PERK CARDS ── */
.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
  color: var(--text-dark);
  height: 100%;
}

.perk-card:hover {
  border-color: var(--border-card-strong);
  box-shadow: var(--shadow-card-hover);
}

.perk-card .perk-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #F5F0F0;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.perk-card .perk-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark-muted);
  fill: none;
  stroke-width: 1.5;
}

.perk-card .perk-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.perk-card .perk-copy-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  font-weight: 600;
  margin-top: 0.1rem;
}

.perk-card .perk-desc {
  font-size: 16px;
  color: var(--text-dark-body);
  line-height: 1.55;
  flex: 1;
}

.perk-card .perk-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.perk-card .perk-tag {
  font-size: 13px;
  color: var(--text-dark-muted);
  background: #F5F0F0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
}

.perk-card .perk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-card);
}

.perk-card .perk-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}

.perk-card .perk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 14px;
  color: var(--text-dark-muted);
  transition: color var(--transition);
}

.perk-card .perk-link:hover {
  color: var(--red);
}

/* Coming soon perk state */
.perk-card.coming-soon {
  opacity: 0.7;
}

.perk-card.coming-soon .perk-footer {
  border-top: 1px solid var(--border-card);
}

.perk-card .coming-pill {
  font-size: 13px;
  background: var(--gold-soft);
  color: var(--tl-amber-text);
  border: 1px solid #E8D5A0;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  font-weight: 600;
}

/* ── PRICING CARDS ── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  height: 100%;
}

.pricing-card.featured {
  border: 2px solid var(--red);
}

.pricing-card .plan-eyebrow {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pricing-card .plan-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.pricing-card .plan-price-wrap {
  margin: 0.75rem 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pricing-card .plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-dark);
}

.pricing-card .plan-price-original {
  font-size: 1rem;
  color: var(--text-dark-muted);
  text-decoration: line-through;
}

.pricing-card .plan-period {
  font-size: 15px;
  color: var(--text-dark-muted);
  margin-bottom: 1.25rem;
}

.pricing-card .plan-saving {
  font-size: 15px;
  color: var(--ms-green-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-card .plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-card .plan-features li {
  font-size: 16px;
  color: var(--text-dark-body);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.plan-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid #86EFAC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-check svg {
  width: 8px;
  height: 8px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.pricing-card .plan-note {
  font-size: 14px;
  color: var(--text-dark-muted);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* ── LMS SELECTOR CARDS ── */
.lms-selector-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.35rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.lms-selector-card:hover {
  border-color: var(--border-darker);
  background: var(--bg-dark-raised);
}

.lms-selector-card .lms-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
}

.lms-selector-card .lms-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.lms-selector-card .lms-card-count {
  font-size: 15px;
  color: var(--text-subtle);
}

.lms-selector-card .lms-card-soon {
  display: inline-block;
  font-size: 13px;
  color: var(--tl-amber-text);
  background: var(--tl-amber-soft);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ── WHY US CARDS ── */
.why-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
}

.why-card .why-num {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  border: 1px solid var(--border-darker);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.6rem;
}

.why-card .why-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.why-card .why-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--bg-dark-raised);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 2.75rem 0;
}

.cta-band h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.cta-band p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
}

/* ── COMING SOON BANNER ── */
.coming-soon-banner {
  background: var(--gold-soft);
  border: 1px solid #E8D5A0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.coming-soon-banner p {
  font-size: 16px;
  color: var(--tl-amber-text);
  line-height: 1.6;
}

.coming-soon-banner strong {
  font-weight: 600;
}

/* ── FORM ELEMENTS ── */
.form-label {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 0.45rem;
  display: block;
  font-weight: 500;
}

.form-control-dark {
  width: 100%;
  padding: 0.95rem 1rem;
  background: #0f1012;
  border: 1px solid #3a3a43;
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 17px;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-control-dark:focus {
  outline: none;
  border-color: #5b5b67;
  background: #121316;
  box-shadow: 0 0 0 4px rgba(232, 12, 20, 0.08);
}

.form-control-dark::placeholder {
  color: #a59ca0;
}

.form-control-dark option {
  background: #0f1012;
  color: var(--text-light);
}

textarea.form-control-dark {
  min-height: 132px;
  resize: vertical;
}

/* ── FLOATING CTA ── */
#floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--bg-dark-raised);
  border: 1px solid var(--border-darker);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  max-width: 300px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: none;
}

#floating-cta.visible {
  display: block;
}

#floating-cta .fcta-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

#floating-cta .fcta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

#floating-cta .fcta-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  font-size: 16px;
  color: var(--text-subtle);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

#floating-cta .fcta-close:hover {
  color: var(--text-light);
}

/* ── UTILITY ── */
.divider-line {
  border: none;
  border-top: 1px solid var(--border-dark);
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 760px;
  margin-top: 0.85rem;
}

.max-860 { max-width: 860px; margin-left: auto; margin-right: auto; }
.max-640 { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-480 { max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  :root {
    --section-space: 4.15rem;
  }
  .stats-strip .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .stats-strip .stat-item:last-child {
    border-bottom: none;
  }
  #floating-cta {
    bottom: 1rem;
    right: 1rem;
    max-width: calc(100vw - 2rem);
  }
  .display-xl { font-size: 2.5rem; }
  .display-lg { font-size: 2.15rem; }
  .section-lead { font-size: 17px; }
}
