/*
Theme Name: Best Platforms
Theme URI: https://best-platforms.com
Author: Best Platforms
Description: Custom lightweight theme for Best Platforms — an affiliate comparison site for the best software platforms for business and work. No page builders, no bloat.
Version: 1.6.0
Requires PHP: 7.4
Text Domain: best-platforms
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-card: #ffffff;
  --border: #e6ebf2;
  --text: #0f172a;
  --text-soft: #52607a;
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-soft: #dbeafe;
  --accent: #0ea5a4;
  --star: #f59e0b;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}

html.bp-dark {
  --bg: #0b1120;
  --bg-soft: #0f172a;
  --bg-card: #121a2b;
  --border: #1e293b;
  --text: #e8eefb;
  --text-soft: #97a6be;
  --brand: #60a5fa;
  --brand-ink: #3b82f6;
  --brand-soft: #1e3a8a;
  --accent: #2dd4bf;
  --star: #fbbf24;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; font-weight: 800; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: .75rem; padding: .7rem 1.25rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease, opacity .12s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: var(--shadow);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--brand); color: #fff; }
.brand em { font-style: normal; color: var(--brand); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav .navbtn { padding: .5rem .8rem; border-radius: .6rem; color: var(--text); font-weight: 600; font-size: .95rem; background: none; border: none; cursor: pointer; }
.nav a:hover, .nav .navbtn:hover { background: var(--bg-soft); text-decoration: none; }
.has-drop { position: relative; }
.dropdown {
  position: absolute; left: 0; top: 100%; min-width: 520px;
  display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; padding: .5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: .9rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: 4rem 0 2.5rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; margin: 0 0 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-soft); max-width: 640px; margin: 0 auto 1.75rem; }
.hero .cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }

/* Sections */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: 1.7rem; margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--text-soft); }
.muted { color: var(--text-soft); }

/* Grids */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Category card */
.cat-card { display: block; padding: 1.4rem; border-radius: 1rem; background: var(--bg-card); border: 1px solid var(--border); transition: .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; border-color: var(--brand); }
.cat-card .ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: var(--brand-soft); color: var(--brand); margin-bottom: .9rem; }
.cat-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.cat-card p { margin: 0; color: var(--text-soft); font-size: .92rem; }

