/* Predicivo site styles. Layout per docs/HOMEPAGE_UI_SPEC.md; colours and type scale follow the Apify Store look
   the owner picked on 2026-11-26: near-black page, dark grey cards, white primary buttons, blue only as brand accent.
   Dark is the default theme. */
:root,
:root[data-theme="dark"] {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-subtle: #1C1C1F;
  --band: #121214;
  --text: #F4F4F5;
  --text-2: #A1A1AA;
  --border: #2A2A2E;
  --border-strong: #3F3F46;
  --primary: #FFFFFF;
  --primary-hover: #E4E4E7;
  --btn-text: #0B0B0C;
  --focus: #60A5FA;
  --link: #F4F4F5;
  --icon-bg: #1C1C1F;
  --icon-fg: #4C8DFF;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-subtle: #F4F4F5;
  --band: #F7F7F8;
  --text: #0B0B0C;
  --text-2: #52525B;
  --border: #E4E4E7;
  --border-strong: #A1A1AA;
  --primary: #0B0B0C;
  --primary-hover: #27272A;
  --btn-text: #FFFFFF;
  --focus: #2563EB;
  --link: #0B0B0C;
  --icon-bg: #EEF3FF;
  --icon-fg: #1746B7;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--link); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--primary); color: var(--btn-text); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 3.2vw, 40px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--btn-text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-subtle); }
.btn-sm { height: 36px; padding: 0 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--link); text-decoration: underline; cursor: pointer; min-height: 44px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-subtle); }
.icon-btn svg { width: 18px; height: 18px; }

