/* ============================================================
   Super Teacher Marketing — styles.css
   ============================================================ */

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/open-runde-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/open-runde-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/open-runde-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/open-runde-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --st-black:           #0a0907;
  --st-text-primary:    #0a0907;
  --st-text-secondary:  rgba(0, 0, 0, 0.67);
  --st-border:          rgba(0, 0, 0, 0.08);
  --st-surface:         #ffffff;
  --st-surface-dim:     #faf9f6;
  --st-star:            #ffba00;

  --st-font-serif:  'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --st-font-sans:   'Open Runde', Arial, sans-serif;

  --st-r-sm: 8px;
  --st-r-md: 16px;
  --st-r-lg: 24px;
}

html { height: 100%; }

body {
  overflow-x: hidden;
  background: var(--st-surface);
  color: var(--st-text-primary);
  font-family: var(--st-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Buttons ---- */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--st-r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.st-btn:hover { opacity: 0.8; }

.st-btn--dark {
  background: var(--st-black);
  color: #fff;
}

.st-btn--ghost {
  background: var(--st-surface);
  color: var(--st-text-primary);
  border: 0.5px solid var(--st-border);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);
}

/* ---- Nav ---- */
.st-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.st-nav__logo img {
  width: 150px;
  height: auto;
}

/* ---- PWA install banner (revealed by the beforeinstallprompt handler) ---- */
.st-install-banner {
  display: none;
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border);
}

.st-install-banner__close {
  border: none;
  background: none;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  color: var(--st-text-secondary);
  cursor: pointer;
}

.st-install-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--st-r-sm);
}

.st-install-banner__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.st-install-banner__sub {
  font-size: 13px;
  line-height: 1.3;
  color: var(--st-text-secondary);
}

/* ---- Hero ---- */
.st-hero__inner {
  min-height: 596px;
}

.st-hero__text {
  flex: 0 0 600px;
  max-width: 600px;
}

.st-hero__h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.2;
}

.st-hero__subtitle {
  margin: 0;
  font-family: var(--st-font-serif);
  font-size: 17px;
  line-height: 1.9;
}

.st-hero__subtitle em {
  font-style: italic;
  font-weight: 600;
}

.st-hero__login {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--st-text-secondary);
}

.st-hero__login a {
  color: var(--st-text-primary);
  text-decoration: underline;
}

.st-hero__image {
  flex: 1 1 0;
  min-width: 0;
}

.st-hero__image img {
  width: 645px;
  max-width: 100%;
  height: auto;
  border-radius: var(--st-r-md);
}

/* ---- Photo hero image (crops from left) ---- */
.st-hero__image--photo {
  align-self: center;
  overflow: hidden;
  border-radius: var(--st-r-md);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  height: 478px;
}

.st-hero__image--photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.st-video {
  width: 100%;
  aspect-ratio: 940 / 529;
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: block;
}

/* ---- Schools ticker ---- */
.st-schools__stat {
  font-size: 17px;
  line-height: 1.9;
  color: var(--st-text-secondary);
}

.st-schools__stat strong {
  font-weight: 600;
  color: var(--st-text-primary);
}

@keyframes st-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.st-schools__track {
  animation: st-marquee 24s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .st-schools__track { animation: none; }
}

