/* ===================================================================
   Commercial landing (pages/landing.html). Only what Tailwind utilities
   cannot express: the hero grid, the search concept illustration and the
   section components. Colours come from the theme tokens (--card-bg,
   --text-heading, --text-muted, --color-base-*, --main-brand-color), so
   the dark theme follows without extra rules except where noted.
   =================================================================== */

.landing {
  --landing-gap: clamp(3.5rem, 8vw, 6rem);
  --landing-tint: color-mix(in oklab, var(--main-brand-color) 8%, var(--card-bg));
}

.landing-icon { width: 1.25rem; height: 1.25rem; font-size: 1.25rem; display: inline-block; }
.landing-icon-sm { width: 1rem; height: 1rem; font-size: 1rem; display: inline-block; flex-shrink: 0; }

/* ---- Hero ---------------------------------------------------------- */
/* Width and gutter: .site-container (site.css), shared by every site page. */

.landing-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.landing-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .landing-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.landing-hero__copy { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; min-width: 0; }
.landing-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}
.landing-hero__title .headline-em { font-style: italic; color: var(--text-heading); white-space: nowrap; }
.landing-hero__deck {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0;
}
/* The price after the trial, one muted line under the actions. */
.landing-hero__price { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--text-muted); max-width: 40ch; }
.landing-hero__price a { white-space: nowrap; }
.landing-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

