/* Self-hosted display font Bricolage Grotesque (SIL OFL 1.1, see fonts/OFL.txt). Latin subset, variable font; one file covers weights 600 and 700. */
@font-face {
  font-family: "TV2 Bricolage";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/tv2/fonts/bricolage-grotesque-latin.v1.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback to limit layout shift while the display font loads.
   Computed from the font's real metrics (unitsPerEm 1000, hhea ascender 930, descender -270, lineGap 0)
   against Arial Bold (Liberation Sans Bold, metric-compatible), average glyph width weighted by English letter frequency:
   size-adjust = 0.4974 / 0.4840 = 102.8%; ascent = 930 / 1000 / 1.028 = 90.5%; descent = 270 / 1000 / 1.028 = 26.3%; line gap 0%. */
@font-face {
  font-family: "TV2 Bricolage Fallback";
  font-style: normal;
  font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  size-adjust: 102.8%;
  ascent-override: 90.5%;
  descent-override: 26.3%;
  line-gap-override: 0%;
}
/* Site v2 sample. Shared v10 tokens, scoped to the page shell. */
.sv2 {
  --tv2-bg: #f6f7f9;
  --tv2-surface: #ffffff;
  --tv2-surface-sunk: #eef0f3;
  --tv2-line: #e3e6ea;
  --tv2-line-strong: #868c96;
  --tv2-ink: #1d2127;
  --tv2-ink-muted: #565d68;
  --tv2-ink-subtle: #6b717c;
  --tv2-on-ink: #ffffff;
  --tv2-brand: #1f5fd6;
  --tv2-brand-hover: #194fb5;
  --tv2-on-brand: #ffffff;
  --tv2-brand-soft: #e6eefc;
  --tv2-brand-ink: #1a52bb;
  --tv2-focus: #1f5fd6;
  --tv2-overlay: rgba(15,17,21,0.72);
  --tv2-on-overlay: #ffffff;
  --tv2-ok-soft: #e2f2e8;
  --tv2-ok-ink: #1b6b3e;
  --tv2-danger-soft: #fde8e6;
  --tv2-danger-ink: #b42318;
  --tv2-shadow-workspace: 0 1px 2px rgba(23,24,28,0.06), 0 12px 32px -16px rgba(23,24,28,0.16);
  --tv2-shadow-sticky: 0 -6px 16px -8px rgba(23,24,28,0.18);
  --tv2-coin: #b7791f;
  --tv2-space-1: 4px;
  --tv2-space-2: 8px;
  --tv2-space-3: 12px;
  --tv2-space-4: 16px;
  --tv2-space-5: 24px;
  --tv2-space-6: 32px;
  --tv2-radius-sm: 6px;
  --tv2-radius-md: 10px;
  --tv2-radius-lg: 16px;
  --tv2-radius-pill: 999px;
  --tv2-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --tv2-font-display: "TV2 Bricolage", "TV2 Bricolage Fallback", var(--tv2-font-sans);
  --tv2-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* Remap only the three shadcn variables, scoped inside the .sv2 root */
  --primary: var(--tv2-brand);
  --primary-foreground: var(--tv2-on-brand);
  --ring: var(--tv2-focus);
}

.dark .sv2 {
  --tv2-bg: #0f1115;
  --tv2-surface: #181b21;
  --tv2-surface-sunk: #0b0d10;
  --tv2-line: #2a2e36;
  --tv2-line-strong: #646b77;
  --tv2-ink: #e9ecf1;
  --tv2-ink-muted: #a3a9b4;
  --tv2-ink-subtle: #868c97;
  --tv2-on-ink: #0f1115;
  --tv2-brand: #6ea0ff;
  --tv2-brand-hover: #8ab3ff;
  --tv2-on-brand: #0b1730;
  --tv2-brand-soft: #142445;
  --tv2-brand-ink: #8fb5ff;
  --tv2-focus: #6ea0ff;
  --tv2-overlay: rgba(0,0,0,0.72);
  --tv2-on-overlay: #ffffff;
  --tv2-ok-soft: #12291c;
  --tv2-ok-ink: #7fd4a3;
  --tv2-danger-soft: #3a1512;
  --tv2-danger-ink: #ff8a80;
  --tv2-shadow-workspace: 0 1px 2px rgba(0,0,0,0.5);
  --tv2-shadow-sticky: 0 -6px 16px -8px rgba(0,0,0,0.7);
  --tv2-coin: #e0a84a;
  --primary: var(--tv2-brand);
  --primary-foreground: var(--tv2-on-brand);
  --ring: var(--tv2-focus);
}
/* Shell-only tokens: CTA band, card hover shadow and category tones (navigation cues only). */
.sv2 {
  --tv2-band: #2b2f36;
  --tv2-on-band: #ffffff;
  --tv2-shadow-card-hover: 0 6px 18px -8px rgba(23,24,28,0.18);
  --sv2-cat-writing-soft: #fdebe1; --sv2-cat-writing-ink: #a3410d;
  --sv2-cat-education-soft: #e3f0f1; --sv2-cat-education-ink: #0f5e66;
  --sv2-cat-productivity-soft: #e8f0dc; --sv2-cat-productivity-ink: #3f5f12;
  --sv2-cat-translation-soft: #e3eafa; --sv2-cat-translation-ink: #2446a6;
  --sv2-cat-brainstorm-soft: #f6ecd2; --sv2-cat-brainstorm-ink: #7a5200;
  --sv2-cat-video-soft: #f8e3ea; --sv2-cat-video-ink: #9b1d4a;
  --sv2-cat-image-soft: #dff3ee; --sv2-cat-image-ink: #0f6b5c;
  --sv2-cat-fun-soft: #efe6f5; --sv2-cat-fun-ink: #6b2f8f;
}
.dark .sv2 {
  --tv2-band: #232730;
  --tv2-on-band: #e9ecf1;
  --tv2-shadow-card-hover: 0 6px 18px -8px rgba(0,0,0,0.6);
  --sv2-cat-writing-soft: #3a1c0e; --sv2-cat-writing-ink: #ff9e6b;
  --sv2-cat-education-soft: #10292c; --sv2-cat-education-ink: #5fc4cc;
  --sv2-cat-productivity-soft: #1d2711; --sv2-cat-productivity-ink: #a9cf6a;
  --sv2-cat-translation-soft: #172042; --sv2-cat-translation-ink: #93acff;
  --sv2-cat-brainstorm-soft: #2e2410; --sv2-cat-brainstorm-ink: #e8bd5a;
  --sv2-cat-video-soft: #35121f; --sv2-cat-video-ink: #f58fb2;
  --sv2-cat-image-soft: #0f2a25; --sv2-cat-image-ink: #5fd1b8;
  --sv2-cat-fun-soft: #2a1838; --sv2-cat-fun-ink: #cf9cf0;
}

/* ---------- base ---------- */
.sv2 { color: var(--tv2-ink); background: var(--tv2-bg); font-family: var(--tv2-font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
.sv2 *, .sv2 *::before, .sv2 *::after { box-sizing: border-box; }
:where(.sv2) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.sv2) :where(a) { color: inherit; text-decoration: none; }
:where(.sv2) :where(img) { max-width: 100%; }
.sv2 [hidden] { display: none !important; }
.sv2 :focus-visible { outline: 2px solid var(--tv2-focus); outline-offset: 2px; }
.sv2-container { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 16px; }
.sv2-sec { padding-block: 40px; }
.sv2-sec--sunk { background: var(--tv2-surface-sunk); }
.sv2-sec--tight { padding-top: 0; }
.sv2-sechead { margin-bottom: 24px; }
.sv2-sechead h2, .sv2-faqwrap__head h2 { font-family: var(--tv2-font-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--tv2-ink); }
.sv2-sechead p { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--tv2-ink-muted); }
.sv2-sechead--center { text-align: center; }
.sv2-link { display: inline-flex; align-items: center; gap: 4px; color: var(--tv2-brand-ink); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.sv2-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sv2-link__arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.sv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--tv2-radius-md); font: 600 15px/20px var(--tv2-font-sans); white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.sv2-btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.sv2-btn--primary { background: var(--tv2-brand); color: var(--tv2-on-brand); }
.sv2-btn--primary:hover { background: var(--tv2-brand-hover); }
.sv2-btn--secondary { background: var(--tv2-surface); color: var(--tv2-ink); border-color: var(--tv2-line-strong); }
.sv2-btn--secondary:hover { border-color: var(--tv2-ink); }
.sv2-btn--light { background: var(--tv2-on-band); color: var(--tv2-band); }
.sv2-btn--light:hover { opacity: .9; }

/* ---------- category tones, tiles, art ---------- */
.sv2-tone-neutral { --tile-bg: var(--tv2-brand-soft); --tile-ink: var(--tv2-brand-ink); }
.sv2-tone-writing { --tile-bg: var(--sv2-cat-writing-soft); --tile-ink: var(--sv2-cat-writing-ink); }
.sv2-tone-education { --tile-bg: var(--sv2-cat-education-soft); --tile-ink: var(--sv2-cat-education-ink); }
.sv2-tone-productivity { --tile-bg: var(--sv2-cat-productivity-soft); --tile-ink: var(--sv2-cat-productivity-ink); }
.sv2-tone-translation { --tile-bg: var(--sv2-cat-translation-soft); --tile-ink: var(--sv2-cat-translation-ink); }
.sv2-tone-brainstorm { --tile-bg: var(--sv2-cat-brainstorm-soft); --tile-ink: var(--sv2-cat-brainstorm-ink); }
.sv2-tone-video { --tile-bg: var(--sv2-cat-video-soft); --tile-ink: var(--sv2-cat-video-ink); }
.sv2-tone-image { --tile-bg: var(--sv2-cat-image-soft); --tile-ink: var(--sv2-cat-image-ink); }
.sv2-tone-fun { --tile-bg: var(--sv2-cat-fun-soft); --tile-ink: var(--sv2-cat-fun-ink); }
.sv2-tile { display: grid; place-items: center; flex: none; background: var(--tile-bg, var(--tv2-brand-soft)); color: var(--tile-ink, var(--tv2-brand-ink)); font-family: var(--tv2-font-display); font-weight: 700; line-height: 1; }
.sv2-tile[data-letter]::before { content: attr(data-letter); }
.sv2-tile--card { width: 40px; height: 40px; border-radius: var(--tv2-radius-md); font-size: 17px; }
.sv2-tile--panel { width: 40px; height: 40px; border-radius: var(--tv2-radius-md); font-size: 18px; }
.sv2-tile--row { width: 36px; height: 36px; border-radius: 8px; font-size: 15px; }
.sv2-art { display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tv2-brand-soft); }
.sv2-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sv2-art--card { width: 40px; height: 40px; border-radius: var(--tv2-radius-md); }
.sv2-art--row { width: 36px; height: 36px; border-radius: 8px; }
.sv2-art--icon { background: var(--tv2-surface-sunk); }
.sv2-art--icon img { object-fit: cover; }

