:root {
  --bg: #f7fbf8;
  --surface: #ffffff;
  --surface-soft: #eff7f1;
  --text: #14211a;
  --muted: #65756b;
  --line: rgba(20, 33, 26, 0.10);
  --accent: #2f7655;
  --accent-dark: #1d533a;
  --accent-soft: #dff1e7;
  --shadow: 0 24px 80px rgba(32, 72, 50, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f6f2e9;
  line-height: 1.55;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: url("assets/science-bg-desktop.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.96;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 38% 20%, rgba(250, 248, 241, 0.58), transparent 34rem),
    linear-gradient(180deg, rgba(247, 251, 248, 0.10), rgba(247, 251, 248, 0.36));
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 10px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.70);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 40px rgba(20, 33, 26, 0.08);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7bb694);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--text);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.section-pad,
.section,
.cta-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 54px;
  padding: 76px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 14px 32px rgba(29, 83, 58, 0.24);
}

.button.primary:hover {
  background: #143f2b;
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.72);
  border-color: var(--line);
}

.full { width: 100%; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-points span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-visual {
  position: relative;
}

.hero-visual > img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  width: 210px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 45px rgba(20, 33, 26, 0.12);
  backdrop-filter: blur(16px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.card-top {
  top: 10%;
  left: -34px;
}

.card-bottom {
  right: -26px;
  bottom: 12%;
}

.stats {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 52px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(8px);
}

.stats div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stats span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 70px;
  align-items: start;
}

.text-block {
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.subject-card,
.price-card,
.reviews-grid article,
.faq-list details,
.text-panel,
.media-card,
.cta-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 16px 60px rgba(20, 33, 26, 0.07);
  backdrop-filter: blur(10px);
}

.subject-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.subject-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.subject-card div {
  padding: 26px;
}

.subject-card p,
.subject-card li {
  color: var(--muted);
}

.subject-card ul,
.price-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.soft {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, transparent, rgba(239,247,241,0.82), transparent);
}

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

.steps article {
  padding: 24px;
  min-height: 250px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 800;
}

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

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 24px;
}

.media-card,
.text-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.text-panel {
  padding: 42px;
}

.text-panel p {
  color: var(--muted);
  font-size: 18px;
}

.rules-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.rules-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.rules-list span {
  color: var(--muted);
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: center;
}

.pricing > div > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.price-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239,247,241,0.94));
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-line span {
  color: var(--muted);
}

.price-line strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.price-card p,
.price-card li {
  color: var(--muted);
}

.price-card .button {
  margin-top: 26px;
}

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

.reviews-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.reviews-grid p {
  color: var(--text);
  font-size: 17px;
}

.reviews-grid span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  max-width: 830px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 20px 22px;
  border-radius: 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 760;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.cta-section {
  padding: 60px 0 90px;
}

.cta-card {
  padding: clamp(30px, 6vw, 70px);
  border-radius: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 14% 10%, rgba(47,118,85,0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,247,241,0.94));
}

.cta-card p:not(.eyebrow) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 18px;
}

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

.contact-note {
  margin-top: 16px !important;
  font-size: 14px !important;
}

