:root {
    --background: #ffffff;
    --background-muted: #f6f8fa;
    --surface: #ffffff;
    --text: #14202b;
    --text-muted: #52606d;
    --primary: #175cd3;
    --primary-dark: #124aa8;
    --accent: #148a83;
    --border: #dce3e9;
    --success: #18794e;
    --warning: #a15c00;
    --danger: #b42318;
    --focus: #0b66e4;
    --shadow: 0 14px 36px rgba(20, 32, 43, .08);
    --container: 1240px;
    --sidebar: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button, input, select, textarea, dialog { border-radius: 4px; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.16; letter-spacing: -.025em; }
h1 { margin-bottom: 24px; font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { margin-bottom: 20px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { margin-bottom: 12px; font-size: 1.2rem; }
p { margin-bottom: 20px; }
small { color: var(--text-muted); font-size: .86rem; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 88px 0; }
.section-muted { background: var(--background-muted); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
.align-center { align-items: center; }
.eyebrow { margin-bottom: 14px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.lead { color: var(--text-muted); font-size: clamp(1.1rem, 2vw, 1.28rem); }
.microcopy, .demo-label, .disclaimer { color: var(--text-muted); font-size: .86rem; }
.demo-label { margin: 12px 0; font-weight: 650; }
.text-link { display: inline-block; margin-top: 14px; font-weight: 700; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--text); color: #fff; transform: translateY(-140%); }
.skip-link:focus { color: #fff; transform: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header { position: relative; z-index: 30; min-height: 72px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .98); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.12rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.public-nav { display: flex; flex: 1; align-items: center; gap: 22px; }
.public-nav > a:not(.button) { padding: 7px 0 5px; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: .94rem; font-weight: 650; text-decoration: none; }
.public-nav > a:not(.button):hover { color: var(--primary); }
.public-nav > a.active:not(.button) { border-bottom-color: var(--primary); color: var(--primary); }
.nav-spacer { flex: 1; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); background: #fff; font-weight: 700; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button:hover { text-decoration: none; }
.button:disabled, .button[aria-disabled="true"] { cursor: wait; opacity: .68; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); color: #fff; }
.button-secondary { border-color: #a8b7c4; background: #fff; color: var(--text); }
.button-secondary:hover { border-color: var(--primary); color: var(--primary); }
.button-danger { border-color: var(--danger); background: #fff; color: var(--danger); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.button-block { width: 100%; }

label { display: block; color: var(--text); font-size: .94rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; margin-top: 7px; padding: 11px 12px; border: 1px solid #b7c4cf; background: #fff; }
textarea { min-height: 112px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #8293a1; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 18%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
label small { display: block; margin-top: 5px; font-weight: 400; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.choice input { flex: 0 0 20px; width: 20px; min-height: 20px; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.field-error { display: block; margin-top: 5px; color: var(--danger); font-weight: 650; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 12px; font-weight: 750; }
.form-stack { display: grid; gap: 20px; margin: 24px 0; }
.muted { color: var(--text-muted); }

.hero { padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(360px, 42fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-copy h1 { max-width: 760px; }
.hero-copy .lead { max-width: 700px; }
.hero-visual { width: 100%; aspect-ratio: 16 / 10; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; background: var(--background-muted); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-search { max-width: 720px; margin-top: 32px; }
.hero-search label { margin-bottom: 6px; }
.search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border: 1px solid #a8b7c4; border-radius: 4px; background: #fff; box-shadow: 0 10px 28px rgba(20, 32, 43, .08); }
.search-control:focus-within { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 18%, transparent); }
.search-control textarea { min-height: 104px; margin: 0; border: 0; box-shadow: none; outline: 0; }
.search-control .button { align-self: end; margin: 10px; }

.comparison { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.comparison article { padding: 28px; }
.comparison article + article { border-left: 1px solid var(--border); }
.comparison h3 { font-size: 1rem; }
.comparison dl { margin: 0; }
.comparison dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comparison dt { color: var(--text-muted); }
.comparison dd { margin: 0; font-weight: 750; }
.comparison-highlight { border-top: 4px solid var(--accent); }
.comparison-highlight p { margin: 0; font-size: 1.05rem; font-weight: 600; }

blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--primary); background: var(--background-muted); color: var(--text); font-size: 1.05rem; }
blockquote span { display: block; margin-bottom: 6px; color: var(--primary); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.query-example { font-size: 1.2rem; font-weight: 650; text-align: left; }
.funnel { max-width: 680px; margin: 40px auto 0; padding: 0; list-style: none; }
.funnel li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; margin: 0 auto 20px; padding: 14px 18px; border: 1px solid var(--border); background: #fff; text-align: left; }
.funnel li::after { position: absolute; bottom: -19px; left: 50%; content: "↓"; color: var(--text-muted); transform: translateX(-50%); }
.funnel li:last-child { width: 62%; border-color: var(--primary); }
.funnel li:last-child::after { content: none; }
.funnel strong { color: var(--primary); font-size: 1.35rem; }
.funnel span { color: var(--text-muted); }

.steps-grid, .cards-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step, .card { border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.step { padding: 28px; }
.step > span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid var(--primary); border-radius: 4px; color: var(--primary); font-weight: 800; }
.step p, .card p { margin-bottom: 0; color: var(--text-muted); }
.card { padding: 24px; }
.card a { display: inline-block; margin-top: 18px; font-weight: 750; }
.six-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.match-card, .radar-card { padding: 28px; border: 1px solid var(--border); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.company-name { margin: 0 0 3px; font-size: 1.12rem; font-weight: 800; }
.location { color: var(--text-muted); font-size: .9rem; }
.score { min-width: 82px; padding: 10px; border: 1px solid var(--primary); border-radius: 4px; text-align: center; }
.score strong, .score span { display: block; }
.score strong { color: var(--primary); font-size: 1.35rem; }
.score span { color: var(--text-muted); font-size: .75rem; }
.confidence-row { display: flex; justify-content: space-between; margin: 16px 0 24px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.score-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.score-legend div { padding: 12px; background: var(--background-muted); }
.score-legend strong, .score-legend span { display: block; }
.score-legend span { color: var(--text-muted); font-size: .8rem; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 25px; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--success); font-weight: 800; }

.offer-section picture { width: 100%; aspect-ratio: 16 / 10; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; background: var(--background-muted); }
.offer-section picture img { width: 100%; height: 100%; object-fit: cover; }
.url-form { margin-top: 28px; }
.url-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.url-form input { margin: 0; }
.status-label { color: var(--success); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.radar-message { padding: 18px; border-left: 4px solid var(--accent); background: #f0fbfa; }
.radar-message strong { font-size: 1.4rem; }
.plain-list { padding-left: 20px; color: var(--text-muted); }
.integration-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.integration-list span, .badge { display: inline-flex; min-height: 32px; align-items: center; padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--background-muted); font-size: .88rem; font-weight: 700; }
.badge-success { border-color: #9ed5bc; background: #effbf5; color: var(--success); }
.badge-warning { border-color: #e4c08a; background: #fff8ed; color: var(--warning); }
.badge-danger { border-color: #e7aaa5; background: #fff3f2; color: var(--danger); }
.badge-neutral { color: var(--text-muted); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.price strong { font-size: 1.8rem; }
.price span { color: var(--text-muted); }
.empty-state { padding: 36px; border: 1px dashed #9cabb7; border-radius: 4px; background: #fff; text-align: center; }
.empty-state p { color: var(--text-muted); }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { padding: 20px 44px 20px 0; cursor: pointer; font-weight: 750; }
.faq-list details p { padding: 0 0 20px; color: var(--text-muted); }
.final-cta { background: var(--text); color: #fff; }
.final-cta h2, .final-cta p { color: #fff; }

.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--border); background: var(--background-muted); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr); align-items: center; gap: clamp(40px, 6vw, 84px); }
.page-hero-visual { padding: 64px 0; }
.page-editorial-visual { width: 100%; aspect-ratio: 16 / 10; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.page-editorial-visual img { width: 100%; height: 100%; object-fit: cover; }
.public-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--text-muted); font-size: .82rem; }
.public-breadcrumbs a { color: inherit; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: .9rem; font-weight: 650; }
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before { position: absolute; left: 0; content: "✓"; color: var(--success); }
.page-index { border-bottom: 1px solid var(--border); background: #fff; }
.page-index .container { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.page-index strong { flex: 0 0 auto; font-size: .84rem; }
.page-index div div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.page-index a { color: var(--text-muted); font-size: .86rem; font-weight: 650; text-decoration: none; }
.page-index a:hover { color: var(--primary); text-decoration: underline; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading.center { margin-inline: auto; }
.section-heading > p:last-child { color: var(--text-muted); }
.editorial-section { scroll-margin-top: 20px; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); align-items: start; gap: clamp(40px, 7vw, 96px); }
.editorial-grid-wide { grid-template-columns: minmax(0, 820px); }
.editorial-main > p:not(.eyebrow) { max-width: 780px; color: var(--text-muted); font-size: 1.05rem; }
.editorial-main blockquote { max-width: 820px; margin-top: 32px; }
.editorial-aside { padding: 24px; border-top: 4px solid var(--accent); background: #fff; box-shadow: var(--shadow); }
.section:not(.section-muted) .editorial-aside { border: 1px solid var(--border); border-top: 4px solid var(--accent); }
.editorial-aside h3 { font-size: 1rem; }
.editorial-aside p { color: var(--text-muted); }
.editorial-aside ul { margin: 0; padding: 0; list-style: none; }
.editorial-aside li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.editorial-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.editorial-card { min-height: 100%; padding: 24px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.editorial-card p { color: var(--text-muted); }
.editorial-card a { display: inline-block; margin-top: 10px; font-weight: 750; }
.card-meta { margin-bottom: 10px !important; color: var(--primary) !important; font-size: .72rem !important; font-weight: 800; letter-spacing: .1em; }
.editorial-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 40px; border: 1px solid var(--border); background: var(--border); }
.editorial-comparison article { padding: clamp(24px, 4vw, 36px); background: #fff; }
.editorial-comparison article:first-child { border-top: 4px solid var(--primary); }
.editorial-comparison article:last-child { border-top: 4px solid var(--accent); }
.editorial-comparison p:not(.card-meta) { color: var(--text-muted); }
.editorial-comparison a { font-weight: 750; }
.editorial-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin: 40px 0 0; padding: 1px; background: var(--border); list-style: none; }
.editorial-steps li { min-height: 190px; padding: 22px; background: #fff; }
.editorial-steps li > span { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 28px; border: 1px solid var(--primary); border-radius: 4px; color: var(--primary); font-weight: 800; }
.editorial-steps h3 { font-size: 1rem; }
.editorial-steps p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.editorial-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.editorial-links a { font-weight: 750; }
.related-section { border-top: 1px solid var(--border); }
.related-section .editorial-cards { margin-top: 0; }

.pricing-section { border-bottom: 1px solid var(--border); }
.pricing-toggle { width: max-content; display: flex; gap: 2px; margin: 0 auto 36px; padding: 3px; border: 1px solid var(--border); border-radius: 4px; background: var(--background-muted); }
.pricing-toggle button { min-height: 42px; padding: 8px 18px; border: 0; background: transparent; color: var(--text-muted); font-weight: 750; cursor: pointer; }
.pricing-toggle button.active { background: var(--text); color: #fff; }
.pricing-period-title { margin-bottom: 22px; text-align: center; }
.js .pricing-period-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.pricing-card-featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.pricing-card > p:not(.price):not(.pricing-badge) { color: var(--text-muted); }
.pricing-badge { width: max-content; margin: -45px 0 20px; padding: 5px 9px; border-radius: 4px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 850; letter-spacing: .09em; }
.pricing-audience { min-height: 44px; margin-bottom: 8px; font-size: .82rem; font-weight: 700; }
.pricing-card .price { margin: 24px 0 0; }
.pricing-card .price strong { font-size: 2.25rem; }
.price-note { min-height: 42px; font-size: .8rem; }
.plan-highlights { flex: 1; margin: 22px 0 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.plan-highlights li { font-size: .9rem; }
.pricing-comparison { margin-top: 80px; }
.table-scroll-hint { display: none; color: var(--text-muted); font-size: .82rem; }
.pricing-comparison table th:not(:first-child), .pricing-comparison table td { text-align: center; }
.pricing-comparison tbody th { background: #fff; color: var(--text); font-size: .88rem; text-transform: none; }
.pricing-comparison td { min-width: 160px; }
.comparison-value.included { color: var(--success); font-weight: 750; }
.comparison-value.not-included { color: var(--text-muted); }
.compact-hero { min-height: 55vh; display: flex; align-items: center; }
.prose p, .prose li { color: var(--text-muted); }
.prose > * + * { margin-top: 18px; }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.data-grid > div { padding: 18px; border: 1px solid var(--border); background: #fff; }
.data-grid dt { color: var(--text-muted); font-size: .84rem; }
.data-grid dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.article-card-image { display: block; aspect-ratio: 16 / 9; margin: -22px -22px 22px; overflow: hidden; border-bottom: 1px solid var(--border); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--primary); text-decoration: underline; }
.article-card > p:not(.card-meta) { flex: 1; color: var(--text-muted); }
.article-card > a:last-child { font-weight: 750; }
.article-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--border); background: var(--background-muted); }
.article-header-inner { max-width: 920px; }
.article-header-inner h1 { max-width: 900px; }
.article-header-inner .lead { max-width: 780px; }
.article-byline { margin: 32px 0 0; color: var(--text-muted); font-size: .9rem; }
.article-cover-wrap { max-width: 1080px; margin-top: 48px; }
.article-cover { width: 100%; height: auto; max-height: 620px; border: 1px solid var(--border); border-radius: 4px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(260px, 320px); justify-content: space-between; gap: clamp(40px, 7vw, 96px); padding-top: 64px; padding-bottom: 88px; }
.article-body { min-width: 0; color: var(--text-muted); font-size: 1.04rem; }
.article-body h2, .article-body h3, .article-body h4 { margin-top: 42px; color: var(--text); }
.article-body h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.article-body h3 { font-size: 1.35rem; }
.article-body h4 { font-size: 1.1rem; }
.article-body p, .article-body li { max-width: 74ch; }
.article-body a { overflow-wrap: anywhere; }
.article-body table { display: block; width: 100%; max-width: 100%; margin: 28px 0; overflow-x: auto; border-collapse: collapse; font-size: .92rem; }
.article-body th, .article-body td { min-width: 140px; padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--background-muted); color: var(--text); }
.article-body figure { margin: 36px 0; }
.article-body figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.article-body figcaption { margin-top: 8px; color: var(--text-muted); font-size: .84rem; }
.article-tags { margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .9rem; }
.article-cta { position: sticky; top: 24px; align-self: start; padding: 24px; border: 1px solid var(--border); border-top: 4px solid var(--accent); background: #fff; box-shadow: var(--shadow); }
.article-cta h2 { font-size: 1.45rem; }
.article-cta p:not(.eyebrow) { color: var(--text-muted); }
.editorial-preview-cover { width: min(100%, 920px); height: auto; max-height: 520px; border: 1px solid var(--border); border-radius: 4px; object-fit: contain; background: var(--background-muted); }

.auth-section { min-height: 70vh; display: grid; place-items: center; padding: 72px 24px; background: var(--background-muted); }
.auth-card { width: min(100%, 480px); padding: 32px; border: 1px solid var(--border); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.auth-card-wide { width: min(100%, 680px); }
.auth-card form { display: grid; gap: 18px; margin: 28px 0; }
.auth-card h1 { font-size: 2.35rem; }
.selected-plan-summary { margin: 24px 0 8px; padding: 18px; border: 1px solid var(--border); border-left: 4px solid var(--primary); background: var(--background-muted); }
.selected-plan-summary div span, .selected-plan-summary div strong { display: block; }
.selected-plan-summary div span { color: var(--text-muted); font-size: .78rem; font-weight: 700; }
.selected-plan-summary p { margin: 10px 0 4px; }
.selected-plan-summary > a { font-size: .88rem; font-weight: 750; }
.flash { margin-top: 18px; padding: 12px 16px; border: 1px solid; border-radius: 4px; }
.flash-success { border-color: #9ed5bc; background: #effbf5; color: #11633f; }
.flash-error { border-color: #e7aaa5; background: #fff3f2; color: #8f1c14; }

.site-footer { padding-top: 64px; border-top: 1px solid var(--border); background: var(--background-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.footer-grid p { max-width: 280px; color: var(--text-muted); }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav h2 { margin-bottom: 8px; font-size: .9rem; letter-spacing: .02em; }
.footer-grid nav a { color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.footer-grid nav a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; }
.footer-bottom a { color: inherit; }

.minimal-body { min-height: 100vh; display: grid; place-items: center; background: var(--background-muted); }
.minimal-shell { width: min(calc(100% - 32px), 720px); }
.maintenance-card { padding: clamp(28px, 6vw, 56px); border: 1px solid var(--border); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.maintenance-card h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.maintenance-brand { margin-bottom: 48px; }

/* Aree applicative */
.app-body { min-height: 100vh; background: var(--background-muted); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 16px; border-right: 1px solid var(--border); background: #fff; overflow-y: auto; }
.app-sidebar .brand { padding: 0 8px 20px; }
.sidebar-nav { display: grid; gap: 3px; }
.sidebar-nav a { min-height: 42px; display: flex; align-items: center; padding: 8px 10px; border-left: 3px solid transparent; color: var(--text-muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.sidebar-nav a:hover, .sidebar-nav a.active { border-left-color: var(--primary); background: var(--background-muted); color: var(--text); }
.sidebar-nav .nav-section { margin: 18px 10px 5px; color: #778692; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.app-main { min-width: 0; }
.app-topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 28px; border-bottom: 1px solid var(--border); background: #fff; }
.app-topbar h1 { margin: 0; font-size: 1.35rem; }
.topbar-heading { display: flex; align-items: center; gap: 12px; }
.topbar-tools { display: flex; align-items: center; gap: 12px; }
.credit-indicator { padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: .85rem; }
.user-menu { color: var(--text-muted); font-size: .9rem; }
.notification-link { color: var(--text-muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.version-label { margin: 14px 10px 0; color: var(--text-muted); font-size: .72rem; }
.app-content { padding: 32px 28px 64px; }
.content-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.content-header h2 { margin-bottom: 6px; }
.content-header p { margin: 0; color: var(--text-muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { padding: 20px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.kpi-card span { display: block; color: var(--text-muted); font-size: .85rem; }
.kpi-card strong { display: block; margin-top: 6px; font-size: 1.7rem; line-height: 1.2; }
.panel { margin-bottom: 24px; padding: 24px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.app-content .panel-header { flex-wrap: wrap; }
.panel-header h2, .panel-header h3 { margin: 0; }
.primary-action-panel { padding: clamp(24px, 4vw, 40px); border-top: 4px solid var(--primary); }
.primary-action-panel textarea { min-height: 132px; }
.filters-bar { display: grid; grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(140px, .35fr)) auto; align-items: end; gap: 12px; margin-bottom: 20px; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--background-muted); color: var(--text-muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; white-space: nowrap; }
.row-actions a, .row-actions button { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--primary); font-size: .82rem; font-weight: 700; text-decoration: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; color: var(--text-muted); font-size: .86rem; }
.breadcrumbs a { color: inherit; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border: 1px solid var(--border); background: var(--border); }
.detail-list div { padding: 14px; background: #fff; }
.detail-list dt { color: var(--text-muted); font-size: .78rem; }
.detail-list dd { margin: 4px 0 0; font-weight: 700; }
.tabs { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: 10px 14px; border-bottom: 3px solid transparent; color: var(--text-muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tabs a.active { border-color: var(--primary); color: var(--text); }
.result-list { display: grid; gap: 14px; }
.result-card { display: grid; grid-template-columns: minmax(0, 1fr) 90px 100px auto; gap: 18px; align-items: start; padding: 20px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.result-card h3 { margin-bottom: 4px; }
.result-card .activity { margin: 10px 0; color: var(--text-muted); }
.result-score strong { display: block; font-size: 1.35rem; }
.result-score span { color: var(--text-muted); font-size: .78rem; }
.reasons { margin: 10px 0 0; padding-left: 18px; color: var(--text-muted); font-size: .87rem; }
.result-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-controls form { display: flex; gap: 6px; align-items: end; }
.result-controls select { min-height: 38px; margin: 0; padding: 6px 8px; }
.result-controls button { min-height: 38px; padding: 6px 9px; border: 1px solid var(--border); background: #fff; color: var(--primary); font-weight: 700; }
.note-list { display: grid; gap: 10px; margin-top: 18px; }
.note-list article { padding: 14px; border-left: 3px solid var(--border); background: var(--background-muted); }
.note-list p { margin-bottom: 6px; }
.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 28px; }
.wizard-progress span { padding: 9px; border-bottom: 3px solid var(--border); color: var(--text-muted); font-size: .78rem; text-align: center; }
.wizard-progress span.active { border-color: var(--primary); color: var(--text); font-weight: 750; }
.guided-page-heading { max-width: 900px; margin-inline: auto; }
.guided-page-heading h2 { max-width: 760px; margin-bottom: 10px; }
.guided-page-heading p:last-child { max-width: 720px; margin-bottom: 0; color: var(--text-muted); }
.guided-shell { width: min(100%, 900px); margin-inline: auto; padding: clamp(24px, 4vw, 44px); border-top: 4px solid var(--primary); box-shadow: 0 16px 42px rgba(20, 32, 43, .07); }
.guided-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.guided-progress span { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 6px 11px; border-bottom: 3px solid var(--border); color: var(--text-muted); }
.guided-progress b { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 4px; font-size: .76rem; }
.guided-progress em { overflow: hidden; font-size: .76rem; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.guided-progress span.active { border-color: var(--primary); color: var(--primary); }
.guided-progress span.complete { border-color: var(--success); color: var(--success); }
.guided-draft-status { min-height: 24px; margin: 8px 0 18px; color: var(--text-muted); font-size: .8rem; text-align: right; }
.guided-step { min-height: 470px; display: flex; flex-direction: column; padding: clamp(6px, 2vw, 18px) clamp(0px, 3vw, 28px) 0; }
.guided-step[hidden] { display: none; }
.js [data-guided-flow] .guided-step { display: none; }
.js [data-guided-flow][data-initial-step="1"] [data-guided-step="1"],
.js [data-guided-flow][data-initial-step="2"] [data-guided-step="2"],
.js [data-guided-flow][data-initial-step="3"] [data-guided-step="3"],
.js [data-guided-flow][data-initial-step="4"] [data-guided-step="4"] { display: flex; }
.js [data-guided-flow] .guided-step[hidden] { display: none; }
.guided-step + .guided-step { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.js .guided-step + .guided-step { margin-top: 0; padding-top: clamp(6px, 2vw, 18px); border-top: 0; }
.guided-step h3 { max-width: 740px; margin-bottom: 12px; font-size: clamp(1.75rem, 4vw, 2.45rem); letter-spacing: -.035em; }
.guided-step-number { margin-bottom: 10px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.guided-question-help { max-width: 680px; margin-bottom: 28px; color: var(--text-muted); font-size: 1.02rem; }
.guided-fieldset { width: 100%; }
.guided-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guided-choice-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guided-choice { position: relative; min-height: 96px; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #b7c4cf; border-radius: 4px; background: #fff; cursor: pointer; font-weight: 500; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.guided-choice:hover { border-color: var(--primary); }
.guided-choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--focus) 22%, transparent); outline-offset: 2px; }
.guided-choice:has(input:checked) { border-color: var(--primary); background: #f2f7ff; box-shadow: inset 4px 0 0 var(--primary); }
.guided-choice input { flex: 0 0 20px; width: 20px; min-height: 20px; margin: 2px 0 0; }
.guided-choice span, .guided-choice strong, .guided-choice small { display: block; }
.guided-choice strong { line-height: 1.35; }
.guided-choice small { margin-top: 5px; font-weight: 400; line-height: 1.45; }
.guided-choice ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-muted); font-size: .86rem; }
.guided-answer { display: block; width: 100%; }
.guided-answer textarea, .guided-answer input { margin: 0; padding: 18px; border-width: 1px; font-size: 1.08rem; line-height: 1.55; }
.guided-answer textarea { min-height: 190px; }
.guided-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 32px; }
.guided-actions .button-primary { margin-left: auto; }
.guided-js-only { display: none; }
.js .guided-js-only { display: inline-flex; }
.guided-recap { display: grid; gap: 1px; margin: 4px 0 24px; border: 1px solid var(--border); background: var(--border); }
.guided-recap > div { display: grid; grid-template-columns: minmax(130px, .3fr) minmax(0, 1fr); gap: 18px; padding: 16px 18px; background: #fff; }
.guided-recap span { color: var(--text-muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.guided-recap p, .guided-recap ul { margin: 0; }
.guided-recap ul { padding-left: 18px; }
.guided-search-name { margin-top: 22px; }
.guided-search-name small { display: inline; margin-left: 6px; }
.guided-processing-note { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; padding: 16px; border-left: 4px solid var(--accent); background: #f0fbfa; }
.guided-processing-note span { color: var(--text-muted); }
.guided-waiting { width: min(100%, 760px); margin-inline: auto; padding: clamp(28px, 5vw, 52px); border-top: 4px solid var(--primary); }
.guided-waiting .progress-bar { max-width: 560px; }
.guided-target-selection h2 { margin-bottom: 12px; }
.guided-target-selection .lead-small { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.guided-target-selection legend { font-size: 1.3rem; }
.guided-target-selection .icp-card { min-height: 116px; }
.guided-draft-status.is-saving { color: var(--primary); }
.guided-draft-status.is-saved { color: var(--success); }
.guided-draft-status.is-error { color: var(--warning); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-card { min-height: 86px; display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.choice-card:has(input:checked) { border-color: var(--primary); background: #f2f7ff; }
.choice-card input { width: 20px; min-height: 20px; margin: 0; }
.icp-grid { display: grid; gap: 12px; }
.icp-card { align-items: flex-start; }
.icp-card span, .icp-card strong, .icp-card small { display: block; }
.icp-card small { margin-top: 4px; }
.advanced-filters { margin: 28px 0; border: 1px solid var(--border); }
.advanced-filters summary { padding: 14px 16px; cursor: pointer; font-weight: 750; }
.advanced-filters .form-grid { padding: 4px 16px 20px; }
.example-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.example-buttons button { min-height: 38px; padding: 7px 10px; border: 1px solid var(--border); background: #fff; color: var(--primary); cursor: pointer; }
.status-text { font-size: 1rem !important; text-transform: capitalize; }
.activity-list, .evidence-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-list span, .activity-list time { color: var(--text-muted); font-size: .88rem; }
.evidence-list article, .conversation article { padding: 16px; border: 1px solid var(--border); background: var(--background-muted); }
.evidence-list p { margin: 8px 0; color: var(--text-muted); }
.evidence-list article { min-width: 0; overflow-wrap: anywhere; }
.organization-source-list li { overflow-wrap: anywhere; }
.conversation { display: grid; gap: 12px; }
.conversation article header { display: flex; justify-content: space-between; gap: 16px; }
.conversation article p { margin: 10px 0 0; white-space: normal; }
.destructive-zone { border-left: 4px solid var(--danger); }
.lead-small { color: var(--text-muted); font-size: 1.08rem; }
.toggle-field { min-height: 46px; display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 10px 0; }
.toggle-field input { width: 20px; min-height: 20px; margin: 0; }
.settings-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px; background: #fff; }
.setting-row span, .setting-row strong, .setting-row small { display: block; }
.setting-row input { width: 24px; min-height: 24px; margin: 0; }
.bar-chart { display: grid; gap: 14px; }
.bar-chart div { display: grid; grid-template-columns: 64px minmax(60px, 1fr) minmax(150px, auto); align-items: center; gap: 10px; }
.bar-chart progress { display: block; width: 100%; height: 12px; border: 0; border-radius: 2px; overflow: hidden; background: var(--background-secondary); }
.bar-chart progress::-webkit-progress-bar { background: var(--background-secondary); }
.bar-chart progress::-webkit-progress-value { background: var(--primary); }
.bar-chart progress::-moz-progress-bar { background: var(--primary); }
.bar-chart strong { font-size: .8rem; font-weight: 650; }
.admin-body .app-sidebar { font-size: .92rem; }
.notification-list { display: grid; gap: 10px; }
.notification-item { display: flex; justify-content: space-between; gap: 24px; padding: 18px; border: 1px solid var(--border); background: #fff; }
.notification-item.unread { border-left: 4px solid var(--primary); }
.notification-item h3 { margin: 8px 0 4px; }
.notification-item p { margin-bottom: 4px; color: var(--text-muted); }
.search-summary { padding: 20px; border-left: 4px solid var(--accent); background: #f0fbfa; }
.search-summary h3 { margin-bottom: 8px; }
.loading-dialog { width: min(calc(100% - 32px), 520px); padding: 0; border: 0; box-shadow: var(--shadow); }
.loading-dialog::backdrop { background: rgba(20, 32, 43, .55); }
.loading-dialog-content { padding: 32px; }
.progress-bar { height: 6px; margin: 24px 0; overflow: hidden; background: var(--border); border-radius: 4px; }
.progress-bar span { display: block; width: 38%; height: 100%; background: var(--primary); animation: progress-move 1.4s ease-in-out infinite alternate; }
.research-progress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); gap: 28px; align-items: center; border-left: 4px solid var(--primary); }
.research-progress h2 { margin-bottom: 8px; }
.research-progress p:last-child { margin-bottom: 0; }
@keyframes progress-move { to { transform: translateX(160%); } }
.app-menu-toggle { display: none; }
.payment-body { display: block; background: var(--background-muted); }
.payment-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(20px, calc((100vw - 960px) / 2)); border-bottom: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: .88rem; }
.payment-page { width: min(calc(100% - 32px), 860px); margin: 48px auto; }
.payment-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.payment-card h1 { max-width: 700px; margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3rem); }
.payment-provider-shell { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.payment-provider-shell form { display: grid; gap: 14px; }
.payment-provider-shell label { display: block; color: var(--text); font-weight: 650; }
.payment-provider-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.payment-provider-shell select,
.payment-provider-shell textarea { width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #aebbc7; border-radius: 4px; background: #fff; color: var(--text); font: inherit; }
.payment-provider-shell button,
.payment-provider-shell input[type="submit"] { min-height: 44px; padding: 10px 18px; border: 1px solid var(--primary); border-radius: 4px; background: var(--primary); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.flash-warning { border-left-color: var(--warning); background: #fff8eb; color: #633800; }

@media (max-width: 1040px) {
    .public-nav { gap: 14px; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 2; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .filters-bar { grid-template-columns: 1fr 1fr; }
    .filters-bar .button { width: 100%; }
    .result-card { grid-template-columns: minmax(0, 1fr) 80px 90px; }
    .result-card .row-actions { grid-column: 1 / -1; }
    .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); }
    .editorial-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .container { width: min(calc(100% - 32px), var(--container)); }
    .section { padding: 64px 0; }
    .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; }
    .public-nav { position: absolute; top: 72px; right: 16px; left: 16px; display: none; align-items: stretch; padding: 16px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
    .public-nav.open { display: grid; }
    .public-nav .button { margin-top: 8px; }
    .public-nav > a.active:not(.button) { padding-left: 10px; border-bottom-color: transparent; border-left: 3px solid var(--primary); background: var(--background-muted); }
    .nav-spacer { display: none; }
    .hero { padding-top: 52px; }
    .hero-grid, .split-grid { grid-template-columns: 1fr; }
    .hero-visual { grid-row: 1; }
    .page-hero-grid, .editorial-grid { grid-template-columns: 1fr; }
    .page-editorial-visual { grid-row: auto; }
    .page-index .container { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 16px; }
    .editorial-aside { max-width: 620px; }
    .comparison { grid-template-columns: 1fr; }
    .comparison article + article { border-top: 1px solid var(--border); border-left: 0; }
    .steps-grid, .cards-grid, .six-cards, .pricing-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-grid > :last-child { grid-column: auto; }
    .app-shell { display: block; }
    .app-sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(86vw, var(--sidebar)); transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .18s ease; }
    .app-sidebar.open { transform: none; }
    .app-menu-toggle { display: inline-flex; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border); background: #fff; }
    .app-topbar { padding: 12px 16px; }
    .app-content { padding: 24px 16px 56px; }
    .content-header { align-items: stretch; flex-direction: column; }
    .content-header .button { align-self: flex-start; }
    .activity-list li { grid-template-columns: 1fr; gap: 2px; }
    .detail-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { max-width: 620px; width: 100%; margin-inline: auto; }
    .pricing-badge { margin-top: -45px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-cta { position: static; max-width: 620px; }
}

@media (max-width: 560px) {
    h1 { font-size: clamp(2.1rem, 11vw, 2.5rem); }
    h2 { font-size: 1.75rem; }
    .search-control { display: block; }
    .search-control .button { width: calc(100% - 20px); }
    .url-form > div { grid-template-columns: 1fr; }
    .url-form .button { width: 100%; }
    .steps-grid, .cards-grid, .six-cards, .pricing-grid, .form-grid, .kpi-grid, .data-grid, .choice-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > :first-child, .footer-grid > :last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .funnel li, .funnel li:last-child { width: 100%; }
    .score-legend { grid-template-columns: 1fr; }
    .hero-points { display: grid; gap: 8px; }
    .editorial-cards, .editorial-comparison { grid-template-columns: 1fr; }
    .editorial-cards > :last-child:nth-child(odd) { grid-column: auto; }
    .editorial-steps { grid-template-columns: 1fr; }
    .editorial-steps li { min-height: 0; display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
    .editorial-steps li > span { margin: 0; }
    .pricing-toggle { width: 100%; }
    .pricing-toggle button { flex: 1; }
    .pricing-comparison { margin-top: 56px; }
    .table-scroll-hint { display: block; }
    .auth-card { padding: 24px; }
    .topbar-tools .user-menu { display: none; }
    .app-topbar { flex-wrap: wrap; gap: 8px; }
    .topbar-heading { min-width: 0; flex: 1 1 100%; }
    .topbar-heading h1 { overflow: hidden; font-size: 1.12rem; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-tools { width: 100%; justify-content: flex-end; gap: 8px; }
    .filters-bar { grid-template-columns: 1fr; }
    .research-progress { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 1fr; }
    .result-card { grid-template-columns: 1fr 1fr; }
    .result-card > :first-child { grid-column: 1 / -1; }
    .result-card .row-actions { grid-column: 1 / -1; }
    .wizard-progress span { font-size: 0; }
    .wizard-progress span::first-letter { font-size: .78rem; }
    .guided-shell { padding: 22px 16px; }
    .guided-progress { gap: 1px; }
    .guided-progress span { display: block; padding-inline: 3px; text-align: center; }
    .guided-progress em { display: none; }
    .guided-progress b { margin-inline: auto; }
    .guided-draft-status { text-align: left; }
    .guided-step { min-height: 500px; padding-inline: 0; }
    .guided-step h3 { font-size: 1.75rem; }
    .guided-question-help { margin-bottom: 22px; }
    .guided-choice-grid, .guided-choice-grid-two { grid-template-columns: 1fr; }
    .guided-choice { min-height: 84px; }
    .guided-actions { align-items: stretch; flex-direction: column-reverse; }
    .guided-actions .button { width: 100%; margin-left: 0; }
    .guided-recap > div, .guided-processing-note { grid-template-columns: 1fr; gap: 6px; }
    .payment-header { min-height: 64px; padding-inline: 16px; }
    .payment-header > span { display: none; }
    .payment-page { margin: 24px auto; }
    .payment-card { padding: 24px 18px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-hero { padding: 52px 0; }
    .article-layout { padding-top: 48px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dossier aziendali */
.dossier-body{max-width:1040px}.dossier-lead{font-size:1.125rem;line-height:1.65}.dossier-context{padding:16px 20px;background:var(--background-secondary,#f6f8fa);border-left:3px solid var(--primary,#175cd3);margin-top:24px}.dossier-context p{white-space:pre-line;overflow-wrap:anywhere}.dossier-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}.dossier-facts dt{font-size:.875rem;color:#52606d}.dossier-facts dd{margin:4px 0 0;overflow-wrap:anywhere}.dossier-sources li{margin:16px 0;overflow-wrap:anywhere}.dossier-lines{white-space:pre-line}.dossier-notice{padding:16px;border:1px solid #a15c00;border-radius:4px}.dossier-hypotheses{border-left:3px solid #148a83}.dossier-list-item{display:flex;justify-content:space-between;gap:24px;align-items:center}.dossier-list-item>div{min-width:0}.dossier-list-item h3{overflow-wrap:anywhere}.dossier-body li{margin-bottom:8px}@media(max-width:600px){.dossier-facts{grid-template-columns:1fr}.dossier-list-item{display:block}.dossier-context{padding:12px}.dossier-list-item .row-actions{margin-top:16px}}
