/* ============================================================
   landing.css — SECTION LANDING PAGE COMPONENTS
   Load this ONLY on section index pages (/ai-search/, /optimization/,
   etc.), after style.css — exactly like home.css on the homepage.

   Every selector is namespaced .lp-* (or scoped under .lp) so
   nothing here can collide with the shared components in style.css.
   All color / type / spacing reads from the existing :root tokens,
   so these pages re-theme (light/dark) with the rest of the site.

   Components:
     .lp-hero    — gradient-wash hero with quick-start pills
     .lp-group   — section cluster (head + sub + grid/rows)
     .lp-card    — routing card (icon, title, one-liner, arrow)
     .lp-card--feature — full-width cornerstone card
     .lp-rows    — compact scannable row list (engine guides)
     .lp-next    — "next section" hand-off band
   ============================================================ */

.lp { max-width: var(--content); margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ============================================================
   HERO — radial wash, breadcrumb, title, quick-start pills
   ============================================================ */
.lp-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 12% 8%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 55%),
    radial-gradient(110% 90% at 92% 100%, color-mix(in srgb, var(--warm) 14%, transparent) 0%, transparent 50%),
    var(--bg-callout-strong);
  margin-top: 2rem;
}
.lp-hero__inner { padding: 3rem 2.75rem 2.75rem; }

.lp-hero__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; margin-bottom: 1.5rem;
}
.lp-hero__crumbs a { color: var(--text-muted); text-decoration: none; }
.lp-hero__crumbs a:hover { color: var(--accent); }
.lp-hero__crumbs .sep { color: var(--text-faint); }
.lp-hero__crumbs .here { color: var(--text-primary); font-weight: 600; }

.lp-hero__cat {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--warm-ink);
  margin: 0 0 0.9rem;
}
.lp-hero__title {
  font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 1rem; max-width: 22ch;
}
.lp-hero__title em { font-style: normal; color: var(--accent); }
.lp-hero__sub {
  font-size: 17.5px; line-height: 1.6; color: var(--text-body);
  margin: 0 0 0.9rem; max-width: 36rem;
}
.lp-hero__meta {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 13.5px; color: var(--text-muted);
  margin: 0 0 1.9rem;
}
.lp-hero__meta i { font-size: 16px; color: var(--accent); }

/* Quick-start router: "Not sure where to start?" + pill links */
.lp-start__label {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin: 0 0 0.6rem;
}
.lp-start__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  color: var(--text-primary); text-decoration: none;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lp-pill i { font-size: 15px; color: var(--accent); transition: transform .15s ease; }
.lp-pill:hover {
  border-color: var(--accent); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 42, 38, 0.07);
}
.lp-pill:hover i { transform: translateX(3px); }
.lp-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   GROUP — cluster head (kicker + title + sub)
   ============================================================ */
.lp-group { padding-top: 3.25rem; }
.lp-group__kicker {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-soft-ink);
  margin: 0 0 0.55rem;
}
.lp-group__kicker i { font-size: 17px; color: var(--accent); }
.lp-group__title {
  font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--text-primary); margin: 0 0 0.5rem;
}
.lp-group__sub {
  font-size: 15.5px; line-height: 1.6; color: var(--text-muted);
  margin: 0 0 1.6rem; max-width: 620px;
}

/* ============================================================
   CARDS — routing cards with icon, title, one-liner, arrow
   ============================================================ */
.lp-grid { display: grid; gap: 16px; }
.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }

.lp-card {
  display: flex; flex-direction: column;
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.35rem 1.4rem 1.3rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lp-card:hover {
  transform: translateY(-3px); border-color: var(--accent-soft);
  box-shadow: 0 12px 30px rgba(31, 42, 38, 0.09);
}
.lp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lp-card__ico {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-callout-strong); border: 1px solid var(--border);
  margin-bottom: 0.9rem;
}
.lp-card__ico i { font-size: 20px; color: var(--accent); }
.lp-card__step {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-ink);
  margin: 0 0 0.45rem;
}
.lp-card h3 {
  font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.3;
  color: var(--text-primary); margin: 0 0 0.45rem;
}
.lp-card p { font-size: 14px; line-height: 1.55; color: var(--text-body); margin: 0 0 1rem; flex: 1; }
.lp-card__go {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--accent);
}
.lp-card__go i { font-size: 15px; transition: transform .15s ease; }
.lp-card:hover .lp-card__go i { transform: translateX(3px); }

