/* =======================================================
   TOKENS
======================================================== */

:root {
  --ink: #14171A;
  --ink-soft: #3D4248;
  --grey: #5B6169;
  --paper: #FFFFFF;
  --bg: #F4F6F4;
  --border: #E1E5E1;
  --border-strong: #CBD2CC;

  --accent: #1E7A4C;
  --accent-dark: #175C39;
  --accent-tint: #E7F2EC;

  --radius: 14px;
  --radius-pill: 999px;
  --max: 1120px;
  --gutter: clamp(24px, 5vw, 64px);

  --display: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 strong, h2 strong {
  font-weight: 700;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading p {
  color: var(--grey);
  margin-top: 14px;
  font-size: 1.05rem;
}

.paper-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =======================================================
   BUTTONS
======================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out),
    border-color 180ms var(--ease-out), transform 150ms var(--ease-out);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* =======================================================
   HEADER
======================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

header.is-scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -18px rgba(20, 23, 26, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  height: 28px;
  width: auto;
}

/* =======================================================
   HERO
======================================================== */

.hero {
  padding: 88px 0 80px;
  text-align: center;
}

.hero-container {
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line span {
  display: block;
}

.hero-description {
  margin-top: 22px;
  color: var(--grey);
  font-size: 1.15rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* =======================================================
   HOW IT WORKS
======================================================== */

.process-flow {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-inputs {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.process-or {
  align-self: center;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.process-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-connector {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
  position: relative;
}

.process-connector-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

.process-step {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.process-number {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 30px;
  padding-top: 22px;
}

.process-node {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.process-node:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -24px rgba(20, 23, 26, 0.3);
}

.process-node-wide {
  width: 100%;
}

.process-node-final {
  background: var(--ink);
  border-color: var(--ink);
}

.process-node-final .process-node-label {
  color: var(--paper);
}

.process-node-label {
  font-weight: 600;
  font-size: 1.02rem;
}

@media (max-width: 560px) {
  .process-inputs {
    flex-direction: column;
  }
}

/* =======================================================
   WHY SCHOOLS CHOOSE (asymmetric, not 3 equal cards)
======================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.benefit-featured {
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.benefit-featured .benefit-number {
  font-size: 2.6rem;
}

.benefit-featured h3 {
  font-size: 1.6rem;
  margin: 14px 0 12px;
}

.benefit-featured p {
  font-size: 1.05rem;
  max-width: 40ch;
}

.benefit-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-stack .benefit-item {
  padding: 24px 0;
}

.benefit-stack .benefit-item:first-child {
  padding-top: 0;
}

.benefit-stack .benefit-item + .benefit-item {
  border-top: 1px solid var(--border);
}

.benefit-number {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.benefit-item h3 {
  margin-bottom: 8px;
}

.benefit-item p,
.benefit-featured p {
  color: var(--grey);
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .benefit-featured {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 8px;
  }
}

/* =======================================================
   REQUEST A PILOT — FORM
======================================================== */

.pilot-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 20px;
  text-align: center;
  color: var(--grey);
  font-size: 0.88rem;
}

.trust-row span {
  padding: 0 16px;
}

.trust-row span:not(:last-child) {
  border-right: 1px solid var(--border-strong);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success h3 {
  margin-bottom: 10px;
}

.form-success p {
  color: var(--grey);
}

/* honeypot field, hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =======================================================
   FOOTER
======================================================== */

footer {
  border-top: 1px solid var(--border-strong);
  padding: 56px 0;
  background: var(--bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo {
  height: 24px;
  margin: 0 auto;
}

.footer-tagline {
  color: var(--grey);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-meta {
  color: var(--grey);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* =======================================================
   FOCUS STATES
======================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