/* ---------- chips ---------- */
.sv2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv2-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.sv2-chips--scroll::-webkit-scrollbar { display: none; }
.sv2-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-pill); background: var(--tv2-surface); color: var(--tv2-ink); font: 600 14px/20px var(--tv2-font-sans); white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s; }
.sv2-chip:hover { border-color: var(--tv2-line-strong); }
.sv2-chip[aria-pressed="true"] { background: var(--tv2-brand-soft); border-color: var(--tv2-brand); color: var(--tv2-brand-ink); }
.sv2-chip__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tile-ink, var(--tv2-brand-ink)); }

/* ---------- hero ---------- */
.sv2-hero { padding: 32px 0 40px; }
.sv2-hero__grid { display: grid; gap: 32px; align-items: center; }
.sv2-hero__grid > * { min-width: 0; }
.sv2-hero__badge { display: inline-flex; margin-bottom: 12px; padding: 2px 10px; border-radius: var(--tv2-radius-pill); background: var(--tv2-brand-soft); color: var(--tv2-brand-ink); font-size: 12px; line-height: 18px; font-weight: 600; }
.sv2-hero h1 { font-family: var(--tv2-font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--tv2-ink); }
.sv2-hero__hl { color: var(--tv2-brand-ink); }
.sv2-hero__lead { max-width: 560px; margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--tv2-ink-muted); }
.sv2-hero__desc { max-width: 560px; margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--tv2-ink-muted); }
.sv2-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 767px) { .sv2-hero__ctas .sv2-btn { flex: 1; } }
.sv2-hero__img { aspect-ratio: 16 / 7; overflow: hidden; border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-lg); background: var(--tv2-surface-sunk); }
.sv2-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv2-hero__cats { margin-top: 24px; }

