/* ==========================================================================
   LearnBox marketing landing page
   Built from Figma file gYUpuRb1YFRCPOqJYnKkao ("LearnBox (Copy)")
   Desktop frame (239:5268, 1440x9231) is reproduced as a fixed-width
   "stage" that is proportionally scaled to fit the viewport. The Tablet
   (239:7522, 768w) and Mobile (239:9024, 320w) frames in the source file
   are themselves uniform scale-downs of the desktop frame (no reflow /
   restacking / nav-collapse differences were present in their metadata),
   so scaling the stage reproduces all three breakpoints exactly.
   Sections stack in normal flow (position:relative + explicit height);
   every element inside a section is positioned absolute relative to
   that section's own top-left corner.
   ========================================================================== */

:root {
  --teal: #263238;
  --teal-2: #37474f;
  --teal-3: #455a64;
  --orange: #fc5d25;
  --orange-dark: #963716;
  --red: #df3516;
  --yellow: #ffc727;
  --cream: #fffae0;
  --cream-2: #fffce9;
  --gray-light: #d9d9d9;
  --gray-card: #f7f7f7;
  --green-pill-bg: #cdefb3;
  --green-pill-text: #0f5650;
  --yellow-pill-bg: #fff19e;
  --yellow-pill-text: #776602;
  --stage-width: 1440;
  --scale: 1;
}

* { box-sizing: border-box; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--teal);
  overflow-x: hidden;
}

img { max-width: none; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Stage scaling shell ------------------------------------------------ */

.stage-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.stage {
  position: relative;
  width: calc(var(--stage-width) * 1px);
  transform: scale(var(--scale));
  transform-origin: top left;
  background: #ffffff;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  border: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; }

.btn-dark { background: var(--teal); color: #fff; }
.btn-nav-dark { background: #1e1e1e; color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-cta { background: var(--red); color: #fff; }

/* ---- Nav ------------------------------------------------------------------ */

.nav-link {
  position: absolute;
  top: 39px;
  height: 48px;
  width: 151px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--red); }

/* ---- Decorative drifting shapes ------------------------------------------ */

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(18px, -24px) rotate(6deg); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-22px, 16px) rotate(-5deg); }
}
@keyframes drift-a-reduced {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4px, -5px); }
}
@keyframes drift-b-reduced {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-5px, 4px); }
}

.shape {
  position: absolute;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  pointer-events: none;
}
.shape.a { animation-name: drift-a; }
.shape.b { animation-name: drift-b; }

/* Reduced motion keeps the drift visible (gentler, not frozen) instead of
   stretching the duration until it's imperceptible. */
@media (prefers-reduced-motion: reduce) {
  .shape.a { animation-name: drift-a-reduced; }
  .shape.b { animation-name: drift-b-reduced; }
}

.dot { border-radius: 50%; }
/* exact hex values read from the Figma-exported SVG source (hero-group24-combined.svg
   and the individual CTA ellipse assets), not screenshot-sampled */
