/* ============================================================
   UnexpectED Education — Design System
   Style: Warm claymorphism (soft 3D, chunky, playful, trustworthy)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink:        #2a241d;
  --ink-soft:   #5b5147;
  --cream:      #fff9ef;
  --cream-2:    #fdf1df;
  --surface:    #ffffff;
  --amber:      #f6b829;
  --amber-deep: #eaa30f;
  --orange:     #ec7c2a;
  --orange-deep:#d96a18;
  --coral:      #ec6a47;

  /* Domain accents */
  --reading:    #e8623e;
  --reading-bg: #fdeae3;
  --math:       #f0a316;
  --math-bg:    #fdf0d6;
  --writing:    #2ba199;
  --writing-bg: #dcf2ef;

  /* Functional */
  --border:     #f0e3cf;
  --ring:       #ec7c2a;
  --error:      #d64545;
  --success:    #2f9e6e;

  /* Type */
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows (clay: soft outer + light top highlight) */
  --shadow-sm: 0 4px 14px rgba(120, 80, 20, 0.08);
  --shadow-md: 0 14px 34px rgba(120, 80, 20, 0.12);
  --shadow-lg: 0 28px 60px rgba(120, 80, 20, 0.16);
  --shadow-clay: 0 12px 24px rgba(180,120,40,0.18), inset 0 2px 0 rgba(255,255,255,0.55);

  /* Layout */
  --container: 1180px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--cream-2);
  padding: 7px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
}
.eyebrow svg { width: 16px; height: 16px; }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 18px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }

.text-grad {
  background: linear-gradient(120deg, var(--orange) 0%, var(--amber-deep) 60%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 15px 28px; border-radius: var(--r-pill);
  min-height: 52px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: linear-gradient(180deg, #f4912f, var(--orange-deep));
  color: #fff;
  box-shadow: 0 10px 22px rgba(217,106,24,.34), inset 0 2px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(217,106,24,.42), inset 0 2px 0 rgba(255,255,255,.35); }
.btn-primary:active { transform: translateY(-1px) scale(.99); }

.btn-ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-amber {
  background: linear-gradient(180deg, #fcc745, var(--amber-deep));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(234,163,15,.32), inset 0 2px 0 rgba(255,255,255,.5);
}
.btn-amber:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(234,163,15,.4), inset 0 2px 0 rgba(255,255,255,.5); }

.btn-lg { padding: 18px 36px; font-size: 1.12rem; min-height: 60px; }
.btn-block { width: 100%; }

.btn-play { width: 56px; height: 56px; border-radius: 50%; padding: 0; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(255,249,239,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(120,80,20,.08);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 58px; width: auto; max-width: none; flex-shrink: 0; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  color: var(--ink-soft); padding: 9px 13px; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.nav-toggle span { display: block; width: 22px; height: 2.4px; background: var(--ink); border-radius: 2px; margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 60px; position: relative; overflow: hidden; }
.hero-bg-blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 800; line-height: 1.18; }
.hero h1 .wavy { position: relative; white-space: nowrap; display: inline-block; line-height: 1; }
.hero h1 .wavy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='12' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C 40 2, 60 2, 100 7 S 160 12, 198 5' stroke='%23ec7c2a' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  transform: scaleX(0); transform-origin: left; animation: underline 1s var(--ease) .7s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-actions .watch { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.hero-actions .watch .btn-play { background: var(--surface); box-shadow: var(--shadow-md); color: var(--orange); }
.hero-actions .watch:hover .btn-play { transform: scale(1.08); }

.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust .badge { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: .96rem; }
.hero-trust .badge svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; }

/* Hero artwork */
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-card-main {
  position: absolute; inset: 8% 6%;
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 3px 0 rgba(255,255,255,.7);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.float-chip {
  position: absolute; background: var(--surface);
  border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--shadow-md), inset 0 2px 0 rgba(255,255,255,.6);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  z-index: 3;
}
.float-chip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.float-chip .ic svg { width: 22px; height: 22px; }
.float-chip small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); font-size: .78rem; }

.float-1 { top: 4%; left: -4%; animation: floaty 6s ease-in-out infinite; }
.float-2 { bottom: 12%; left: -6%; animation: floaty 7s ease-in-out infinite 1s; }
.float-3 { top: 16%; right: -5%; animation: floaty 6.5s ease-in-out infinite .5s; }
.float-4 { bottom: 4%; right: 2%; animation: floaty 7.5s ease-in-out infinite 1.4s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.blob-spin { animation: spin 28s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee / trust strip ---------- */
.trust-strip { background: var(--ink); color: #fff9ef; padding: 18px 0; overflow: hidden; }
.marquee { display: flex; gap: 56px; white-space: nowrap; animation: scroll-x 28s linear infinite; width: max-content; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; opacity: .92; }
.marquee span svg { width: 20px; height: 20px; color: var(--amber); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border); text-align: center;
}
.stat-card .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem,4vw,2.8rem); line-height: 1; }
.stat-card .lbl { color: var(--ink-soft); font-weight: 600; margin-top: 8px; font-size: .98rem; }