/* ---------- tool cards (New Tools) ---------- */
.sv2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sv2-card { --sv2-art: 40px; position: relative; display: grid; grid-template-columns: var(--sv2-art) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; align-content: start; min-width: 0; padding: 12px; background: var(--tv2-surface); border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-md); transition: border-color .15s, box-shadow .15s; }
.sv2-card:hover { border-color: var(--tv2-line-strong); box-shadow: var(--tv2-shadow-card-hover); }
.sv2-card__link { grid-column: 1 / -1; display: grid; grid-template-columns: var(--sv2-art) minmax(0, 1fr); gap: 12px; align-items: start; }
/* Stretched link: the whole card is clickable while the category label stays outside the anchor. */
.sv2-card__link::after { content: ""; position: absolute; inset: -1px; border-radius: var(--tv2-radius-md); }
.sv2-card__link:focus-visible { outline: none; }
.sv2-card__link:focus-visible::after { outline: 2px solid var(--tv2-focus); outline-offset: 2px; }
.sv2-card__name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--tv2-ink); }
.sv2-card__desc { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--tv2-ink-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sv2-card__cat { grid-column: 2; margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--tv2-ink-muted); }

/* ---------- category panels (Popular) ---------- */
.sv2-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sv2-panel { display: flex; flex-direction: column; min-width: 0; padding: 20px; background: var(--tv2-surface); border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-lg); }
.sv2-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sv2-panel__head h3 { flex: 1; min-width: 0; font-size: 18px; line-height: 24px; font-weight: 650; color: var(--tv2-ink); }
.sv2-panel__list { order: 1; flex: 1; }
.sv2-panel__all { order: 2; align-self: stretch; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tv2-line); }
.sv2-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--tv2-line); }
.sv2-row:first-child { border-top: 0; }
.sv2-row:hover .sv2-row__name { color: var(--tv2-brand-ink); }
.sv2-row__name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--tv2-ink); }
.sv2-row__desc { font-size: 13px; line-height: 18px; color: var(--tv2-ink-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.sv2-row__go { width: 16px; height: 16px; fill: none; stroke: var(--tv2-ink-subtle); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv2-row--cover { padding-top: 8px; }
.sv2-row__cover { grid-column: 1 / -1; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 4px; border-radius: var(--tv2-radius-md); background: var(--tv2-surface-sunk); }
.sv2-row__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- steps (How to Use) ---------- */
.sv2-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sv2-steps__region { display: contents; }
.sv2-steps__head { grid-column: 1 / -1; margin-bottom: 8px; }
.sv2-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; background: var(--tv2-surface); border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-lg); }
.sv2-step__n { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--tv2-brand); border-radius: 50%; color: var(--tv2-brand-ink); font: 700 15px/1 var(--tv2-font-display); }
.sv2-step__n::before { content: attr(data-n); }
.sv2-step__label { display: block; margin-bottom: 2px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tv2-ink-muted); }
.sv2-step h3 { font-size: 17px; line-height: 24px; font-weight: 650; color: var(--tv2-ink); }
.sv2-step p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--tv2-ink-muted); }
.sv2-step__img { display: block; width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-md); }
.sv2-step__features { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--tv2-ink); }
.sv2-step__features li { display: flex; gap: 8px; }
.sv2-step__features li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--tv2-brand); }
.sv2-step__cta { height: 40px; margin-top: 16px; padding: 0 16px; font-size: 14px; }
/* Step CTA keeps the brand hover on both the home and category pages. */
.sv2 .home-how .sv2-step__cta:hover,
.sv2 .cat-howto .sv2-step__cta:hover { background: var(--tv2-brand-hover); }
.sv2 .home-how .sv2-step__cta:hover, .sv2 .cat-howto .sv2-step__cta:hover { border-color: var(--tv2-brand-hover); color: var(--tv2-on-brand); }