/* Icons */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-24 { width: 22px; height: 22px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo { height: 40px; width: auto; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="light"] .logo-on-dark { display: none; }
.site-footer .logo { height: 34px; }
@media (max-width: 767px) { .logo { height: 34px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; text-transform: lowercase; }
.brand-tag { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
/* Navigation lives in the burger on every screen size, as on the Apify Store header */
.mobile-menu { display: none; }
.mobile-menu[data-open="true"] { display: block; position: absolute; right: max(clamp(16px, 3.2vw, 40px), calc((100% - 1360px) / 2 + clamp(16px, 3.2vw, 40px))); top: 66px; /* right under the burger, aligned with the content edge */ width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 0; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.mobile-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.mobile-menu a:hover { background: var(--surface-subtle); }
@media (max-width: 767px) {
  .header-row { height: 56px; }
  .header-cta { display: none; }
  .mobile-menu[data-open="true"] { left: 0; right: 0; top: 56px; width: auto; border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
  .mobile-menu a { border-top: 1px solid var(--border); padding: 0 16px; }
}

/* Sections */
section { padding: 56px 0 0; }
@media (max-width: 767px) { section { padding-top: 40px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; }
.section-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* Hero — mirrors the Apify Store hero: big light title, compact search with white button, chip row */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero-sub { font-size: clamp(14px, 1.3vw, 16px); color: var(--text-2); max-width: 520px; }
.search-form { margin-top: 24px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-field { position: relative; flex: 0 1 340px; min-width: 0; }
.search-field input { width: 100%; height: 38px; padding: 0 36px 0 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.search-field input::placeholder { color: var(--text-2); font-style: italic; }
.search-field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.search-field .ic { position: absolute; right: 12px; top: 11px; width: 16px; height: 16px; color: var(--text-2); pointer-events: none; }
.search-row .btn { height: 38px; padding: 0 14px; font-size: 15px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip:hover { background: var(--surface-subtle); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--btn-text); border-color: var(--primary); }
.micro { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.micro .ic { width: 14px; height: 14px; }
.hero-art { width: clamp(200px, 22vw, 280px); }
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .search-field { flex: 1 1 auto; }
  .search-field input { font-size: 16px; }
  .chip { font-size: 14px; height: 36px; }
}

/* Tool catalog — Apify-style cards: whole card is the link, footer strip with price and meta */
.tools { padding-top: clamp(20px, 2vw, 24px); }
.tools .section-head { align-items: center; }
.tools h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 400; }
.filter-bar { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.filter-bar[hidden] { display: none; }
.filter-bar .link-btn { min-height: 0; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); text-decoration: none; overflow: hidden; }
.tool:hover { border-color: var(--border-strong); }
.tool:focus-visible { outline-offset: 2px; }
.tool[hidden] { display: none; }
.tool-top { padding: 16px 16px 14px; flex: 1; }
.tool-head { display: flex; gap: 12px; align-items: center; }
.tool-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--icon-bg); border: 1px solid var(--border); color: var(--icon-fg); flex: none; }
.tool-icon .ic { width: 20px; height: 20px; }
.tool-titles { min-width: 0; }
.tool h3 { font-size: 14px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-sub { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-2); margin-top: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.tool-price strong { color: var(--text); font-weight: 600; }
.tool-meta { display: inline-flex; gap: 14px; }
.tool-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tool-meta .ic { width: 13px; height: 13px; }
.empty { padding: 24px; border: 1px dashed var(--border-strong); border-radius: 6px; text-align: center; color: var(--text-2); font-size: 14px; }
.empty[hidden] { display: none; }
.empty p { margin-bottom: 8px; }

/* How it works */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 12px; min-height: 96px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.step-num { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); font-size: 12px; font-weight: 600; flex: none; }
.step h3 { font-size: 15px; font-weight: 600; }
.step p { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.step-arrow { display: flex; align-items: center; color: var(--text-2); }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; gap: 8px; } .step-arrow { display: none; } .step { min-height: 0; } }

/* Example report */
.report { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0; }
.report > div { padding: 0 20px; }
.report > div:first-child { padding-left: 0; }
.report > div:last-child { padding-right: 0; }
.report > div + div { border-left: 1px solid var(--border); }
.report h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.budget { width: 100%; border-collapse: collapse; font-size: 13px; }
.budget caption { text-align: left; font-size: 14px; font-weight: 600; margin-bottom: 12px; caption-side: top; }
.budget th { font-size: 12px; font-weight: 500; text-align: left; color: var(--text-2); padding: 0 8px 10px 0; border-bottom: 1px solid var(--border); }
.budget td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.budget tr:last-child td { border-bottom: 0; }
.budget .r { text-align: right; padding-right: 16px; white-space: nowrap; }
.budget th.r { padding-right: 16px; }
.budget td.src { color: var(--text-2); font-size: 12px; }
.report ol, .report ul { margin: 0; padding-left: 20px; font-size: 13px; }
.report li { margin-bottom: 8px; }
.report ul li::marker { color: var(--icon-fg); }
@media (max-width: 1023px) {
  .report { grid-template-columns: 1fr 1fr; }
  .report > div:first-child { grid-column: 1 / -1; padding: 0 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
  .report > div:nth-child(2) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .report { grid-template-columns: 1fr; padding: 16px; }
  .report > div, .report > div:nth-child(2) { padding: 0; border-left: 0; }
  .report > div + div { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
  .report > div:first-child { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
  .budget thead { display: none; }
  .budget tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .budget tr:last-child { border-bottom: 0; }
  .budget td { border: 0; padding: 0; }
  .budget td.r { padding-right: 0; }
  .budget td.src { grid-column: 1 / -1; margin-top: 2px; }
  .budget td.src::before { content: "Source: "; }
}

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; gap: 12px; padding: 4px 20px; }
.trust li:first-child { padding-left: 0; }
.trust li + li { border-left: 1px solid var(--border); }
.trust .ic { color: var(--icon-fg); margin-top: 1px; }
.trust strong { display: block; font-size: 14px; font-weight: 600; }
.trust span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
@media (max-width: 1023px) {
  .trust { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .trust li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .trust { grid-template-columns: 1fr; row-gap: 0; }
  .trust li, .trust li:nth-child(odd) { padding: 14px 0; border-left: 0; }
  .trust li + li { border-top: 1px solid var(--border); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-links a, .footer-co a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 13px; }
.footer-links a:hover, .footer-co a:hover { color: var(--text); text-decoration: underline; }
.footer-co { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
@media (max-width: 767px) { .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* Simple content pages (legal, tool placeholders, creators) */
.page { padding: 56px 0 0; max-width: 760px; }
.page h1 { font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 12px; }
.page h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.page p, .page li { color: var(--text); font-size: 15px; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.updated { color: var(--text-2); font-size: 13px; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); margin-bottom: 16px; }
.page .note { color: var(--text-2); font-size: 14px; margin-top: 24px; }
.page .btn { margin-top: 24px; }
@media (max-width: 767px) { .page { padding-top: 36px; } .page h1 { font-size: 34px; } }

/* ---- Pass 3 (owner mockup, 2026-11-26): Apify Store architecture standard ---- */
.header-link { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 6px; }
.header-link:hover { color: var(--text-2); }
.hero-sub { color: var(--text); opacity: .86; font-size: clamp(15px, 1.35vw, 17px); }

/* Line geometry art (placeholder abstraction until the final illustration) */
.hero-art { width: clamp(220px, 28vw, 360px); height: auto; }
.art-lines path { fill: rgba(76, 141, 255, .05); stroke: #3B82F6; stroke-width: 1.1; stroke-linejoin: round; }
.art-lines .face-top { fill: rgba(76, 141, 255, .12); }
.art-dots circle { fill: #3B82F6; opacity: .35; }
:root[data-theme="light"] .art-lines path { stroke: #1D5FD8; }

/* Section head + caption under the heading */
.section-head + .section-sub { margin: -8px 0 16px; }
.view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.view-all .ic { width: 16px; height: 16px; }
.view-all:hover { color: var(--text-2); }
.filter-bar { margin-bottom: 12px; }
.filter-bar .link-btn { font-size: 13px; font-weight: 600; text-decoration: underline; color: var(--text); min-height: 32px; }

/* Cards: individual coloured icon tiles, maker on the left of the bottom panel */
.tool-icon { width: 40px; height: 40px; border: 0; color: #FFFFFF; }
.tool-icon .ic { width: 22px; height: 22px; }
.tool-icon--orange { background: #E8843C; }
.tool-icon--violet { background: #7C5CFF; }
.tool-icon--blue { background: #2F7BFF; }
.tool h3 { font-size: 15px; }
.tool-desc { font-size: 13px; color: var(--text); opacity: .78; margin-top: 12px; }
.tool-top { padding: 16px 16px 14px; }
.tool-foot { min-height: 36px; padding: 8px 16px; background: var(--band); font-size: 12.5px; }
.tool-maker { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.tool-maker img { width: 13px; height: 14px; }
.tool-meta { gap: 16px; }

/* Banner between catalog sections: text 60%, art 40% */
.banner { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 24px; padding: clamp(24px, 3vw, 32px) clamp(24px, 3.5vw, 40px); background: var(--band); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.banner h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 400; letter-spacing: -0.015em; }
.banner p { margin-top: 8px; max-width: 460px; font-size: 15px; color: var(--text-2); }
.banner .btn { margin-top: 20px; }
.banner-art { width: 100%; max-width: 260px; max-height: 150px; justify-self: end; height: auto; }
@media (max-width: 767px) {
  .banner { grid-template-columns: 1fr; min-height: 0; }
  .banner-art { display: none; }
}

/* Demo data (test version only). Remove every .demo element before launch: RELEASE_GATE 7 and the FTC fake-review rule. */
.demo-strip { margin: 0; padding: 6px 16px; text-align: center; font-size: 12px; color: var(--text-2); background: var(--band); border-top: 1px solid var(--border); }
.tool-meta .muted { color: var(--text-2); }
.tool-meta > span { color: var(--text); }
.tool-meta .ic { color: var(--text-2); }
.tool-icon--green { background: #22A05B; }
.tool-icon--sky { background: #2563EB; }
.tool-icon--indigo { background: #6D4AFF; }
.tool-icon--amber { background: #D9902A; }
.tool-icon--teal { background: #14A39A; }
.tool-icon--cyan { background: #1597C9; }
.tool-icon--slate { background: #5B6B82; }
.tool-icon--pink { background: #E0568B; }
.cat-section { padding-top: clamp(32px, 4vw, 48px); }
.cat-section[hidden], .banner[hidden] { display: none; }
button.view-all { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ---- Hero photo (owner correction 2026-11-27): a smaller photo window to the right of the hero text,
   its left edge softly feathered into the page. Photos rotate every 2 s in random order without repeats (hero.js). ---- */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.hero-main { max-width: 600px; position: relative; z-index: 1; }
/* The feathered left edge slides a little under the text column; the text stays on top. */
.hero-photo { position: relative; z-index: 0; width: calc(100% + clamp(48px, 8vw, 140px)); max-width: 700px; justify-self: end; margin-left: calc(-1 * clamp(48px, 8vw, 140px)); border-radius: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 14%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 14%, #000 38%); }
/* The window spans the text column top to bottom (title to the "Start free" line); the photo fills it at its natural proportions (cover: cropped, never stretched). */
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity .7s ease; }
.hero-slide.is-on { opacity: 1; }
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: 100%; margin-left: 0; max-width: none; aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 25%); mask-image: linear-gradient(0deg, transparent 0%, #000 25%); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
html, body { overflow-x: clip; }

/* ---- Tool page (owner 2026-11-27): Apify Store actor page layout for buyers. Header, tabs, left facts column, content. ---- */
.tp { padding: 24px 0 64px; }
.tp section { padding: 0; scroll-margin-top: 72px; }
.ic.flip { transform: scaleX(-1); }
.tp-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; padding: 24px; border: 1px solid var(--border); border-radius: 8px 8px 0 0; background: var(--surface); }
.tp-head-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; align-content: start; }
/* Photo of the tool's result, natural proportions (cover), left edge softly feathered like the homepage hero */
.tp-shot { position: relative; margin: 0; min-height: 200px; border-radius: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.tp-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.tp-shot figcaption { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; color: #F4F4F5; background: rgba(11,11,12,.6); }
.tp-icon { width: 52px; height: 52px; border-radius: 10px; }
.tp-icon .ic { width: 28px; height: 28px; }
.tp-title h1 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.tp-path { display: inline-block; margin: 0; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2); padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; }
.tp-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tp-cta .btn { height: 40px; padding: 0 18px; background: #4C8DFF; border-color: #4C8DFF; color: #fff; font-weight: 600; }
.tp-cta .btn[disabled] { opacity: .7; cursor: not-allowed; }
.tp-cta-note { font-size: 12px; color: var(--text-2); }
.tp-desc { grid-column: 1 / -1; margin: 8px 0 0; max-width: 760px; color: var(--text); opacity: .88; font-size: 15px; line-height: 1.55; }
.tp-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border: 1px solid var(--border); border-top: 0; background: var(--band); position: sticky; top: 0; z-index: 5; scrollbar-width: none; }
.tp-tabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.tp-tabs a:hover, .tp-tabs a:focus-visible { color: var(--text); background: var(--surface-subtle); }
.tp-tabs .ic { width: 15px; height: 15px; }
.tp-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; }
.tp-side { border-right: 1px solid var(--border); }
.tp-box { padding: 18px 16px; border-bottom: 1px solid var(--border); }
.tp-box:last-child { border-bottom: 0; }
.tp-label { margin: 0 0 4px; font-size: 13px; color: var(--text-2); }
.tp-val { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.tp-val:last-child { margin-bottom: 0; }
.tp-val a { color: var(--text); text-underline-offset: 3px; }
.tp-val .u, .tp-bar .u { color: var(--text-2); font-weight: 400; }
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.stars .ic, .tp-bar .ic { width: 14px; height: 14px; fill: var(--border-strong); stroke: none; }
.stars .ic.on, .tp-bar .ic.on { fill: #F5B400; }
.tp-maker { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-weight: 600; }
.tp-maker .verified { width: 16px; height: 16px; color: #4C8DFF; }
.tp-tag, .tp-cat { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; }
.tp-cat { color: #4C8DFF; border-color: rgba(76,141,255,.45); background: rgba(76,141,255,.1); }
.tp-stats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; color: var(--text-2); }
.tp-stats li { display: grid; grid-template-columns: 16px 1fr; gap: 0 8px; align-items: start; }
.tp-stats .ic { width: 15px; height: 15px; margin-top: 2px; }
.tp-stats b { color: var(--text); font-weight: 600; margin-right: 4px; }
.tp-main { padding: 24px clamp(16px, 3vw, 32px) 32px; display: grid; gap: 40px; min-width: 0; }
.tp-main h2 { font-size: clamp(20px, 2.1vw, 26px); font-weight: 600; margin: 0 0 14px; }
.tp-main p { line-height: 1.6; }
.tp-ticks, .tp-who { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tp-ticks li, .tp-who li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.55; }
.tp-ticks .tick { width: 18px; height: 18px; margin-top: 3px; color: #22C55E; stroke-width: 2.4; }
.tp-who .ic { width: 18px; height: 18px; margin-top: 3px; color: #4C8DFF; }
.tp-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.tp-cell { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.tp-cell b { display: block; font-size: 15px; margin-bottom: 4px; }
.tp-cell span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.tp-ci { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--icon-bg); color: var(--icon-fg); }
.tp-ci .ic { width: 18px; height: 18px; }
.tp-small { font-size: 13px; color: var(--text-2); margin: 12px 0 0; }
.tp-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tp-steps li { counter-increment: s; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.tp-steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--btn-text); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.tp-steps b { display: block; margin-bottom: 4px; }
.tp-steps span { font-size: 14px; color: var(--text-2); }
.tp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tp-plan { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tp-plan--main { border-color: #4C8DFF; box-shadow: 0 0 0 1px #4C8DFF inset; }
.tp-price { font-size: 28px; font-weight: 600; margin: 2px 0 10px; }
.tp-plan ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-2); display: grid; gap: 4px; }
.tp-rating { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tp-score { display: grid; justify-items: center; gap: 4px; min-width: 110px; }
.tp-score b { font-size: 44px; line-height: 1; font-weight: 600; }
.tp-score > span:last-child { font-size: 13px; color: var(--text-2); }
.tp-bars { display: grid; gap: 6px; }
.tp-bar { display: grid; grid-template-columns: 10px 14px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.tp-bar i { height: 8px; border-radius: 4px; background: var(--surface-subtle); overflow: hidden; }
.tp-bar em { display: block; height: 100%; background: #F5B400; border-radius: 4px; }
.tp details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.tp summary { cursor: pointer; font-weight: 600; }
.tp details p { margin: 8px 0 0; color: var(--text-2); }
@media (max-width: 860px) {
  .tp-head { grid-template-columns: 1fr; }
  .tp-shot { min-height: 0; aspect-ratio: 16 / 9; -webkit-mask-image: none; mask-image: none; }
  .tp-grid { grid-template-columns: 1fr; }
  .tp-side { border-right: 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; }
  .tp-box { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .tp-box:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .tp-head { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .tp-head-main { grid-template-columns: auto minmax(0, 1fr); }
  .tp-shot { min-height: 0; aspect-ratio: 4 / 3; -webkit-mask-image: none; mask-image: none; }
  .tp-cta { grid-column: 1 / -1; grid-row: 3; align-items: stretch; }
  .tp-desc { grid-row: 2; }
  .tp-side { grid-template-columns: 1fr; }
  .tp-box { border-right: 0; }
  .tp-rating { grid-template-columns: 1fr; }
}