.contact-mark {
  margin-left: 2px;
  font-size: 0.72em;
  vertical-align: super;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer-disclaimer {
  width: min(var(--max), calc(100% - 32px));
  margin: -18px auto 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .two-columns,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .steps,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing {
    align-items: stretch;
  }

  .price-card {
    max-width: 460px;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 20px 50px rgba(20,33,26,.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 16px;
  }

  .hero {
    gap: 32px;
  }

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

  .stats,
  .subject-cards,
  .steps,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  .text-panel {
    padding: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .soft {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .site-footer {
    flex-direction: column;
  }
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
  text-align: left;
}

.contact-copy .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lead-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 18px 55px rgba(20, 33, 26, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label {
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 112px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(47,118,85,0.54);
  box-shadow: 0 0 0 4px rgba(47,118,85,0.10);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-dark);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0 !important;
  color: var(--muted);
  font-size: 14px !important;
  text-align: center;
}

.form-status.is-success {
  color: var(--accent-dark);
}

.form-status.is-error {
  color: #9b2c2c;
}

@media (max-width: 980px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 18px;
  }

  .contact-copy .contact-links,
  .contact-copy .contact-links .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body::before {
    background-image: url("assets/science-bg-mobile.png");
    background-position: center top;
    background-size: cover;
    opacity: 0.92;
  }

  body::after {
    background:
      linear-gradient(180deg, rgba(247, 251, 248, 0.16), rgba(247, 251, 248, 0.44)),
      radial-gradient(circle at 50% 24%, rgba(250, 248, 241, 0.62), transparent 22rem);
  }
}


.group-cards,
.price-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group-cards article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 16px 60px rgba(20, 33, 26, 0.07);
  backdrop-filter: blur(10px);
}

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

.price-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.price-options .price-card {
  display: flex;
  flex-direction: column;
}

.price-options .price-card .button {
  margin-top: auto;
}

.price-card.featured {
  border-color: rgba(47, 118, 85, 0.22);
  background:
    radial-gradient(circle at 12% 8%, rgba(47,118,85,0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239,247,241,0.94));
}

.price-description {
  margin-top: 14px;
  font-size: 16px;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(20,33,26,0.06);
  font-size: 0.92em;
}

@media (max-width: 980px) {
  .group-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .group-cards {
    grid-template-columns: 1fr;
  }
}


/* Real teacher content */

.hero-visual > img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.book-section .text-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.real-reviews article {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.real-reviews p {
  flex: 1;
}


.subject-card img,
.media-card img {
  object-fit: cover;
}

@media (max-width: 980px) {
  .review-screens {
    grid-template-columns: 1fr;
  }

  .review-screens img {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .hero-visual > img {
    max-height: 620px;
  }

  .real-reviews article {
    min-height: auto;
  }
}


.price-options.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.optional-link[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .price-options.three {
    grid-template-columns: 1fr;
  }
}


/* Refinements after content review */

.price-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-options.three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .price-options,
  .price-options.three {
    grid-template-columns: 1fr;
  }
}


/* Hardened feedback form */

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 118, 85, 0.16);
  border-radius: 16px;
  color: var(--accent-dark);
  background: rgba(223, 241, 231, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.field-help,
.field-error {
  display: block;
  margin-top: -2px;
  font-size: 13px;
  line-height: 1.35;
}

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

.field-error {
  min-height: 18px;
  color: #9b2c2c;
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: rgba(155, 44, 44, 0.55);
  box-shadow: 0 0 0 4px rgba(155, 44, 44, 0.08);
}

.form-status {
  padding-top: 2px;
  line-height: 1.45;
}

.form-status.is-info {
  color: var(--muted);
}

.form-status.is-success {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(223, 241, 231, 0.8);
}

.form-status.is-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(155, 44, 44, 0.08);
}

.lead-form.is-sending {
  opacity: 0.86;
}

.lead-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}


/* Direct / SEO sections */

.ad-cards article,
.seo-grid article {
  min-height: 190px;
}

.seo-section {
  position: relative;
}

.seo-keywords {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.seo-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 16px 60px rgba(20, 33, 26, 0.07);
  backdrop-filter: blur(10px);
}

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

.landing-page .landing-hero {
  min-height: auto;
  padding-top: 70px;
  padding-bottom: 44px;
}

.landing-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(223, 241, 231, 0.82);
  border: 1px solid rgba(47, 118, 85, 0.16);
  font-weight: 760;
}

.landing-content {
  max-width: 860px;
}

.landing-content p,
.landing-content li {
  color: var(--muted);
  font-size: 18px;
}

.landing-content ul {
  padding-left: 22px;
}

@media (max-width: 980px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}
