/* Pricing, blog, legal and 404 pages (demo/scripts/build-content-pages.py). Builds on styles.css + tool-v3.css. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cp-page .tv3-proof { margin-top: 22px; }
.cp-page .nav-link[aria-current="page"] { background: var(--bg-2); }

/* ================================================================ pricing */
.cp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: 36px 64px; }
.cp-hero h1, .bp-hero h1, .bh-hero h1, .lg-hero h1, .nf h1 { margin: 16px 0 20px; font-size: clamp(40px, 4.6vw, 62px); font-weight: 600; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.cp-hero .tv3-lede { max-width: 34em; }

.cp-free { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.cp-free-pics { display: flex; margin-bottom: 20px; }
.cp-free-pics img { width: 64px; height: 84px; object-fit: cover; border-radius: 12px; border: 3px solid var(--card); box-shadow: 0 8px 18px -10px #15141366; }
.cp-free-pics img + img { margin-left: -14px; }
.cp-free-pics img:nth-child(2) { transform: translateY(-6px) rotate(3deg); }
.cp-free-pics img:nth-child(3) { transform: rotate(6deg); }
.cp-free-k { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cp-free-big { margin-top: 6px; font-size: 46px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.cp-free-sub { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.cp-free ul { display: grid; gap: 9px; margin: 20px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.cp-free li, .cp-feats li { display: flex; align-items: flex-start; gap: 10px; }
.cp-free li svg, .cp-feats li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }

.cp-plans-sec { padding-top: 72px; }
.cp-billing { display: grid; }
.cp-switch { display: flex; justify-self: center; gap: 4px; margin-bottom: 36px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.cp-switch label { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 22px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.cp-switch label span { padding: 2px 9px; border-radius: 999px; background: #efe6d6; color: #6a5532; font-size: 12px; font-weight: 700; }
#billing-yearly:checked ~ .cp-switch label[for="billing-yearly"], #billing-monthly:checked ~ .cp-switch label[for="billing-monthly"] { background: var(--ink); color: #fff; }
#billing-yearly:checked ~ .cp-switch label[for="billing-yearly"] span { background: #f3ead9; }
#billing-yearly:focus-visible ~ .cp-switch label[for="billing-yearly"], #billing-monthly:focus-visible ~ .cp-switch label[for="billing-monthly"] { outline: 2px solid var(--ink); outline-offset: 2px; }
#billing-yearly:checked ~ .cp-plans [data-billing="monthly"], #billing-monthly:checked ~ .cp-plans [data-billing="yearly"] { display: none; }

.cp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1080px; width: 100%; margin: 0 auto; padding: 0; list-style: none; }
.cp-plan { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.cp-plan.is-pop { border: 1.5px solid var(--ink); box-shadow: var(--shadow-lg); }
.cp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-plan-top b { font-size: 22px; letter-spacing: -.025em; }
.cp-plan-top em { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; }
.cp-plan-d { min-height: 44px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.cp-bill { margin: 22px 0 24px; }
.cp-price { display: flex; align-items: baseline; gap: 8px; }
.cp-price strong { font-size: 46px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.cp-price s { color: var(--ink-3); font-size: 18px; }
.cp-price small { color: var(--ink-2); font-size: 15px; }
.cp-note { margin-top: 10px; color: var(--ink-2); font-size: 13.5px; }
.cp-per { margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.cp-feats { display: grid; gap: 11px; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14.5px; }
.cp-foot { margin-top: 26px; color: var(--ink-3); font-size: 13.5px; text-align: center; }

.cp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cp-table th, .cp-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.cp-table thead th { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cp-table tbody tr:last-child > * { border-bottom: 0; }
.cp-table tbody th { font-weight: 700; }
.cp-table tr.is-pop { background: #faf8f4; }
.cp-table tr.is-pop th::after { content: "★"; margin-left: 8px; font-size: 12px; color: var(--ink-3); }
.cp-table tbody th:first-child { position: sticky; left: 0; background: inherit; }
.cp-table tbody tr { background: var(--card); }
.cp-table tbody tr.is-pop { background: #faf8f4; }
.bp-table .cp-table th, .bp-table .cp-table td { white-space: normal; vertical-align: top; min-width: 150px; line-height: 1.45; }
.bp-table .cp-table thead th:last-child, .bp-table .cp-table td:last-child { background: #faf8f4; }
.bp-table .cp-table td small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.bp-table-note { margin: 12px 4px 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }

.cp-credits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cp-credits li { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.cp-credits .t-ic { width: 40px; height: 40px; margin-bottom: 18px; }
.cp-credits .t-ic svg { width: 19px; height: 19px; }
.cp-credits p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

.cp-packs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cp-packs h2 { margin-top: 4px; }
.cp-packs > div > p:last-child { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.tv3-faq-sec { border-top: 1px solid var(--line); }

/* ================================================================ blog post */
.bp-progress { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.bp-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.bp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: 32px 56px; }
.bp-hero h1 { font-size: clamp(36px, 4.1vw, 56px); }
.bp-hero .tv3-lede { max-width: 36em; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.bp-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.bp-by { color: var(--ink); font-weight: 600; }
.bp-by img { width: 28px; height: 28px; border-radius: 9px; }
.bp-hero-pic { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--shadow); }
.bp-hero-pic img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 200px); object-fit: cover; }

.bp-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: 40px; border-top: 1px solid var(--line); }
.bp-side, .lg-side { position: sticky; top: 100px; display: grid; gap: 22px; padding-top: 48px; max-height: calc(100svh - 110px); overflow-y: auto; scrollbar-width: none; }
.bp-side::-webkit-scrollbar, .lg-side::-webkit-scrollbar { display: none; }
.bp-toc summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; list-style: none; cursor: default; }
.bp-toc summary::-webkit-details-marker { display: none; }
.bp-toc summary svg { display: none; }
.bp-toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.bp-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; transition: color .15s, border-color .15s; }
.bp-toc a:hover { color: var(--ink); }
.bp-toc a[aria-current] { border-color: var(--ink); color: var(--ink); font-weight: 600; }

.bp-try { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.bp-try-pic { position: relative; display: block; overflow: hidden; border-radius: 14px; }
.bp-try-pic > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; transition: transform .4s; }
.bp-try-pic:hover > img { transform: scale(1.03); }
.bp-try-pic .tv3-inset { width: 30%; cursor: pointer; }
.bp-try-k { margin-top: 14px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bp-try-name { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.bp-try-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.bp-try > p:not(.bp-try-k) { margin: 6px 0 14px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }

.bp-article { min-width: 0; max-width: 760px; }
.bp-sec { padding-top: 48px; scroll-margin-top: 96px; }
.bp-sec + .bp-sec { margin-top: 8px; }
.bp-sec h2 { margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.bp-intro { margin-bottom: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.bp-prose p { font-size: 17.5px; line-height: 1.78; color: #2b2926; }
.bp-prose p + p { margin-top: 1.1em; }
.bp-article a:not(.btn):not(.tv3-link):not([class]) , .bp-prose a, .bp-cards a, .bp-intro a, .faq-a a, .bp-ex a, .bp-steps a, .lg-doc a:not(.btn):not(.lg-also) { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 500; color: var(--ink); transition: text-decoration-color .15s; }
.bp-prose a:hover, .bp-cards a:hover, .bp-intro a:hover, .faq-a a:hover, .bp-ex a:hover, .bp-steps a:hover, .lg-doc a:not(.btn):not(.lg-also):hover { text-decoration-color: var(--ink); }
.bp-prose b, .bp-prose strong { color: var(--ink); }

.bp-figs { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.bp-figs[style*="--n:1"] { max-width: 520px; }
.bp-fig, .bp-tip { margin: 0; cursor: zoom-in; }
.bp-fig-img { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--bg-2); }
.bp-fig-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.bp-figs[style*="--n:1"] .bp-fig-img img { aspect-ratio: auto; }
.bp-fig:hover .bp-fig-img img, .bp-tip:hover .bp-fig-img img { transform: scale(1.025); }
.bp-fig:hover .ex-zoom, .bp-fig:focus-visible .ex-zoom { opacity: 1; }
.bp-fig figcaption { margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.bp-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(21, 20, 19, .72); color: #fff; font-size: 11px; font-weight: 600; }

.bp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bp-cards li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.bp-cards.is-odd li:last-child { grid-column: 1 / -1; }
.bp-cards .t-ic, .bp-steps .t-ic { flex: none; width: 38px; height: 38px; }
.bp-cards .t-ic svg, .bp-steps .t-ic svg { width: 18px; height: 18px; }
.bp-cards h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.bp-cards p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

.bp-ex { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.bp-ex + .bp-ex { margin-top: 14px; }
.bp-ex-head { display: flex; gap: 16px; margin-bottom: 18px; }
.bp-ex-head > span { flex: none; padding-top: 3px; color: var(--ink-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-ex-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.bp-ex-head p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.bp-ex-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.bp-ex-row .bp-fig:first-child .bp-fig-img { outline: 1px dashed var(--line-2); outline-offset: -1px; }

.bp-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.bp-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.bp-steps .t-ic { grid-row: span 2; }
.bp-step-n { position: absolute; top: 20px; right: 22px; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.bp-steps h3 { padding-right: 32px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.bp-steps p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

.bp-tips + .bp-tips { margin-top: 26px; }
.bp-tips-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.bp-tips.is-good .bp-tips-head { color: var(--new); }
.bp-tips.is-bad .bp-tips-head { color: #9a3b2c; }
.bp-tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-tip-mark { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--new); color: #fff; }
.bp-tips.is-bad .bp-tip-mark { background: #9a3b2c; }
.bp-tip-mark svg { width: 14px; height: 14px; }
.bp-tip figcaption { display: grid; gap: 3px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.bp-tip figcaption b { color: var(--ink); font-size: 13.5px; }

.bp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.bp-facts div { padding: 18px 20px; background: var(--card); }
.bp-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.bp-facts dt { margin-top: 4px; color: var(--ink-2); font-size: 13px; font-weight: 400; line-height: 1.45; }
.bp-facts dd { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.035em; }

.bp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bp-plans li { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.bp-plans li.is-pop { border-color: var(--ink); background: var(--ink); color: #fff; }
.bp-plans b { font-size: 15px; }
.bp-price { margin: 10px 0 4px; font-size: 32px; font-weight: 700; letter-spacing: -.04em; }
.bp-price small { margin-left: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.bp-plans p:not(.bp-price) { color: var(--ink-2); font-size: 13.5px; }
.bp-plans .is-pop p:not(.bp-price) { color: #d8d2c7; }
.bp-per { margin-top: 2px; font-size: 12.5px !important; }
.bp-plans-note { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.bp-plans-note a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.bp-faq summary h3 { font-size: 16.5px; }
.bp-faq .faq-a { padding-right: 40px; }

.bp-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.bp-related a { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .15s, transform .2s; }
.bp-related a:hover { border-color: var(--ink); transform: translateY(-1px); }
.bp-rel-img { position: relative; display: block; }
.bp-rel-img > img { width: 84px; height: 104px; object-fit: cover; border-radius: 12px; }
.bp-rel-before { position: absolute; right: -6px; bottom: -6px; padding: 2px; border-radius: 8px; background: #fff; box-shadow: 0 6px 14px -8px #15141380; }
.bp-rel-before img { width: 30px; height: 38px; object-fit: cover; border-radius: 6px; }
/* AI edit tool inside a post: a small card early on, the live demo next to the AI section */
.bp-tool-card { grid-template-columns: 1fr; margin-top: 22px; }
.bp-tool-card a { background: var(--card); border-color: var(--line-2); }
.bp-demo { margin-top: 26px; padding: 10px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: 0 24px 50px -34px #35261966; }
.bp-demo-media.show-media { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
.bp-demo-copy { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 12px 8px; }
.bp-demo-copy p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.bp-demo-copy .bp-demo-k { color: var(--ink-3, var(--ink-2)); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bp-demo-copy .bp-demo-h { margin: 4px 0 2px; color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.bp-demo-copy .btn { flex: none; }
.bp-related b { display: block; font-size: 15px; letter-spacing: -.015em; }
.bp-related small { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bp-more { margin-top: 18px; }

.bp-keep { border-top: 1px solid var(--line); }

/* ================================================================ blog hub + cards */
.bh-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 88px); align-items: end; padding-block: 36px 40px; }
.bh-tools { display: grid; gap: 14px; }
.bh-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.bh-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px #1514130d; }
.bh-search svg { color: var(--ink-3); }
.bh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 15px var(--font); color: var(--ink); }
.bh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-chips button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.bh-chips button span { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.bh-chips button:hover { border-color: var(--ink); color: var(--ink); }
.bh-chips button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.bh-chips button.is-on span { color: #c9c3b8; }

.bh-list { padding-bottom: 96px; }
.bh-feature a { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: box-shadow .2s; }
.bh-feature a:hover { box-shadow: var(--shadow-lg); }
.bh-feature-img { overflow: hidden; background: var(--bg-2); }
.bh-feature-img img { width: 100%; height: 100%; min-height: 420px; max-height: 520px; object-fit: cover; object-position: 50% 30%; transition: transform .5s; }
.bh-feature a:hover .bh-feature-img img { transform: scale(1.02); }
.bh-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.bh-feature h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.bh-feature .bh-card-text { font-size: 16px; }
.bh-feature em { align-self: flex-start; margin-top: 10px; font-style: normal; }
.bh-feature[hidden] { display: none; }

.bh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; margin: 0; padding: 0; list-style: none; }
.bh-card[hidden] { display: none; }
.bh-card a { display: flex; flex-direction: column; height: 100%; }
.bh-card-img { display: block; overflow: hidden; border-radius: 20px; background: var(--bg-2); }
.bh-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; transition: transform .45s; }
.bh-card a:hover .bh-card-img img { transform: scale(1.035); }
.bh-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 4px 0; }
.bh-meta { color: var(--ink-3); font-size: 12.5px; }
.bh-card h2, .bh-card h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.022em; text-wrap: balance; }
.bh-card a:hover h2, .bh-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.bh-card-text { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.bh-card em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13px; font-style: normal; font-weight: 600; }
.bh-empty { padding: 60px 0; color: var(--ink-2); text-align: center; }

/* ================================================================ legal */
.lg-hero { padding-block: 36px 48px; }
.lg-hero h1 { max-width: 14em; }
.lg-hero .tv3-lede { max-width: 42em; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.lg-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: 96px; border-top: 1px solid var(--line); }
.lg-doc { max-width: 760px; padding-top: 24px; }
.lg-sec { padding-top: 40px; scroll-margin-top: 96px; }
.lg-sec h2 { margin-bottom: 14px; font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.lg-sec h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.lg-sec p, .lg-sec li { color: #2b2926; font-size: 16.5px; line-height: 1.75; }
.lg-sec p + p, .lg-sec p + ul, .lg-sec ul + p { margin-top: 1em; }
.lg-sec ul, .lg-sec ol { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; }
.lg-sec li::marker { color: var(--ink-3); }
.lg-sec table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.lg-sec th, .lg-sec td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lg-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 56px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.lg-help .t-ic { width: 44px; height: 44px; }
.lg-help-t { font-weight: 600; }
.lg-help p:not(.lg-help-t) { margin-top: 3px; color: var(--ink-2); font-size: 14px; }
.lg-also { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; transition: border-color .15s; }
.lg-also:hover { border-color: var(--ink); }
.lg-also small { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lg-also b { margin-right: auto; font-size: 16px; }

/* ================================================================ 404 */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: 56px 72px; }
.nf-code { font-size: clamp(88px, 12vw, 160px); font-weight: 700; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-bottom: 18px; }
.nf .tv3-lede { max-width: 32em; }
.nf-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: 14px; font-weight: 600; }
.nf-links a { color: var(--ink-2); }
.nf-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nf-pics { display: flex; }
.nf-pics img { width: 168px; height: 224px; object-fit: cover; border-radius: 22px; border: 4px solid var(--bg); box-shadow: var(--shadow-lg); }
.nf-pics img + img { margin-left: -40px; }
.nf-pics img:nth-child(1) { transform: rotate(-6deg) translateY(10px); }
.nf-pics img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-14px); }
.nf-pics img:nth-child(3) { transform: rotate(6deg) translateY(10px); }
.nf-sec { padding-block: 40px; }
.nf-sec + .nf-sec { padding-bottom: 96px; }
.nf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.nf-grid a { display: grid; gap: 10px; font-size: 14.5px; }
.nf-img { overflow: hidden; border-radius: 18px; background: var(--bg-2); }
.nf-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.nf-grid a:hover img { transform: scale(1.04); }
.nf-grid a:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* ================================================================ responsive */
@media (max-width: 1080px) {
  .cp-hero { grid-template-columns: minmax(0, 1fr) 340px; }
  .cp-credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-layout, .lg-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .bp-try { display: none; }
  .bh-hero { grid-template-columns: 1fr; align-items: start; }
  .nf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nf-pics img { width: 132px; height: 176px; }
}
@media (max-width: 900px) {
  .bp-layout, .lg-layout { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .bp-side, .lg-side { position: static; max-height: none; padding-top: 0; overflow: visible; }
  .bp-toc { border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
  .bp-toc summary { margin: 0; padding: 16px 18px; cursor: pointer; }
  .bp-toc summary svg { display: block; transition: transform .2s; }
  .bp-toc[open] summary svg { transform: rotate(180deg); }
  .bp-toc nav { padding: 0 18px 14px; }
  .bp-hero, .cp-hero { grid-template-columns: 1fr; }
  .bp-hero-pic { order: -1; }
  .bp-hero-pic img { aspect-ratio: 4 / 3; max-height: none; object-position: 50% 30%; }
  .cp-plans { grid-template-columns: 1fr; max-width: 520px; }
  .cp-packs { grid-template-columns: 1fr; }
  .bh-feature a { grid-template-columns: 1fr; }
  .bh-feature-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .bh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf { grid-template-columns: 1fr; }
  .nf-pics { display: none; }
}
@media (max-width: 760px) {
  .cp-hero h1, .bp-hero h1, .bh-hero h1, .lg-hero h1, .nf h1 { font-size: clamp(32px, 9vw, 42px); }
  .cp-hero, .bp-hero, .bh-hero, .lg-hero { padding-block: 20px 36px; }
  .cp-free { padding: 22px; }
  .cp-switch label { padding: 0 16px; font-size: 14px; }
  .cp-credits { grid-template-columns: 1fr; }
  .cp-table th, .cp-table td { padding: 13px 14px; }
  .bp-prose p { font-size: 17px; }
  .bp-cards, .bp-related, .bp-plans, .bp-facts { grid-template-columns: 1fr; }
  .bp-demo { padding: 6px; border-radius: 20px; }
  .bp-demo-copy { flex-direction: column; align-items: stretch; padding: 14px 8px 6px; }
  .bp-demo-copy .btn { justify-content: center; }
  .bp-tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-ex { padding: 16px; }
  .bp-ex-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-figs[style*="--n:1"] { grid-template-columns: 1fr; }
  .bh-grid { grid-template-columns: 1fr; }
  .bh-chips { flex-wrap: nowrap; max-width: 100%; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
  .bh-chips button { flex: none; }
  .lg-help { grid-template-columns: 1fr; }
  .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-acts .btn { width: 100%; }
}

/* try card: one tool under a section's pictures (blog 'try') */
.bp-trycard { margin-top: 22px; }
.bp-trycard a { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); transition: border-color .15s, transform .2s; }
.bp-trycard a:hover { border-color: var(--ink); transform: translateY(-1px); }
.bp-trycard .bp-rel-img > img { width: 84px; height: 104px; object-fit: cover; border-radius: 12px; }
.bp-trycard .bp-rel-img.is-wide > img { height: 84px; }
.bp-trycard-body { min-width: 0; }
.bp-trycard-body em { display: block; margin-bottom: 3px; color: var(--ink-2); font-size: 11px; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bp-trycard-body b { display: block; font-size: 16px; letter-spacing: -.015em; }
.bp-trycard-body small { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bp-trycard .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .bp-trycard a { grid-template-columns: 72px minmax(0, 1fr); }
  .bp-trycard .bp-rel-img > img { width: 72px; height: 90px; }
  .bp-trycard .bp-rel-img.is-wide > img { height: 72px; }
  .bp-trycard .btn { grid-column: 1 / -1; justify-content: center; }
}

/* 'Garmo result' tag on images Garmo made (blog image 'garmo': true) */
.bp-tag.is-garmo { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 12px -6px #15141366; }
.bp-tag.is-garmo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.bp-tag.is-garmo.is-low { top: auto; bottom: 10px; }
.bp-hero-pic { position: relative; }
.bp-hero-pic .bp-tag { top: 14px; left: 14px; }