/* Feature (cornerstone) card — full-width, horizontal, warm tag */
.lp-card--feature {
  grid-column: 1 / -1;
  flex-direction: row; align-items: flex-start; gap: 1.25rem;
  background:
    radial-gradient(100% 140% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 55%),
    var(--bg-surface);
  border-top: 2px solid var(--warm-soft);
  padding: 1.6rem 1.75rem 1.5rem;
}
.lp-card--feature .lp-card__ico {
  width: 48px; height: 48px; margin-bottom: 0; flex-shrink: 0;
}
.lp-card--feature .lp-card__ico i { font-size: 24px; }
.lp-card--feature h3 { font-size: 20px; }
.lp-card--feature p { font-size: 15px; max-width: 56rem; }
.lp-card__tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-ink);
  margin: 0 0 0.4rem;
}
.lp-card__tag i { font-size: 13px; }
.lp-card__feature-body { display: flex; flex-direction: column; flex: 1; }

/* ============================================================
   ROWS — compact scannable list (the engine guides)
   ============================================================ */
.lp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-row {
  display: grid; grid-template-columns: 270px 1fr auto; align-items: center; gap: 1.25rem;
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.3rem;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lp-row:hover {
  border-color: var(--accent-soft); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 42, 38, 0.07);
}
.lp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-row h3 {
  font-family: var(--font-head); font-size: 15.5px; font-weight: 600; line-height: 1.35;
  color: var(--text-primary); margin: 0;
}
.lp-row p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.lp-row__arrow { color: var(--accent); font-size: 17px; transition: transform .15s ease; }
.lp-row:hover .lp-row__arrow { transform: translateX(3px); }

/* ============================================================
   NEXT — hand-off band to the next section in the funnel
   ============================================================ */
.lp-next {
  margin-top: 3.5rem;
  background: var(--bg-warm-soft); border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem;
}
.lp-next__kicker {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--warm-ink);
  margin: 0 0 0.5rem;
}
.lp-next h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 23px; line-height: 1.25;
  color: var(--text-primary); margin: 0 0 0.5rem;
}
.lp-next p { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; max-width: 46rem; }
.lp-next__btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: var(--radius-md); padding: 12px 22px;
  transition: opacity .15s ease;
}
.lp-next__btn:hover { opacity: 0.9; }
.lp-next__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .lp-hero__inner { padding: 2.25rem 1.5rem; }
  .lp-hero__title { font-size: 31px; }
  .lp-grid--2, .lp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lp-card--feature { flex-direction: column; gap: 0.9rem; }
  .lp-row { grid-template-columns: 1fr auto; row-gap: 0.35rem; padding: 0.9rem 1.1rem; }
  .lp-row h3 { grid-column: 1; }
  .lp-row p { grid-column: 1 / -1; }
  .lp-row__arrow { grid-row: 1; grid-column: 2; }
  .lp-next { grid-template-columns: 1fr; padding: 1.9rem 1.5rem; }
}
@media (max-width: 560px) {
  .lp-hero__title { font-size: 28px; }
  .lp-grid--2, .lp-grid--3 { grid-template-columns: 1fr; }
  .lp-group__title { font-size: 23px; }
  .lp-start__pills { gap: 8px; }
  .lp-pill { font-size: 13.5px; padding: 8px 14px; }
}

/* Gentle entrance (matches .home-reveal on the homepage) */
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal { opacity: 0; transform: translateY(10px); animation: lpUp .55s ease forwards; }
  .lp-reveal--d1 { animation-delay: .08s; }
  .lp-reveal--d2 { animation-delay: .16s; }
}
@keyframes lpUp { to { opacity: 1; transform: none; } }
