/* TeleCorrect home — light default + dark theme */

:root {
  --sage: #afd7ad;
  --sage-dark: #9bc899;
  --sage-light: #e8f3e7;
  --forest: #022c12;
  --forest-text: #2d3b2d;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-muted: #f4f9f3;
  --bg-card: #ffffff;
  --bg-inset: rgba(2, 44, 18, 0.05);
  --text: #2d3b2d;
  --text-heading: #022c12;
  --text-muted: #4a5c4a;
  --border: rgba(2, 44, 18, 0.1);
  --border-strong: rgba(2, 44, 18, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 2px 16px rgba(2, 44, 18, 0.08);
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --container: 72rem;
}

html.dark {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-muted: #141414;
  --bg-card: #1a1a1a;
  --bg-inset: rgba(255, 255, 255, 0.06);
  --text: #e4e4e4;
  --text-heading: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(10, 10, 10, 0.95);
  --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

html.dark .btn--forest {
  background: var(--sage);
  color: var(--forest);
  border-color: var(--sage);
}

html.dark .btn--forest:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

html.dark .btn--forest .btn__icon {
  background: var(--forest);
  color: var(--white);
}

html.dark .home-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body.home {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cooper BT', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.home h1,
body.home h2,
body.home h3,
body.home h4 {
  font-family: inherit;
  font-weight: 400;
  line-height: 1.15;
}

.home img {
  max-width: 100%;
  height: auto;
  display: block;
}

.home a:not(.btn):not(.ihb) {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* Nav */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.home-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
}

.home-nav__logo img,
.home-footer__logo img {
  height: 1.5rem;
  width: auto;
}

.logo-img--on-dark {
  display: none;
}

html.dark .logo-img--on-light {
  display: none;
}

html.dark .logo-img--on-dark {
  display: block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--forest);
  box-shadow: var(--card-shadow);
  border: 2px solid var(--forest);
}

.btn--white:hover {
  background: #f8f8f8;
}

.btn--forest {
  background: var(--forest);
  color: #ffffff;
  box-shadow: var(--card-shadow);
  border: 2px solid var(--forest);
}

.btn--forest:hover {
  background: #033d18;
  border-color: #033d18;
  color: #ffffff;
}

.btn--large {
  padding: 0.75rem 1.375rem;
  font-size: 1rem;
}

.btn--icon {
  padding-left: 0.3rem;
}

.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  flex-shrink: 0;
}

.btn--forest .btn__icon {
  background: var(--white);
  color: var(--forest);
}

.btn--white .btn__icon {
  background: var(--forest);
  color: var(--white);
}

.btn__icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* Typography */

.section {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}

.eyebrow {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.eyebrow--pill {
  display: inline-block;
  background: var(--bg-muted);
  color: var(--text-heading);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  box-shadow: none;
}

.h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--text-heading);
  max-width: 16ch;
}

.h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  color: var(--text-heading);
  max-width: 24ch;
}

.h2--center {
  margin-left: auto;
  margin-right: auto;
}

.h2--on-card {
  color: var(--forest);
}

.h3 {
  font-size: 1.1875rem;
  color: var(--text-heading);
  margin-bottom: 0.625rem;
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
}

.lead--on-card {
  color: var(--text);
}

.section-intro {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Hero */

.hero {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero__top {
  padding-bottom: 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.hero__copy .h1 {
  max-width: 18ch;
}

.hero__copy .lead {
  max-width: 42ch;
}

.hero__actions {
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  background: var(--bg-muted);
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1472 / 976;
  object-fit: cover;
  object-position: center 42%;
}

/* Challenge */

.challenge {
  text-align: center;
}

.challenge__stage {
  position: relative;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  min-height: 8rem;
}

.challenge__cards {
  position: relative;
  height: 100%;
}

.challenge__card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--card-shadow);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: left;
  color: var(--text);
  max-width: 12rem;
}

.challenge__card strong {
  display: block;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}

.challenge__card:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
}

.challenge__card:nth-child(2) {
  top: 2rem;
  left: 0;
  transform: rotate(3deg);
  z-index: 2;
}

.challenge__card:nth-child(3) {
  top: 2.75rem;
  right: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

.challenge .h2 {
  margin: 0 auto 1.25rem;
  max-width: 20ch;
}

.challenge__body {
  max-width: 34rem;
  margin: 0 auto;
}

.challenge__body p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.875rem;
}

.challenge__body p:last-child {
  color: var(--text-heading);
  font-weight: 400;
}

/* Final CTA */

.final-cta {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-heading);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  box-shadow: var(--card-shadow);
}

.final-cta .h2 {
  color: var(--text-heading);
  margin: 0 auto 0.75rem;
  max-width: 22ch;
}

.final-cta .lead {
  color: var(--text);
  max-width: 34rem;
  margin: 0 auto 1.25rem;
}

/* FAQ */

.faq-section .eyebrow,
.faq-section .h2 {
  text-align: center;
}

.faq-section .h2 {
  margin: 0 auto 1.5rem;
}

.faq {
  max-width: 42rem;
  margin: 0 auto;
  display: grid;
  gap: 0.625rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.125rem;
  text-align: left;
  color: var(--text-heading);
  cursor: pointer;
}

.faq__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-heading);
  transition: transform 0.2s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding: 0 1.25rem 1.125rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.025rem;
}

.faq__answer p + p {
  margin-top: 0.75rem;
}

.faq__answer strong {
  color: var(--text-heading);
  font-weight: 400;
}

.faq__item.is-open .faq__answer {
  display: block;
}

/* Footer */

.home-footer {
  background: var(--forest);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  margin-top: 0.5rem;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-footer__logo img {
  height: 1.375rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.home-footer__tagline {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.5;
  max-width: 22rem;
}

.home-footer h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}

.home-footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.home-footer a {
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.home-footer a:hover {
  opacity: 1;
}

.home-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  opacity: 0.5;
  text-align: center;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero__copy .h1,
  .hero__copy .lead {
    max-width: 100%;
  }

  .h1 {
    max-width: 100%;
  }

  .home-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .challenge__stage {
    min-height: 11rem;
    max-width: 18rem;
  }

  .challenge__card {
    max-width: 10rem;
    font-size: 0.75rem;
  }

  .home-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .final-cta .ihb {
    width: 100%;
  }

  .challenge__stage {
    position: static;
    min-height: 0;
    margin-bottom: 1.25rem;
  }

  .challenge__cards {
    display: grid;
    gap: 0.5rem;
  }

  .challenge__card {
    position: static;
    transform: none;
    max-width: 100%;
  }
}
