/* feature-silo.css — v3 skin for the four keyword silos
   (/ai-picture-book-maker, /ai-animation-maker, /ai-music-video-maker, /ai-comic-maker).
   Loads LAST on these pages only (see components/feature-silo-chrome.js), on top of
   tokens.css + lp.css + the home2026 chrome sheets. It restyles the lp-* classes the
   templates already carry — copy, headings and JSON-LD are frozen (SEO), so the skin
   attaches to existing markup instead of renaming it.
   Visual authority: the home page. Shared primitives (--sec-pad, the h1/h2 scale, the
   kicker dash, the content-column formula) are referenced from home-v3.css's :root or
   restated as the same recipe — see module-ext-lp-pages "引用原语,不是抄数值". */

/* ---- content column: home formula; secondary pages emit bottom padding only
       (padding-block: 0 var(--sec-pad)) so adjacent sections sit one unit apart —
       the pricing-page rule for pages whose sections are thinner than the home's. */
main > section {
  width: min(calc(100% - 2 * clamp(24px, 4vw, 72px)), 1560px);
  margin-inline: auto;
  padding-block: 0 var(--sec-pad, clamp(64px, 6.2vw, 104px));
  padding-inline: 0;
  max-width: none; /* lp.css gives several of these sections their own max-width */
}

/* .sr-only only exists in home-2026.css under .landingPage2026 — guard it here too
   (the pricing page shipped visible screen-reader headings before learning this). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- hero: two columns, copy leading, product proof trailing ---- */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px) var(--sec-pad, 84px);
  text-align: start;
}
.lp-hero-copy { max-width: 620px; }

/* kicker = home recipe: uppercase emerald with the 26x2 dash */
.lp-kicker {
  display: flex; align-items: center; gap: 10px;
  font: 700 13px var(--rk-font-body, inherit);
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rk-emerald);
  margin: 0 0 18px;
}
.lp-kicker::before {
  content: ""; width: 26px; height: 2px;
  background: var(--rk-emerald); border-radius: 2px; flex: none;
}

