@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --red: #a93226;
  --red-dark: #8e2a20;
  --red-tint: #f6e7e4;
  --cream: #f5f5f0;
  --cream-deep: #ebebe4;
  --slate: #283038;
  --muted: #56616d;
  --line: #e2e2da;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(40 48 56 / 0.05), 0 4px 16px rgb(40 48 56 / 0.05);
  --font: 'Nunito', ui-rounded, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(245 245 240 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.logo svg {
  width: auto;
  height: 1.15em;
}

.nav {
  display: none;
  gap: 28px;
  margin-right: auto;
}

.nav a,
.signin {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.signin:hover,
.nav a[aria-current='page'] {
  color: var(--slate);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.signin {
  display: none;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--slate);
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary svg {
  width: 24px;
  height: 24px;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: min(280px, calc(100vw - 32px));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 8px;
  display: grid;
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--slate);
  font-weight: 700;
  text-decoration: none;
}

.menu-panel a:hover {
  background: var(--cream);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
    margin-left: 16px;
  }
  .signin {
    display: inline;
  }
  .menu {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--slate);
  border-color: var(--line);
}

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

.btn-dark {
  background: var(--slate);
  color: var(--white);
}

.btn-dark:hover {
  background: #1a2026;
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Common pieces */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red-tint);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--cream-deep);
}

.section-dark {
  background: var(--slate);
  color: #e8ecef;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .muted {
  color: #b5bec7;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
  margin-bottom: 16px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23a93226' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

/* Hero */

.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 96px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-center {
  text-align: center;
}

.hero-center .hero-copy {
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}

/* Phone mockup */

.phone {
  width: min(340px, 100%);
  margin: 0 auto;
  background: var(--slate);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 24px 60px rgb(40 48 56 / 0.18);
}

.phone-screen {
  background: var(--cream);
  border-radius: 30px;
  padding: 18px 14px 22px;
  display: grid;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 8px;
}

.phone-bar .crest {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #1f4d3a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.phone-bar strong {
  display: block;
  font-size: 0.95rem;
}

.mock-card {
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgb(40 48 56 / 0.06);
  display: grid;
  gap: 8px;
}

.mock-card .tag {
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 999px;
  padding: 2px 10px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.mock-row:first-of-type {
  border-top: 0;
}

.mock-row small {
  display: block;
  color: var(--muted);
}

.mock-btn {
  flex: none;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 6px 10px;
}

.mock-btn.full {
  background: var(--cream-deep);
  color: var(--muted);
}

.mock-lock {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Replaces strip */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

/* Split feature rows */

.split {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.split:first-child {
  border-top: 0;
}

.split-copy {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .split.flip .split-copy {
    order: 2;
  }
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.panel-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
}

.cal span {
  padding: 8px 0;
  border-radius: 8px;
  background: var(--cream);
}

.cal .dow {
  background: none;
  color: var(--muted);
  font-weight: 800;
}

.cal .on {
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatches span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* Pricing */

.plans {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  display: grid;
  gap: 20px;
  align-content: start;
}

.plan.featured {
  outline: 2px solid var(--red);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan.featured .plan-top {
  color: var(--red);
}

.badge {
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.price strong {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.callout {
  display: grid;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 820px) {
  .callout {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

.callout .stat {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
}

.callout .stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1.1;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* CTA */

.cta {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 48px 24px;
}

.cta .actions {
  justify-content: center;
}

/* Families */

.school-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.school-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--slate);
  text-decoration: none;
  font-weight: 800;
}

.school-list a:hover {
  background: var(--red-tint);
}

.school-list small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.steps strong {
  display: block;
  font-size: 1.05rem;
}

.code-boxes {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.code-boxes span {
  width: 38px;
  height: 46px;
  border-radius: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* Form */

.form-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .form-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
}

.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 18px;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field legend {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0;
}

.field .hint {
  font-weight: 600;
  color: var(--muted);
}

input[type='text'],
input[type='email'],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--slate);
  background: var(--white);
  border: 1.5px solid #cfcfc6;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid #cfcfc6;
  border-radius: 10px;
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.choices label:has(input:checked) {
  border-color: var(--red);
  background: var(--red-tint);
}

.choices input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--red-tint);
  color: var(--red-dark);
  font-weight: 700;
}

.notice[hidden] {
  display: none;
}

/* Footer */

.site-footer {
  background: var(--slate);
  color: #b5bec7;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3b4550;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer .logo {
  color: var(--white);
}

.site-footer h2 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #d5dbe0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-note {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}

.section-dark h3 {
  margin-bottom: 6px;
}

.hero-center .wrap {
  grid-template-columns: 1fr;
}

.split-copy {
  justify-items: start;
}

.checks.card {
  padding: 28px;
}