/* ---------- features (Why Choose) ---------- */
.sv2-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.sv2-feature { padding-top: 16px; border-top: 2px solid var(--tv2-ink); }
.sv2-feature h4 { margin-bottom: 8px; font-size: 17px; line-height: 24px; font-weight: 650; color: var(--tv2-ink); }
.sv2-feature p { font-size: 15px; line-height: 24px; color: var(--tv2-ink-muted); }
.sv2-feature__img { display: block; height: auto; margin-bottom: 12px; border-radius: var(--tv2-radius-md); }

/* ---------- pricing (legacy plan cards, restyled) ---------- */
.sv2-pricing__tabs { display: block; text-align: center; }
.sv2 .sv2-toggle { display: inline-flex; width: auto; height: auto; gap: 2px; padding: 4px; border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-pill); background: var(--tv2-surface); }
.sv2 .sv2-toggle__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border: 0; border-radius: var(--tv2-radius-pill); background: transparent; color: var(--tv2-ink-muted); font: 600 14px/20px var(--tv2-font-sans); box-shadow: none; cursor: pointer; }
.sv2 .sv2-toggle__btn[data-state="active"] { background: var(--tv2-ink); color: var(--tv2-on-ink); }
.sv2-toggle__save { padding: 0 6px; border-radius: 4px; background: var(--tv2-ok-soft); color: var(--tv2-ok-ink); font-style: normal; font-size: 12px; line-height: 18px; }
.sv2 .sv2-toggle__btn[data-state="active"] .sv2-toggle__save { background: var(--tv2-brand); color: var(--tv2-on-brand); }
/* 手机端：切换条允许收缩，避免整页横向滚动 */
@media (max-width: 767px) {
  .sv2 .sv2-toggle { max-width: 100%; }
  .sv2 .sv2-toggle__btn { flex: 1 1 auto; min-width: 0; gap: 4px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .sv2-toggle__save { padding: 0 4px; font-size: 11px; }
}
.sv2-pricing__panel { margin-top: 24px; text-align: left; }
.sv2-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 840px; margin-inline: auto; }
.sv2-plans--1 { max-width: 420px; }
.sv2 .sv2-plans > div { position: relative; z-index: auto; display: flex; flex-direction: column; margin: 0; padding: 24px; background: var(--tv2-surface); border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-lg); box-shadow: none; color: var(--tv2-ink); }
.sv2 .sv2-plans > div:hover { border-color: var(--tv2-line-strong); scale: none; transform: none; box-shadow: none; }
.sv2 .sv2-plans > #highlight-card { border: 2px solid var(--tv2-ink); }
.sv2 .sv2-plans > div > div.absolute { top: -11px; left: 22px; right: auto; height: 20px; padding: 0 8px; border-radius: var(--tv2-radius-sm); background: var(--tv2-ink); color: var(--tv2-on-ink); font-size: 11px; line-height: 20px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.sv2 .sv2-plans > div > h3 { order: 0; margin: 0; font-size: 18px; line-height: 24px; font-weight: 650; color: var(--tv2-ink); }
.sv2 .sv2-plans > div > p { order: 1; height: auto; margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--tv2-ink-muted); }
.sv2 .sv2-plans > div > .text-4xl { order: 2; margin: 12px 0 0; font: 700 36px/40px var(--tv2-font-display); letter-spacing: -0.02em; color: var(--tv2-ink); }
.sv2 .sv2-plans > div > .text-4xl span { font-family: var(--tv2-font-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--tv2-ink-muted); }
.sv2 .sv2-plans > div > .text-4xl > div { margin-top: 4px; font-family: var(--tv2-font-sans); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; color: var(--tv2-ink-muted); }
.sv2 .sv2-plans > div > .text-4xl > div.highlight-text { color: var(--tv2-brand-ink); font-weight: 600; }
.sv2 .sv2-plans > div > ul { order: 3; display: grid; gap: 8px; margin: 16px 0 24px; padding: 0; list-style: none; font-size: 15px; line-height: 22px; }
.sv2 .sv2-plans > div > ul li { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.sv2 .sv2-plans > div > ul svg { width: 18px; height: 18px; flex: none; margin: 2px 0 0; color: var(--tv2-ok-ink); }
.sv2 .sv2-plans > div > div:not(.absolute):not(.text-4xl) { order: 4; margin-top: auto; }
.sv2 .sv2-plans [data-slot="button"] { width: 100%; height: 44px; margin: 0; padding: 0 24px; border: 1px solid var(--tv2-line-strong); border-radius: var(--tv2-radius-md); background: var(--tv2-surface); color: var(--tv2-ink); font: 600 15px/20px var(--tv2-font-sans); box-shadow: none; }
.sv2 .sv2-plans [data-slot="button"]:hover { border-color: var(--tv2-ink); background: var(--tv2-surface); }
.sv2 .sv2-plans [data-slot="button"] svg { display: none; }
.sv2 .sv2-plans #highlight-card [data-slot="button"] { border-color: transparent; background: var(--tv2-brand); color: var(--tv2-on-brand); }
.sv2 .sv2-plans #highlight-card [data-slot="button"]:hover { background: var(--tv2-brand-hover); }
.sv2 .sv2-plans [data-slot="button"] + div button { margin-top: 8px; color: var(--tv2-brand-ink); font-size: 13px; }

/* ---------- FAQ ---------- */
.sv2-faqwrap { max-width: 928px; }
.sv2-faqwrap__head { margin-bottom: 24px; text-align: center; }
.sv2-faqwrap__head p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--tv2-ink-muted); }
.sv2-faqwrap__help .sv2-link { white-space: normal; }
.sv2-faq { display: grid; gap: 8px; }
.sv2-faq details { background: var(--tv2-surface); border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-md); }
.sv2-faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; list-style: none; cursor: pointer; border-radius: inherit; }
.sv2-faq summary::-webkit-details-marker { display: none; }
.sv2-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tv2-surface-sunk); color: var(--tv2-ink-muted); font-weight: 600; line-height: 1; }
.sv2-faq details[open] > summary::after { content: "\2212"; background: var(--tv2-brand-soft); color: var(--tv2-brand-ink); }
.sv2-faq summary h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--tv2-ink); }
.sv2-faq__a { padding: 0 16px 16px; }
.sv2-faq__a p { max-width: 720px; font-size: 15px; line-height: 25px; color: var(--tv2-ink-muted); }

