:root {
  --bg: #f5fbf6;
  --surface: #ffffff;
  --text: #17261d;
  --muted: #617066;
  --line: rgba(23, 38, 29, 0.1);
  --green: #1b6b3a;
  --green-mid: #2e8b57;
  --green-light: #57c472;
  --green-deep: #0f5d2e;
  --accent: #d5a86d;
  --shadow: 0 24px 60px rgba(16, 53, 31, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(87, 196, 114, 0.16), transparent 24%),
    radial-gradient(circle at 20% 30%, rgba(27, 107, 58, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", sans-serif;
}

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

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

.site-shell,
.legal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.legal-topbar {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16, 53, 31, 0.12);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.topnav a:hover,
.text-link:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  padding: 30px 0 22px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
  max-width: 10.5ch;
}

.hero-text,
.section-copy,
.split-copy p,
.lesson-card-body p,
.app-highlights p,
.store-callout p,
.footer p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.book-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 28px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: white;
  box-shadow: 0 20px 36px rgba(27, 107, 58, 0.24);
}

.btn-secondary,
.btn-tertiary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.btn-disabled {
  border: 0;
  background: #d7ddd9;
  color: #6e7771;
  cursor: not-allowed;
}

.hero-points,
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 700;
}

.hero-points li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
}

.hero-media {
  position: relative;
  min-height: 640px;
}

.portrait-card {
  position: absolute;
  right: 0;
  top: 0;
  width: min(100%, 400px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.portrait-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(10, 25, 16, 0.62);
  color: white;
}

.portrait-badge span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.portrait-badge small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.app-preview-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(88%, 460px);
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.app-preview-card img,
.app-shot img {
  border-radius: 24px;
}

.section {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1;
  max-width: 12ch;
}

.section-copy {
  max-width: 42ch;
}

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

.book-card,
.lesson-card,
.app-showcase,
.legal-page,
.social-grid a {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 38, 29, 0.08);
  box-shadow: var(--shadow);
}

.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
}

.book-cover-wrap {
  padding: 14px 14px 0;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.book-body {
  display: grid;
  gap: 12px;
  padding: 14px 14px 8px;
}

.book-body h3 {
  font-size: 1.12rem;
  line-height: 1.08;
}

.book-body p {
  margin: 0;
}

.book-actions {
  padding: 0 14px 16px;
}

.mini-chip,
.soon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-chip {
  background: rgba(27, 107, 58, 0.1);
  color: var(--green);
}

.soon-pill {
  background: rgba(213, 168, 109, 0.18);
  color: #8a6530;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 26px;
  align-items: center;
}

.split-copy h2,
.app-copy h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.lesson-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.lesson-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-card-body {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 30px;
}

.app-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 20px;
  border-radius: 36px;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.app-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.app-highlights {
  display: grid;
  gap: 16px;
}

.app-highlights article,
.store-callout {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.app-highlights strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.app-highlights p,
.store-callout p {
  margin: 8px 0 0;
}

.screen-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 38, 29, 0.08);
  box-shadow: var(--shadow);
}

.phone-frame {
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 242, 0.98));
  border: 1px solid rgba(23, 38, 29, 0.08);
}

.phone-frame img {
  width: 100%;
  border-radius: 22px;
}

.screen-copy {
  display: grid;
  gap: 6px;
  padding: 0 2px 2px;
}

.screen-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.screen-copy span {
  color: var(--muted);
  line-height: 1.55;
}

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

.social-grid a {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.social-grid strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.social-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.footer {
  display: grid;
  gap: 16px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
}

.footer strong {
  font-family: "Manrope", sans-serif;
}

.copyright {
  margin: 0;
  color: var(--muted);
}

.legal-page {
  width: min(860px, 100%);
  margin: 20px auto 60px;
  padding: 34px;
  border-radius: 32px;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.legal-date {
  margin: 10px 0 28px;
  color: var(--muted);
}

.legal-page section + section {
  margin-top: 28px;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.legal-page ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1080px) {
  .hero,
  .split-section,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: auto;
    display: grid;
    gap: 20px;
  }

  .portrait-card,
  .app-preview-card {
    position: static;
    width: 100%;
  }

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

  .social-grid,
  .app-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .legal-shell {
    width: min(100% - 24px, 100%);
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: start;
  }

  h1 {
    max-width: none;
  }

  .hero-actions,
  .book-actions,
  .footer-links {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .book-grid,
  .social-grid,
  .app-gallery {
    grid-template-columns: 1fr;
  }

  .lesson-card {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding: 24px;
    border-radius: 24px;
  }
}