.lp-hero h1 {
  font-family: var(--rk-font-display);
  font-size: clamp(40px, 3.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  max-width: 16ch;
  text-wrap: balance;
}
.lp-hero-sub {
  font-size: 17.5px; line-height: 1.6;
  color: var(--rk-ink-soft);
  margin: 0 0 30px; max-width: 52ch;
}
.lp-hero-ctas { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

/* hero composer row — .composer/.chips visuals come from home-v3.css; this block only places
   them inside the silo hero rhythm (sub carries 30px bottom margin, so the composer needs none) */
.lp-hero-copy .composer { margin-top: 0; }
.lp-silo-try { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.lp-silo-try-label { font: 600 13.5px var(--rk-font-body, inherit); color: var(--rk-ink-muted); }
.lp-hero-secondary-row { margin-top: 18px; }

/* product proof: paper-framed shot, mascot scene tucked at its corner */
.lp-hero-media { position: relative; min-width: 0; }
.lp-hero-shot {
  display: block; width: 100%; height: auto;
  border-radius: 26px;
  border: 1px solid var(--rk-line);
  background: var(--rk-paper-2);
  box-shadow: 0 24px 48px -24px rgba(43, 42, 38, 0.28);
}
.lp-hero-cat {
  position: absolute;
  inset-inline-end: -8px;
  inset-block-end: -14px;
  width: clamp(110px, 12vw, 170px); height: auto;
  filter: drop-shadow(0 12px 18px rgba(43, 42, 38, 0.18));
  opacity: 1;
}

/* ---- primary CTA = home closing-card spec (54px row, 750 weight, 12px radius,
        emerald shadow, arrow, -2px hover lift) — values carried from home-v3.css
        #faq .final-home .final-primary so the button reads as the same control. ---- */
.lp-hero-ctas .lp-btn-primary,
.lp-final-cta .lp-btn-primary {
  gap: 12px;
  min-height: 54px;
  min-width: 220px;
  padding: 14px 24px;
  font-weight: 750;
  font-size: 16px;
  white-space: nowrap;
  border-radius: 12px;
  border: 1px solid var(--rk-emerald);
  box-shadow: 0 10px 24px -16px rgba(14, 124, 93, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-hero-ctas .lp-btn-primary:hover,
.lp-final-cta .lp-btn-primary:hover {
  transform: translateY(-2px);
  background: #0b8f6d;
  box-shadow: 0 14px 28px -16px rgba(14, 124, 93, 0.8);
}
.lp-hero-ctas .lp-btn-primary:focus-visible,
.lp-final-cta .lp-btn-primary:focus-visible {
  outline: 3px solid rgba(15, 164, 126, 0.26);
  outline-offset: 4px;
}
.lp-hero-ctas .lp-btn-primary svg,
.lp-final-cta .lp-btn-primary svg { width: 15px; height: 15px; flex: none; }
/* secondary keeps the ghost pill but shares the 54px row so the pair sits level */
.lp-hero-ctas .lp-btn-ghost { min-height: 54px; padding: 14px 24px; border-radius: 12px; font-size: 16px; }

/* ---- intro ---- */
.lp-entity-section h2 {
  font-family: var(--rk-font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15; margin: 0 0 14px;
}
.lp-entity-section p {
  font-size: 17px; line-height: 1.65; color: var(--rk-ink-soft);
  max-width: 68ch; margin-inline: auto;
}

/* ---- feature cards: quiet paper cards, hairline border, lift on hover ---- */
/* 4 cards: 2×2 up to desktop, 4-up only when the row genuinely fits — never a 3+1 orphan */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (min-width: 1280px) { .lp-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lp-feature-grid { grid-template-columns: 1fr; } }
.lp-feature-card {
  background: #fff;
  border: 1px solid var(--rk-line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lp-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--rk-card-hover-border, #cfeadb);
  box-shadow: 0 18px 32px -20px rgba(43, 42, 38, 0.24);
}
.lp-feature-card h3 { font-family: var(--rk-font-display); font-size: 18px; margin: 0 0 8px; }
.lp-feature-card p { color: var(--rk-ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---- steps: breathing band (paper-2, 26px radius — the #read/#shelf recipe) ---- */
.lp-steps-section {
  background: var(--rk-paper-2);
  border-radius: 26px;
  padding: clamp(30px, 3.4vh, 52px) clamp(24px, 3vw, 56px);
  margin-block-end: var(--sec-pad, 84px);
}
.lp-steps-section .lp-section-title {
  font-family: var(--rk-font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0;
}
.lp-steps { max-width: 860px; margin-inline: auto; padding-block: 36px 8px; }
.lp-step-num {
  background: var(--rk-emerald); color: #fff; border-color: transparent;
}
.lp-step h3 { font-family: var(--rk-font-display); }

/* ---- crosslinks: pill buttons per the site-wide button language ---- */
.lp-crosslinks { text-align: center; }
.lp-crosslinks h2 { font-family: var(--rk-font-display); font-size: clamp(24px, 2.6vw, 32px); }
.lp-crosslink {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rk-line);
  border-radius: 999px;
  padding: 10px 22px;
  background: #fff;
  color: var(--rk-ink);
  text-decoration: none;
  font-weight: 600; font-size: 15px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.lp-crosslink:hover { border-color: var(--rk-emerald); transform: translateY(-2px); }

/* ---- FAQ ---- */
.lp-faq h2 { font-family: var(--rk-font-display); font-size: clamp(28px, 3.2vw, 40px); }

/* ---- final CTA: mint panel, mascot art ---- */
.lp-final-cta { padding-block: 0 var(--sec-pad, 84px); }
.lp-final-cta-card {
  background: var(--rk-paper-2);
  border: 1px solid var(--rk-line);
  border-radius: 26px;
}

/* ---- closing card (rk-mk-final classes reused from lp.css) ----
   lp.css gives .rk-mk-final-sec `margin: clamp(...) 0 0`, which zeroes the inline-auto
   centering our main>section rule provides — on wide screens the whole card hugged the
   left edge. Restore centering and drop the extra top margin (the FAQ's bottom padding
   already provides the one-unit gap). */
.rk-mk-final-sec { margin-block: 0; margin-inline: auto; }
/* Andy 2026-08-04: card 10% shorter than the make-page original (340-368px → 306-331px).
   --fc-art-max derives from --fc-h in lp.css, so the artwork budget shrinks with it. */
.rk-mk-final { --fc-h: clamp(306px, 22.5vw, 331px); }
/* Andy 2026-08-04: on very wide screens the 1fr copy column pushed the headline to the far
   left and the artwork to the far right, leaving a dead middle. Size both columns to their
   content and center the pair with a fixed gap. Scoped to >900px — below that lp.css's
   single-column stacking must keep winning (this sheet loads later, so an unscoped rule
   would override the mobile media block). */
@media (min-width: 901px) {
  .rk-mk-final {
    /* the make card's 1300px budget assumed a sub + proof paragraph block; this card's copy
       is headline+button only, so 1300 leaves a dead middle — 1120 fits the actual content */
    width: min(100%, 1120px);
    grid-template-columns: minmax(0, auto) auto;
    justify-content: center;
    column-gap: clamp(40px, 5vw, 96px);
  }
  /* the h2 keeps a 600px box from lp.css even when balance-wrapping to ~350px of text —
     cap it to the wrapped width so the box does not fake extra whitespace */
  .rk-mk-final h2 { max-width: 13ch; }
}
/* The spine slivers baked into the make-page shadow read as a misaligned white sheet
   behind landscape artwork — keep the drop shadow, drop the book-spine effect. */
.rk-mk-final-showcase img {
  box-shadow: 0 18px 32px -14px rgba(43, 42, 38, 0.42);
  border-radius: 14px;
}

/* ---- animation closing CTA: selected 2026-08-03 visual target ----
   The modifier classes live only in feature-animation.html, so none of these proportions or
   interaction treatments can leak into the other three silos or the /make family. */
.rk-mk-final-sec--animation .rk-mk-final--animation {
  background: #fbfbf7;
  border-color: #c7d9cb;
  box-shadow: 0 18px 46px -38px rgba(45, 65, 53, 0.55);
}
.rk-mk-final-sec--animation .rk-mk-final-copy {
  width: min(100%, 520px);
  padding-inline-start: 0;
}
.rk-mk-final-sec--animation .rk-mk-final h2 {
  max-width: 18ch;
  color: #202520;
  font-size: clamp(36px, 3.25vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.rk-mk-final-sec--animation .rk-mk-final-actions {
  margin-top: clamp(28px, 2.7vw, 36px);
}
.rk-mk-final-sec--animation .rk-mk-final-primary {
  width: min(100%, 490px);
  min-height: 64px;
  padding: 16px 26px;
  gap: 14px;
  color: #fff;
  background: #3f9274;
  border-color: #3f9274;
  border-radius: 14px;
  box-shadow: 0 12px 28px -22px rgba(36, 97, 75, 0.82);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.rk-mk-final-sec--animation .rk-mk-final-primary:hover {
  background: #337d63;
  border-color: #337d63;
  box-shadow: 0 15px 30px -20px rgba(36, 97, 75, 0.88);
}
.rk-mk-final-sec--animation .rk-mk-final-primary:focus-visible,
.rk-mk-final-sec--animation .rk-mk-final-preview:focus-visible {
  outline: 3px solid rgba(63, 146, 116, 0.34);
  outline-offset: 4px;
}
.rk-mk-final-sec--animation .rk-mk-final-arrow {
  width: 24px;
  height: 24px;
  flex: none;
}
.rk-mk-final-sec--animation .rk-mk-final-proof {
  margin-top: 26px;
  gap: 10px 20px;
  color: #5f6861;
  font-size: clamp(14px, 1.1vw, 16px);
}
.rk-mk-final-sec--animation .rk-mk-final-showcase {
  position: relative;
  width: 100%;
  max-width: 590px;
}
.rk-mk-final-sec--animation .rk-mk-final-showcase > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 18px;
  box-shadow: 0 26px 44px -30px rgba(28, 36, 30, 0.64);
}
.rk-mk-final-sec--animation .rk-mk-final-preview {
  position: absolute;
  z-index: 2;
  inset-inline-end: 7.5%;
  inset-block-end: 8%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(20, 22, 19, 0.88);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.rk-mk-final-sec--animation .rk-mk-final-preview:hover {
  transform: scale(1.06);
  background: rgba(20, 22, 19, 0.98);
}
.rk-mk-final-sec--animation .rk-mk-final-preview img {
  width: 25px;
  height: 25px;
  max-width: none;
  max-height: none;
  margin-inline-start: 2px;
  border-radius: 0;
  box-shadow: none;
}
@media (min-width: 901px) {
  .rk-mk-final-sec--animation .rk-mk-final--animation {
    --fc-h: 340px;
    width: min(100%, 1300px);
    grid-template-columns: minmax(0, 460px) minmax(0, 400px);
    justify-content: center;
    column-gap: clamp(52px, 5vw, 64px);
    padding: 20px clamp(40px, 4vw, 64px);
  }
  .rk-mk-final-sec--animation .rk-mk-final-copy {
    width: 460px;
    justify-self: center;
  }
  .rk-mk-final-sec--animation .rk-mk-final-showcase {
    max-width: 400px;
    justify-self: end;
  }
  .rk-mk-final-sec--animation .rk-mk-final-preview {
    width: 46px;
    height: 46px;
  }
  .rk-mk-final-sec--animation .rk-mk-final-preview img {
    width: 23px;
    height: 23px;
  }
}
@media (max-width: 900px) {
  .rk-mk-final-sec--animation .rk-mk-final--animation {
    gap: 28px;
    padding: 28px clamp(18px, 5vw, 32px) 32px;
  }
  .rk-mk-final-sec--animation .rk-mk-final-copy { justify-self: center; }
  .rk-mk-final-sec--animation .rk-mk-final h2 {
    max-width: 14ch;
    margin-inline: auto;
    text-align: center;
  }
  .rk-mk-final-sec--animation .rk-mk-final-actions,
  .rk-mk-final-sec--animation .rk-mk-final-proof { justify-content: center; }
  .rk-mk-final-sec--animation .rk-mk-final-primary { width: 100%; max-width: 520px; }
  .rk-mk-final-sec--animation .rk-mk-final-showcase { max-width: 590px; }
}
@media (max-width: 430px) {
  .rk-mk-final-sec--animation .rk-mk-final h2 { font-size: clamp(30px, 9vw, 36px); }
  .rk-mk-final-sec--animation .rk-mk-final-primary { min-height: 60px; padding-inline: 18px; }
  .rk-mk-final-sec--animation .rk-mk-final-proof { align-items: flex-start; justify-content: flex-start; }
  .rk-mk-final-sec--animation .rk-mk-final-preview { width: 44px; height: 44px; }
  .rk-mk-final-sec--animation .rk-mk-final-preview img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-mk-final-sec--animation .rk-mk-final-preview { transition: none; }
  .rk-mk-final-sec--animation .rk-mk-final-preview:hover { transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .lp-hero-copy { max-width: 620px; margin-inline: auto; }
  .lp-kicker { justify-content: center; }
  .lp-hero h1 { margin-inline: auto; }
  .lp-hero-sub { margin-inline: auto; }
  .lp-hero-ctas { justify-content: center; }
  .lp-hero-copy .composer { margin-inline: auto; }
  .lp-silo-try { justify-content: center; }
  .lp-hero-media { max-width: 560px; margin-inline: auto; width: 100%; }
  .lp-hero-cat { inset-inline-end: 4px; inset-block-end: -10px; }
}
@media (max-width: 430px) {
  .lp-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .lp-steps-section { padding-inline: 18px; }
  /* margin-inline (24px) already provides the phone gutter; the extra padding-inline stacked a
     second 24px and left the hero composer 48px narrower than the homepage's (327 vs 279) */
  .lp-hero { padding-inline: 0; }
}
