:root {
  --ink: #202427;
  --muted: #5e676f;
  --soft-ink: #33424d;
  --paper: #fbf8f2;
  --paper-strong: #fffdf8;
  --warm: #efe6d8;
  --line: #ded4c6;
  --red: #8b1e1e;
  --red-dark: #6f1717;
  --sage: #5f7b67;
  --sage-dark: #385d47;
  --blue: #52697a;
  --shadow: 0 24px 70px rgba(36, 29, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid rgba(94, 103, 111, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px clamp(16px, 2vw, 28px);
}

.main-nav a,
.site-footer nav a {
  color: var(--soft-ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--red);
}

.main-nav a[aria-current="page"] {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  background-color: var(--warm);
  background-image:
    linear-gradient(90deg, rgba(251, 248, 242, 0.98) 0%, rgba(251, 248, 242, 0.92) 36%, rgba(251, 248, 242, 0.44) 63%, rgba(251, 248, 242, 0.18) 100%),
    image-set(
      url("assets/img/hero-background.webp") type("image/webp"),
      url("assets/img/hero-background.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0), var(--paper));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(690px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 64px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2.45rem, 5.6vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.64);
  border-color: rgba(32, 36, 39, 0.22);
}

.button.secondary:hover {
  border-color: var(--red);
}

.hero-proof {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 116px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.section-copy p,
.product-copy p,
.story-copy p,
.contact-section p,
.page-section p,
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list,
.plain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-list article,
.plain-grid article,
.pilot-summary,
.audience-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(36, 29, 20, 0.07);
}

.feature-list article,
.plain-grid article {
  padding: 22px;
}

.feature-list p,
.plain-grid p,
.audience-card p,
.pilot-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.product-image-wrap,
.story-image,
.page-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-image,
.page-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  color: var(--soft-ink);
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: inset 0 0 0 4px var(--paper);
}

.uses-section {
  width: 100%;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  background: #f2ebdf;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-heading h2 {
  max-width: 780px;
}

.audience-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.audience-card {
  overflow: hidden;
}

.audience-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.audience-card div {
  padding: 22px;
}

.pilot-section {
  background:
    linear-gradient(90deg, rgba(32, 36, 39, 0.9), rgba(32, 36, 39, 0.72)),
    image-set(
      url("assets/img/abstract-background.webp") type("image/webp"),
      url("assets/img/abstract-background.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
}

.pilot-inner {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) 0;
}

.pilot-inner h2,
.pilot-inner p {
  color: #fffdf8;
}

.pilot-inner .eyebrow {
  color: #f0b7a8;
}

.pilot-inner > div:first-child p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.08rem;
}

.pilot-summary {
  padding: 26px;
}

.pilot-summary p {
  margin-bottom: 14px;
  color: var(--soft-ink);
}

.pilot-summary strong {
  color: var(--ink);
}

.pilot-price {
  color: var(--red) !important;
  font-size: 1.7rem;
  font-weight: 850;
}

.pilot-note {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}

.pilot-detail-link {
  display: inline-block;
  margin-top: 18px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.story-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.text-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.contact-section {
  text-align: center;
}

.contact-section h2,
.contact-section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #eee4d7;
  border-top: 1px solid var(--line);
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

.page-main {
  background: var(--paper);
}

.page-hero {
  display: flex;
  align-items: end;
  min-height: 520px;
  padding: 140px clamp(18px, 7vw, 96px) 76px;
  background-position: center;
  background-size: cover;
}

.journey-hero {
  background-image:
    linear-gradient(90deg, rgba(251, 248, 242, 0.98), rgba(251, 248, 242, 0.78), rgba(251, 248, 242, 0.4)),
    image-set(
      url("assets/img/home-school-co-op.webp") type("image/webp"),
      url("assets/img/home-school-co-op.png") type("image/png")
    );
}

.security-hero {
  background-image:
    linear-gradient(90deg, rgba(251, 248, 242, 0.98), rgba(251, 248, 242, 0.78), rgba(251, 248, 242, 0.34)),
    image-set(
      url("assets/img/product-in-context.webp") type("image/webp"),
      url("assets/img/product-in-context.png") type("image/png")
    );
}

.pricing-hero {
  background-image:
    linear-gradient(90deg, rgba(251, 248, 242, 0.98), rgba(251, 248, 242, 0.82), rgba(251, 248, 242, 0.42)),
    image-set(
      url("assets/img/hero-background.webp") type("image/webp"),
      url("assets/img/hero-background.png") type("image/png")
    );
}

.page-hero > div {
  width: min(760px, 100%);
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.page-section {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) 0;
}

.two-column {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.emphasis-section {
  width: 100%;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  background: #f2ebdf;
}

.emphasis-section > h2,
.emphasis-section > .plain-grid {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-list {
  margin-top: 0;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-list p {
  margin: 0;
  padding: 18px 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.question-list strong {
  color: var(--ink);
}

.contact-band {
  text-align: center;
  border-top: 1px solid var(--line);
}

.pricing-overview {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.price-card,
.side-note {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(36, 29, 20, 0.07);
}

.price-card {
  padding: clamp(24px, 4vw, 34px);
}

.featured-price {
  border-top: 6px solid var(--red);
}

.featured-price h2 {
  margin-bottom: 14px;
}

.price-line {
  margin-bottom: 6px;
  color: var(--red) !important;
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  line-height: 1;
  font-weight: 850;
}

.price-subline {
  margin-bottom: 24px;
  color: var(--soft-ink) !important;
  font-size: 1.12rem !important;
  font-weight: 700;
}

.pricing-notes {
  padding-top: 6px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.timeline-list p {
  margin: 0;
  padding: 16px 18px;
  background: #f2ebdf;
  border-left: 5px solid var(--sage);
  border-radius: 6px;
}

.plan-section {
  width: min(1180px, calc(100% - 36px));
  border-top: 1px solid var(--line);
}

.plan-section > div:first-child {
  max-width: 760px;
  margin-bottom: 28px;
}

.plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan-summary-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-price {
  margin-bottom: 10px;
  color: var(--red) !important;
  font-size: 1.45rem !important;
  line-height: 1.1;
  font-weight: 850;
}

.plan-subprice {
  margin-bottom: 12px;
  color: var(--sage-dark) !important;
  font-size: 0.95rem !important;
  font-weight: 800;
}

.plan-card-highlight {
  border-color: rgba(139, 30, 30, 0.55) !important;
  border-top: 6px solid var(--red) !important;
  box-shadow: 0 18px 52px rgba(139, 30, 30, 0.12);
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 14px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-note {
  padding: 24px;
  border-top: 6px solid var(--sage);
}

@media (max-width: 1120px) {
  .plan-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .section-intro,
  .product-section,
  .story-section,
  .pilot-inner,
  .two-column,
  .pricing-overview {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .plain-grid,
  .audience-grid,
  .plan-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - 112px);
    background-position: 58% center;
  }

  .hero-inner {
    padding-top: 48px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 0;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .main-nav {
    gap: 8px 14px;
  }

  .main-nav a {
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(251, 248, 242, 0.96), rgba(251, 248, 242, 0.9)),
      image-set(
        url("assets/img/hero-background.webp") type("image/webp"),
        url("assets/img/hero-background.png") type("image/png")
      );
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 54px 0 72px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.95rem, 11vw, 3rem);
  }

  .page-hero {
    min-height: 480px;
    padding: 112px 18px 58px;
  }
}