.dot-teal-ring { border: 3px solid #0f5650; background: transparent; }
.dot-yellow { background: #fee240; }
.dot-orange { background: #fc5d25; }
.dot-gray { background: #d9d9d9; }
.dot-teal-solid { background: var(--green-pill-text); }

.icon-visual { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.icon-visual img { position: absolute; width: auto; height: auto; }

.section-heading {
  position: absolute;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -1.44px;
  line-height: 1.1;
}

/* ---- Section: header + hero ---------------------------------------------- */

.section-hero {
  position: relative;
  width: 1440px;
  height: 1024px;
  overflow: hidden;
  background: linear-gradient(37deg, var(--cream) 75%, var(--cream-2) 102%);
}

.logo-img { position: absolute; height: 40px; width: auto; object-fit: contain; }

.hero-badge {
  position: absolute;
  top: 364px;
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  height: 60px;
}
.hero-badge img { width: 36px; height: 36px; }
.hero-badge span { font-weight: 600; font-size: 20px; color: var(--red); white-space: nowrap; }

.hero-heading {
  position: absolute;
  left: 294px;
  top: 436px;
  width: 849px;
  text-align: center;
  font-weight: 700;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -1.92px;
}
.hero-heading .grad {
  background: linear-gradient(-69deg, #fc5d25 32%, #963716 114%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  position: absolute;
  left: 294px;
  top: 592px;
  width: 849px;
  text-align: center;
  font-size: 24px;
  line-height: 36px;
  color: #000;
}

.hero-buttons { position: absolute; left: 566px; top: 699px; display: flex; gap: 13px; }

/* ---- Section: about ------------------------------------------------------- */

.section-about {
  position: relative;
  width: 1440px;
  height: 1017px;
  background: #fff;
}

.about-card-shadow {
  position: absolute;
  left: 169px;
  top: 598px;
  width: 1271px;
  height: 466px;
  border-radius: 24px;
  background: var(--teal-3);
}
.about-card {
  position: absolute;
  left: 124px;
  top: 480px;
  width: 1301px;
  height: 563px;
  border-radius: 24px;
  background: var(--gray-card);
  border: 1px solid var(--teal-3);
}
.about-text {
  position: absolute;
  left: 191px;
  top: 598px;
  width: 614px;
  font-size: 32px;
  line-height: 48px;
  letter-spacing: -0.96px;
  color: #000;
}
.about-text b { font-weight: 700; }

.about-photo-wrap {
  position: absolute;
  left: 921px;
  top: 561px;
  width: 388px;
  height: 388px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-dashed-ring { position: absolute; left: 883px; top: 523px; width: 464px; height: 464px; z-index: 1; }
.about-badge { position: absolute; z-index: 3; }
.about-badge img { width: 100%; height: 100%; }

/* ---- Section: products ----------------------------------------------------- */

.section-products {
  position: relative;
  width: 1440px;
  min-height: 1823px;
  background: linear-gradient(167deg, #fff9d8 51%, #ffdfd3 117%);
  padding-bottom: 60px;
}

.product-card {
  position: absolute;
  top: 288px;
  width: 404px;
  height: 411px;
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: 24px;
  text-align: center;
  padding: 40px 28px 0;
  cursor: pointer;
  box-shadow: 0 0 0 var(--red);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.product-card:hover { transform: translate(-2px, -2px); }
.product-card.is-active { box-shadow: 8px 8px 0 var(--red); transform: translate(-4px, -4px); }
.product-card .badge-star {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .badge-star img.star { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-card h3 { margin: 0 0 8px; font-size: 36px; font-weight: 700; letter-spacing: -1.08px; color: var(--teal); }
.product-card p { margin: 0; font-size: 24px; line-height: 36px; color: #000; }

.accordion { position: absolute; left: 50%; top: 805px; transform: translateX(-50%); width: 1246px; }
.accordion-row {
  position: relative;
  background: #fff;
  border: 1px solid var(--teal-2);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding: 0 31px;
  cursor: pointer;
}
.accordion-header h4 { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -1.08px; color: var(--teal); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 75px; font-size: 16px; white-space: nowrap; }
.pill-live { background: var(--green-pill-bg); color: var(--green-pill-text); }
.pill-soon { background: var(--yellow-pill-bg); color: var(--yellow-pill-text); }
.accordion-chevron { margin-left: auto; width: 24px; height: 24px; transition: transform 200ms ease-out; }
.accordion-row.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 250ms ease-in-out, opacity 200ms ease-in-out;
}
.accordion-body-inner { display: flex; align-items: center; gap: 40px; padding: 32px 56px 40px; min-height: 0; overflow: hidden; }
.accordion-row.is-open .accordion-body {
  grid-template-rows: 1fr;
  opacity: 1;
}
.accordion-body p { flex: 0 0 403px; margin: 0; font-size: 24px; line-height: 36px; color: #000; }
.accordion-visual { position: relative; flex: 1; height: 332px; border-radius: 24px; background: linear-gradient(151deg, #ffcdbb 4%, #fff 155%); overflow: hidden; }
.accordion-visual .phone { position: absolute; left: 50%; top: 62px; transform: translateX(-50%); width: 245px; height: 416px; object-fit: contain; mix-blend-mode: hard-light; }
.accordion-visual .msg-badge { position: absolute; left: 30px; top: 20px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px; max-width: 260px; }
.accordion-visual .msg-badge img { width: 36px; height: 36px; flex: none; }
.accordion-visual .msg-badge span { font-size: 14px; font-weight: 600; color: var(--teal); line-height: 18px; }

/* ---- Section: mission / challenges ---------------------------------------- */

.section-mission {
  position: relative;
  width: 1440px;
  min-height: 2376px;
  background: #fff;
}
.mission-kicker {
  position: absolute;
  left: 50%;
  top: 108px;
  transform: translateX(-50%);
  padding: 12px 34px;
  border: 1px solid var(--teal-3);
  border-radius: 32px;
  font-weight: 700;
  font-size: 20px;
  color: var(--teal);
  white-space: nowrap;
}
.mission-copy {
  position: absolute;
  left: 277px;
  top: 245px;
  width: 887px;
  text-align: center;
  font-size: 28px;
  line-height: 42px;
  color: var(--teal);
  font-weight: 500;
}
.challenges-heading {
  position: absolute;
  left: 97px;
  top: 466px;
  width: 1246px;
  text-align: center;
  font-weight: 700;
  font-size: 48px;
  color: var(--teal);
}

.challenge-card {
  position: absolute;
  left: 82px;
  width: 1285px;
  height: 512px;
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: 24px;
  overflow: hidden;
}
.challenge-card .challenge-text { position: absolute; left: 75px; top: 93px; width: 512px; }
.challenge-card h3 { margin: 0 0 20px; font-size: 32px; font-weight: 700; letter-spacing: -0.96px; color: var(--teal); }
.challenge-card p { margin: 0; font-size: 24px; line-height: 36px; color: #000; }
.challenge-card .challenge-photo { position: absolute; right: 0; top: 0; width: 52%; height: 100%; overflow: hidden; }
.challenge-card .challenge-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Section: technology ---------------------------------------------------- */

.section-tech {
  position: relative;
  width: 1440px;
  height: 1024px;
  overflow: hidden;
  background: linear-gradient(140deg, #ffede7 27%, #ffc727 130%);
}
.tech-heading { color: var(--red); left: 74px; top: 80px; position: absolute; }

.tech-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.tech-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }

.tech-title { position: absolute; left: 74px; top: 377px; width: 579px; font-size: 40px; font-weight: 700; letter-spacing: -1.2px; color: var(--teal); }
.tech-title-sm { font-size: 32px; line-height: 1.2; }
.tech-copy { position: absolute; left: 74px; top: 485px; width: 531px; font-size: 24px; line-height: 36px; color: var(--teal); }
.tech-copy-group { position: absolute; left: 74px; width: 560px; }
.tech-copy-sm { font-size: 16px; line-height: 23px; color: #55636a; margin-bottom: 12px; }
.tech-copy-sm:last-child { margin-bottom: 0; }

.tech-nav-btn { position: absolute; top: 631px; width: 64px; height: 64px; border-radius: 32px; background: var(--red); border: none; display: flex; align-items: center; justify-content: center; z-index: 3; cursor: pointer; }
.tech-nav-btn img { width: 36px; height: 36px; filter: brightness(0) invert(1); }

.tech-visual { position: absolute; left: 678px; top: 60px; width: 673px; height: 800px; }
.tech-phone-shadow { position: absolute; left: 42px; top: 760px; width: 631px; height: 22px; opacity: 0.5; }
.tech-phone-frame { position: absolute; left: 183px; top: 53px; width: 347px; height: 707px; object-fit: contain; }
.tech-card { position: absolute; left: 0; top: 207px; width: 673px; height: 245px; background: rgba(255,255,255,0.9); border-radius: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: space-around; gap: 16px; padding: 0 24px; }
.tech-card img { height: 140px; width: auto; }
.tech-slide-image { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 640px; width: auto; height: auto; border-radius: 16px; }

.tech-dots-nav { position: absolute; left: 689px; top: 894px; display: flex; gap: 10px; z-index: 3; }
.tech-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal-2); opacity: 0.3; cursor: pointer; transition: opacity 150ms ease, background 150ms ease; }
.tech-dot.is-active { opacity: 1; background: var(--red); }

/* ---- CTA section ------------------------------------------------------------ */

.section-cta {
  position: relative;
  width: 1440px;
  height: 739px;
  overflow: hidden;
  background: #fff;
}
.cta-heading {
  position: absolute;
  left: 295px;
  top: 268px;
  width: 849px;
  text-align: center;
  font-weight: 700;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -1.92px;
  color: var(--teal);
}
.cta-buttons { position: absolute; left: 564px; top: 517px; display: flex; gap: 13px; }

/* ---- Section: trusted by ------------------------------------------------------ */

.section-trusted {
  position: relative;
  width: 1440px;
  height: 431px;
  background: rgba(250,250,250,0.7);
}
.trusted-heading {
  position: absolute;
  left: 641px;
  top: 77px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.96px;
  color: var(--teal);
  white-space: nowrap;
}
.trusted-card {
  position: absolute;
  top: 186px;
  width: 303px;
  height: 108px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 21px;
}
.trusted-card .logo-box { width: 64px; height: 64px; border-radius: 12px; background: var(--gray-light); flex: none; }
.trusted-card .lines { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.trusted-card .lines span { display: block; height: 8px; border-radius: 4px; background: var(--gray-light); }

/* ---- Footer ------------------------------------------------------------------ */

.section-footer {
  position: relative;
  width: 1440px;
  height: 601px;
  background: var(--teal);
  color: #fff;
}
.footer-logo { position: absolute; left: 60px; top: 109px; height: 40px; }
.footer-col-heading { position: absolute; font-size: 20px; font-weight: 700; color: #fff; }
.footer-link { position: absolute; font-size: 18px; color: rgba(255,255,255,0.75); }
.footer-contact { position: absolute; left: 736px; top: 133px; width: 250px; font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.75); }
.footer-socials { position: absolute; left: 736px; top: 356px; display: flex; gap: 13.5px; }
.footer-socials img { width: 36px; height: 36px; }
.footer-newsletter-input {
  position: absolute;
  left: 1035px;
  top: 174px;
  width: 334px;
  height: 45px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 0 19px;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.55); }
