/* =========================================================
   SCHOOL ADMISSIONS LANDING — SHARED STYLES
   Each page sets its own palette tokens in a <style> block;
   the values below are only fallbacks.
   ========================================================= */
:root {
  --brand: #1f4e79; --brand-ink: #12304b; --on-brand: #fff;
  --accent: #f2b33d; --accent-ink: #8a5a00; --on-accent: #12304b;
  --soft: #f1f5f9; --hero-bg: var(--soft);
  --text: #1f2933; --muted: #52606d; --foot-bg: #12304b;
  --wa: #1fa855; --wa-ink: #fff;
  --line: #e6e1ec; --danger: #c0392b;
  --radius: 22px; --shadow: 0 10px 30px rgba(20, 10, 40, .08);
  --font-head: Georgia, serif; --font-body: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-head); color: var(--brand-ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; margin-bottom: .8rem;
  font: 800 .8rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.5em; border: 2px solid transparent; border-radius: 999px;
  font: 800 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa::before {
  content: ""; width: 1.15em; height: 1.15em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .1-3.3-.8-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .1-3.3-.8-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-small { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-ink); }
.brandmark img { height: 44px; width: auto; }
.brandmark .name { font: 700 1.15rem/1.1 var(--font-head); }
.brandmark .name small { display: block; margin-top: 3px; font: 600 .78rem/1.2 var(--font-body); color: var(--muted); letter-spacing: .02em; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.top-phone { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); padding-top: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.4rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35em .95em; font-weight: 700; font-size: .9rem; color: var(--brand-ink);
}
.hero-media { position: relative; }
.hero-media .slot { aspect-ratio: 4 / 5; border-radius: 32px; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -18px; bottom: 24px; max-width: 270px;
  background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
  font-size: .9rem; color: var(--muted); border-left: 5px solid var(--accent);
}
.hero-badge strong { display: block; color: var(--brand-ink); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 2px; }

/* ---------- Photo slots ---------- */
.slot {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.35) 14px 28px),
    var(--soft);
  border: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent);
}
.slot::before {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  padding: 16px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--brand);
  opacity: .75;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.has-img { border: 0; background: var(--soft); }
.slot.has-img::before { content: none; }
.slot-wide { aspect-ratio: 16 / 9; margin-top: 1.6rem; }

/* ---------- Register ---------- */
.register { background: #fff; }
.register-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.assure { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.assure li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.assure .ic {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--soft); border-radius: 14px; font-size: 1.25rem;
}
.assure b { display: block; color: var(--brand-ink); }

.form-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 28px;
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow);
  border-top: 6px solid var(--brand);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: .25em; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fgrid .full { grid-column: 1 / -1; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 800; font-size: .92rem; color: var(--brand-ink); margin-bottom: 6px; padding: 0; }
