/* ==========================================================
   Mark Daniels — Design A
   Desktop reference width 1440px (container 1280 + 80px gutters)
   ========================================================== */


:root {
  --ink: #111418;
  --ink-2: #2b2f36;
  --muted: #5d636d;
  --line: #e9ecf1;
  --blue: #3f7cf8;
  --blue-deep: #2a63ef;
  --blue-soft: #d9e6ff;
  --bg-soft: #fafafa;
  --white: #fff;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(17, 24, 39, .03), 0 8px 30px rgba(31, 64, 140, .05);
  --gutter: 80px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(1280px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: .98;
  letter-spacing: -0.025em;
}
.h2--center { text-align: center; }
.eyebrow { font-size: 18px; color: var(--muted); margin-bottom: 14px; letter-spacing: -0.01em; }
.eyebrow--center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 7px 0 24px;
  border-radius: 999px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  transition: transform .25s ease;
}
.btn__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 6px 24px rgba(10, 40, 120, .18); }
.btn--light .btn__arrow { background: var(--ink); color: #fff; }

.btn--blue {
  color: #fff;
  background: linear-gradient(180deg, #4f8bfb 0%, #2f66f1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 30px -6px rgba(47, 102, 241, .45), 0 4px 10px rgba(47, 102, 241, .2);
}
.btn--blue .btn__arrow { background: #fff; color: var(--ink); }
.btn--blue:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 36px -6px rgba(47, 102, 241, .55), 0 4px 10px rgba(47, 102, 241, .25); }
.btn--full { width: 100%; justify-content: space-between; }

/* ---------- icon bubble ---------- */
.icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #5b8ffb 0%, #3a6ef3 100%);
  box-shadow: 0 10px 22px -4px rgba(58, 110, 243, .5), inset 0 1px 0 rgba(255,255,255,.3);
}
.icon svg { width: 22px; height: 22px; fill: #fff; }
.icon--lg { width: 64px; height: 64px; margin-bottom: 20px; }
.icon--lg svg { width: 28px; height: 28px; }

/* ==========================================================
   HERO
   ========================================================== */
/* The hero always fills the viewport. --hh is its height; every hero
   measurement below is the design's 1440x960 value scaled by --hh. */
.hero {
  --hh: max(100vh, 560px);
  position: relative;
  height: var(--hh);
  overflow: hidden;
  isolation: isolate;
  background:
    /* stops sampled from the design; the slight angle makes the right side turn blue first */
    linear-gradient(174deg, #fffdfb 0%, #fdfdff 25.7%, #f0f6ff 32.6%, #eaf2fe 37%, #d7e6fc 41.3%, #c5d9fc 45.7%, #afcbff 50%, #99bcff 54.4%, #7faefa 58.7%, #71a2ff 63%, #6296fd 67.4%, #538ffd 71.7%, #4b8bfe 76.1%, #4987ff 80.4%, #4584ff 84.8%, #4584fe 100%);
}

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: clamp(72px, calc(var(--hh) * .104), 100px);
}
.nav__logo { font-family: var(--head); font-size: 33px; font-weight: 500; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 44px; }
.nav__links a { font-size: 18px; color: var(--ink-2); letter-spacing: -0.01em; position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); font-weight: 500; }
.nav__toggle { display: none; }

/* no z-index here: the tint must blend with the hero background, not just the photo */
.hero__visual { position: absolute; inset: 0; pointer-events: none; }

.hero__ghost {
  position: absolute; z-index: 1;
  left: 50%; top: calc(var(--hh) * .3125); transform: translateX(-50%);
  font-family: var(--head); font-weight: 500;
  font-size: min(15.5vw, calc(var(--hh) * .217)); line-height: 1; letter-spacing: -0.05em;
  white-space: nowrap;
  color: rgba(70, 105, 175, .09);
  pointer-events: none; user-select: none;
}

.hero__portrait {
  position: absolute; z-index: 2;
  left: 50%; bottom: 0;
  transform: translateX(-49%);
  height: calc(var(--hh) * .875); width: auto; max-width: none;
  pointer-events: none;
  /* the lower body dissolves into the blue background */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 43%, rgba(0,0,0,.62) 59%, rgba(0,0,0,.34) 77%, rgba(0,0,0,.22) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 43%, rgba(0,0,0,.62) 59%, rgba(0,0,0,.34) 77%, rgba(0,0,0,.22) 100%);
}
/* book page: the product takes the portrait's place, floating right of centre so the title never covers it */
.hero__book {
  position: absolute; z-index: 2;
  /* right of centre (60% of a 1440 screen), capped so it never reaches the reader badge on wide screens */
  left: calc(50% + min(10vw, 195px)); top: calc(var(--hh) * .13);
  /* ends ~28px above the Buy Now button, which sits at --hh × .942 minus the
     button, its margin and the 4-line paragraph (≈197px); 60% of the hero, 760px at most */
  height: min(calc(var(--hh) * .6), calc(var(--hh) * .812 - 225px), 760px); width: auto; max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 40px 46px rgba(16, 38, 92, .35)) drop-shadow(0 10px 14px rgba(16, 38, 92, .22));
  pointer-events: none;
}
/* turns the faded shirt and arms navy-blue; the blue background is left as it is */
.hero__tint {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  mix-blend-mode: color;
  background: linear-gradient(180deg, rgba(64,128,255,0) 0%, rgba(64,128,255,0) 50%, rgba(64,128,255,.35) 66%, rgba(64,128,255,.4) 82%, rgba(64,128,255,.45) 100%);
}