/* ---------- Cards / features ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 34px 30px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-card .ic {
  width: 62px; height: 62px; border-radius: var(--r-md); display: grid; place-items: center;
  margin-bottom: 22px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), var(--shadow-sm);
}
.feature-card .ic svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); }

.ic-amber { background: var(--math-bg); color: var(--math); }
.ic-coral { background: var(--reading-bg); color: var(--reading); }
.ic-teal { background: var(--writing-bg); color: var(--writing); }
.ic-orange { background: #fde6d3; color: var(--orange-deep); }

/* ---------- Approach / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-art {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--cream-2), #fff);
  box-shadow: var(--shadow-md); border: 1.5px solid var(--border);
  aspect-ratio: 4/3; display: grid; place-items: center;
}
.check-list { display: grid; gap: 16px; margin-top: 26px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .chk { width: 30px; height: 30px; border-radius: 9px; background: var(--writing-bg); color: var(--writing); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.check-list .chk svg { width: 18px; height: 18px; }
.check-list strong { font-family: var(--font-head); font-weight: 600; display: block; }
.check-list span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Leveled system steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step {
  background: var(--surface); border-radius: var(--r-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border); position: relative;
}
.step .step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #f4912f, var(--orange-deep));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), var(--shadow-sm); margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Services list ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.svc {
  background: var(--surface); border-radius: var(--r-md); padding: 24px;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #f4d8b0; }
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.12rem; }
.svc p { color: var(--ink-soft); font-size: .95rem; flex-grow: 1; }
.svc .tag {
  align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  color: var(--orange-deep); background: var(--cream-2); padding: 5px 13px; border-radius: var(--r-pill);
  border: 1.4px solid var(--border);
}

/* ---------- About / Meet Sarah ---------- */
.about-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.about-copy { order: 1; }
.about-photo { position: relative; order: 2; }
.about-photo .frame {
  position: relative; background: none; border: none; box-shadow: none; overflow: visible;
  transition: transform .4s var(--ease);
}
.about-photo .frame:hover { transform: translateY(-6px); }
.about-photo .frame picture { display: block; width: 100%; }
.about-photo .frame img {
  width: 100%; height: auto; display: block; object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(58, 34, 8, .9))
    drop-shadow(0 0 16px rgba(45, 26, 6, .7))
    drop-shadow(0 0 30px rgba(240, 130, 40, .75))
    drop-shadow(0 0 52px rgba(248, 170, 45, .6))
    drop-shadow(0 0 80px rgba(250, 205, 70, .45))
    drop-shadow(0 22px 34px rgba(60, 38, 10, .34));
  animation: floaty 8s ease-in-out infinite;
}
.about-photo .blob { position: absolute; inset: 8% -6% 14% 10%; border-radius: 50%; background: radial-gradient(circle, var(--math-bg), transparent 68%); filter: blur(8px); opacity: .7; z-index: -1; }
.about-photo .award-chip {
  position: absolute; bottom: 18px; left: -22px;
  background: var(--surface); border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--shadow-md), inset 0 2px 0 rgba(255,255,255,.6); border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 12px; max-width: 320px;
  animation: floaty 6s ease-in-out infinite;
}
.about-photo .award-chip .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--math-bg); color: var(--math); display: grid; place-items: center; flex-shrink: 0; }
.about-photo .award-chip .ic svg { width: 24px; height: 24px; }
.about-photo .award-chip strong { font-family: var(--font-head); font-weight: 700; font-size: .95rem; display: block; line-height: 1.2; }
/* Alternating award names */
.award-rotator { position: relative; display: block; width: 218px; height: 1.2em; overflow: hidden; margin-top: 2px; }
.award-rotator span {
  position: absolute; inset: 0; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--orange-deep);
  opacity: 0; animation: awardSwap 7s infinite;
}
.award-rotator span:nth-child(2) { animation-delay: 3.5s; }
@keyframes awardSwap {
  0%   { opacity: 0; transform: translateY(7px); }
  5%   { opacity: 1; transform: translateY(0); }
  45%  { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0; transform: translateY(-7px); }
  100% { opacity: 0; transform: translateY(-7px); }
}
.cred-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.cred-chips .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 8px 16px; border-radius: var(--r-pill);
}
.cred-chips .chip svg { width: 17px; height: 17px; color: var(--orange-deep); }
.about-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Desktop: anchor Sarah flush to the page's right edge + bottom of the section */
@media (min-width: 1025px) {
  #about { position: relative; overflow: hidden; min-height: 700px; }
  #about .about-grid { display: block; }
  #about .about-copy { max-width: 560px; }
  #about .about-photo {
    position: absolute; right: 0; bottom: 0; margin: 0;
    width: clamp(360px, 36vw, 500px);
  }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote {
  background: var(--surface); border-radius: var(--r-lg); padding: 32px 30px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border); position: relative;
}
.quote .stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 14px; }
.quote .stars svg { width: 20px; height: 20px; }
.quote p { font-size: 1.05rem; color: var(--ink); margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; flex-shrink: 0; }
.quote .who strong { font-family: var(--font-head); display: block; }
.quote .who span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #f4912f, var(--orange-deep) 55%, var(--coral));
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  color: #fff; position: relative; overflow: hidden; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.94); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn-amber { color: var(--ink); }
.cta-band .deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.13); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border-radius: var(--r-md); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 9px; background: var(--cream-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .3s; }
.faq-q .pm svg { width: 18px; height: 18px; color: var(--orange-deep); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--orange); }
.faq-item.open .faq-q .pm svg { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #f3e7d4; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer .brand img { height: 60px; filter: brightness(0) invert(1); }
.footer .contact-list { display: grid; gap: 11px; margin-top: 16px; }
.footer .contact-list a, .footer .contact-list span { display: inline-flex; align-items: center; gap: 10px; color: #c9bda9; transition: color .2s; }
.footer .contact-list a:hover { color: var(--amber); }
.footer .contact-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber); }
.footer p { color: #c9bda9; margin-top: 16px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { color: #c9bda9; transition: color .2s; }
.footer ul a:hover { color: var(--amber); }
.footer .soc { display: flex; gap: 12px; margin-top: 18px; }
.footer .soc a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer .soc a:hover { background: var(--orange); transform: translateY(-3px); }
.footer .soc svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #a99d89; font-size: .92rem; }

/* ---------- Modal / Interest form ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(42,36,29,.55); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--cream); border-radius: var(--r-xl);
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); border: 1.5px solid var(--border);
  transform: translateY(24px) scale(.97); transition: transform .35s var(--ease);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head { padding: 30px 34px 0; position: relative; }
.modal-head h2 { font-size: 1.7rem; }
.modal-head p { color: var(--ink-soft); margin-top: 8px; }
.modal-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .2s, background .2s; }
.modal-close:hover { transform: rotate(90deg); background: var(--cream-2); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px 34px 34px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .96rem; }
.field label .req { color: var(--error); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.6px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 15px; width: 100%; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(236,124,42,.14);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--error); box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.field .err-msg { color: var(--error); font-size: .84rem; font-weight: 600; display: none; }
.field .err-msg.show { display: block; }

.form-note { font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.form-success {
  display: none; text-align: center; padding: 20px 6px;
}
.form-success.show { display: block; animation: pop .4s var(--ease); }
.form-success .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--writing-bg); color: var(--writing); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .tick svg { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.btn .spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: .7; }

/* ---------- Placement page ---------- */
.page-hero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 40px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 16px 0 14px; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--orange-deep); }

