/* landing.css: the shared landing template (templates/pages/landing.html), linked through page.json "styles".
   Pages: /guides/instagram-reel-transcript/, /guides/transcribe-tiktok-video/, /tiktok-summary/, /instagram-reels-summary/,
   /subtitles-for-videos-without-captions/.
   Phone first: the hero is text only and its App Store button must end <= 600 px at 360x640 and 390x664. */

/* ---- hero: crumbs, H1, promise, button + note (no image: the LCP is text) ---- */
.lp-hero {
  padding-block: clamp(5.5rem, 7vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(88, 113, 212, 0.22), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(40, 164, 242, 0.1), transparent 70%),
    var(--sc-canvas);
}
.lp-hero__copy { max-width: 48rem; }
.lp-hero .h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.04; }
.lp-hero .lede { max-width: 38ch; }
.lp-hero .hero__cta .note { max-width: 46ch; }

/* ---- steps: image rows (guides) or three text cards (no images) ---- */
.lp-steps { padding-top: clamp(2rem, 4vw, 4rem); }
.lp-steps__list { list-style: none; margin: var(--sc-7) 0 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
/* content-v2.css places .step__media on a 12-column grid (grid-column: 7 / span 6); on this 2-column card that
   spawned 10 implicit columns and squeezed the copy to ~150 px, so both children take the next auto cell here. */
.lp-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.lp-step__copy, .lp-step .step__media { grid-column: auto; }
.lp-step .step__media { width: min(100%, 500px); justify-self: end; }
.lp-step:nth-child(even) .step__media { order: -1; justify-self: start; }
.lp-step__copy .body, .lp-step__copy .tip { max-width: 46ch; }
.lp-steps__list:not(:has(.step__media)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-5); }
.lp-steps__list:not(:has(.step__media)) .lp-step {
  display: block; padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: 22px;
  background: var(--v2-card); box-shadow: inset 0 0 0 1px var(--v2-line);
}
.lp-steps__list:not(:has(.step__media)) .h3 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); }
.lp-steps__list:not(:has(.step__media)) .body { font-size: 1.0625rem; }
.lp-steps__list:not(:has(.step__media)) .tip { background: var(--v2-card-2); }

/* ---- one app screenshot ---- */
.lp-shot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.lp-shot__copy .body { margin-top: var(--sc-5); max-width: 46ch; }
.lp-shot__media { width: min(100%, 440px); justify-self: end; }
.lp-shot__grid:has(.lp-shot__media--tall) { align-items: start; }
.lp-shot__grid:has(.lp-shot__media--tall) .lp-shot__copy { position: sticky; top: clamp(5rem, 12vh, 8rem); }
.lp-shot__media--tall { width: min(100%, 380px); justify-self: center; }

/* ---- optional screenshot pair ({{@pair}}: page.json "pair", e.g. original vs translated subtitles) ---- */
.lp-pair__intro { margin-top: var(--sc-5); max-width: 60ch; }
.lp-pair__grid { margin-top: var(--sc-7); display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: clamp(1rem, 3vw, 2.5rem); justify-content: start; }
.lp-pair__media { width: 100%; }

/* ---- good to know (after the FAQ) ---- */
.lp-know__list { list-style: none; margin: var(--sc-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sc-5) var(--sc-7); }
.lp-know__list li { padding-top: var(--sc-4); border-top: 1px solid var(--v2-line); font-size: 1.0625rem; line-height: 1.6; color: var(--v2-body); text-wrap: pretty; }
.lp-know__list b { color: var(--sc-ink); font-weight: 600; }
.lp-know__list a { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }

/* ---- optional comparison table ({{@vs}}: vs.* keys; the MarkerShelf column is .us) ---- */
.lp-vs__intro { margin-top: var(--sc-5); max-width: 60ch; }
.lp-vs__card { margin-top: var(--sc-7); border-radius: 24px; background: var(--v2-card); box-shadow: inset 0 0 0 1px var(--v2-line); overflow: clip; }
.lp-vs__t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; hyphens: none; -webkit-hyphens: none; overflow-wrap: break-word; }
.lp-vs__t th, .lp-vs__t td { padding: 1.05rem 1.3rem; text-align: left; vertical-align: top; border-top: 1px solid var(--v2-line); font-size: 1.0625rem; line-height: 1.45; color: var(--v2-body); }
.lp-vs__t thead th { border-top: 0; padding-block: 1.2rem 1.05rem; color: var(--sc-ink); font-size: 1.125rem; font-weight: 600; }
.lp-vs__t thead th:first-child { width: 24%; }
.lp-vs__t tbody th { color: var(--sc-ink); font-weight: 600; font-size: 1rem; }
.lp-vs__t .us { background: #121C31; color: #DCE3F0; }
.lp-vs__t thead .us { background: linear-gradient(#16223B, #121C31); box-shadow: inset 0 3px 0 #28A4F2; }
.lp-vs__note { margin-top: var(--sc-4); font-size: var(--t-small); color: var(--v2-muted); max-width: 70ch; }

@media (max-width: 900px) {
  .lp-step, .lp-shot__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-step .step__media, .lp-step:nth-child(even) .step__media, .lp-shot__media { order: 0; justify-self: start; width: min(100%, 460px); }
  .lp-shot__grid:has(.lp-shot__media--tall) .lp-shot__copy { position: static; }
  .lp-shot__media--tall { justify-self: center; width: min(100%, 380px); }
  .lp-steps__list:not(:has(.step__media)), .lp-know__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .lp-pair__grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .lp-pair__media { width: min(100%, 460px); }
  /* phone: the row label becomes a small heading over the two cells */
  .lp-vs__t, .lp-vs__t thead, .lp-vs__t tbody { display: block; }
  .lp-vs__t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-vs__t thead th:first-child { display: none; }
  .lp-vs__t th, .lp-vs__t td { padding: 0.8rem 0.9rem; font-size: 0.9375rem; }
  .lp-vs__t thead th { padding-block: 0.95rem 0.85rem; font-size: 1rem; }
  .lp-vs__t tbody th { grid-column: 1 / -1; padding: 1rem 0.9rem 0.2rem; font-size: 0.8125rem; font-family: var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--v2-muted); font-weight: 500; }
  .lp-vs__t tbody td { border-top: 0; }
}
@media (max-width: 600px) {
  .lp-hero { padding-top: 4.5rem; }
  .lp-hero .crumbs { margin-bottom: var(--sc-3); }
  .lp-hero .h1 { margin-top: 0; }
  .lp-hero .lede { margin-top: var(--sc-4); }
  .lp-hero .hero__cta { margin-top: var(--sc-5); }
  .lp-hero .hero__cta .btn { width: 100%; justify-content: center; }
}