.hero__clients {
  position: absolute; z-index: 4;
  top: calc(var(--hh) * .175); left: calc(50% + 430px);
}
.hero__clients p { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-top: 14px; letter-spacing: -0.01em; }
.avatars { display: flex; }
.avatars img, .avatars__more {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid #fff; object-fit: cover;
}
.avatars > * + * { margin-left: -12px; }
.avatars__more {
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: -0.02em;
}

.hero__content {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(var(--hh) * .058);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero__title {
  font-family: var(--head); font-weight: 500;
  font-size: max(56px, min(9.7vw, calc(var(--hh) * .146), 140px));
  line-height: .98; letter-spacing: -0.035em;
  color: #fff;
}
.hero__side { width: 412px; padding-bottom: 6px; display: flex; flex-direction: column; align-items: flex-start; }
.hero__side .btn { order: -1; margin-bottom: 26px; }
.br-d { display: inline; }
.hero__side p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.48; letter-spacing: -0.01em; }

/* ==========================================================
   LOGOS
   ========================================================== */
.logos { background: #fff; }
.logos__row { height: 125px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #3a3d43; font-size: min(30px, 2.6vw); }
.logo { display: inline-flex; align-items: center; gap: .2em; font-family: var(--body); letter-spacing: -0.02em; white-space: nowrap; }
.logo svg { fill: currentColor; width: auto; }
/* toppers strip: the design's partner-logo row, filled with JM's H.S.C toppers */
.logo--topper { font-size: .92em; font-weight: 500; letter-spacing: -0.01em; }
.logo--topper svg { height: .95em; margin-right: .05em; }
.logo--topic { font-size: .92em; font-weight: 600; letter-spacing: -0.01em; }
.logo--topic svg { height: .95em; margin-right: .1em; }
.logo--topper b { font-family: var(--head); font-weight: 600; margin-left: .2em; color: var(--ink); }

/* ==========================================================
   RESULTS
   ========================================================== */
.results { background: var(--bg-soft); padding: 84px 0 86px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.section-head__aside { width: 340px; font-size: 18px; line-height: 1.25; color: var(--ink-2); margin-right: 26px; padding-bottom: 6px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  min-height: 410px;
  padding: 28px 28px 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, #fff 30%, #f1f6ff 55%, #c8dbff 100%);
  opacity: 0; transition: opacity .45s ease;
}
.card.is-active::before { opacity: 1; }
.card .icon { margin-bottom: auto; }
.card__title {
  font-family: var(--head); font-weight: 500;
  font-size: clamp(22px, 2vw, 29px); line-height: 1.38; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.card__text { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.25; color: var(--muted); max-width: 350px; }

/* ==========================================================
   ABOUT + SERVICE
   ========================================================== */
.about-service {
  background: linear-gradient(180deg, #fff 0%, #fff 56%, #f1f6fe 62%, #cfe1ff 72%, #9cc3fe 84%, #69a2fd 94%, #5c9bfd 100%);
}
.about { padding: 78px 0 92px; }
.about__grid { display: grid; grid-template-columns: 1fr 560px; align-items: center; gap: 60px; }
.about__text { padding-bottom: 40px; }
.about .h2 { margin-bottom: 52px; }
.about__lead { font-family: var(--head); font-size: 29px; line-height: 1.34; font-weight: 500; letter-spacing: -0.02em; max-width: 510px; margin-bottom: 22px; }
.about__body { font-size: 18px; line-height: 1.45; color: var(--muted); max-width: 545px; }
.about__more .about__body { margin-top: 14px; }
.about__more { animation: storyIn .4s ease both; }
@keyframes storyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.about .btn { margin-top: 44px; }
.about__photo { border-radius: 18px; overflow: hidden; aspect-ratio: 560 / 672; background: #d5dadd; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.service { padding: 0 0 78px; }
.service__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 88px; }
.service__aside { width: 470px; padding-top: 70px; margin-right: 30px; }
.service__aside p { font-size: 18px; line-height: 1.45; color: var(--muted); margin-bottom: 44px; }
.cards--service .card { min-height: 432px; padding-bottom: 30px; }
.card--service .card__title { margin-bottom: 16px; }
.card--service .card__text { min-height: 66px; }
.card__link {
  margin-top: 36px; align-self: flex-start;
  font-size: 18px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.card__link:hover { color: var(--blue-deep); }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  padding: 86px 0 84px;
  background: #f8f8f8;
}
.testimonials .h2 { margin-bottom: 64px; }
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px;
}
.testi-grid .feature { grid-column: 2; grid-row: 1 / span 2; }
.testi-grid > .q1 { grid-column: 1; grid-row: 1; }
.testi-grid > .q2 { grid-column: 1; grid-row: 2; }
.testi-grid > .q3 { grid-column: 3; grid-row: 1; }
.testi-grid > .q4 { grid-column: 3; grid-row: 2; }

.quote {
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  padding: 24px 22px 30px 22px;
  box-shadow: var(--shadow-card);
  min-height: 257px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.quote:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17,24,39,.03), 0 16px 40px rgba(31,64,140,.08); }
.quote__who {
  display: flex; align-items: center; gap: 22px;
  padding: 0 0 18px; margin: 0 0 26px -2px;
  border-bottom: 1.5px solid var(--line);
}
.quote__who img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.quote__initials {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, var(--blue)); color: #fff;
  font-family: var(--head); font-size: 18px; font-weight: 600; letter-spacing: .02em;
}
.quote__initials--medal { background: linear-gradient(180deg, #5b8ffb 0%, #3a6ef3 100%); box-shadow: 0 8px 18px -6px rgba(58, 110, 243, .5); }
.quote__initials--medal svg { width: 24px; height: 24px; fill: #fff; color: #fff; }
.toppers li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; font-size: 17px; color: var(--ink-2); letter-spacing: -0.01em;
}
.toppers li + li { border-top: 1px dashed var(--line); }
.toppers li span { flex: 1; }
.toppers li small { font-size: 13px; color: #7b818b; }
.toppers li b { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); min-width: 3.2ch; text-align: right; }
.quote__who strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.quote__who small { display: block; font-size: 13px; color: #7b818b; margin-top: 7px; }
.quote blockquote { font-size: 18.8px; line-height: 1.25; color: var(--ink-2); letter-spacing: -0.01em; }

.feature {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 26px 34px;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.feature__badge {
  position: absolute; top: 24px; right: 22px;
  background: var(--ink); color: #fff;
  font-size: 10px; padding: 7px 12px; border-radius: 999px; letter-spacing: -0.01em;
}
/* the design's featured client photo becomes JM's 5.0 Google rating */
.feature__rating {
  width: 100%; height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(214, 228, 252, .7), rgba(214, 228, 252, 0) 70%);
}
.feature__score { font-family: var(--head); font-weight: 500; font-size: 112px; line-height: .9; letter-spacing: -0.05em; color: var(--ink); }
.feature__stars { display: flex; gap: 4px; }
.feature__stars svg { width: 26px; height: 26px; fill: var(--blue); }
.feature__source { font-size: 15px; color: #7b818b; }
.contents li { font-size: 15.5px; line-height: 1.35; }
.contents li b { font-size: 16px; }
.feature__rating--book { height: 270px; }
.feature__book { height: 100%; width: auto; filter: drop-shadow(0 18px 22px rgba(16, 38, 92, .28)); }
.feature__quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 15px; color: #7b818b; }
.feature__quote {
  position: relative;
  text-align: center; font-size: 19.5px; line-height: 1.25; color: var(--ink-2);
  max-width: 360px; margin-top: 12px; letter-spacing: -0.01em;
}
.feature__mark { font-family: var(--head); font-size: 34px; line-height: 0; vertical-align: -10px; margin-right: 2px; }
.feature__stats { display: flex; width: 100%; margin-top: auto; padding-top: 34px; }
.feature__stats div { flex: 1; padding-left: 6px; }
.feature__stats strong { display: block; font-family: var(--head); font-weight: 500; font-size: 42px; letter-spacing: -0.03em; line-height: 1; }
.feature__stats span { display: block; font-size: 18px; color: var(--ink-2); margin-top: 14px; letter-spacing: -0.01em; }

/* ==========================================================
   CTA + FOOTER (.closing holds the one background they share)
   ========================================================== */
.closing { background: #fff; }
.cta { padding: 72px 0 40px; }
.cta__card {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 500px;
  padding: 70px 60px;
  border-radius: 24px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(160, 190, 245, .45);
  /* soft blue glow that spreads under the card, as in the design */
  box-shadow:
    0 2px 6px rgba(40, 90, 200, .04),
    0 120px 180px -30px rgba(60, 120, 240, .17);
}
.h2--cta { font-size: clamp(44px, 5.95vw, 85px); line-height: 1.08; margin-bottom: 28px; }
.cta__text p { font-size: 19px; line-height: 1.37; color: var(--muted); max-width: 590px; margin-bottom: 52px; }
.cta__text .cta__alt { margin: 22px 0 0; max-width: 470px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cta__alt a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cta__photo { width: 302px; height: 358px; object-fit: cover; border-radius: 16px; flex: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding-top: 46px;
  overflow: hidden;
}
.footer__top { display: flex; align-items: center; justify-content: space-between; }
.footer__nav { display: flex; gap: 70px; }
.footer__nav a { font-size: 17px; text-transform: uppercase; color: #5b6069; letter-spacing: .01em; transition: color .2s; }
.footer__nav a:hover { color: var(--ink); }
.footer__mail { display: flex; align-items: center; gap: 0; background: #f2f4f8; border-radius: 999px; padding: 6px 6px 6px 26px; }
.footer__mail a { font-size: 18px; color: var(--ink-2); margin-right: 26px; }
.footer__copy { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .2s; }
.footer__copy:hover { transform: scale(1.06); }
.footer__copy svg { width: 18px; height: 18px; fill: #fff; }

.footer__word {
  margin-top: 70px;
  padding-left: calc(max(var(--gutter), (100vw - 1280px) / 2) - 0.06em);
  font-family: var(--head); font-weight: 600;
  font-size: clamp(110px, 25vw, 360px);
  line-height: .82; letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
}
.footer__word b { font-weight: 600; color: #171b21; }
.footer__word i { font-style: normal; color: #ececed; transition: color .6s ease; }
.footer__word:hover i { color: #dfe8fb; }

.footer__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-top: 46px; padding-top: 22px; padding-bottom: 96px;
  position: relative;
}
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: #d9dce2; }
.footer__bottom p { font-size: 16px; color: #4a4f57; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--blue); color: #fff; }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__legal { justify-self: end; display: flex; gap: 22px; font-size: 16px; color: #4a4f57; }
.footer__legal a:hover { color: var(--ink); }

/* ==========================================================
   WHATSAPP BUTTON
   ========================================================== */
.wa-float {
  position: fixed; z-index: 90;
  right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .16), 0 2px 6px rgba(17, 24, 39, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float svg { width: 34px; height: 34px; fill: currentColor; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(17, 24, 39, .2), 0 3px 8px rgba(17, 24, 39, .1); }
.wa-float:active { transform: scale(.97); }

/* ==========================================================
   MODAL + TOAST
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 20, 40, .45); backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.modal__panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 24px; padding: 40px;
  box-shadow: 0 40px 100px -20px rgba(20, 50, 130, .35);
  animation: panelIn .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: #f2f4f8; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.modal__title { font-family: var(--head); font-weight: 500; font-size: 32px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 26px; }
.book-form .eyebrow { margin-bottom: 8px; }

.chips { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips legend small { color: #8a9099; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid #dfe3ea; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.field small { color: #8a9099; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1px solid #dfe3ea; background: #fafbfd;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,124,248,.15); background: #fff; }
.field em, .chips em { display: none; font-style: normal; font-size: 13px; color: #d23c3c; margin-top: 6px; }
.chips em { flex-basis: 100%; }
.chips.is-invalid em { display: block; }
.chips.is-invalid span { border-color: #e9a3a3; }
.chips--compact { gap: 6px; }
.chips--compact span { padding: 8px 13px; min-width: 50px; text-align: center; }
.book-note { margin-top: 12px; text-align: center; font-size: 13px; color: #8a9099; }
.about__link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.field.is-invalid input { border-color: #d23c3c; }
.field.is-invalid em { display: block; }
.book-form .btn { margin-top: 8px; }
.book-done { text-align: left; }
.book-done p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: -12px 0 28px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; font-size: 14px;
  padding: 12px 20px; border-radius: 999px;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }


/* ==========================================================
   RESPONSIVE
   ≤1280 small desktop · ≤1023 tablet · ≤767 phone.
   The hero uses the stacked mobile design on phones and on
   portrait tablets (taller than wide); landscape tablets keep
   the desktop composition, scaled to the viewport.
   ========================================================== */

/* ---------- small desktop ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  .hero__clients { left: auto; right: var(--gutter); }
  .about__grid { grid-template-columns: 1fr 46%; }
  .cta__card { padding: 56px 64px; }
  .footer__nav { gap: 40px; }
}

/* ---------- tablet + phone ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 32px; }

  /* desktop hero composition on landscape tablets */
  .hero__portrait { transform: translateX(-42%); }
  .hero__side { width: 340px; }
  .hero__side p { font-size: 16px; }

  .logos__row { height: 96px; }

  .results { padding: 72px 0; }
  .section-head { gap: 32px; margin-bottom: 40px; }
  .section-head__aside { width: 300px; margin-right: 0; font-size: 16px; line-height: 1.35; }
  .cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card { min-height: 340px; padding: 26px; }
  .card__title { font-size: 24px; }
  .card__text { font-size: 16px; line-height: 1.35; }

  .about { padding: 72px 0; }
  .about__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about__text { padding-bottom: 0; }
  .about .h2 { margin-bottom: 32px; }
  .about__lead { font-size: 22px; }
  .about__body { font-size: 16px; }
  .about .btn { margin-top: 32px; }

  .service { padding-bottom: 64px; }
  .service__head { flex-direction: column; margin-bottom: 48px; }
  .service__aside { width: auto; max-width: 560px; padding-top: 24px; margin-right: 0; }
  .service__aside p { font-size: 16px; margin-bottom: 28px; }
  .cards--service .card { min-height: 360px; }
  .card--service .card__text { min-height: 0; }
  .card__link { margin-top: 24px; font-size: 16px; }

  .testimonials { padding: 72px 0; }
  .testimonials .h2 { margin-bottom: 44px; }
  .testi-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .testi-grid .feature { grid-column: 1 / -1; grid-row: 1; }
  .testi-grid > .q1 { grid-column: 1; grid-row: 2; }
  .testi-grid > .q2 { grid-column: 2; grid-row: 2; }
  .testi-grid > .q3 { grid-column: 1; grid-row: 3; }
  .testi-grid > .q4 { grid-column: 2; grid-row: 3; }
  .quote { min-height: 0; }
  .quote blockquote { font-size: 17px; line-height: 1.35; }

  .cta { padding-top: 64px; }
  .cta__card { padding: 48px; gap: 32px; min-height: 0; }
  .h2--cta { font-size: clamp(34px, 6vw, 60px); }
  .cta__text p { font-size: 17px; margin-bottom: 36px; }
  .cta__photo { width: 250px; height: 296px; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__nav { gap: 32px; }
  .footer__nav a { font-size: 15px; }
  .footer__word { margin-top: 56px; }
  .footer__bottom { grid-template-columns: 1fr auto; row-gap: 20px; padding-bottom: 64px; }
  .footer__social { grid-column: 1 / -1; grid-row: 1; }
  .footer__bottom p, .footer__legal { font-size: 15px; }
}

/* ---------- tablet only ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* the odd card out spans the row: title on the left, text on the right */
  .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1; min-height: 0;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
    grid-template-areas: "icon icon" "title text" "title link";
    align-items: end;
  }
  .cards > .card:last-child:nth-child(odd) .icon { grid-area: icon; margin-bottom: 56px; }
  .cards > .card:last-child:nth-child(odd) .card__title { grid-area: title; margin: 0; }
  .cards > .card:last-child:nth-child(odd) .card__text { grid-area: text; }
  .cards > .card:last-child:nth-child(odd) .card__link { grid-area: link; }

  /* featured story lies on its side: photo left, quote and numbers right */
  .feature {
    display: grid; grid-template-columns: minmax(0, 40%) 1fr;
    grid-template-areas: "img quote" "img stats";
    column-gap: 28px; align-items: center;
    padding: 48px 32px 32px;
  }
  .feature__rating { grid-area: img; height: 100%; min-height: 240px; }
  .feature__quote { grid-area: quote; align-self: end; text-align: left; margin: 0; max-width: none; }
  .feature__stats { grid-area: stats; align-self: start; margin-top: 0; padding-top: 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --gutter: 18px; }

  .nav { height: 64px; }
  .nav__logo { font-size: 16px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 4.5px;
    width: 44px; height: 44px; margin-right: -13px;
    position: relative; z-index: 3;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .2s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 58px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 0; padding: 8px;
    background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(20,50,130,.18);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { display: block; padding: 14px 16px; font-size: 16px; }
  .nav__links a::after { display: none; }

  .logos__row { height: auto; padding: 14px var(--gutter); gap: 8px; font-size: 2.85vw; }

  .h2 { font-size: clamp(28px, 7.9vw, 38px); line-height: 1.08; }
  .eyebrow { font-size: 14px; margin-bottom: 10px; }
  .icon { width: 32px; height: 32px; }
  .icon svg { width: 15px; height: 15px; }

  .results { padding: 48px 0 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .section-head__aside { width: auto; max-width: 340px; padding: 0; font-size: 15px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card, .cards--service .card { min-height: 0; padding: 22px 22px 26px; border-radius: 18px; }
  .card .icon { margin-bottom: 54px; }
  .card__title { font-size: 21px; line-height: 1.6; margin-bottom: 10px; }
  .card__text { font-size: 15px; line-height: 1.45; }

  .about { padding: 56px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about .h2 { margin-bottom: 24px; }
  .about__lead { font-size: 20px; margin-bottom: 14px; }
  .about__body { font-size: 15px; }
  .about .btn { margin-top: 28px; }

  .service { padding-bottom: 56px; }
  .service__head { margin-bottom: 36px; }
  .service__aside { padding-top: 18px; }
  .service__aside p { font-size: 15px; margin-bottom: 26px; }
  .card__link { margin-top: 22px; font-size: 15px; }

  .testimonials { padding: 56px 0; }
  .testimonials .h2 { margin-bottom: 32px; }
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }
  .testi-grid .feature, .testi-grid > .quote { grid-column: 1; grid-row: auto; }
  .testi-grid .feature { order: -1; padding: 56px 20px 26px; }
  .feature__rating { height: 190px; }
  .feature__score { font-size: 84px; }
  .feature__stars svg { width: 22px; height: 22px; }
  .feature__quote { font-size: 17px; margin-top: 10px; }
  .feature__stats { padding-top: 26px; }
  .feature__stats strong { font-size: 34px; }
  .feature__stats span { font-size: 15px; margin-top: 10px; }
  .quote { padding: 20px 20px 24px; }
  .quote__who { gap: 14px; margin-bottom: 18px; padding-bottom: 14px; }
  .quote__who img, .quote__initials { width: 46px; height: 46px; }
  .quote__initials { font-size: 15px; }
  .toppers li { font-size: 15px; }
  .toppers li b { font-size: 17px; }
  .quote blockquote { font-size: 16px; line-height: 1.4; }

  .cta { padding: 48px 0 32px; }
  .cta__card { flex-direction: column-reverse; align-items: stretch; gap: 26px; padding: 16px 16px 28px; border-radius: 20px; }
  .cta__photo { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-position: 72% 30%; border-radius: 14px; }
  .cta__photo--book { aspect-ratio: 1 / 1.1; object-position: 50% 60%; }
  .cta__text { padding: 0 4px; }
  .h2--cta { font-size: clamp(32px, 9.4vw, 44px); margin-bottom: 18px; }
  .cta__text p { font-size: 15px; margin-bottom: 28px; }
  .cta__text .cta__alt { font-size: 14px; margin-top: 18px; }

  .footer { padding-top: 32px; }
  .footer__top { gap: 22px; }
  .footer__nav { flex-wrap: wrap; gap: 12px 22px; }
  .footer__nav a { font-size: 14px; }
  .footer__mail { padding-left: 18px; max-width: 100%; }
  .footer__mail a { margin-right: 14px; font-size: 15px; }
  .footer__word { margin-top: 40px; font-size: 30vw; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: start; row-gap: 16px; margin-top: 28px; padding-bottom: 40px; }
  .footer__legal { justify-self: start; }
  .footer__bottom p, .footer__legal { font-size: 14px; }

  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  .wa-float svg { width: 30px; height: 30px; }

  .modal { padding: 10px; align-items: end; }
  .modal__panel { padding: 30px 20px 22px; border-radius: 22px; max-height: calc(100vh - 20px); }
  .modal__title { font-size: 26px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .logos__row { gap: 4px; }
  .hero__side .btn { padding-left: 18px; gap: 10px; font-size: 14px; }
  .hero__clients p { font-size: 10px; }
}

/* ---------- stacked hero (phone design; also portrait tablets) ---------- */
@media (max-width: 767px), (max-width: 1199px) and (max-aspect-ratio: 1/1) {
  .hero {
    height: auto;
    min-height: var(--hh);
    display: grid;
    grid-template-columns: var(--gutter) minmax(0, 1fr) auto var(--gutter);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "nav    nav    nav     nav"
      ".      title  title   ."
      ".      para   para    ."
      ".      btn    clients ."
      "visual visual visual  visual";
    background: linear-gradient(90deg, #f4f8fe 0%, #f9fbff 60%, #fdfeff 100%);
  }
  .nav { grid-area: nav; width: 100%; }
  .hero__content, .hero__side { display: contents; }

  .hero__title {
    grid-area: title;
    margin-top: clamp(6px, 2.2vw, 28px);
    color: var(--ink);
    font-size: clamp(36px, 11vw, 124px);
    line-height: 1.06; letter-spacing: -0.035em;
  }
  .hero__title .br-d, .hero__side .br-d { display: none; }
  .hero__side p {
    grid-area: para;
    margin-top: clamp(14px, 3.4vw, 30px);
    max-width: 34em;
    color: #5a606a;
    font-size: clamp(15px, 2.3vw, 20px); line-height: 1.45;
  }
  .hero__side .btn {
    grid-area: btn; justify-self: start; align-self: end;
    margin: clamp(22px, 5.4vw, 44px) 0 0;
    height: clamp(52px, 7vw, 60px);
    padding-left: clamp(20px, 3vw, 26px);
    font-size: clamp(15px, 2vw, 17px);
    background: var(--ink); color: #fff;
    box-shadow: 0 12px 26px -10px rgba(17, 20, 24, .45);
  }
  .hero__side .btn .btn__arrow { width: clamp(40px, 5.6vw, 46px); height: clamp(40px, 5.6vw, 46px); background: #fff; color: var(--ink); }

  .hero__clients {
    grid-area: clients; position: static; z-index: auto;
    align-self: end; justify-self: end; margin-left: 12px;
    display: flex; flex-direction: column; gap: clamp(6px, 1vw, 10px);
  }
  .hero__clients p { margin: 0; font-size: clamp(11px, 1.8vw, 15px); line-height: 1.35; }
  .avatars img, .avatars__more { width: clamp(26px, 4.4vw, 40px); height: clamp(26px, 4.4vw, 40px); border-width: 1.5px; }
  .avatars > * + * { margin-left: clamp(-10px, -1.6vw, -7px); }
  .avatars__more { font-size: clamp(7px, 1.15vw, 10px); }

  /* white → blue band under the text, with the portrait standing in it */
  .hero__visual {
    grid-area: visual; position: relative; inset: auto; z-index: 0;
    --ph: min(calc(100% - clamp(20px, 6vw, 48px)), 110vw);
    min-height: min(84vw, 520px);
    margin-top: clamp(10px, 2vw, 24px);
    background: linear-gradient(180deg, rgba(242,248,255,0) 0%, #f2f8ff 9%, #e6eefe 25%, #cddffb 40%, #aac8fd 56%, #75a7ff 72%, #4b8bfe 89%, #4285fe 100%);
  }
  .hero__portrait { height: var(--ph); transform: translateX(-50%); }
  .hero__ghost {
    top: auto; bottom: calc(var(--ph) * .57);
    font-size: 16vw; letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.3) 38%, rgba(40,64,120,.1) 58%, rgba(40,64,120,.15) 100%);
    -webkit-background-clip: text; background-clip: text;
  }
  .hero__portrait {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.6) 64%, rgba(0,0,0,.38) 84%, rgba(0,0,0,.28) 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.6) 64%, rgba(0,0,0,.38) 84%, rgba(0,0,0,.28) 100%);
  }
  .hero__tint { background: linear-gradient(180deg, rgba(64,128,255,0) 0%, rgba(64,128,255,0) 52%, rgba(64,128,255,.35) 70%, rgba(64,128,255,.4) 86%, rgba(64,128,255,.45) 100%); }
}

@media (max-width: 767px), (max-width: 1199px) and (max-aspect-ratio: 1/1) {
  .hero__book {
    left: 50%; top: auto; bottom: clamp(18px, 5%, 44px);
    height: min(calc(100% - clamp(44px, 10vw, 96px)), 105vw);
    transform: translateX(-50%);
  }
  /* the word sits higher than the portrait page's, so it reads above the book */
  .hero--book .hero__ghost { top: 2%; bottom: auto; font-size: 19vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* hero height: small-viewport units keep phones' browser bars from cutting it */
@supports (height: 100svh) { .hero { --hh: max(100svh, 560px); } }
@media (max-width: 767px) {
  .hero { --hh: 100vh; }
  @supports (height: 100svh) { .hero { --hh: 100svh; } }
}

/* ==========================================================
   CHECKOUT (chintan.html)
   ========================================================== */
.buy-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.buy-head__book { width: 64px; height: auto; flex: none; filter: drop-shadow(0 10px 14px rgba(16, 38, 92, .25)); }
.buy-head .modal__title { font-size: 24px; margin-bottom: 6px; }
.buy-head .eyebrow { margin-bottom: 6px; }
.buy-head__price { font-family: var(--head); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.buy-head__price span { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 4px; letter-spacing: 0; }

.field > .phone-input { display: flex; align-items: stretch; margin-bottom: 0; font-size: inherit; color: inherit; }
.phone-input__cc {
  display: grid; place-items: center; padding: 0 14px;
  border: 1px solid #dfe3ea; border-right: 0; border-radius: 12px 0 0 12px;
  background: #f2f4f8; font-size: 15px; color: var(--ink-2);
}
.field .phone-input input { border-radius: 0 12px 12px 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consent__err { display: none; font-style: normal; font-size: 13px; color: #d23c3c; margin: 0 0 6px 30px; }
.consent__err.is-on { display: block; }

.buy-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: #fdeeee; color: #a32a2a; }
.buy-msg[data-tone="ok"] { background: #ebf7ef; color: #1d6b3a; }
.buy-alt { margin-top: 10px; text-align: center; }
.linkish { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.linkish:hover { color: var(--blue-deep); }
.buy-alt .linkish { font-size: 14px; }

.btn.is-busy { opacity: .85; cursor: progress; }
.btn.is-busy .btn__arrow svg { animation: spin 1s linear infinite; }
.btn:disabled { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.buy-done__lead { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: -10px 0 24px; }
.buy-done__note { font-size: 13px; line-height: 1.55; color: #7b818b; margin-top: 14px; }
.buy-done__ref { font-size: 13px; color: #7b818b; margin-top: 10px; }
.buy-done__ref b { color: var(--ink); letter-spacing: .02em; }

.footer__legal { flex-wrap: wrap; row-gap: 8px; }

/* ==========================================================
   POLICY PAGES (generated by tools/build_pages.py)
   ========================================================== */
.page-top { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.legal.container { max-width: calc(840px + var(--gutter) * 2); padding-top: 64px; padding-bottom: 88px; }
.legal__title { font-family: var(--head); font-weight: 500; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal__date { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-family: var(--head); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.legal__card { background: #fafbfd; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.legal__card h2 { margin-top: 0; font-size: 20px; }
@media (max-width: 767px) {
  .legal.container { padding-top: 40px; padding-bottom: 56px; }
  .legal__cards { grid-template-columns: 1fr; }
  .legal h2 { font-size: 21px; }
  .legal p, .legal li { font-size: 15.5px; }
}