/* ---------- CTA band ---------- */
.sv2-cta { display: grid; gap: 16px; align-items: center; padding: 32px 24px; border-radius: var(--tv2-radius-lg); background: var(--tv2-band); color: var(--tv2-on-band); }
.sv2-cta h2 { font-family: var(--tv2-font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; color: var(--tv2-on-band); }
.sv2-cta p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--tv2-on-band); opacity: .78; }
.sv2-cta .sv2-btn { width: 100%; }

/* ---------- outbound links (footer Links column) ---------- */
.sv2-links { padding: 32px 0 24px; background: var(--tv2-surface); border-top: 1px solid var(--tv2-line); font-size: 14px; line-height: 20px; }
.sv2-links__head h2 { margin-bottom: 12px; font: 600 12px/16px var(--tv2-font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--tv2-ink-muted); }
.sv2-links__head p { margin: -4px 0 12px; font-size: 13px; color: var(--tv2-ink-muted); }
.sv2-links__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding: 0; list-style: none; }
.sv2-links__list a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--tv2-ink-muted); }
.sv2-links__list a:hover { color: var(--tv2-brand-ink); }

.sv2-links__list img { width: auto; height: 16px; }

/* ---------- category page head ---------- */
.sv2-pagehead { padding-block: 16px 24px; }
.sv2-crumbs nav { font-size: 13px; line-height: 18px; color: var(--tv2-ink-muted); }
.sv2-crumbs a { color: var(--tv2-ink-muted); }
.sv2-crumbs a:hover { color: var(--tv2-ink); }
.sv2-crumbs [class~="text-[#0B0F19]"] { color: var(--tv2-ink); font-weight: 600; }
.sv2-crumbs svg { color: var(--tv2-ink-subtle); }
.sv2-pagehead h1 { margin-top: 12px; font-family: var(--tv2-font-display); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; color: var(--tv2-ink); }
.sv2-pagehead__lead { max-width: 720px; margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--tv2-ink-muted); }
.sv2-pagehead__text { max-width: 720px; margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--tv2-ink-muted); }
.sv2-pagehead__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--tv2-ink-muted); }
.sv2-pagehead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sv2-pagehead__meta svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--tv2-ok-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- category toolbar and grid ---------- */
.sv2-tools { padding-bottom: 40px; }
.sv2-toolbar { display: grid; gap: 12px; margin-bottom: 16px; }
.sv2-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--tv2-surface); border: 1px solid var(--tv2-line-strong); border-radius: var(--tv2-radius-md); color: var(--tv2-ink-subtle); }
.sv2-search:focus-within { outline: 2px solid var(--tv2-focus); outline-offset: 2px; }
.sv2-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sv2-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--tv2-ink); font: 16px/24px var(--tv2-font-sans); outline: none; }
.sv2-search input::placeholder { color: var(--tv2-ink-subtle); }
.sv2-count { margin-bottom: 12px; font-size: 14px; line-height: 20px; color: var(--tv2-ink-muted); }
.sv2-tcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; padding: 12px; background: var(--tv2-surface); border: 1px solid var(--tv2-line); border-radius: var(--tv2-radius-md); transition: border-color .15s, box-shadow .15s; }
.sv2-tcard:hover { border-color: var(--tv2-line-strong); box-shadow: var(--tv2-shadow-card-hover); }
.sv2-tcard__body { min-width: 0; }
/* Below 1024px the badge sits on the name row (CategoryPageMobile); the DOM order is name, badge, description. */
.sv2-tcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.sv2-tcard__top h3 { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--tv2-ink); }
.sv2-tcard__desc { font-size: 14px; line-height: 20px; color: var(--tv2-ink-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sv2-badge { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 6px; border-radius: var(--tv2-radius-sm); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.sv2-badge--free { background: var(--tv2-ok-soft); color: var(--tv2-ok-ink); }
.sv2-badge--pro { background: var(--tv2-brand-soft); color: var(--tv2-brand-ink); }
.sv2-badge--credits { background: var(--tv2-surface-sunk); color: var(--tv2-ink-muted); }
.sv2-empty { padding: 40px 16px; text-align: center; color: var(--tv2-ink-muted); }
.sv2-empty h2 { margin-bottom: 8px; font-family: var(--tv2-font-display); font-size: 22px; line-height: 28px; color: var(--tv2-ink); }

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  .sv2-container { padding-inline: 24px; }
  .sv2-chips--scroll { margin-inline: -24px; padding-inline: 24px; }
  .sv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sv2-card, .sv2-tcard { padding: 16px; }
  .sv2-card { --sv2-art: 48px; }
  .sv2-tile--card, .sv2-art--card { width: 48px; height: 48px; font-size: 20px; }
  .sv2-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv2-panel { padding: 24px; }
  .sv2-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sv2-plans--1 { grid-template-columns: minmax(0, 1fr); }
  .sv2-cta .sv2-btn { width: auto; justify-self: start; }
  .sv2-links__list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .sv2-sec { padding-block: 64px; }
  .sv2-sec--tight { padding-top: 0; }
  .sv2-sechead h2, .sv2-faqwrap__head h2 { font-size: 28px; line-height: 34px; }
  .sv2-hero { padding: 64px 0; }
  .sv2-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .sv2-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
  .sv2-hero h1 { font-size: 52px; line-height: 56px; }
  .sv2-hero__lead { margin-top: 16px; font-size: 18px; line-height: 28px; }
  .sv2-hero__img { aspect-ratio: 4 / 3; }
  .sv2-chips--scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .sv2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sv2-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .sv2-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .sv2-steps__head { margin-bottom: 0; }
  .sv2-step { padding: 24px; }
  .sv2-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .sv2-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
  .sv2-cta { grid-template-columns: minmax(0, 1fr) auto; padding: 48px 56px; }
  .sv2-cta h2 { font-size: 32px; line-height: 38px; }
  .sv2-cta .sv2-btn { justify-self: end; }
  .sv2-pagehead { padding-block: 24px 32px; }
  .sv2-pagehead h1 { font-size: 40px; line-height: 46px; letter-spacing: -0.015em; }
  .sv2-pagehead__lead { font-size: 18px; line-height: 28px; }
  .sv2-toolbar { grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: 16px; }
  /* Desktop small card (CategoryPage): the badge is drawn under the description without changing the DOM order. */
  .sv2-tcard__body { display: flex; flex-direction: column; align-items: flex-start; }
  .sv2-tcard__top { display: contents; }
  .sv2-tcard__top h3 { order: 0; margin-bottom: 2px; }
  .sv2-tcard__top .sv2-badge { order: 2; margin-top: 8px; }
  .sv2-tcard__desc { order: 1; }
  .sv2-tools { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .sv2 *, .sv2 *::before, .sv2 *::after { transition: none !important; }
}
