/* -- Model pages, v2 layout ------------------------------------------------
   Loaded after model-page.css on the search-first model pages (Vidu Q3,
   Seedance 2.0, Seedream 4.5, Recraft V3, FLUX). Those pages lead with
   answers in plain text (what it is, specs, cost, how to use, comparisons)
   and use fewer, smaller examples than the v1 showcase pages.
   Reuses the .mp-* tokens, buttons, prompt chips, limits, related cards,
   closing CTA and sticky button from model-page.css. */

/* Hero: copy and quick answers on the left, one real output on the right. */
.v2-hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(32px, 4vw, 56px); }
.v2-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 992px) { .v2-hero-grid { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 44px; } }
.v2-hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; }
.v2-hero-sub { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--mp-ink-2); }
.v2-hero .mp-hero-actions { margin-top: 22px; }
.v2-quick { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--mp-line); }
.v2-quick li { font-size: 14.5px; line-height: 1.45; color: var(--mp-ink-2); }
.v2-quick strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mp-ink-3); }
.v2-hero-media .mp-player { box-shadow: 0 18px 50px rgba(11, 27, 58, .18); }
.v2-media-prompt { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--mp-line); font-size: 13.5px; line-height: 1.6; color: var(--mp-ink-2); }
.v2-media-prompt b { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink-3); }

/* "On this page" jump links. Scrolls sideways on small screens. */
.v2-toc { position: sticky; top: 60px; z-index: 1010; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line); }
.v2-toc ol { display: flex; gap: 4px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.v2-toc ol::-webkit-scrollbar { display: none; }
.v2-toc a { display: block; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--mp-ink-2); text-decoration: none; white-space: nowrap; }
.v2-toc a:hover, .v2-toc a[aria-current="true"] { background: var(--mp-tint); color: var(--mp-blue); }
.mp-page [id] { scroll-margin-top: 130px; }

/* Section rhythm */
.v2-sec { padding: clamp(44px, 5.5vw, 80px) 0; }
.v2-sec--tint { background: var(--mp-tint); }
.v2-sec h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; }
.v2-lede { max-width: 780px; margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--mp-ink-2); }
.v2-head { margin-bottom: clamp(22px, 3vw, 36px); }

/* Plain-text answer blocks. Kept to a readable measure. */
.v2-prose { max-width: 780px; font-size: 16.5px; line-height: 1.75; color: var(--mp-ink-2); }
.v2-prose p { margin: 0 0 16px; }
.v2-prose h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 700; color: var(--mp-ink); }
.v2-prose ul, .v2-prose ol { margin: 0 0 16px; padding-left: 22px; }
.v2-prose li { margin-bottom: 8px; }
.v2-prose strong { color: var(--mp-ink); }
.v2-prose a { color: var(--mp-blue); font-weight: 600; }
.v2-answer { max-width: 780px; margin: 0 0 22px; padding: 18px 22px; border-left: 4px solid var(--mp-blue); border-radius: 0 14px 14px 0; background: #fff; font-size: 17px; line-height: 1.65; color: var(--mp-ink); }
.v2-sec--tint .v2-answer { background: #fff; }
.v2-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) { .v2-two { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 48px; align-items: start; } }

/* Spec, price and comparison tables */
.v2-table-wrap { overflow-x: auto; border: 1px solid var(--mp-line); border-radius: 18px; background: #fff; }
.v2-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.v2-table th, .v2-table td { padding: 13px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--mp-line); }
.v2-table thead th { border-top: 0; background: var(--mp-tint); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mp-ink-3); white-space: nowrap; }
.v2-table tbody th { width: 30%; font-weight: 600; color: var(--mp-ink); }
.v2-table td { color: var(--mp-ink-2); }
.v2-table .is-us { background: rgba(26, 106, 255, .05); color: var(--mp-ink); font-weight: 600; }
.v2-table thead .is-us { color: var(--mp-blue); background: rgba(26, 106, 255, .1); }
.v2-table-note { margin: 10px 4px 0; font-size: 13px; color: var(--mp-ink-3); }
.v2-table-note a { color: inherit; }