.st-school__name {
  font-family: var(--st-font-serif);
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.st-school__state {
  font-size: 14px;
  letter-spacing: 0.35px;
  color: var(--st-text-secondary);
}

/* ---- Product sections ---- */

/* Full-width card (Learn image) */
.st-product--full .st-product__card {
  background: var(--st-surface-dim);
  border-radius: var(--st-r-md);
  overflow: hidden;
}

.st-h2 {
  margin: 0;
  font-family: var(--st-font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
}

.st-product__desc {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--st-text-secondary);
}

.st-product__image-full {
  margin: 0 -96px;
}

.st-product__image-full img {
  width: 85%;
  display: block;
}

/* Split cards */
.st-product--split .st-product__card {
  background: var(--st-surface-dim);
  border-radius: var(--st-r-md);
  overflow: hidden;
}

.st-product__split-inner {
  min-height: 680px;
}

.st-product__text-col {
  flex: 0 0 529px;
}

.st-product__text-col .st-h2 {
  font-size: 36px;
  line-height: 1.2;
}

.st-product__image-col {
  min-width: 0;
}

.st-product__image-col img {
  max-width: 75%;
  height: auto;
  display: block;
}

/* ---- Parent videos ---- */
.st-parent-videos .st-video {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

/* ---- Testimonials ---- */
.st-testimonials__heading {
  margin: 0 0 0;
  font-family: var(--st-font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.29px;
}

.st-testimonials__heading em {
  font-style: italic;
  font-weight: 600;
}

.st-testimonials__desc {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--st-text-secondary);
}

.st-testimonials__featured .carousel {
  max-width: 520px;
  width: 100%;
}

#st-testimonials-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--st-text-secondary);
  opacity: 0.35;
}

#st-testimonials-carousel .carousel-indicators .active {
  opacity: 1;
}


.st-testimonials__featured .carousel-inner {
  display: grid;
  padding-bottom: 32px;
}

.st-testimonials__featured .carousel-item {
  grid-row: 1;
  grid-column: 1;
  display: block !important;
}

.st-carousel__btn {
  background: none;
  border: 1px solid var(--st-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--st-text-secondary);
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
  align-self: center;
}

.st-carousel__btn:hover {
  border-color: var(--st-text-primary);
  color: var(--st-text-primary);
}

.st-quote-featured {
  margin: 0 auto;
  padding: 48px 0 32px;
  max-width: 520px;
  font-family: var(--st-font-serif);
  font-size: 17px;
  line-height: 1.7;
  quotes: none;
}

.st-quote-featured p {
  margin: 0 0 12px;
}

.st-quote-featured p:last-of-type {
  margin-bottom: 32px;
}

.st-quote-featured em {
  font-style: italic;
  font-weight: 600;
}

.st-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.st-quote-featured__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.st-quote-featured__role {
  font-size: 12px;
  line-height: 16px;
  color: var(--st-text-secondary);
}

.st-review-cards {
  max-width: 1130px;
}

.st-review-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 351px;
  min-height: 264px;
}

.st-stars {
  color: var(--st-star);
  font-size: 14px;
  letter-spacing: 2px;
}

.st-review-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.st-review-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.st-review-card__role {
  font-size: 12px;
  line-height: 16px;
  color: var(--st-text-secondary);
}

/* ---- FAQ ---- */
.st-faq {
  border-top: 1px solid var(--st-border);
}

.st-faq__inner {
  max-width: 912px;
}

.st-faq__heading {
  margin: 0;
  font-family: var(--st-font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.33;
}

.st-faq__heading em {
  font-style: italic;
  font-weight: 600;
}

.st-faq__item {
  border-bottom: 1px solid var(--st-border);
}

.st-faq__question {
  appearance: none;
  background: none;
  border: none;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--st-text-primary);
  cursor: pointer;
  user-select: none;
}

.st-faq__chevron {
  flex-shrink: 0;
  color: var(--st-text-secondary);
  transition: transform 0.2s ease;
}

.st-faq__question:not(.collapsed) .st-faq__chevron {
  transform: rotate(90deg);
}

.st-faq__answer {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--st-text-secondary);
}

/* ---- Footer / CTA ---- */
.st-footer {
  background: var(--st-surface-dim);
}

.st-footer.st-footer--compact {
  flex: none;
}

