/* Homepage presentation only. Shared support and account flows use styles.css. */
.home-page {
  --home-rule: #e2e5ee;
  --home-muted: #586176;
  -webkit-font-smoothing: antialiased;
}

.home-page .site-header-wide,
.home-page .home,
.home-page .site-footer-wide {
  width: min(100% - 80px, 1200px);
}

.home-page .site-header {
  min-height: 96px;
  border-bottom: 0;
}

.home-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
}

.home-page .main-nav {
  gap: 32px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.home-page .main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.home-page a {
  transition: color 160ms ease, background-color 160ms ease;
}

.home-page a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.home-page .home {
  padding-bottom: 0;
}

.home-page .hero {
  min-height: 660px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  padding-block: 36px 64px;
}

.home-page .hero-copy {
  position: relative;
  z-index: 1;
}

.home-page .eyebrow {
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.065em;
  line-height: 1.5;
}

.home-page .hero .eyebrow {
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.home-page .hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(2.5rem, 4.1vw, 3.625rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.052em;
}

.home-page .hero h1 span {
  display: block;
}

.home-page .hero h1 span + span {
  color: var(--brand);
}

.home-page .hero .lead {
  max-width: 530px;
  color: var(--home-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.home-page .app-download {
  margin-top: 32px;
}

.home-page .app-store-badge {
  border-radius: 10px;
  box-shadow: 0 5px 14px rgb(8 13 35 / 5%);
}

.home-page .hero-actions {
  align-items: center;
  gap: 12px 28px;
  margin-top: 18px;
}

.home-page .hero-actions a {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--home-muted);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #aeb4c2;
  text-underline-offset: 5px;
}

.home-page .hero-actions a:hover,
.home-page .main-nav a:hover,
.home-page footer a:hover {
  color: var(--brand);
}

.product-showcase {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.12;
  justify-self: end;
  isolation: isolate;
}

.product-showcase::before {
  content: "";
  position: absolute;
  inset: 8% -2% 8% 0;
  z-index: -1;
  border-radius: 50%;
  background: #f8e8f0;
}

.app-screen {
  position: absolute;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #dfe1e9;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 38px -18px rgb(8 13 35 / 28%), 0 3px 8px rgb(8 13 35 / 5%);
}

.app-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.plan-screen {
  top: 0;
  right: 2%;
  width: 51%;
}

.vocabulary-screen {
  left: 1%;
  bottom: 0;
  z-index: 1;
  width: 43%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.journey-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 32px;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
}

.home-page .journey-card {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 0 30px;
  border-top: 0;
}

.home-page .journey-card:first-of-type {
  padding-left: 0;
}

.home-page .journey-card:last-child {
  padding-right: 0;
}

.home-page .journey-card + .journey-card {
  border-left: 1px solid var(--home-rule);
}

.home-page .journey-index {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.home-page .journey-card strong {
  display: block;
  padding-top: 2px;
  font-size: 1rem;
  font-weight: 650;
}

.home-page .journey-card p {
  margin-top: 7px;
  color: var(--home-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.home-page .feature-section {
  padding-block: 88px 64px;
  border-top: 0;
  scroll-margin-top: 32px;
}

.home-page .feature-section > h2 {
  max-width: 630px;
  margin: 14px 0 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-page .feature-grid {
  gap: 32px;
  margin-top: 40px;
  border: 0;
  background: transparent;
}

.home-page .feature-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.home-page .feature-number {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.home-page .feature-grid h3 {
  margin: 6px 0 10px;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.home-page .feature-grid p {
  min-height: 78px;
  padding-bottom: 24px;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-media {
  display: grid;
  place-items: center;
  margin-top: auto;
  padding: 24px;
  border-radius: 18px;
}

.learn-media {
  background: #f9e8f0;
}

.practice-media {
  background: #eeebfc;
}

.test-media {
  background: #e8edf7;
}

.feature-media img {
  display: block;
  width: min(100%, 228px);
  height: auto;
  border: 1px solid rgb(8 13 35 / 8%);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgb(8 13 35 / 5%);
}

.home-page .site-footer-wide {
  padding-block: 28px 36px;
  border-color: var(--home-rule);
  color: var(--home-muted);
  font-size: 0.8125rem;
}

.home-page .site-footer-wide strong {
  color: var(--ink);
  font-size: 0.9375rem;
}

.home-page .site-footer-wide .apple-credit {
  max-width: 500px;
  margin-top: 16px;
  font-size: 0.6875rem;
}

.home-page .site-footer-wide nav {
  gap: 4px 22px;
}

.home-page .site-footer-wide nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 500;
  text-decoration: none;
}

.home-page .site-footer-wide .social-links {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.home-page .site-footer-wide .social-links a {
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border-radius: 50%;
}

.home-page .social-links a:hover,
.home-page .social-links a:focus-visible {
  color: var(--brand);
  background: #f9e8f0;
}

.social-links svg {
  display: block;
  flex: none;
}

@media (max-width: 1100px) {
  .home-page .hero {
    min-height: 0;
    gap: 32px;
    padding-block: 44px 56px;
  }

  .home-page .hero h1 {
    font-size: clamp(2.4rem, 4.1vw, 3rem);
  }

  .home-page .journey-card {
    padding-inline: 20px;
    gap: 10px;
  }

  .home-page .feature-grid {
    gap: 24px;
  }

  .feature-media {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .home-page .site-header-wide,
  .home-page .home,
  .home-page .site-footer-wide {
    width: calc(100% - 40px);
  }

  .home-page .site-header {
    min-height: 80px;
  }

  .home-page .brand {
    gap: 8px;
    font-size: 1.1875rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .home-page .main-nav {
    gap: 16px;
    font-size: 0.8125rem;
  }

  .home-page .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 32px 44px;
  }

  .home-page .hero h1 {
    max-width: 600px;
    margin-top: 18px;
    font-size: clamp(2.25rem, 7.9vw, 3.25rem);
  }

  .home-page .hero .lead {
    max-width: 580px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-page .app-download {
    margin-top: 24px;
  }

  .home-page .hero-actions {
    margin-top: 12px;
  }

  .product-showcase {
    width: min(100%, 430px);
    justify-self: center;
  }

  .product-showcase::before {
    right: 0;
  }

  .app-screen {
    padding: 4px;
    border-radius: 22px;
  }

  .app-screen img {
    border-radius: 17px;
  }

  .journey-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 28px;
  }

  .home-page .journey-card {
    padding: 0;
    gap: 14px;
  }

  .home-page .journey-card + .journey-card {
    border-left: 0;
  }

  .home-page .journey-card p {
    margin-top: 4px;
  }

  .home-page .feature-section {
    padding-block: 56px 44px;
  }

  .home-page .feature-section > h2 {
    max-width: 490px;
    font-size: clamp(1.875rem, 6vw, 2.5rem);
  }

  .home-page .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 32px;
  }

  .home-page .feature-grid article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 28px;
    align-content: start;
  }

  .home-page .feature-grid p {
    min-height: 0;
    padding-bottom: 0;
  }

  .feature-media {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    margin-top: 0;
  }

  .home-page .site-footer-wide {
    gap: 20px;
  }

  .home-page .site-footer-wide nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .home-page .site-header {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 12px;
  }

  .home-page .main-nav {
    gap: 12px;
  }

  .home-page .hero h1 span {
    max-width: 340px;
  }

  .home-page .hero h1 {
    font-size: clamp(1.875rem, 9.25vw, 2.25rem);
  }

  .home-page .hero-actions {
    gap: 8px 24px;
  }

  .home-page .feature-grid article {
    display: flex;
  }

  .home-page .feature-grid h3 {
    margin-top: 6px;
  }

  .home-page .feature-grid p {
    padding-bottom: 20px;
  }

  .feature-media {
    padding: 24px;
  }

  .feature-media img {
    width: min(100%, 208px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-page a {
    transition: none;
  }
}