/* Feature rows: text with an optional real output beside it. */
.v2-features { display: grid; gap: clamp(28px, 4vw, 52px); }
.v2-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
@media (min-width: 992px) {
  .v2-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .v2-feature:nth-child(even) .v2-feature-media { order: -1; }
  .v2-feature--text { grid-template-columns: minmax(0, 1fr); }
}
.v2-feature h3 { margin: 0 0 10px; font-size: clamp(21px, 2vw, 26px); font-weight: 800; color: var(--mp-ink); }
.v2-feature p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--mp-ink-2); }
.v2-feature ul { margin: 0; padding-left: 20px; font-size: 15.5px; line-height: 1.65; color: var(--mp-ink-2); }
.v2-feature .mp-caption { margin-top: 8px; }

/* Small text cards (use cases, tips, model picks) */
.v2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v2-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-card { padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--mp-line); }
.v2-card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; color: var(--mp-ink); }
.v2-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mp-ink-2); }
.v2-card p + p { margin-top: 8px; }
.v2-card a { color: var(--mp-blue); font-weight: 600; }
.v2-card-meta { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; background: var(--mp-tint); font-size: 12px; font-weight: 700; color: var(--mp-ink-2); }
@media (max-width: 991.98px) { .v2-cards, .v2-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .v2-cards, .v2-cards--2, .v2-cards--4 { grid-template-columns: minmax(0, 1fr); } }

/* Examples: real output, the exact prompt, the settings, the cost. */
.v2-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.v2-examples--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .v2-examples--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .v2-examples, .v2-examples--3 { grid-template-columns: minmax(0, 1fr); } }
.v2-ex { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--mp-line); }
.v2-ex .mp-player { border-radius: 0; }
.v2-ex-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.v2-ex h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--mp-ink); }
.v2-ex-prompt { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mp-tint); font-size: 13.5px; line-height: 1.6; color: var(--mp-ink); white-space: pre-line; }
.v2-ex .mp-chips li { font-size: 12px; }
.v2-ex-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mp-ink-2); }
.v2-ex-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.v2-ex-img { display: block; width: 100%; height: auto; background: #EEF2FA; }

/* Numbered steps, text only */
.v2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: v2step; }
.v2-steps li { position: relative; padding: 52px 20px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--mp-line); counter-increment: v2step; }
.v2-steps li::before { content: counter(v2step, decimal-leading-zero); position: absolute; top: 18px; left: 20px; font-size: 14px; font-weight: 800; letter-spacing: .06em; background: var(--mp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--mp-ink); }
.v2-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mp-ink-2); }
@media (max-width: 991.98px) { .v2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .v2-steps { grid-template-columns: minmax(0, 1fr); } }

/* Prompt formula: labelled parts, then a copyable template (reuses .mp-template). */
.v2-formula { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.v2-formula li { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--mp-line); color: var(--mp-ink); }
.v2-formula li span { font-weight: 500; color: var(--mp-ink-3); }

/* Verdict box for comparisons */
.v2-verdict { margin-top: 18px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid rgba(26, 106, 255, .25); font-size: 15.5px; line-height: 1.65; color: var(--mp-ink-2); }
.v2-verdict strong { color: var(--mp-ink); }

/* Before/after or side-by-side image pairs */
.v2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-pair figure { margin: 0; }
.v2-pair img { display: block; width: 100%; height: auto; border-radius: 14px; background: #EEF2FA; }
.v2-pair figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--mp-ink-3); }

@media (max-width: 767.98px) {
  .v2-quick { grid-template-columns: minmax(0, 1fr); }
  .v2-toc { top: 56px; }
  .mp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FAQ questions are h3 on v2 pages; keep them the size of the v1 <p> questions. */
.v2-page .faq-accordion h3 { font-size: 1rem; line-height: 1.5; }

/* A 9:16 clip inside a 16:9 card: letterboxed so the grid rows line up. */
.v2-player--tall video { object-fit: contain; background: #0B1B3A; }

/* Image-model pages (.ip-page) use their own tokens; alias the ones the
   v2 blocks (TOC, answer box, prose, tables, cards) need. */
.ip-page {
  --mp-blue: var(--predis-blue, #1A6AFF); --mp-pink: var(--predis-pink, #F41A58);
  --mp-ink: var(--ip-ink, #001F3C); --mp-ink-2: var(--ip-ink-2, rgba(0, 31, 60, .75)); --mp-ink-3: var(--ip-ink-3, rgba(0, 31, 60, .55));
  --mp-line: var(--ip-line, rgba(0, 31, 60, .1)); --mp-tint: var(--ip-tint, #F4F7FF);
  --mp-grad: linear-gradient(90deg, #1A6AFF 0%, #F41A58 100%);
}
.ip-page [id] { scroll-margin-top: 130px; }
