/* Lingo Elevate | layout and readability fixes
   Loaded after visual-refresh.css. Each block says what it fixes. */

/* Base font for elements outside the main wrapper (e.g. the mobile "Start with a free trial" bar,
   which was falling back to Times New Roman) */
body,.le-mobile-cta{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}

/* 1. Coloured section bands now run edge to edge.
   They had a max-width but were not centred, so they stopped short of the right edge. */
#level-check,#plan-finder,#pricing,#faq,#book{max-width:none!important}

/* 2. One content width for the whole page (1240px container, 24px side padding),
   so every section starts at the same left edge as the header logo. */
header>div{max-width:1240px!important}
#courses{max-width:1240px!important}
#how,#companies{max-width:1240px!important}
section[aria-labelledby="why-h"]>div{max-width:1240px!important}
.le-shell{max-width:1192px}
.le-value-bar{max-width:1192px}
@media(min-width:1101px){
  .le-hero-copy{padding-inline-start:max(24px,calc((min(100vw,1536px) - 1192px)/2))!important;padding-inline-end:32px!important}
  .le-founder-layout{max-width:1240px;padding-left:24px;padding-right:24px}
}

/* 3. "Choose this plan" button no longer stretches into a tall yellow block on phones */
.le-result .le-action{flex:none!important}

/* 4. Hide the empty "Interested package" label in the booking form.
   The chosen plan still shows in the green "Your selected plan" box. */
label[for="le-plan-interest"]{display:none!important}

/* 5. Course / Level / Best time fields get enough room ("Weekday evenin…" was cut off) */
#book form>div[style*="minmax(150px"]{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}

/* 6. Easier-to-read small text (nothing below 13px) */
.le-benefit{font-size:13px}
.le-value small{font-size:13px!important}
.le-credential b{font-size:14px}
.le-credential small{font-size:13px}
.le-notice{font-size:13px!important}
.le-founder-photo>span{font-size:13px}
@media(max-width:720px){.le-hero-label{font-size:11px}.le-value small{font-size:12px!important}}