/* The secondary text link .landing-link lives in site.css (the 404 page uses it too). */
.landing-inline-link { color: var(--text-heading); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Concept illustration: search across a show ---------------------- */
/* Stacked under the copy (below 1024 px) it starts at the text column's left
   edge; centred in its own column once the hero has two. */
.search-demo { margin: 0; min-width: 0; width: 100%; max-width: 34rem; justify-self: start; }
@media (min-width: 1024px) { .search-demo { justify-self: center; } }
.search-demo__card {
  background: var(--card-bg);
  border: 1px solid var(--color-base-300);
  border-radius: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -18px rgb(0 0 0 / 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.search-demo__show { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.search-demo__cover {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #1f3a5f, #b4532a);
}
.search-demo__show-text { display: flex; flex-direction: column; min-width: 0; }
.search-demo__show-name { font-weight: 600; color: var(--text-heading); line-height: 1.25; }
.search-demo__show-meta { font-size: 0.8rem; color: var(--text-muted); line-height: 1.3; }
.search-demo__url {
  margin: -0.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.search-demo__field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
  color: var(--text-muted);
}
.search-demo__query { color: var(--text-heading); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.search-demo__query::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--text-heading);
}
.search-demo__count { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.search-demo__groups, .search-demo__hits { list-style: none; margin: 0; padding: 0; }
.search-demo__groups { display: flex; flex-direction: column; gap: 0.75rem; }
.search-demo__group {
  border: 1px solid var(--color-base-200);
  border-radius: 0.9rem;
  padding: 0.75rem 0.75rem 0.4rem;
}
.search-demo__episode {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.search-demo__hits > li + li { border-top: 1px solid var(--color-base-200); }
.search-demo__hit { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.55rem 0; }
.search-demo__time {
  flex-shrink: 0;
  margin-top: 0.1rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  background: color-mix(in oklab, var(--main-brand-color) 10%, var(--card-bg));
  border: 1px solid color-mix(in oklab, var(--main-brand-color) 25%, transparent);
}
.search-demo__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.search-demo__chapter { font-size: 0.8rem; font-weight: 500; color: var(--text-heading); }
.search-demo__line { font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); overflow-wrap: anywhere; }
/* The app's .search-hit mark mixes in the brand colour; on the root host the
   brand is near-black, so the illustration pins the amber highlight itself. */
.search-demo .search-hit mark {
  background-color: #fde68a;
  color: oklch(15% 0.02 247);
  box-shadow: inset 0 0 0 1px #f59e0b66;
}
html[data-theme="enacastdark"] .search-demo .search-hit mark {
  background-color: #92400e;
  color: #fff8e1;
  box-shadow: none;
}
.search-demo__caption {
  margin-top: 0.6rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Sections -------------------------------------------------------- */
.landing-section { padding-top: var(--landing-gap); }
.landing-section .section-head { flex-wrap: wrap; margin-bottom: 1.75rem; }
.landing-section__more { margin-top: 1.25rem; }
.landing-section__cta { margin-top: 2.25rem; }

/* Shows on EnaCast */
.landing-shows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
/* Phones: three rows of two are enough proof; the rest is one tap away. */
@media (max-width: 639.98px) { .landing-shows > li:nth-child(n+7) { display: none; } }
@media (min-width: 640px) { .landing-shows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .landing-shows { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.landing-show { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; color: var(--text-heading); }
.landing-show__cover {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--sidebar-bg);
  border: 1px solid var(--color-base-300);
}
.landing-show__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-show__initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: var(--text-muted);
}
.landing-show__name {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-decoration: underline 1px transparent;
  text-underline-offset: 3px;
}
.landing-show:hover .landing-show__name,
.landing-show:focus-visible .landing-show__name { text-decoration-color: currentColor; }
.landing-show:focus-visible { outline: 2px solid var(--text-heading); outline-offset: 4px; border-radius: 0.9rem; }
.landing-show__meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--text-muted); }

/* What your show gets */
.landing-features {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: 2rem 1.75rem;
}
@media (min-width: 640px) { .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .landing-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.landing-feature { min-width: 0; }
.landing-feature__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-heading);
  background: var(--landing-tint);
  border: 1px solid color-mix(in oklab, var(--main-brand-color) 18%, transparent);
  margin-bottom: 1rem;
}
.landing-feature__title, .landing-path__title, .landing-step__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0 0 0.4rem;
}
.landing-feature__text, .landing-path__text, .landing-step__text {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.landing-feature__url {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-heading);
  overflow-wrap: anywhere;
}

/* Keep your host, or host with us */
.landing-paths { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .landing-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.landing-path {
  min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--color-base-300);
}
/* The self-service path is the recommended one: same card, ink border. */
.landing-path--primary { border: 1.5px solid var(--text-heading); }
.landing-path__text { flex: 1; }
.landing-path__action { margin-top: 1.5rem; }
/* The shared outline button (site.css) is nowrap; let a long email wrap. */
.landing-btn-wrap { white-space: normal; max-width: 100%; text-align: center; overflow-wrap: anywhere; padding-block: 0.5rem; }

/* How it works */
.landing-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem;
}
@media (min-width: 768px) { .landing-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.landing-step { min-width: 0; }
/* Stacked on phones: a rule between steps (the section head already draws the first one). */
@media (max-width: 767.98px) { .landing-step + .landing-step { padding-top: 1.5rem; border-top: 1px solid var(--color-base-300); } }
/* The step numbers are .site-step-number (site.css), shared with /about. */

/* Pricing teaser */
.landing-plan {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--color-base-300);
}
@media (min-width: 768px) { .landing-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.landing-plan__price { min-width: 0; }
.landing-plan__headline { margin: 0; color: var(--text-heading); font-size: 1.05rem; line-height: 1.4; }
.landing-plan__amount {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}
.landing-plan__alt { margin: 0.5rem 0 0; color: var(--text-muted); }
.landing-plan__link { margin-top: 0.75rem; }
.landing-plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.landing-plan__list li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-heading); line-height: 1.45; }
.landing-plan__list iconify-icon { margin-top: 0.2rem; }

/* FAQ */
.landing-faq { max-width: 48rem; }
.landing-faq__item { border-bottom: 1px solid var(--color-base-300); }
.landing-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px;
  padding: 1rem 0;
}
.landing-faq__q::-webkit-details-marker { display: none; }
.landing-faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
}
.landing-faq__item[open] > .landing-faq__q::after { content: "\2212"; }
.landing-faq__q h3 { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--text-heading); min-width: 0; }
.landing-faq__q:focus-visible { outline: 2px solid var(--text-heading); outline-offset: 2px; border-radius: 0.25rem; }
.landing-faq__a { padding: 0 0 1.25rem; color: var(--text-muted); line-height: 1.6; max-width: 65ch; }
.landing-faq__a p { margin: 0; }

/* Final band */
.landing-final {
  margin-top: var(--landing-gap);
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--sidebar-bg);
  border-top: 1px solid var(--color-base-300);
}
.landing-final__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.landing-final__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}
.landing-final__text { margin: 0; color: var(--text-muted); max-width: 52ch; font-size: 1.05rem; line-height: 1.5; }
