:root {
  --background: #f4f7f1;
  --surface: #ffffff;
  --surface-soft: #e9f0e9;
  --text: #202724;
  --muted: #5f6d66;
  --accent: #0b7285;
  --accent-dark: #075666;
  --accent-2: #2f67d8;
  --border: #d2dcd2;
  --shadow: rgb(32 39 36 / 12%);
}

* {
  box-sizing: border-box;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms cubic-bezier(.2, 0, 0, 1), transform 480ms cubic-bezier(.2, 0, 0, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

a {
  color: var(--accent-dark);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

a:focus-visible,
audio:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  margin: 0 auto;
  max-width: 1080px;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-top: 28px;
}

.brand {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  padding: 78px 0 60px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 4.7rem);
  letter-spacing: -0.035em;
  line-height: 0.99;
  margin: 0;
  max-width: 800px;
}

.lede {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 24px 0 0;
  max-width: 720px;
}

.hero-card {
  align-self: end;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.hero-card strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.hero-card p,
.hero-card li {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card p,
.hero-card ul {
  margin-bottom: 0;
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1.2rem;
}

.section {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  padding: 52px 0;
  scroll-margin-top: 24px;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

.section-copy {
  max-width: 740px;
}

.section-copy p,
.section-copy li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.74;
}

.section-copy p,
.section-copy ul {
  margin-bottom: 0;
  margin-top: 0;
}

.section-copy p + p,
.section-copy p + ul,
.section-copy ul + p,
.section-copy p + .phrase-list,
.section-copy p + .word-grid,
.section-copy p + .letter-board,
.section-copy p + .related-grid,
.section-copy .phrase-list + p,
.section-copy .word-grid + p,
.section-copy .letter-board + p {
  margin-top: 20px;
}

.phrase-list {
  display: grid;
  gap: 12px;
}

.phrase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: minmax(155px, 0.72fr) minmax(0, 1.28fr);
  padding: 18px 20px;
}

.phrase-script {
  font-size: 1.22rem;
  font-weight: 750;
}

.phrase-details {
  color: var(--muted);
  line-height: 1.5;
}

.phrase-details strong {
  color: var(--text);
}

.pronunciation {
  color: var(--accent-dark);
  display: block;
  font-weight: 650;
  margin-bottom: 3px;
}

.phrase audio {
  grid-column: 1 / -1;
  height: 40px;
  margin-top: 4px;
  max-width: 360px;
  width: 100%;
}

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

.word-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px;
}

.word-card .phrase-script {
  display: block;
  margin-bottom: 7px;
}

.word-card p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.callout {
  background: var(--surface-soft);
  border-left: 5px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
}

.callout strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.4;
}

.callout p {
  margin-top: 8px;
}

.callout + p,
.callout + .word-grid {
  margin-top: 20px;
}

.letter-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.letter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 750;
  padding: 14px 6px;
  text-align: center;
}

.letter small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 4px;
}

.example-strip {
  background: var(--text);
  border-radius: 18px;
  color: var(--surface);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px;
}

.example-strip strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.example-strip span {
  color: #dbe7df;
  line-height: 1.5;
}

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

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: block;
  padding: 17px 18px;
  text-decoration: none;
}

.related-card span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 450;
  line-height: 1.45;
  margin-top: 5px;
}

.cta {
  align-items: center;
  background: var(--text);
  border-radius: 20px;
  color: var(--surface);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 18px 0 56px;
  padding: 28px;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.cta p {
  color: #dbe7df;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 600px;
}

.app-store-link {
  background: var(--surface);
  border: 2px solid var(--surface);
  border-radius: 12px;
  color: var(--text);
  flex: 0 0 auto;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
}

.app-store-link:hover {
  background: transparent;
  color: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  padding-bottom: 40px;
  padding-top: 30px;
}

.footer-meta {
  color: var(--muted);
  line-height: 1.65;
}

.footer-meta strong,
.footer-links strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.footer-links nav {
  display: grid;
  gap: 8px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .hero,
  .section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

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

  .section {
    gap: 22px;
  }

  .letter-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-bottom: 46px;
    padding-top: 46px;
  }

  .section {
    padding: 44px 0;
  }

  .phrase,
  .word-grid,
  .example-strip {
    grid-template-columns: 1fr;
  }

  .letter-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .footer-links nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
