/* =====================================================================
   Feature / tool / use-case landing pages, layout v3 (2026-10-19).
   Loaded after home.css (tokens, nav, buttons, FAQ, CTA, footer) by the
   pages scripts/build_site.py renders through landing_page():
   headline + launcher → demo clip → article sections (steps, card grids,
   sticky heading beside prose) → FAQ → related pages → CTA.
   body[data-pop] is fixed per page (PAGE_MODE / MODE_POP).
   ===================================================================== */

/* ---------- hero ---------- */
.f-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  max-width: 1040px; padding-top: 40px; padding-bottom: 8px; animation: h-rise .6s both;
}
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--ink); font-weight: 600; }
.f-hero .art-title { font: 800 clamp(40px, 5.4vw, 76px)/.95 var(--display); letter-spacing: -.055em; max-width: 18ch; text-wrap: balance; }
.f-sub { font-size: 18.5px; line-height: 1.5; color: #333333; max-width: 680px; }
.f-hero .lg-gen { margin-top: 10px; }
.lg-gen[data-lock] .lg-gen-modes { display: none; }

/* ---------- demo clip ---------- */
.f-demo { padding-top: 40px; }
.f-demo-frame { padding: 14px; border-radius: 40px; background: var(--pop); transition: background .3s; }
.f-demo-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--ink); }

/* ---------- article bands ---------- */
.f-intro { padding-top: 96px; }
.f-band { padding-top: 120px; }
.f-band-mist > .h-wrap, .f-band-dark > .h-wrap { padding-top: 88px; padding-bottom: 88px; border-radius: 48px; }
.f-band-mist > .h-wrap { background: var(--mist); }
.f-band-dark > .h-wrap { background: var(--ink); color: #FFFFFF; }
.f-band-mist, .f-band-dark { padding-left: 16px; padding-right: 16px; }
.f-band-mist > .h-wrap, .f-band-dark > .h-wrap { max-width: calc(var(--wrap) + 96px); padding-left: 48px; padding-right: 48px; }
.f-head { max-width: 820px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.f-h2 { font: 800 clamp(32px, 4vw, 54px)/1 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.f-lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.f-lead p + p { margin-top: 12px; }
.f-band-dark .f-lead { color: #C9C9C9; }

/* prose (sticky-head rows, intro, the text under steps/cards) */
.f-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.f-split-head { position: sticky; top: 110px; }
.f-split-head .f-h2 { font-size: clamp(30px, 3.4vw, 46px); }
.f-split-head::after { content: ''; display: block; width: 64px; height: 8px; margin-top: 22px; border-radius: 999px; background: var(--pop); }
.f-prose { font-size: 17.5px; line-height: 1.7; color: #2A2A2A; }
.f-prose-center { max-width: 760px; margin: 0 auto; }
.f-steps + .f-prose, .f-cards + .f-prose { margin-top: 48px; }
.f-band-dark .f-prose { color: #D6D6D6; }
.f-prose > * + * { margin-top: 18px; }
.f-prose h3 { font: 800 22px/1.2 var(--display); letter-spacing: -.03em; color: var(--ink); margin-top: 32px; }
.f-prose a, .f-lead a, .f-card a, .f-step a, .faq-a a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--pop); }
.f-prose a:hover, .f-lead a:hover, .f-card a:hover, .f-step a:hover, .faq-a a:hover { text-decoration-color: currentColor; }
.f-prose strong { color: var(--ink); }
.f-band-dark .f-prose strong, .f-band-dark .f-card strong { color: #FFFFFF; }
.f-prose code { font: 500 .9em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--mist); }
.f-prose .lead-para { font-size: 20px; line-height: 1.6; color: var(--ink); }
.f-prose ul.plain { margin: 0; padding-left: 1.2em; }
.f-prose ul.plain li + li { margin-top: 8px; }
.f-prose .feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.f-prose .feature-list li { display: flex; gap: 12px; }
.f-prose .feature-list .ck {
  flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--pop); color: var(--pop-ink); font-size: 12px; font-weight: 800;
}
.f-prose .steps { display: flex; flex-direction: column; gap: 12px; }
.f-prose .step-row { display: flex; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--mist); }
.f-prose .snum { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #FFFFFF; font: 800 14px var(--body); }
.f-prose .callout { padding: 18px 20px; border-radius: 20px; background: var(--pop-soft); border-left: 6px solid var(--pop); }
.f-prose .action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.f-prose .action-row .btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; background: var(--mist); }
.f-prose .action-row .btn-primary { background: var(--ink); color: #FFFFFF; }
.f-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.f-prose th, .f-prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.f-prose th { background: var(--mist); font-weight: 700; }
.f-prose tr:last-child td { border-bottom: 0; }
.f-prose .table-scroll { overflow-x: auto; border-radius: 20px; }
.f-prose th.is-livegen, .f-prose td.is-livegen { background: var(--pop-soft); font-weight: 600; }
.f-prose .shot { margin: 8px 0 0; }
.f-prose .shot img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--mist); }
.f-prose .shot figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }

