/* Better Blueprint Solutions — site styles
   Palette from BBS Palette: navy #112C82, blue #1D60E1, light blue #EBF2FA, green #679436, lime #A5BE00 */

:root {
  --navy: #112C82;
  --navy-deep: #0B1D58;
  --blue: #1D60E1;
  --blue-soft: #D6E4FA;
  --sky: #EBF2FA;
  --green: #679436;
  --lime: #A5BE00;
  --ink: #18223F;
  --muted: #55607E;
  --line: rgba(17, 44, 130, 0.12);
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(17, 44, 130, 0.35);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Blueprint grid backdrop */
.grid-bg {
  background-color: var(--sky);
  background-image:
    linear-gradient(rgba(29, 96, 225, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 96, 225, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(29, 96, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 96, 225, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgba(29, 96, 225, .8); }
.btn-primary:hover { background: #164fc0; }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lime { background: var(--lime); color: var(--navy-deep); }
.btn-lime:hover { background: #b8d400; }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
h3 { font-size: 24px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.mark { background: linear-gradient(transparent 62%, rgba(165, 190, 0, .55) 62%); padding: 0 4px; }
.section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--green); flex: none; }

/* Sample plan card */
.plan-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 26px; position: relative;
}
.plan-card::after {
  content: "Example plan"; position: absolute; top: -13px; right: 22px;
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.route { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; font-size: 15px; }
.route .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); }
.route .dot.fill { background: var(--lime); border-color: var(--green); }
.route .dash { width: 38px; border-top: 2px dashed var(--blue); }
.gpa { text-align: right; }
.gpa small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.gpa strong { font-family: var(--serif); font-size: 28px; color: var(--blue); font-weight: 400; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.term { background: var(--sky); border-radius: 12px; padding: 14px 12px; }
.term h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin-bottom: 10px; }
.course { background: var(--white); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; border-left: 3px solid var(--blue); line-height: 1.35; }
.course:last-child { margin-bottom: 0; }
.course.ok { border-left-color: var(--green); }
.course.swap { border-left-color: var(--lime); background: #FAFCEB; }
.course em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.pain-list { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.pain-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.pain-list .num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); font-family: var(--serif); font-size: 20px;
  border: 1px solid var(--blue-soft);
}
.pain-list strong { display: block; color: var(--navy); font-size: 17px; }
.pain-list p { color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%;
  border-top: 2px dashed rgba(29, 96, 225, .35); z-index: 0;
}
.step { position: relative; z-index: 1; background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.step-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--sky);
}
.step:last-child .step-icon { background: var(--lime); color: var(--navy-deep); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--white); transition: border-color .2s, transform .2s; }
.service:hover { border-color: var(--blue); transform: translateY(-3px); }
.service .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.service h3 { font-size: 22px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15.5px; }

/* ---------- Stats band ---------- */
.band { position: relative; color: var(--white); overflow: hidden; }
.band-bg { position: absolute; inset: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 29, 88, .94) 30%, rgba(17, 44, 130, .72)); }
.band .wrap { position: relative; padding: 90px 0; }
.band h2 { color: var(--white); max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.stat { border-left: 3px solid var(--lime); padding-left: 20px; }
.stat strong { font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: 1; display: block; }
.stat span { color: rgba(255, 255, 255, .8); font-size: 16px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote p { font-size: 17px; color: var(--ink); flex: 1; }
.quote p::before { content: "\201C"; font-family: var(--serif); font-size: 54px; line-height: .6; color: var(--lime); display: block; margin-bottom: 10px; }
.quote footer { margin-top: 20px; font-weight: 700; color: var(--navy); font-size: 15px; }
.quote footer span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.quotes-empty {
  text-align: center; background: var(--white); border: 2px dashed var(--blue-soft);
  border-radius: 20px; padding: 46px 24px; max-width: 760px; margin-inline: auto;
}
.quotes-empty p { color: var(--muted); margin: 10px auto 22px; max-width: 520px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-weight: 700; color: var(--navy); font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 700px; }

/* ---------- CTA ---------- */
.cta-box {
  background: var(--navy); border-radius: 26px; padding: 64px 56px; color: var(--white);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-box > * { position: relative; }
.cta-box h2 { color: var(--white); }
.cta-box p { color: rgba(255,255,255,.8); margin-top: 12px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-actions a.mail { color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 64px 0 34px; margin-top: 100px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-logo { width: 230px; margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); margin: 14px 0 16px; }

/* Intake page */
.intake-layout { display: grid; grid-template-columns: 330px 1fr; gap: 40px; align-items: start; }
.intake-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h3 { font-size: 21px; margin-bottom: 12px; }
.side-card ol, .side-card ul { padding-left: 20px; color: var(--muted); font-size: 15.5px; display: grid; gap: 8px; }
.side-card.navy { background: var(--navy); color: rgba(255,255,255,.85); border: 0; }
.side-card.navy h3 { color: var(--white); }
.side-card.navy a { color: var(--lime); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.form-frame { background: var(--white); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.form-frame iframe { width: 100%; height: 3100px; border: 0; display: block; }
.form-fallback { padding: 16px 22px; background: var(--sky); font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Story page */
.story-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 72px; align-items: start; justify-content: center; }
.story-photo { position: sticky; top: 100px; }
.story-photo .photo img { aspect-ratio: 3 / 4; object-position: 50% 40%; }
.story-photo figcaption { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--lime); font-weight: 700; color: var(--navy); font-size: 18px; }
.story-photo figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
.story-body { max-width: 640px; }
.story-body p { font-size: 18px; margin-bottom: 20px; color: #2c3657; }
.story-body h2 { margin: 44px 0 16px; font-size: 34px; }
.pull { font-family: var(--serif); font-size: 26px; line-height: 1.25; color: var(--navy); border-left: 4px solid var(--lime); padding-left: 22px; margin: 34px 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .story-grid, .intake-layout, .cta-box { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .services, .quotes, .values { grid-template-columns: 1fr 1fr; }
  .intake-side, .story-photo { position: static; }
  .cta-box { padding: 48px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; width: 100%; }
  .brand span { font-size: 18px; }
  .steps, .services, .quotes, .values, .stats { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .plan-card { padding: 20px; }
  .plan-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gpa { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-frame iframe { height: 3400px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Form launch card (used where the form can't be embedded) */
.form-launch { padding: 56px 40px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.form-launch .ico { width: 64px; height: 64px; border-radius: 16px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.form-launch p { color: var(--muted); max-width: 440px; }
@media (max-width: 980px) { .story-grid { grid-template-columns: 1fr; } .story-photo { max-width: 420px; } }

/* Testimonial carousel */
.carousel { max-width: 860px; margin-inline: auto; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 48px 56px 40px; box-shadow: var(--shadow); text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility .5s;
  display: flex; flex-direction: column; justify-content: center;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide p { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.4; color: var(--navy); }
.slide p::before { content: "\201C"; display: block; font-size: 64px; line-height: .5; color: var(--lime); margin-bottom: 18px; }
.slide footer { margin-top: 26px; font-weight: 700; color: var(--navy); font-size: 15px; }
.slide footer span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 2px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.car-btn:hover { background: var(--navy); color: var(--white); }
.car-btn:focus-visible, .dot:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(17, 44, 130, .22); cursor: pointer; transition: width .3s, background .3s; }
.dot.is-active { width: 28px; background: var(--blue); }
@media (max-width: 760px) { .slide { padding: 36px 24px 30px; } }
