/* =========================================================
   UpField Partners
   Brand colors: swap the two values below once confirmed.
   ========================================================= */
:root {
  --navy: #002850;        /* [TBD: confirm exact navy] */
  --green: #208048;       /* [TBD: confirm exact green] */

  --navy-900: #001a36;
  --navy-050: #eef3f8;
  --green-050: #ecf6f0;
  --green-dark: #186638;
  --ink: #12202f;
  --ink-soft: #4a5868;
  --gray-200: #d9dee4;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 40, 80, 0.08);
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
ul, ol { padding: 0; margin: 0; }

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

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy-050); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: saturate(160%) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand img { width: 170px; }
.header-phone {
  margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 700; text-decoration: none; font-size: .95rem;
  min-height: 44px; padding: 0 6px;
}
.header-phone:hover { color: var(--green-dark); }

.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 8px 20px 20px; display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: block; padding: 12px 4px; color: var(--navy); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
}
.site-nav .btn { margin-top: 14px; width: 100%; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .header-phone { margin-left: 0; order: 3; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; margin-left: auto; background: transparent; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
  .site-nav a:not(.btn) { white-space: nowrap; border: 0; padding: 8px 10px; font-size: .95rem; border-radius: var(--radius-sm); }
  .site-nav a:not(.btn):hover { background: var(--navy-050); }
  .site-nav .btn { margin: 0 0 0 8px; width: auto; white-space: nowrap; }
  .brand img { width: 200px; }
}
@media (max-width: 420px) {
  .brand img { width: 140px; }
  .header-phone span { font-size: .88rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--navy-050), var(--white)); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--green-dark); margin-bottom: .75em;
}
.eyebrow-light { color: #8fd4a9; }
.hero-sub { font-size: 1.2rem; color: var(--green-dark); font-weight: 600; margin-bottom: 1.5em; }
.hero-link { margin-top: 18px; }
.hero-link a { font-weight: 700; color: var(--navy); }
.hero-art img { width: min(320px, 70%); margin: 0 auto; }
@media (min-width: 860px) {
  .hero { padding: 80px 0 72px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .hero-art img { width: 100%; max-width: 400px; }
}

/* ---------- Chooser ---------- */
.chooser { padding: 8px 0 40px; }
.path-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .path-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.path-card {
  display: flex; flex-direction: column; gap: 8px; padding: 28px;
  border-radius: var(--radius); text-decoration: none; color: var(--white);
  background: var(--navy); box-shadow: var(--shadow); transition: transform .15s;
}
.path-card-alt { background: var(--green-dark); }
.path-card:hover { transform: translateY(-3px); }
.path-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; opacity: .85; }
.path-title { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.path-text { opacity: .95; }
.path-cta { font-weight: 700; margin-top: 6px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 860px) { .section { padding: 88px 0; } }
.section-tint { background: var(--navy-050); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 760px; }
.sub-title { margin-top: 56px; margin-bottom: 20px; }
.section-cta { margin-top: 40px; text-align: center; }
.fine { font-size: .9rem; color: var(--ink-soft); }
.small-label { font-weight: 700; margin-bottom: .4em; color: var(--navy); }

.two-col { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card { padding: 28px; border-radius: var(--radius); }
.card-muted { background: #f5f6f8; }
.card-accent { background: var(--green-050); border: 2px solid var(--green); }

.x-list, .check-list { list-style: none; display: grid; gap: 10px; }
.x-list li, .check-list li { position: relative; padding-left: 30px; }
.x-list li::before, .check-list li::before {
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--white);
}
.x-list li::before { content: "\2715"; background: #8a95a3; }
.check-list li::before { content: "\2713"; background: var(--green); }

/* Illustrative chart */
.reach-figure {
  margin: 40px 0 0; display: grid; gap: 24px; align-items: center;
  padding: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white);
}
@media (min-width: 820px) { .reach-figure { grid-template-columns: 260px 1fr; gap: 40px; padding: 36px; } }
.reach-chart { width: 100%; max-width: 260px; margin: 0 auto; }
.chart-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: #f5f6f8; color: var(--ink-soft); padding: 4px 10px; border-radius: 999px;
}
.legend { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.legend li { display: flex; gap: 10px; align-items: flex-start; }
.swatch { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 4px; margin-top: 5px; }
.swatch-navy { background: var(--navy); }
.swatch-green { background: var(--green); }
.swatch-gray { background: var(--gray-200); }
.chart-note { font-weight: 700; color: var(--navy); }

/* ---------- Flywheel ---------- */
.flywheel { position: relative; margin: 32px auto 0; max-width: 760px; }
.flywheel-center img { width: 200px; margin: 0 auto 24px; }
.flywheel-steps { list-style: none; display: grid; gap: 12px; }
.fw {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 600; color: var(--navy);
}
.fw-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-weight: 800;
}
@media (min-width: 860px) {
  .flywheel { height: 560px; }
  .flywheel-center { position: absolute; inset: 0; display: grid; place-items: center; }
  .flywheel-center img { width: 280px; margin: 0; }
  .flywheel-steps { display: block; }
  .fw { position: absolute; width: 230px; }
  .fw-1 { top: 0; left: 50%; transform: translateX(-50%); }
  .fw-2 { top: 165px; right: 0; }
  .fw-3 { bottom: 40px; right: 40px; }
  .fw-4 { bottom: 40px; left: 40px; }
  .fw-5 { top: 165px; left: 0; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; align-items: flex-start; background: var(--white);
  padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.step p:last-child { margin-bottom: 0; }
.step-num {
  flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.steps-grid { margin-top: 32px; }
@media (min-width: 820px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
.section:not(.section-tint) .step { border: 1px solid var(--gray-200); box-shadow: none; }
.callout { background: var(--green-050); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: var(--radius-sm); }

/* ---------- Business ---------- */
.explainer {
  margin-top: 28px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--navy-050); border-left: 5px solid var(--navy);
}
.explainer p:last-child { margin-bottom: 0; }
.promise {
  margin-top: 32px; display: flex; gap: 18px; align-items: flex-start;
  padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--white);
}
.promise h3 { color: var(--white); }
.promise .fine { color: #c7d3e0; margin: 0; }
.promise-badge { flex: 0 0 auto; color: #8fd4a9; }
.why-grid { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why { padding: 20px; border-radius: var(--radius); background: var(--green-050); }
.why h4 { margin-bottom: .3em; }
.why p { margin: 0; font-size: .97rem; color: var(--ink-soft); }

/* ---------- Schools ---------- */
.paid { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.paid-grid { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 760px) { .paid-grid { grid-template-columns: 1fr 1fr; } }
.paid-card { padding: 20px; border-radius: var(--radius-sm); background: var(--green-050); }
.paid-card .fine { margin: 12px 0 0; }
.paid-note { margin: 20px 0 0; font-weight: 700; color: var(--navy); }

.faqs { display: grid; gap: 12px; }
.faq { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green); font-weight: 400;
}
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- About ---------- */
.team-block {
  margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); border-left: 4px solid var(--green);
}
.team-block h3 { font-size: 1.3rem; }
.team-block p { color: var(--ink-soft); }
.team-block p:last-child { margin-bottom: 0; }

/* ---------- Contact form ---------- */
.form-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; } }
.form-intro p { color: #d6e0ea; }
.link-light { color: var(--white); font-weight: 700; }
.contact-form {
  display: grid; gap: 16px; background: var(--white); color: var(--ink);
  padding: 24px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; padding: 32px; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9aa6b4; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(32,128,72,.25); outline-offset: 0; }
.form-actions { display: grid; gap: 14px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) { .form-actions .btn { width: auto; justify-self: start; } }
.privacy-line { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.field-flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(32,128,72,.6);} 100% { box-shadow: 0 0 0 10px rgba(32,128,72,0);} }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d3e0; padding: 48px 0 28px; font-size: .97rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
.footer-brand img { width: 220px; margin-bottom: 12px; }
.footer-tagline { color: #8fd4a9; font-weight: 600; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; }
@media (min-width: 520px) { .footer-nav ul { grid-template-columns: 1fr 1fr; } }
.footer-nav a { text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .87rem; }
.disclosure { color: #c7d3e0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sep { opacity: .5; }

/* ---------- Thank-you page ---------- */
.thanks { padding: 72px 0 96px; text-align: center; }
.thanks img.thanks-icon { width: 140px; margin: 0 auto 24px; }
.thanks .lead { margin: 0 auto 1em; }
.thanks .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Legal pages (Privacy, Terms) ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 1.6em; }
.legal-page ul { padding-left: 1.4em; margin: 0 0 1em; }
.legal-page li { margin-bottom: .4em; }

/* ---------- Estimate block (Schools) ---------- */
.estimate {
  margin-top: 32px; padding: 32px 24px; border-radius: var(--radius);
  background: var(--navy); color: var(--white); text-align: center;
}
@media (min-width: 760px) { .estimate { padding: 44px 48px; } }
.estimate h3 { color: var(--white); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.estimate-head p { color: #d6e0ea; max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; margin: 0 auto; }
.tier {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 18px 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}
.tier:nth-child(1) { min-height: 96px; }
.tier:nth-child(2) { min-height: 122px; }
.tier-top { min-height: 148px; background: var(--green); border-color: var(--green); }
.tier-amt { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; line-height: 1; }
.tier-per { font-size: .85rem; opacity: .85; margin-top: 6px; }
.estimate-lead { margin: 22px auto 28px; max-width: 620px; font-weight: 600; font-size: 1.08rem; }
.biz-range {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  max-width: 640px; margin: 0 auto 24px;
}
@media (min-width: 640px) { .biz-range { flex-direction: row; align-items: center; } }
.biz-ex {
  flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px;
  border-radius: var(--radius-sm); background: var(--white); color: var(--navy);
}
.biz-amt { font-size: 1.8rem; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
.biz-amt small { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.biz-label { font-size: .95rem; color: var(--ink); }
.biz-arrow { font-weight: 700; color: #8fd4a9; text-transform: uppercase; font-size: .85rem; letter-spacing: .1em; }
.estimate-points { text-align: left; max-width: 520px; margin: 0 auto 18px; }
.estimate .fine { color: #b9c7d6; }
.estimate-cta { margin-top: 20px; }
