/* ==========================================================
   Pallet Town Watch Order — Landing page (index.html) only
   Loaded after css/base.css, so rules here can build on it.
   ========================================================== */

.btn--lg {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--header);
  color: var(--on-dark);
  padding: 48px 0 64px;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--yellow);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero__title-accent { color: var(--yellow); }

.hero__lede {
  margin: 0;
  font-size: 18px;
  color: var(--on-dark-muted);
  max-width: 52ch;
}

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

.hero__actions .btn { margin-top: 0; }

.hero__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--on-dark-muted);
  min-height: 1.45em;
}

/* Try-it preview card */
.preview {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 480px;
  color: var(--ink);
  border-radius: var(--radius-lg);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.preview[hidden] { display: none; }

.preview__head {
  display: flex;
  flex-wrap: wrap-reverse;   /* on narrow screens the tag sits above the title instead of squeezing it */
  justify-content: space-between;
  align-items: flex-end;     /* (with wrap-reverse this keeps the tag at the top) */
  gap: 8px 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.preview__progress {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-top: 2px;
}

.preview__tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  white-space: nowrap;
}

.preview__list { list-style: none; margin: 0; padding: 0; }

.preview__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 8px;
  border-top: 1px solid var(--line-soft);
}

.preview__row:first-child { border-top: 0; }

.preview__row--done { background: var(--row-watched); }

.preview__row--loading { padding: 16px 20px; color: var(--muted); }

.preview__check {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.preview__check input { width: 20px; height: 20px; cursor: pointer; }

.preview__code {
  flex: 0 0 76px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--type-episode);
}

.preview__title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview__note {
  margin: 0;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--accent);
  color: var(--on-accent);
}

.stats-strip[hidden] { display: none; }

.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* 6 across on desktop, 3 on tablets, 2 on phones (below) */
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.stat { display: flex; flex-direction: column; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat__label { font-weight: 700; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }

.section[hidden] { display: none; }

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.section__lede { margin: -12px 0 24px; font-size: 17px; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 across; stacked on phones (below) */
  gap: 16px;
}

.step {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.step__title,
.feature__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 3px solid var(--blue);
}

.feature__title { margin-top: 0; }

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

/* Region journey */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.journey__stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.journey__step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--header);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: 0 0 auto;
}

.journey__name { font-weight: 700; }

.journey__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* Closing call to action */
.cta-band {
  background: var(--header);
  color: var(--on-dark);
  padding: 56px 0;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.landing .site-footer { margin-top: 0; padding-top: 24px; border-top: 0; }

/* Tablets: stats in 3 columns (2 rows of 3, no lone item). */
@media (max-width: 900px) {
  .stats-strip__inner { grid-template-columns: repeat(3, 1fr); }
  .preview { max-width: none; }   /* when the demo sits under the text, use the full width */
}

/* Under 700px the three "How it works" cards stack. */
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 32px 0 48px; }
  .section { padding: 48px 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats-strip__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Landing: FAQ and footer links ---------- */
/* FAQ: full-width drop-downs. Answers stay in the page, so search engines
   still read them while they're collapsed. */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__summary:hover .faq__q { color: var(--link); }

.faq__q {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}

.faq__icon {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__icon { transform: rotate(180deg); }

.faq__a { padding: 0 4px 22px; }

.faq__a p { margin: 0; color: var(--muted); font-size: 17px; max-width: 80ch; }

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