/* numbered steps */
.f-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.f-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 30px; border-radius: 30px; background: var(--paper); }
.f-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--pop); color: var(--pop-ink); font: 800 28px/1 var(--display); letter-spacing: -.04em; margin-bottom: 6px;
}
.f-step h3 { font: 800 22px/1.15 var(--display); letter-spacing: -.035em; }
.f-step p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* card grids */
.f-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.f-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px; border-radius: 28px; background: var(--mist); }
.f-card-dot { width: 40px; height: 12px; border-radius: 999px; background: var(--c); margin-bottom: 8px; }
.f-card h3 { font: 800 21px/1.15 var(--display); letter-spacing: -.03em; }
.f-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.f-band-mist .f-card { background: var(--paper); }
.f-band-dark .f-card { background: #1C1C1C; }
.f-band-dark .f-card p { color: #BDBDBD; }

/* FAQ: livegen.js toggles .open */
.f-band .faq-item { background: var(--mist); }
.f-band .faq-item .sign { background: var(--paper); color: var(--ink); transition: transform .2s; }
.f-band .faq-a { display: none; }
.f-band .faq-a p + p { margin-top: 10px; }
.f-band .faq-item.open { background: var(--pop-soft); }
.f-band .faq-item.open .faq-a { display: block; }
.f-band .faq-item.open .sign { background: var(--ink); color: #FFFFFF; transform: rotate(45deg); }

/* related pages */
.f-related { padding-top: 120px; }
.related .rel-head { font: 800 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.05em; margin-bottom: 32px; }
.grid-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; border-radius: 26px; background: var(--mist); padding: 8px 8px 18px; transition: transform .3s var(--ease); }
.case:hover { transform: translateY(-5px); }
.case-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--ink) !important; }
.case-thumb .scan { display: none; }
.case-info { padding: 14px 10px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.case-kw { display: none; }
.case-title { font: 800 18px/1.15 var(--display); letter-spacing: -.03em; }
.case-explore { font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: var(--pop); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* closing CTA */
.f-cta-wrap { padding-top: 120px; }
.f-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- tablets ---------- */
@media (max-width: 1024px) {
  .f-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .f-split-head { position: static; }
  .f-steps, .f-steps-4, .f-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phones: the launcher's image slot sits on the first screen ---------- */
@media (max-width: 640px) {
  .f-hero { padding-top: 14px; gap: 12px; }
  .f-hero .crumbs, .f-hero .h-kicker { display: none; }
  .f-hero .art-title { font-size: 33px; }
  .f-sub { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .f-hero .lg-gen { margin-top: 4px; }
  .f-demo { padding-top: 28px; }
  .f-demo-frame { padding: 8px; border-radius: 26px; }
  .f-demo-screen { border-radius: 20px; }
  .f-intro { padding-top: 64px; }
  .f-band, .f-related, .f-cta-wrap { padding-top: 80px; }
  .f-band-mist, .f-band-dark { padding-left: 8px; padding-right: 8px; }
  .f-band-mist > .h-wrap, .f-band-dark > .h-wrap { padding: 56px 16px; border-radius: 30px; }
  .f-head { margin-bottom: 32px; }
  .f-prose { font-size: 16.5px; }
  .f-steps, .f-steps-2, .f-steps-4, .f-cards, .f-cards-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-cases { grid-template-columns: minmax(0, 1fr); }
  .f-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
