/* =====================================================================
   KayScience — Homepage CSS  (matches Home Page PDF)
   Depends on ks-common.css (design tokens)
   ===================================================================== */

.ks-home { overflow-x: hidden; }
.ks-section { padding: 70px 0; }
.ks-tick { color: var(--ks-teal); flex: 0 0 auto; }

/* ---------- ticks list ---------- */
.ks-checks { list-style: none; margin: 22px 0; padding: 0; }
.ks-checks li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; color: var(--ks-navy-soft); font-size: 16px;
}
.ks-checks li img.ks-tick { width: 20px; height: 20px; margin-top: 2px; }
.ks-checks li b { color: var(--ks-navy); font-weight: 600; }

/* =====================================================================
   1. HERO
   ===================================================================== */
.ks-hero {
  position: relative;
  /* Rich hero gradient sampled from the PDF (white -> light lavender -> blue -> mint),
     with a soft white fade only at the very bottom so it meets the white body
     (and role pills) with no hard seam. */
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 90%, #ffffff 100%),
    linear-gradient(107deg, #ffffff 0%, #e4e8f6 25%, #a9d7ec 57%, #9ce7d1 100%);
  overflow: hidden;
}
/* large soft circle sits toward the text/centre, as in the PDF */
.ks-hero::before {
  content: ""; position: absolute; top: -34%; left: 6%;
  width: 1120px; height: 1120px; border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(255,255,255,.50), rgba(200,230,245,.12) 55%, transparent 68%);
  pointer-events: none;
}
/* faint diagonal facet sheen */
.ks-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(122deg, transparent 42%, rgba(255,255,255,.16) 47%, transparent 53%);
}
.ks-hero__inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; padding: 40px 26px 64px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px;
}
.ks-hero__content { max-width: 540px; padding: 20px 0 40px; }
.ks-hero h1 {
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.14;
  color: var(--ks-navy);
  margin: 0 0 20px;
}
.ks-hero h1 .a-teal { color: var(--ks-teal); }
.ks-hero__sub {
  font-weight: 600; color: var(--ks-navy);
  font-size: 19px; line-height: 1.5; margin: 0 0 16px;
}
.ks-hero__desc { color: var(--ks-navy-soft); font-size: 16px; margin: 0 0 28px; }
.ks-hero__proof { display: flex; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.ks-hero__proof span {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: 12px; font-weight: 500; color: var(--ks-navy-soft);
}
.ks-hero__proof img.ks-tick { width: 18px; height: 18px; }
.ks-hero__media { position: relative; align-self: end; text-align: right; }
.ks-hero__media img { display: inline-block; max-height: 560px; width: auto; margin-left: auto; }

/* =====================================================================
   2. ROLE PILLS
   ===================================================================== */
.ks-roles {
  position: relative; z-index: 2;
  max-width: 1120px; margin: -55px auto 0; padding: 0 26px 30px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.ks-role {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: var(--ks-radius);
  box-shadow: var(--ks-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ks-role:hover { transform: translateY(-3px); box-shadow: var(--ks-shadow-md); }
.ks-role img { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.ks-role b { display: block; color: var(--ks-navy); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.ks-role span { font-size: 14px; color: var(--ks-navy-soft); }
.ks-role--student { background: #e4f8f3; }
.ks-role--teacher { background: #eef7fd; }
.ks-role--parent  { background: #eceafb; }

/* =====================================================================
   3. TRUSTS LOGOS
   ===================================================================== */
.ks-trusts { text-align: center; padding: 60px 0 40px; }
.ks-trusts h2 { font-weight: 600; font-size: clamp(24px, 3vw, 32px); color: var(--ks-navy); margin: 0 0 44px; }
.ks-trusts h2 .a-teal { color: var(--ks-teal); }
.ks-trusts h2 .a-purple { color: var(--ks-purple); }
.ks-trusts__row {
  display: flex; align-items: center; justify-content: center;
  gap: 60px; flex-wrap: wrap;
}
.ks-lorem { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; color: #2b2b3a; opacity: .85; }
.ks-lorem__dots { position: relative; width: 30px; height: 30px; flex: 0 0 auto; }
.ks-lorem__dots i { position: absolute; width: 11px; height: 11px; border-radius: 50%; }
.ks-lorem__dots i:nth-child(1) { background: #ff6a3d; top: 0; left: 9px; }
.ks-lorem__dots i:nth-child(2) { background: #7a5cff; top: 12px; left: 0; }
.ks-lorem__dots i:nth-child(3) { background: #7a5cff; top: 12px; left: 18px; }
.ks-lorem__dots i:nth-child(4) { background: #ff6a3d; top: 20px; left: 9px; }
.ks-tes { font-weight: 800; font-size: 34px; color: #111; letter-spacing: -.02em; }
.ks-tes b { color: #e4002b; }

/* =====================================================================
   4. A SMARTER WAY (mint card)
   ===================================================================== */
.ks-smarter { padding: 30px 0 80px; }
.ks-smarter__card {
  background: linear-gradient(135deg, #e8f7f2 0%, #e2f1f6 100%);
  border-radius: 30px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px;
}
.ks-smarter__card .ks-btn { margin-top: 10px; }
.ks-smarter__media img { width: 100%; height: auto; }

/* =====================================================================
   5. BUILT BY TEACHERS WHO UNDERSTAND
   ===================================================================== */
.ks-understand { padding: 20px 0 70px; }
.ks-understand__head h2 { margin-bottom: 6px; }
.ks-understand__head p { color: var(--ks-navy-soft); font-size: 17px; margin: 0 0 40px; }
.ks-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ks-pain {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border-radius: 20px;
  /* deeper, layered shadow for stronger elevation */
  box-shadow:
    0 2px 6px rgba(80, 82, 140, .06),
    0 10px 22px rgba(80, 82, 140, .12),
    0 30px 60px rgba(80, 82, 140, .20);
  padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ks-pain:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 10px rgba(80, 82, 140, .08),
    0 16px 32px rgba(80, 82, 140, .16),
    0 44px 80px rgba(80, 82, 140, .26);
}
.ks-pain__icon {
  flex: 0 0 auto; width: 132px; height: 132px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.ks-pain__icon img {
  width: 86px; height: 86px; object-fit: contain;
  /* darken + saturate the pale source icon so its strokes read clearly, as in the PDF */
  filter: saturate(1.4) brightness(0.82);
}
/* colour-matched to each icon, per the PDF: green, teal, blue, purple.
   Lighter at the top, fading richer toward the bottom (vertical). */
.ks-pain__icon--green  { background: linear-gradient(180deg, #d4f4ea 0%, #93e4cf 100%); }
.ks-pain__icon--teal   { background: linear-gradient(180deg, #d3f2f0 0%, #90e1db 100%); }
.ks-pain__icon--blue   { background: linear-gradient(180deg, #d0ecf8 0%, #88d5ef 100%); }
.ks-pain__icon--purple { background: linear-gradient(180deg, #ded5f8 0%, #af9ff0 100%); }
.ks-pain h3 { font-size: 18px; font-weight: 600; color: var(--ks-navy); margin: 4px 0 8px; line-height: 1.3; }
.ks-pain p { font-size: 15px; color: var(--ks-navy-soft); margin: 0; }

/* =====================================================================
   6. TRUSTPILOT REVIEWS
   ===================================================================== */
.ks-reviews { text-align: center; padding: 40px 0 60px; }
.ks-trustpilot { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.ks-trustpilot__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: #191919; }
.ks-trustpilot__name svg { width: 22px; height: 22px; color: #00b67a; }
.ks-stars { display: inline-flex; gap: 3px; }
.ks-stars span { width: 26px; height: 26px; background: #00b67a; display: inline-flex; align-items: center; justify-content: center; }
.ks-stars span svg { width: 17px; height: 17px; color: #fff; }
.ks-stars span.half { background: linear-gradient(90deg, #00b67a 50%, #dcdce6 50%); }
.ks-reviews h2 { margin: 26px 0 6px; }
.ks-reviews h2 .a-teal { color: var(--ks-teal); }
.ks-reviews h2 .a-purple { color: var(--ks-purple); }
.ks-reviews__sub { color: var(--ks-navy); font-weight: 600; font-size: 16px; margin: 0 0 40px; }
.ks-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
.ks-review {
  background: #fff; border-radius: var(--ks-radius);
  box-shadow: var(--ks-shadow-sm); padding: 26px;
}
.ks-review__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ks-review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px; background: var(--ks-navy);
  background-size: cover; background-position: center;
}
.ks-review__name { font-weight: 700; color: #1a1a2e; font-size: 15px; }
.ks-review__date { color: #8a8aa0; font-size: 13px; }
.ks-review .ks-stars { margin-bottom: 12px; }
.ks-review .ks-stars span { width: 22px; height: 22px; }
.ks-review .ks-stars span svg { width: 14px; height: 14px; }
.ks-review p { font-style: italic; font-size: 14.5px; color: var(--ks-navy-soft); margin: 0; line-height: 1.55; }
.ks-reviews__note {
  max-width: 760px; margin: 44px auto 0; color: var(--ks-navy);
  font-size: 17px; line-height: 1.6;
}

/* =====================================================================
   7. FREE TRIAL FORM
   ===================================================================== */
.ks-trial { padding: 50px 0 80px; }
.ks-trial__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.ks-trial h2 { margin-bottom: 16px; }
.ks-trial h2 .a-purple { color: var(--ks-purple); }
.ks-trial__lead { font-weight: 600; color: var(--ks-navy); font-size: 17px; margin: 0 0 20px; }
.ks-trial__bubble { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.ks-trial__bubble img { width: 96px; height: auto; }
.ks-bubble {
  position: relative; background: #eaf6f6; border-radius: 18px;
  padding: 16px 22px; color: var(--ks-navy); font-weight: 600; font-size: 14px; max-width: 260px; text-align: center;
}
.ks-bubble::after {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  border: 8px solid transparent; border-right-color: #eaf6f6;
}
.ks-trial__card {
  background: linear-gradient(130deg, #9f90e6 0%, #86a9e0 45%, #7fd3c9 100%);
  border-radius: 28px; padding: 40px;
  box-shadow: var(--ks-shadow-lg);
}
.ks-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ks-form-field {
  width: 100%; border: 0; border-radius: 12px; background: rgba(255,255,255,.92);
  padding: 18px 20px; font-family: var(--ks-font); font-size: 15px; color: var(--ks-navy);
  margin-bottom: 16px;
}
.ks-form-field::placeholder { color: #9a9ab5; }
.ks-form-field:focus { outline: 2px solid rgba(255,255,255,.9); }
.ks-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.ks-form-foot p { color: #fff; font-size: 13px; margin: 0; }
.ks-form-foot p b { font-weight: 700; }
.ks-form-foot .ks-btn { background: rgba(255,255,255,.28); box-shadow: none; }
.ks-form-foot .ks-btn:hover { background: rgba(255,255,255,.4); }

/* =====================================================================
   8. MEET THE TEACHERS
   ===================================================================== */
.ks-teachers { padding: 60px 0 90px; position: relative; overflow: hidden; }
.ks-teachers__blob {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(6px);
}
.ks-teachers__blob--lav {
  width: 1000px; height: 1000px; left: -6%; top: 12%;
  background: radial-gradient(closest-side, rgba(178,166,232,.30), rgba(178,166,232,.12) 55%, transparent 72%);
}
.ks-teachers__blob--blue {
  width: 950px; height: 950px; right: -8%; top: 40%;
  background: radial-gradient(closest-side, rgba(150,192,236,.34), rgba(150,192,236,.12) 55%, transparent 72%);
}
.ks-teachers__blob--mint {
  width: 620px; height: 620px; left: 2%; top: 6%;
  background: radial-gradient(closest-side, rgba(150,224,206,.26), transparent 70%);
}
.ks-teachers .ks-container { position: relative; z-index: 1; }
.ks-teachers__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.ks-teacher__body { position: relative; }
.ks-teacher__arrow {
  position: absolute; width: 120px; height: auto; z-index: 2;
}
.ks-teacher__arrow--ahmed { top: -6px; left: -150px; }
.ks-teachers__head h2 .a-purple { color: var(--ks-purple); }
.ks-teachers__head p { color: var(--ks-navy-soft); font-size: 16px; }
.ks-teacher {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 50px; margin-bottom: 30px;
}
.ks-teacher--reverse .ks-teacher__photo { order: 2; }
.ks-teacher__photo { text-align: center; }
.ks-teacher__photo img {
  width: 320px; height: 320px; border-radius: 50%; object-fit: cover;
  margin: 0 auto; box-shadow: 0 20px 50px rgba(72,72,168,.16);
}
.ks-teacher__photo--teal img { background: #bfeee6; }
.ks-teacher__photo--blue img { background: #cfe1f6; }
.ks-teacher__body h3 { font-size: 30px; font-weight: 600; color: var(--ks-navy); margin: 0 0 4px; }
.ks-teacher__role { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 13px; color: var(--ks-teal); margin: 0 0 24px; }
.ks-teacher__body ul { list-style: none; margin: 0; padding: 0; }
.ks-teacher__body li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.ks-teacher__body li img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; margin-top: 2px; }
.ks-teacher__body li b { color: var(--ks-navy); font-weight: 600; }
.ks-teacher__body li span { color: var(--ks-navy-soft); font-size: 15px; }

/* =====================================================================
   9. EVERYTHING YOU NEED TO EXCEL
   ===================================================================== */
.ks-excel { padding: 60px 0; }
.ks-excel__inner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; }
.ks-excel h2 .a-purple { color: var(--ks-purple); }
.ks-excel h2 .a-teal { color: var(--ks-teal); }
.ks-excel__lead { font-weight: 600; color: var(--ks-navy); font-size: 18px; margin: 0 0 16px; }
.ks-excel__media img { width: 100%; height: auto; }

/* =====================================================================
   10. FEATURE CARDS
   ===================================================================== */
.ks-features { padding: 30px 0 70px; }
.ks-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.ks-feature {
  background: #fff; border-radius: 22px; box-shadow: var(--ks-shadow-md);
  overflow: hidden; padding: 30px; display: flex; flex-direction: column;
}
.ks-feature__banner {
  border-radius: 16px; height: 190px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.ks-feature__banner img { width: 92px; height: 92px; object-fit: contain; }
.ks-feature__banner--green  { background: linear-gradient(180deg, #c9f2df 0%, #74d3bb 100%); }
.ks-feature__banner--teal   { background: linear-gradient(180deg, #bdece5 0%, #63c6d2 100%); }
.ks-feature__banner--blue   { background: linear-gradient(180deg, #bce4f6 0%, #4fb3e4 100%); }
.ks-feature__banner--purple { background: linear-gradient(180deg, #dad4f7 0%, #9a8ce6 100%); }
.ks-feature .ks-eyebrow { margin-bottom: 8px; }
.ks-feature__eyebrow--teal   { color: var(--ks-teal); }
.ks-feature__eyebrow--purple { color: var(--ks-purple); }
.ks-feature h3 { font-size: 26px; font-weight: 600; color: var(--ks-navy); margin: 0 0 14px; line-height: 1.25; }
.ks-feature h3 .a-teal { color: var(--ks-teal); }
.ks-feature h3 .a-purple { color: var(--ks-purple); }
.ks-feature p { color: var(--ks-navy-soft); font-size: 15px; margin: 0 0 24px; flex: 1 1 auto; }
.ks-feature .ks-btn { align-self: flex-start; }

/* =====================================================================
   11. PRICING
   ===================================================================== */
.ks-pricing {
  background: linear-gradient(165deg, #a9e7ce 0%, #b9e4da 34%, #c6d9f2 100%);
  padding: 80px 0 100px;
}
.ks-pricing__head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.ks-pricing__head h2 { color: var(--ks-navy); }
.ks-pricing__head h2 .a-teal { color: #6fe0c8; }
.ks-pricing__head p { color: var(--ks-navy); font-size: 16px; }
.ks-toggle {
  display: inline-flex; background: rgba(255,255,255,.55); border-radius: 40px;
  padding: 6px; margin: 6px auto 46px; gap: 4px;
}
.ks-toggle button {
  border: 0; cursor: pointer; font-family: var(--ks-font); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: 13px;
  padding: 14px 28px; border-radius: 40px; background: transparent; color: var(--ks-navy);
  transition: background .2s ease, box-shadow .2s ease;
}
.ks-toggle button.is-active { background: #fff; box-shadow: var(--ks-shadow-sm); }
.ks-toggle-wrap { text-align: center; }

.ks-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.ks-price {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 100%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px; padding: 40px 30px; text-align: center;
  box-shadow: 0 16px 40px rgba(72,72,168,.10);
}
.ks-price--featured {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.8) 100%);
  box-shadow: 0 30px 70px rgba(72,72,168,.22);
  transform: translateY(-14px);
}
.ks-price__badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--ks-grad-btn); color: #fff; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 12px; padding: 8px 20px; border-radius: 40px;
  box-shadow: 0 8px 18px rgba(122,108,214,.35); white-space: nowrap;
}
.ks-price h3 { font-size: 24px; font-weight: 700; color: var(--ks-navy); margin: 0 0 12px; }
.ks-price__desc { color: var(--ks-navy-soft); font-size: 14px; min-height: 62px; margin: 0 0 18px; }
.ks-price__amount { margin: 0 0 22px; }
.ks-price__amount b { font-size: 46px; font-weight: 700; color: var(--ks-navy); }
.ks-price__amount span { font-size: 18px; color: var(--ks-navy-soft); }
.ks-price .ks-btn { width: 100%; margin-bottom: 22px; }
.ks-price__list { list-style: none; margin: 0; padding: 0; text-align: left; }
.ks-price__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ks-navy-soft); margin-bottom: 12px; }
.ks-price__list li img.ks-tick { width: 17px; height: 17px; margin-top: 2px; }
.ks-price__includes { font-weight: 700; color: var(--ks-navy); margin: 20px 0 12px; font-size: 14.5px; }
.ks-price__best { margin-top: 22px; text-align: center; }
.ks-price__best b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ks-navy); margin-bottom: 6px; }
.ks-price__best span { color: var(--ks-navy-soft); font-size: 13px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
  .ks-hero__inner,
  .ks-smarter__card,
  .ks-trial__inner,
  .ks-excel__inner { grid-template-columns: 1fr; }
  .ks-hero__media { text-align: center; margin-top: 10px; }
  .ks-hero__media img { max-height: 420px; margin: 0 auto; }
  .ks-roles { grid-template-columns: 1fr; margin-top: 20px; }
  .ks-pain-grid,
  .ks-review-grid,
  .ks-feature-grid,
  .ks-price-grid { grid-template-columns: 1fr; }
  .ks-teacher,
  .ks-teacher--reverse .ks-teacher__photo { grid-template-columns: 1fr; }
  .ks-teacher__photo { order: -1 !important; }
  .ks-price--featured { transform: none; }
  .ks-smarter__card { padding: 34px; }
}
@media (max-width: 560px) {
  .ks-form-row { grid-template-columns: 1fr; }
  .ks-form-foot { flex-direction: column; align-items: flex-start; }
  .ks-teacher__photo img { width: 220px; height: 220px; }
  .ks-hero h1 { font-size: 32px; }
}
