.seo-landing-page .seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1240px, 92%);
  max-width: 1240px;
  margin: clamp(24px, 4vw, 52px) auto 48px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  text-align: left;
  overflow: hidden;
}

.seo-landing-page .seo-hero-copy { min-width: 0; }
.seo-landing-page .seo-hero h1 { max-width: 720px; margin: 0; }
.seo-landing-page .seo-hero .eyebrow { margin-bottom: 18px; }
.seo-landing-page .seo-hero-copy > p:not(.hero-note) { max-width: 660px; margin: 18px 0 0; line-height: 1.7; }
.seo-landing-page .seo-hero .hero-ctas { justify-content: flex-start; margin-top: 25px; }
.seo-landing-page .seo-hero .hero-note { margin: 18px 0 0; text-align: left; }
.seo-landing-page .seo-hero-art { min-width: 0; margin: 0; }
.seo-landing-page .seo-hero-art img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 22px 54px rgba(27, 47, 35, .15); }
.seo-landing-page .seo-hero-art figcaption { margin-top: 12px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }

.small-school-page .seo-hero { background: linear-gradient(125deg, #fbf8f0 0%, #edf5ee 100%); }
.small-school-page [aria-labelledby="small-school-features"] .card { border-top: 4px solid #78a983; border-radius: 18px; }
.small-school-page [aria-labelledby="small-school-benefits"] .card { background: #f5f8f3; border-color: #e2eade; }

.affordable-page .seo-hero {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: linear-gradient(135deg, #fff8df 0%, #fffdf6 62%, #f0f5e8 100%);
  border-color: #eee2bd;
}
.affordable-page .seo-hero-art { order: 2; }
.affordable-page .seo-hero-copy { order: 1; }
.affordable-page [aria-labelledby="pricing-details-heading"] { background: #fffaf0; border-top: 1px solid #eee2bd; border-bottom: 1px solid #eee2bd; }
.affordable-page .feature-cards .card { border: 0; border-left: 4px solid #d5b94c; border-radius: 8px; box-shadow: 0 8px 24px rgba(80, 66, 27, .07); }

.fee-management-page .seo-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  background: #1f5c3f;
  color: #fff;
  border-color: #1f5c3f;
}
.fee-management-page .seo-hero-art { order: 1; }
.fee-management-page .seo-hero-copy { order: 2; }
.fee-management-page .seo-hero .eyebrow,
.fee-management-page .seo-hero-copy > p,
.fee-management-page .seo-hero h1,
.fee-management-page .seo-hero .hero-note { color: #fff; }
.fee-management-page .seo-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.fee-management-page [aria-labelledby="fee-features-heading"] .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fee-management-page [aria-labelledby="fee-features-heading"] .card { border-radius: 4px 18px 18px 4px; border-left: 4px solid #4b8b62; }

.attendance-page .seo-hero {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: linear-gradient(115deg, #edf1fb 0%, #f8faff 55%, #eef6f1 100%);
  border-radius: 0 0 42px 42px;
  border: 0;
  width: 100%;
  max-width: none;
  padding: clamp(34px, 5vw, 72px) max(4%, calc((100% - 1240px) / 2));
}
.attendance-page .seo-hero-art { order: 2; }
.attendance-page .seo-hero-copy { order: 1; }
.attendance-page [aria-labelledby="attendance-features-heading"] .feature-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.attendance-page [aria-labelledby="attendance-features-heading"] .card { border-radius: 16px; border-color: #e1e6f0; box-shadow: 0 10px 24px rgba(49, 73, 117, .07); }
.attendance-page [aria-labelledby="attendance-benefits-heading"] .card { background: #f2f5fb; border-color: #e2e8f2; }

@media (max-width: 900px) {
  .attendance-page [aria-labelledby="attendance-features-heading"] .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .seo-landing-page .seo-hero,
  .affordable-page .seo-hero,
  .fee-management-page .seo-hero,
  .attendance-page .seo-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 92%;
    max-width: 1240px;
    margin: 20px auto 36px;
    padding: 26px 22px;
    border-radius: 22px;
  }
  .seo-landing-page .seo-hero-art,
  .affordable-page .seo-hero-art,
  .fee-management-page .seo-hero-art,
  .attendance-page .seo-hero-art { order: 2; }
  .seo-landing-page .seo-hero-copy,
  .affordable-page .seo-hero-copy,
  .fee-management-page .seo-hero-copy,
  .attendance-page .seo-hero-copy { order: 1; }
  .fee-management-page .seo-hero .btn-ghost { color: var(--ink); border-color: var(--line); }
  .fee-management-page .seo-hero .btn-yellow { color: var(--ink); }
  .fee-management-page [aria-labelledby="fee-features-heading"] .feature-cards,
  .attendance-page [aria-labelledby="attendance-features-heading"] .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .attendance-page [aria-labelledby="attendance-features-heading"] .feature-cards { grid-template-columns: 1fr; }
  .attendance-page .seo-hero .hero-ctas { display: grid; grid-template-columns: 1fr; }
  .attendance-page .seo-hero .hero-ctas .btn { width: 100%; white-space: normal; }
}