/* Platform card */
.p-card { display: flex; flex-direction: column; padding: 1.25rem; border-radius: 1rem; background: var(--bg-card); border: 1px solid var(--border); transition: .15s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-card .top { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.p-logo { width: 3rem; height: 3rem; border-radius: .7rem; object-fit: contain; background: var(--bg-soft); border: 1px solid var(--border); padding: .3rem; flex: none; }
.p-logo-fallback { display: grid; place-items: center; font-weight: 800; color: var(--brand); background: var(--brand-soft); }
.p-card h3 { margin: 0; font-size: 1.15rem; }
.p-card h3 a { color: var(--text); }
.p-card .tagline { color: var(--text-soft); font-size: .92rem; margin: 0 0 .8rem; flex: 1; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; font-size: .9rem; }
.p-actions { display: flex; gap: .5rem; }
.p-actions .btn { flex: 1; padding: .55rem .8rem; font-size: .92rem; }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.stars { --p: 0%; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars::before { content: "★★★★★"; color: var(--border); }
.stars::after { content: "★★★★★"; color: var(--star); position: absolute; inset: 0; width: var(--p); overflow: hidden; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.badge-aff { background: var(--brand-soft); color: var(--brand-ink); }
.badge-best { background: #fef3c7; color: #92400e; }
html.bp-dark .badge-best { background: #78350f; color: #fde68a; }

/* Ranked list (roundup) */
.rank { display: flex; gap: 1.1rem; padding: 1.4rem; border-radius: 1rem; background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 1rem; }
.rank .num { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; font-weight: 800; background: var(--brand); color: #fff; }
.rank .body { flex: 1; }
.rank .body h3 { margin: 0 0 .1rem; font-size: 1.25rem; }
.rank .body h3 a { color: var(--text); }
.rank .blurb { color: var(--text-soft); margin: .1rem 0 .7rem; }
.rank .rank-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .8rem; font-size: .9rem; }

/* Breadcrumb */
.crumb { font-size: .85rem; color: var(--text-soft); padding: 1.2rem 0 0; }
.crumb a { color: var(--text-soft); }
.crumb span { margin: 0 .35rem; }

/* Review layout */
.review-hero { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; padding: 1.5rem 0 .5rem; }
.review-hero .p-logo { width: 4.5rem; height: 4.5rem; }
.review-hero h1 { font-size: 2.1rem; margin: 0 0 .25rem; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; padding-top: 1.5rem; }
.sidebar { position: sticky; top: 5rem; display: grid; gap: 1rem; }
.factbox { padding: 1.25rem; }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.factbox dt { color: var(--text-soft); font-size: .9rem; }
.factbox dd { margin: 0; font-weight: 600; text-align: right; }

/* Pros/cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.proscons .box { padding: 1.2rem; border-radius: 1rem; border: 1px solid var(--border); }
.proscons h4 { margin: 0 0 .7rem; display: flex; align-items: center; gap: .4rem; }
.proscons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.proscons li { position: relative; padding-left: 1.6rem; color: var(--text-soft); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 800; }

/* Prose */
.prose { color: var(--text-soft); font-size: 1.03rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose a { font-weight: 600; }
.prose strong { color: var(--text); }

/* FAQ */
.faq { margin: 2rem 0; }
.faq details { border: 1px solid var(--border); border-radius: .8rem; padding: .3rem 1rem; margin-bottom: .6rem; background: var(--bg-card); }
.faq summary { cursor: pointer; font-weight: 700; padding: .7rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-soft); margin: 0 0 .8rem; }

/* Disclosure */
.disclosure { font-size: .82rem; color: var(--text-soft); background: var(--bg-soft); border: 1px solid var(--border); border-radius: .7rem; padding: .7rem 1rem; margin: 1rem 0; }

/* CTA band */
.band { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.5rem; text-align: center; }
.band h2 { font-size: 1.8rem; margin: 0 0 .6rem; }
.band p { color: var(--text-soft); max-width: 560px; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin: 0 0 .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-grid a { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.3rem 0; font-size: .8rem; color: var(--text-soft); }
.footer-bottom .row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* BP Score */
.bp-score { margin: .2rem 0 .6rem; }
.bp-score-head { display: flex; align-items: center; gap: .7rem; }
.bp-score-num { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.bp-score-num small { font-size: .9rem; color: var(--text-soft); font-weight: 600; }
.bp-score-head strong { display: block; font-size: .95rem; }
.bp-score-help { font-size: .8rem; }
.bp-axes { margin-top: .8rem; display: grid; gap: .4rem; }
.bp-axis { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: .5rem; font-size: .82rem; }
.bp-axis-label { color: var(--text-soft); }
.bp-axis-bar { height: 7px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.bp-axis-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.bp-axis-val { text-align: right; font-weight: 700; color: var(--text); }
.bp-score.compact { margin: .1rem 0 .5rem; }
.bp-score.compact .bp-score-num { font-size: 1.4rem; }
.bp-score.compact .bp-score-help { display: none; }

/* Sort toolbar */
.sort-toolbar { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.sort-toolbar button { border: 1px solid var(--border); background: var(--bg-card); color: var(--text-soft); font-weight: 600; font-size: .85rem; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; }
.sort-toolbar button:hover { color: var(--text); }
.sort-toolbar button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Platform Finder */
.finder { padding: 1.75rem; }
.finder-intro h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.finder-intro p { margin: 0 0 1.2rem; }
.finder-q { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.fq label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.fq .opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.fq .opts button { border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-weight: 600; font-size: .85rem; padding: .45rem .8rem; border-radius: .6rem; cursor: pointer; }
.fq .opts button:hover { border-color: var(--brand); }
.fq .opts button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.finder-result { margin-top: 1.5rem; }
.finder-verdict { background: var(--bg-soft); border: 1px solid var(--border); border-radius: .8rem; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.finder-pick { display: flex; gap: 1rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: .9rem; margin-bottom: .8rem; background: var(--bg-card); }
.finder-pick:first-of-type { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.fp-rank { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: var(--brand); color: #fff; font-weight: 800; }
.fp-body { flex: 1; }
.fp-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fp-name { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.fp-score { font-weight: 800; color: var(--brand); }
.fp-score small { font-size: .75rem; color: var(--text-soft); }
.fp-why { margin: .3rem 0 .2rem; color: var(--text-soft); font-size: .92rem; }
.fp-price { font-size: .82rem; margin: 0 0 .6rem; }
.fp-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.fp-actions .btn { padding: .5rem .9rem; font-size: .9rem; }

@media (max-width: 720px) {
  .finder-q { grid-template-columns: 1fr; }
}

/* Comparison (vs) */
.vs-verdict { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.vs-card { border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem; background: var(--bg-card); }
.vs-card .vs-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.vs-card .vs-head strong { display: block; }
.vs-card p { color: var(--text-soft); font-size: .92rem; margin: .3rem 0 .9rem; }
.vs-mid { font-weight: 800; color: var(--text-soft); font-size: 1.2rem; }
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: center; }
.vs-table thead th { font-size: 1rem; }
.vs-table tbody th { text-align: left; color: var(--text-soft); font-weight: 600; }
.vs-table td.win { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; border-radius: .4rem; }
@media (max-width: 640px) { .vs-verdict { grid-template-columns: 1fr; } .vs-mid { display: none; } }

/* Market-in-numbers strip */
.stats-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 1rem 0 1.2rem; }
.stats-strip .stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: .9rem; padding: 1rem 1.1rem; text-align: center; }
.stat-n { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-l { display: block; font-size: .8rem; color: var(--text-soft); margin-top: .2rem; }
.cat-intro { max-width: 860px; color: var(--text-soft); font-size: 1.02rem; }
@media (max-width: 900px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

/* Rating distribution */
.rating-dist { display: grid; gap: .35rem; margin: .8rem 0 1.2rem; max-width: 420px; }
.rd-row { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: .5rem; font-size: .85rem; }
.rd-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.rd-bar span { display: block; height: 100%; background: var(--star); }
.rd-count { text-align: right; color: var(--text-soft); }

/* Helpful votes */
.helpful { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .82rem; color: var(--text-soft); }
.helpful button { border: 1px solid var(--border); background: var(--bg-card); color: var(--text); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; font-size: .82rem; }
.helpful button:hover { border-color: var(--brand); }
.helpful button:disabled { opacity: .55; cursor: default; }

/* Byline (E-E-A-T) */
.byline { font-size: .82rem; color: var(--text-soft); margin: .7rem 0 0; }
.byline a { color: var(--text-soft); text-decoration: underline; }

/* Verdict callout */
.verdict { position: relative; border: 1px solid var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--bg-card)); border-radius: 1rem; padding: 1.2rem 1.3rem; margin: 1.4rem 0; }
.verdict-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.verdict p { margin: 0; font-size: 1.1rem; color: var(--text); font-weight: 500; }

/* Rich content blocks */
.rich-block { margin: 2.2rem 0; }
.rich-block > h2 { font-size: 1.5rem; margin: 0 0 1rem; }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.usecase { border: 1px solid var(--border); border-radius: .8rem; padding: 1rem 1.1rem; background: var(--bg-card); }
.usecase h4 { margin: 0 0 .3rem; font-size: 1rem; }
.usecase p { margin: 0; color: var(--text-soft); font-size: .92rem; }

/* Getting-started steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.steps .step-n { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .9rem; }
.steps li p { margin: .2rem 0 0; color: var(--text-soft); font-size: .92rem; }

/* Expert tips */
.tips { display: grid; gap: .8rem; }
.tip { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: .8rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--bg-card); }
.tip-ico { font-size: 1.3rem; }
.tip p { margin: .2rem 0 0; color: var(--text-soft); font-size: .92rem; }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier { border: 1px solid var(--border); border-radius: .9rem; padding: 1.1rem; background: var(--bg-card); }
.tier-name { font-weight: 700; }
.tier-price { font-size: 1.35rem; font-weight: 800; color: var(--brand); margin: .2rem 0; }
.tier-desc { color: var(--text-soft); font-size: .88rem; }

/* User reviews */
.review-note { border-radius: .7rem; padding: .8rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.review-note.ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.review-note.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
html.bp-dark .review-note.ok { background: #14532d; color: #dcfce7; border-color: #166534; }
html.bp-dark .review-note.err { background: #7f1d1d; color: #fee2e2; border-color: #991b1b; }
.user-reviews { display: grid; gap: .9rem; margin-bottom: 1.2rem; }
.ureview { border: 1px solid var(--border); border-radius: .8rem; padding: 1rem 1.1rem; background: var(--bg-card); }
.ur-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .3rem; }
.ur-title { margin: .2rem 0; }
.ur-body { margin: .2rem 0 0; color: var(--text-soft); }
.review-form-wrap { margin-top: .5rem; }
.review-form-wrap > summary { cursor: pointer; list-style: none; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form { margin-top: 1rem; display: grid; gap: .8rem; max-width: 620px; }
.review-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.review-form input[type=text], .review-form select, .review-form textarea { width: 100%; padding: .6rem .7rem; font-size: 16px; border: 1px solid var(--border); border-radius: .6rem; background: var(--bg); color: var(--text); }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.review-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

@media (max-width: 640px) {
  .usecase-grid, .tiers, .rf-row { grid-template-columns: 1fr; }
}

/* Mobile nav panel */
.mobile-panel { display: none; padding: .5rem 0 1rem; border-top: 1px solid var(--border); }
.mobile-panel a { display: block; padding: .6rem .25rem; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-panel.open { display: block; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .grid-4, .grid-3, .grid-2, .proscons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 1.5rem; }
}