.opt { font-weight: 600; color: var(--muted); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7em .9em;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #d6cfe0; border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.err { display: none; margin-top: 6px; color: var(--danger); font-size: .85rem; font-weight: 700; }
.field.invalid .err { display: block; }
.field.invalid input:not([type=radio]):not([type=checkbox]), .field.invalid select { border-color: var(--danger); }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; height: 100%; padding: 12px 14px; border: 1.5px solid #d6cfe0; border-radius: 14px;
  font-weight: 800; color: var(--brand-ink); transition: border-color .15s, background-color .15s;
}
.choice small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); }
.choice input:checked + span { border-color: var(--brand); background: var(--soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field.invalid .choice span { border-color: var(--danger); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; color: var(--muted) !important; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card button[type=submit] { width: 100%; min-height: 54px; font-size: 1.08rem; }
.form-note { margin: .8rem 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
.form-error {
  margin: 0 0 1rem; padding: 12px 14px; border-radius: 12px;
  background: #fdecea; color: #8e2a1f; font-weight: 700; font-size: .92rem;
}
.thanks { display: none; text-align: center; padding: 12px 0; }
.form-card.sent form { display: none; }
.form-card.sent .thanks { display: block; }
.thanks .big { font-size: 3rem; line-height: 1; margin-bottom: .6rem; }
.thanks p { color: var(--muted); }

/* ---------- Worries ---------- */
.hear { background: var(--soft); }
.hear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.2rem; }
.worry { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.worry .q { font: 700 1.15rem/1.3 var(--font-head); color: var(--brand-ink); margin-bottom: .7rem; }
.worry .q::before { content: "“"; display: block; font-size: 2.4rem; line-height: .7; color: var(--accent); }
.worry p { margin: 0; color: var(--muted); }

/* ---------- Feature cards ---------- */
.features { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; margin-top: 2.2rem; }
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature .slot { border-radius: 0; border: 0; }
.feature .body { padding: 20px 22px 24px; }
.feature .body p { margin: 0; color: var(--muted); font-size: .96rem; }
.feature .tag {
  display: inline-block; margin-bottom: .6rem; padding: 3px 10px; border-radius: 999px;
  background: var(--soft); color: var(--brand); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Split + mosaic ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 38px; color: var(--muted); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .85rem;
}
.ticks strong { color: var(--brand-ink); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.mosaic .slot { aspect-ratio: auto; min-height: 180px; }
.mosaic .slot:first-child { grid-row: 1 / 3; min-height: 380px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2.2rem; counter-reset: step; }
.steps.next-steps { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step .time {
  display: inline-block; margin-bottom: .7rem; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .8rem;
}
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 2.2rem auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 800; color: var(--brand-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Band ---------- */
.band { background: var(--brand); color: var(--on-brand); }
.band .lead { color: color-mix(in srgb, var(--on-brand) 85%, transparent); }
.promise { font: 700 clamp(1.4rem, 3.4vw, 2.1rem)/1.3 var(--font-head); max-width: 30ch; margin: 0 auto 1.6rem; }

/* ---------- Thank-you page ---------- */
.thanks-hero .tick-badge {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1.2rem;
  border-radius: 50%; background: var(--wa); color: #fff; font-size: 2rem; font-weight: 800;
  box-shadow: 0 8px 22px rgba(31,168,85,.35);
}

/* ---------- Footer ---------- */
.foot { background: var(--foot-bg); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.foot h3 { color: #fff; font-size: 1.1rem; }
.foot a { color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.foot .small { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hear-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .register-grid, .split { grid-template-columns: 1fr; }
  .hero-media .slot { aspect-ratio: 4 / 3; }
  .hero-badge { left: 12px; bottom: -18px; }
  .hero-media { margin-bottom: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  /* Paid traffic lands on phones: put the form above the reassurance copy. */
  .form-first .register-grid .form-card { order: -1; }
  .form-first .register-aside .slot-wide { display: none; }
}
@media (max-width: 720px) {
  body:not([data-page=thanks]) { padding-bottom: 76px; }
  .top-phone { display: none; }
  .fgrid, .steps, .steps.next-steps, .feature-grid { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr; }
  .mosaic .slot:first-child { min-height: 280px; }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    transition: transform .2s ease;
  }
  .sticky-cta.away { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}

.sticky-cta:has(> [hidden]) { grid-template-columns: 1fr; }

/* ---------- Form-first ad landing ---------- */
.brandbar { height: 6px; background: var(--brandbar, var(--brand)); }
.lp-hero { background: var(--hero-bg); padding: clamp(22px, 4vw, 40px) 0 6px; text-align: center; }
.lp-hero .eyebrow { margin-bottom: .4rem; }
.lp-hero h1 { font-size: clamp(1.55rem, 4.6vw, 2.4rem); margin: 0 0 .35em; }
.lp-hero p { margin: 0 auto; max-width: 54ch; color: var(--muted); }
.lp-form { background: var(--hero-bg); padding: 18px 0 clamp(40px, 6vw, 64px); }
.lp-form .form-card { max-width: 680px; margin: 0 auto; }
.lp-trust { list-style: none; padding: 0; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.lp-trust li::before { content: "✓ "; color: var(--brand); }
.foot-mini { background: var(--foot-bg); color: rgba(255,255,255,.82); text-align: center; padding: 22px 16px; font-size: .88rem; }
.foot-mini p { margin: 0 0 .3em; }
.foot-mini a { color: #fff; }
.label-like { display: block; font-weight: 800; font-size: .92rem; color: var(--brand-ink); margin-bottom: 6px; }
.fixed-date { margin: 0; min-height: 48px; display: flex; align-items: center; padding: 0 .9em; border-radius: 14px; background: var(--soft); font-weight: 800; color: var(--brand); }
body.lp { padding-bottom: 0; }