.st-footer--compact .st-footer__inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.st-footer__heading {
  margin: 0;
  font-family: var(--st-font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.5;
}

.st-footer__heading em {
  font-style: italic;
  font-weight: 600;
}

.st-footer__sub {
  margin: 0;
  font-family: var(--st-font-serif);
  font-size: 18px;
  line-height: 24px;
}

.st-footer__copyright {
  font-size: 14px;
  color: var(--st-text-secondary);
  line-height: 20px;
}

.st-footer__links a {
  font-size: 14px;
  color: var(--st-text-secondary);
  text-decoration: none;
}

.st-footer__links a:hover {
  color: var(--st-text-primary);
  text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */

@media screen and (max-width: 1100px) {
  .st-hero__text {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }
}

@media screen and (max-width: 991px) {
  .st-hero__inner {
    flex-direction: column;
    min-height: unset;
    padding: 48px 0 32px;
    gap: 40px;
  }

  .st-hero__text {
    flex: none;
    max-width: 100%;
    padding: 0;
    gap: 24px;
  }

  .st-hero__image {
    width: 100%;
  }

  .st-product__image-full { margin: 0 -48px; }

  .st-product__split-inner { flex-direction: column !important; min-height: unset; }
  .st-product__text-col {
    flex: none;
  }
  .st-product__image-col {
    min-height: 320px;
  }

  .st-review-cards { gap: 16px; }
}

@media screen and (max-width: 767px) {
  .st-nav__actions .st-btn--ghost { display: none; }

  .st-hero__h1 { font-size: 32px; letter-spacing: -1px; }
  .st-hero__text { gap: 20px; }

  .st-h2 { font-size: 28px; }

  .st-product__image-full { margin: 0 -24px; }

  .st-product__text-col .st-h2 { font-size: 28px; }

  .st-parents { padding: 64px 0; }
  .st-parent-videos { flex-direction: column; }

  .st-testimonials { padding: 64px 0; }
  .st-testimonials__heading { font-size: 28px; }
  .st-review-card { width: 100%; max-width: 400px; }
  .st-testimonials__featured .carousel { max-width: 100%; }
  .st-quote-featured { font-size: 15px; padding: 24px 0 16px; }

  .st-faq__header { padding: 64px 24px 24px; }
  .st-faq__heading { font-size: 28px; }

  .st-inquiry { padding: 24px 0 64px; }
  .st-inquiry__heading { font-size: 26px; letter-spacing: -0.8px; }

  .st-footer__heading { font-size: 36px; }
  .st-footer__inner { padding: 64px 24px; }

}

@media screen and (max-width: 479px) {

  .st-hero__buttons { flex-direction: column; align-items: flex-start; }

  .st-section-buttons,
  .st-download__buttons { flex-direction: column; align-items: center; }

  .st-review-card { width: 100%; max-width: 100%; }
}

/* ---- Overview page (TechCrunch etc.) ---- */
.st-overview__inner {
  max-width: 900px;
}

.st-overview__heading {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 0;
}

/* ---- Feature cards (parents page) ---- */
.st-product--cards .st-product__card {
  background: var(--st-surface-dim);
  border-radius: var(--st-r-md);
}

.st-feature__img {
  width: 100%;
  border-radius: var(--st-r-sm);
}

.st-feature__title {
  font-family: var(--st-font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.st-feature__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--st-text-secondary);
  margin: 0;
  flex: 1;
}

/* ---- School banner ---- */
.st-banner__inner {
  max-width: 860px;
}

.st-banner__kicker {
  font-family: var(--st-font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

.st-banner__tagline {
  font-size: 16px;
  line-height: 1.75;
  color: var(--st-text-secondary);
  margin: 0;
}

.st-banner .st-video {
  max-width: 620px;
}

/* ---- School inquiry form ---- */
.st-inquiry__card {
  background: var(--st-surface-dim);
  border-radius: var(--st-r-lg);
}

.st-inquiry__header {
  max-width: 640px;
}

.st-inquiry__heading {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.st-inquiry__sub {
  font-family: var(--st-font-serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--st-text-secondary);
  margin: 0;
}

.st-form {
  max-width: 720px;
}

.st-field__label {
  font-size: 14px;
  font-weight: 500;
}

.st-field__error {
  font-size: 13px;
  color: #b91c1c;
  min-height: 0;
}

.st-field__error:empty { display: none; }