.howto { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 8px; }
.howto .step-mini { background: var(--surface); border-radius: var(--r-md); padding: 24px; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; }
.howto .num { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); color: var(--orange-deep); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.howto h3 { font-size: 1.08rem; margin-bottom: 4px; }
.howto p { color: var(--ink-soft); font-size: .94rem; }

.domain-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.domain-tab {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 12px 26px; border-radius: var(--r-pill); background: var(--surface);
  border: 1.6px solid var(--border); box-shadow: var(--shadow-sm); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s, box-shadow .2s, color .2s, border-color .2s;
}
.domain-tab svg { width: 20px; height: 20px; }
.domain-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.domain-tab.active { color: #fff; border-color: transparent; }
.domain-tab.active.reading { background: var(--reading); }
.domain-tab.active.math { background: var(--math); color: var(--ink); }
.domain-tab.active.writing { background: var(--writing); }

.domain-panel { display: none; animation: fadeUp .5s var(--ease); }
.domain-panel.active { display: block; }
.domain-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 22px 26px; border-radius: var(--r-lg); border: 1.5px solid var(--border); }
.domain-intro.reading { background: var(--reading-bg); }
.domain-intro.math { background: var(--math-bg); }
.domain-intro.writing { background: var(--writing-bg); }
.domain-intro .ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; background: var(--surface); }
.domain-intro .ic svg { width: 30px; height: 30px; }
.domain-intro h2 { font-size: 1.5rem; }
.domain-intro p { color: var(--ink-soft); }

