/* The public landing page (the bare address, for visitors who aren't signed in). It is built on the
   checkout page's public layout (checkout.css: the bar, the hero, sections, steps, questions and
   footer) and adds the six topics, the course cards and the still from the intro reel. */

/* ---------- Top bar ---------- */
.landing__signin {
  padding: 8px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent) !important;
  white-space: nowrap;
}

.landing__signin:hover {
  background: var(--accent-soft);
}

.landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing__actions--center {
  justify-content: center;
}

/* ---------- Six topics, one idea each ---------- */
.landing section[tabindex='-1']:focus {
  outline: none;
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.topic {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.topic:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.topic__n {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.topic h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.25;
}

.topic p {
  margin: 0;
  font-size: 15px;
}

/* The source sits at the foot of each card, after a small amber point, as under the reel's claims. */
.topic__source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto !important;
  padding-top: 16px;
}

.topic__source::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
}

.more__label {
  margin-right: 4px;
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- The two courses ---------- */
.course-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.course-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 1.1rem + 0.8vw, 28px);
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.15;
}

.course-card__tagline {
  margin: 0;
}

.course-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.course-card__stats li {
  display: grid;
  gap: 4px;
}

/* The same thin amber numbers as the counts on the checkout page. */
.course-card__stats strong {
  color: var(--accent);
  font-size: 32px;
  font-weight: 300;
  font-stretch: 115%;
  line-height: 1;
}

.course-card__stats span {
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-card__action {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.course-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--ink);
}

.course-card__price strong {
  font-size: 30px;
  font-weight: 600;
  font-stretch: 110%;
  line-height: 1;
}

.course-card__price span {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.course-card__price s {
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 13px;
  text-decoration-color: var(--accent);
}

.course-card__monthly {
  margin: -6px 0 0;
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.course-card__soon {
  margin: 0;
}

/* ---------- Meet NuQta: a still from the intro reel ---------- */
.watch {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.watch__still {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.watch__still img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 600ms var(--ease);
}

.watch__still:hover img {
  transform: scale(1.03);
}

.watch__text {
  max-width: 46ch;
  margin: 16px 0 24px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .landing__navlink {
    display: none;
  }

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

  .course-card {
    padding: 22px;
  }

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

  .watch__still {
    max-width: 240px;
  }
}

@media (max-width: 360px) {
  .landing__signin {
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic,
  .watch__still img {
    transition: none;
  }

  .topic:hover {
    transform: none;
  }

  .watch__still:hover img {
    transform: none;
  }
}