/* 7. Founder photo: neutral placeholder instead of an empty orange box while it loads */
.le-founder-photo img{background:#e9edf5}

/* 8. Quieter footer: links underline only on hover */
footer a{text-decoration:none}
footer a:hover,footer a:focus-visible{text-decoration:underline;color:#fff!important}

/* 9. Comparison table: tell phone users they can swipe to see all columns */
.le-swipe-hint{display:none}
@media(max-width:700px){.le-swipe-hint{display:block;margin:-16px 0 0;font-size:14px;font-weight:600;color:#5a6778}}

/* 10. Mobile "Start with a free trial" bar: hidden over the hero and next to the booking form
        (it was covering the hero buttons). The WhatsApp bubble drops down when the bar is hidden. */
@media(max-width:520px){
  .le-mobile-cta{transition:transform .25s ease,opacity .25s ease}
  body.le-cta-off .le-mobile-cta{transform:translateY(160%);opacity:0;pointer-events:none}
  body.le-cta-off a[aria-label="Chat with us on WhatsApp"]{bottom:12px!important}
}
@media(prefers-reduced-motion:reduce){.le-mobile-cta{transition:none}}

/* 11. Phones and small tablets: remove the empty navy strip above the hero text and the gap before the photo */
@media(max-width:800px){#top>.le-hero-grid{padding-top:0!important;padding-bottom:0!important;gap:0!important}}

/* ===================== Update 2 ===================== */

/* 12. Offer bar with countdown (top of the page). Original message comes back automatically after the end date. */
.le-bar-default{display:contents}
.le-bar-offer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px}
.le-offer-tag{background:#161F4A;color:#fff;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px;font-weight:800}
.le-offer-text{font-weight:800}
.le-cd{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.le-cd-label{font-weight:600;margin-inline-end:2px}
.le-cd-unit{background:rgba(255,255,255,.55);border-radius:7px;padding:2px 7px;font-size:13px;font-weight:700}
.le-cd-unit b{font-size:15px;font-weight:800;margin-inline-end:2px}
.le-offer-cta{color:#161F4A!important;font-weight:800;text-decoration:underline}
@media(max-width:520px){.le-topbar{padding:8px 12px!important;font-size:14px!important}.le-cd-label{display:none}.le-offer-tag{font-size:11px}}
/* "+1 month free" note on the 6-month price card while the offer runs */
.le-offer-note{margin:0;align-self:flex-start;background:#F7AD1E;color:#161F4A;font-weight:800;font-size:14px;padding:6px 12px;border-radius:10px}

/* 13. Level check: one question at a time on phones */
.le-q-nav{display:none}
#level-check.le-stepper .le-q-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:#C9D0E6}
#level-check.le-stepper fieldset:not(.le-q-current){display:none!important}
#level-check.le-stepper fieldset.le-q-current{animation:leQIn .25s ease}
#level-check.le-stepper [data-le-precise]{display:none!important}
.le-q-prev{background:none;border:1.5px solid #3E4B80;color:#fff;border-radius:10px;min-height:44px;padding:0 14px;font:inherit;font-weight:600;cursor:pointer}
.le-q-prev[disabled]{opacity:.35;cursor:default}
@keyframes leQIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* 14. Phones: shorter page */
.le-course-hint{display:none}
@media(max-width:720px){
  /* less empty space above and below sections */
  main [style*="padding: 96px 24px;"]{padding-top:56px!important;padding-bottom:56px!important}
  main [style*="padding: 96px 24px 0;"]{padding-top:56px!important}
  /* trust band: 2 columns */
  .le-value-bar+section>div{grid-template-columns:1fr 1fr!important;gap:18px 16px!important;padding:26px 18px!important}
  .le-value-bar+section>div>div>span:first-child{font-size:16px!important;line-height:1.3}
  .le-value-bar+section>div>div>span:last-child{font-size:13px!important}
  /* "Sound familiar?" cards: number beside the text */
  section[aria-labelledby="pain-h"]>div:nth-child(2){gap:10px!important}
  section[aria-labelledby="pain-h"]>div:nth-child(2)>div{flex-direction:row!important;align-items:center;padding:16px!important;gap:14px!important}
  section[aria-labelledby="pain-h"]>div:nth-child(2)>div>span{flex:0 0 36px;width:36px!important;height:36px!important}
  section[aria-labelledby="pain-h"]>div:nth-child(2)>div>p{font-size:16px!important}
  /* courses: swipe sideways instead of six cards stacked */
  #courses>div:nth-child(2){display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px!important;margin:0 -18px;padding:4px 18px 14px;scroll-padding-inline:18px}
  #courses>div:nth-child(2)>article{flex:0 0 84%;scroll-snap-align:start;min-width:0}
  #courses>div:nth-child(2)>article:hover{transform:none}
  .le-course-hint{display:block;margin:-20px 0 0;font-size:14px;font-weight:600;color:#5a6778}
  /* how it works: number beside the title */
  #how ol{gap:12px!important}
  #how ol>li{flex-direction:row!important;flex-wrap:wrap;align-items:center;padding:18px!important;gap:6px 14px!important}
  #how ol>li>span{width:40px!important;height:40px!important;font-size:18px!important}
  #how ol>li>h3{flex:1;font-size:19px!important}
  #how ol>li>p{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){#level-check.le-stepper fieldset.le-q-current{animation:none}}

/* 15. Phones: tighter spacing in the longest sections (no content removed) */
@media(max-width:720px){
  /* pricing cards */
  #pricing>div{gap:20px!important}
  #pricing>div>div[style*="grid-template-columns"]{gap:14px!important}
  #pricing [data-plan]{padding:20px!important;gap:8px!important;border-radius:18px!important}
  #pricing [data-plan] span[style*="font-size: 44px"]{font-size:34px!important}
  #pricing [data-plan] ul{font-size:15px!important;gap:3px!important}
  #pricing [data-plan] a{min-height:48px!important}
  /* Meet Hamid */
  .le-founder-layout{gap:22px!important;padding:48px 18px!important}
  .le-founder-photo{max-width:250px!important}
  .le-founder-intro p{font-size:15px!important;margin-bottom:10px!important}
  .le-credential-list{gap:8px!important;margin-top:16px!important}
  .le-credential{padding:10px 12px!important}
  /* inside a class */
  section[aria-labelledby="fmt-h"]{gap:24px!important}
  section[aria-labelledby="fmt-h"] ol>li{padding:12px 0!important;gap:12px!important}
  section[aria-labelledby="fmt-h"] ol>li>span:first-child{min-width:78px!important;font-size:14px!important}
  section[aria-labelledby="fmt-h"] aside{gap:12px!important}
  section[aria-labelledby="fmt-h"] aside>div{padding:20px!important;border-radius:18px!important}
  /* companies */
  #companies{padding:40px 14px!important}
  #companies>div{padding:30px 22px!important;gap:24px!important;border-radius:24px!important}
  /* FAQ */
  #faq>div{gap:24px!important}
  #faq summary{min-height:56px!important;font-size:16px!important}
  /* booking */
  #book>div{gap:28px!important}
  #book>div>div[style*="border-radius: 28px"]{padding:22px!important;border-radius:22px!important}
  /* footer: the two link lists side by side */
  footer>div:first-child{gap:28px!important;padding:44px 18px 24px!important}
  footer>div:first-child>nav{flex:1 1 40%!important}
}