.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.test-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 26px;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.test-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.test-card .lvl-badge { align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: 5px 13px; border-radius: var(--r-pill); }
.lvl-badge.reading { background: var(--reading-bg); color: var(--reading); }
.lvl-badge.math { background: var(--math-bg); color: var(--math); }
.lvl-badge.writing { background: var(--writing-bg); color: var(--writing); }
.test-card h3 { font-size: 1.2rem; }
.test-card .meta { display: flex; gap: 16px; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.test-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.test-card .meta svg { width: 16px; height: 16px; }
.test-card p { color: var(--ink-soft); font-size: .95rem; flex-grow: 1; }
.test-card .btn { margin-top: 4px; }
.test-card.placeholder { border-style: dashed; opacity: .85; }
.test-card.placeholder .btn { pointer-events: none; opacity: .5; }

/* Diagnostic package card (Writing tab) */
.pkg-card {
  display: grid; grid-template-columns: 1.45fr .9fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1.5px solid var(--border); background: var(--surface);
}
.pkg-info { padding: clamp(28px, 4vw, 46px); }
.pkg-info h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 14px 0 10px; }
.pkg-info > p { color: var(--ink-soft); margin-bottom: 24px; font-size: 1.05rem; }
.pkg-includes { display: grid; gap: 14px; }
.pkg-includes li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); }
.pkg-includes .chk { width: 27px; height: 27px; border-radius: 8px; background: var(--writing-bg); color: var(--writing); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.pkg-includes .chk svg { width: 16px; height: 16px; }
.pkg-includes strong { font-family: var(--font-head); font-weight: 700; }
.pkg-price {
  background: linear-gradient(160deg, #f4912f, var(--orange-deep) 70%, var(--coral));
  color: #fff; padding: clamp(28px, 4vw, 46px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.pkg-price .amt { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; }
.pkg-price .amt small { font-size: 1.4rem; font-weight: 700; vertical-align: super; margin-right: 2px; }
.pkg-price .per { opacity: .94; margin: 6px 0 26px; font-weight: 600; }
.pkg-price .btn-amber { color: var(--ink); }
.pkg-price .note { margin-top: 16px; font-size: .85rem; opacity: .9; }

.help-band { background: var(--cream-2); border-radius: var(--r-xl); padding: clamp(32px,5vw,52px); text-align: center; border: 1.5px solid var(--border); }
.help-band h2 { font-size: clamp(1.6rem,3.5vw,2.3rem); margin-bottom: 12px; }
.help-band p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; font-size: 1.08rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open { background: rgba(255,249,239,.97); backdrop-filter: blur(14px); box-shadow: var(--shadow-md); }
  .mobile-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--cream); box-shadow: var(--shadow-lg); border-bottom: 1.5px solid var(--border);
    padding: 20px; display: grid; gap: 6px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu a { font-family: var(--font-head); font-weight: 600; padding: 14px 16px; border-radius: var(--r-md); color: var(--ink); }
  .mobile-menu a:hover { background: var(--cream-2); }
  .mobile-menu .btn { margin-top: 8px; }
}
@media (min-width: 1025px) { .mobile-menu { display: none; } }
@media (max-width: 720px) {
  .cards-grid, .svc-grid, .quotes, .test-grid, .howto { grid-template-columns: 1fr; }
  .pkg-card { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
  body { font-size: 16px; }
}
@media (max-width: 460px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .float-chip { padding: 10px 13px; font-size: .85rem; }
  .float-1 { left: 0; } .float-2 { left: 0; } .float-3 { right: 0; } .float-4 { right: 0; }
  .modal-body, .modal-head { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Mobile performance: avoid GPU-heavy effects that crash iOS Safari on scroll ---------- */
@media (max-width: 1024px) {
  /* backdrop-filter blur is recomputed every scroll frame on iOS -> out-of-memory; use a near-opaque bg instead */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,249,239,.97); }
  .nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,249,239,.98); }
  .modal-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(42,36,29,.62); }
  /* the large animated multi-layer glow on Sarah is the biggest memory hog — simplify + stop animating it */
  .about-photo .frame img {
    animation: none;
    filter: drop-shadow(0 0 18px rgba(240,130,40,.5)) drop-shadow(0 14px 22px rgba(60,38,10,.3));
  }
  /* rotating, blurred decorative blobs and floaty layers — drop the continuous compositing work */
  .hero-bg-blob { display: none; }
  .blob-spin { animation: none; }
  .float-chip { animation: none; }
  .award-chip { animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .wavy::after { transform: scaleX(1); }
  .award-rotator { height: auto; }
  .award-rotator span { position: static; opacity: 1; transform: none; display: block; }
}
