/* ============================================================
   PDF Summarizer — site components (2026-10 overhaul)
   Builds on style.css tokens: tool widget, mega menu, content
   pages (tools/guides), hubs, pricing, FAQ.
   ============================================================ */

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Mega menu ─────────────────────────────────────────── */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: var(--font); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.mega {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: min(760px, 92vw); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 22px; z-index: 300; grid-template-columns: 1.15fr 1fr; gap: 10px 28px;
}
.nav-drop.open .mega { display: grid; }
.mega-head { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px 10px; }
.mega ul { list-style: none; columns: 2; column-gap: 6px; }
.mega-col:last-child ul { columns: 1; }
.mega li { break-inside: avoid; }
.mega a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.mega a:hover { background: #FDF3F2; color: var(--brand); }
.mega-ico { width: 20px; text-align: center; flex-shrink: 0; }
.mega a.mega-all { margin-top: 8px; font-weight: 700; color: var(--brand); }
@media (max-width: 1024px) { .nav-links .nav-drop { display: none; } }

/* ── Tool widget ───────────────────────────────────────── */
.tool { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; color: var(--ink); text-align: start; }
.tool-tabs { display: flex; gap: 4px; padding: 8px; background: var(--paper); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tool-tab { flex: 1; white-space: nowrap; border: 0; background: none; font: 600 .85rem var(--font); color: var(--muted); padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: var(--t); }
.tool-tab:hover { color: var(--ink); background: #fff; }
.tool-tab.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.tool .dropzone { margin: 18px 18px 0; }
.tool-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 18px 0; }
.tool-opts .opt-group { display: flex; flex-direction: column; gap: 5px; }
.tool-opts label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tool-opts select { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; font: 500 .88rem var(--font); background: #fff; color: var(--ink); }
.tool-opts select:focus { border-color: var(--brand); outline: none; box-shadow: var(--shadow-glow); }
.tool-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 4px; flex-wrap: wrap; }
.tool-bottom .btn-submit { margin-inline-start: auto; }
.tool-privacy { display: flex; align-items: center; gap: 6px; padding: 8px 18px 16px; font-size: .76rem; color: var(--muted); }
.tool[data-mode="text"] .tool-opts { display: none; }
.btn-submit--sm { padding: 10px 16px !important; font-size: .88rem !important; }
.tool.is-busy .tool-tab { pointer-events: none; opacity: .6; }

.tool-run { padding: 18px; }
.run-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--border-soft); padding: 10px 12px; border-radius: 10px; }
.run-file .sep { color: var(--gray-300); }
.run-file .badge { background: #FFF4E5; color: #9A5B00; border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 700; }
.run-note { width: 100%; font-size: .78rem; color: #9A5B00; }
.run-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 2px 0; font-size: .8rem; color: var(--muted); }
.run-steps li { display: flex; align-items: center; gap: 6px; }
.run-steps li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gray-300); }
.run-steps li.is-active { color: var(--ink); font-weight: 600; }
.run-steps li.is-active::before { border-color: var(--brand); border-top-color: transparent; animation: ps-spin .8s linear infinite; }
.run-steps li.is-done::before { background: var(--success); border-color: var(--success); }
@keyframes ps-spin { to { transform: rotate(360deg); } }
.run-progress { height: 4px; background: var(--border-soft); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.run-progress-bar { height: 100%; width: 0; background: var(--gradient-primary); transition: width .3s ease; }

.run-output { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.run-output .output-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.output-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.output-actions .copy-btn { text-decoration: none; font-size: .78rem; padding: 6px 10px; }
.md-out { padding: 16px 18px; font-size: .95rem; line-height: 1.7; color: var(--ink-soft); max-height: 560px; overflow-y: auto; }
.md-out > *:first-child { margin-top: 0; }
.md-out p { margin: 0 0 .8em; }
.md-out h3, .md-out h4, .md-out h5 { font-family: var(--font-display); color: var(--ink); margin: 1.1em 0 .4em; font-size: 1.02rem; }
.md-out ul, .md-out ol { margin: 0 0 .9em; padding-inline-start: 1.3em; }
.md-out li { margin: .25em 0; }
.md-out li::marker { color: var(--brand); }
.md-out strong { color: var(--ink); }
.md-out code { font-family: var(--mono); font-size: .85em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.md-out.is-text { padding: 0; }
.text-out { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; font: .82rem/1.6 var(--mono); color: var(--ink-soft); }
.md-wait { color: var(--muted); }
.md-wait::after { content: '…'; animation: pulse 1.2s ease infinite; }
.caret { display: inline-block; width: 7px; height: 1em; background: var(--brand); vertical-align: -2px; margin-inline-start: 2px; animation: pulse 1s ease infinite; }
.pref { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--brand); background: #FDF0EF; border-radius: 6px; padding: 0 6px; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
.run-saved { font-size: .8rem; color: var(--success); font-weight: 600; margin-top: .6em; }
.run-refine { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border-soft); background: var(--paper); font-size: .8rem; color: var(--muted); }
.run-refine button, .chat-suggest button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 12px; font: 500 .8rem var(--font); color: var(--ink-soft); cursor: pointer; transition: var(--t); }
.run-refine button:hover, .chat-suggest button:hover { border-color: var(--brand); color: var(--brand); }

.run-chat { margin-top: 14px; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.chat-msg { flex-shrink: 0; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.chat-msg--user { align-self: flex-end; max-width: 85%; background: #FDF3F2; border-color: #F6D3D1; }
.chat-msg--user .md-out { color: var(--ink); }
.chat-who { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 14px 0; }
.chat-msg .md-out { padding: 6px 14px 10px; max-height: none; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chat-suggest button { text-align: start; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; font: .92rem var(--font); }
.chat-form input:focus { border-color: var(--brand); outline: none; box-shadow: var(--shadow-glow); }
.run-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.run-expiry { font-size: .74rem; color: var(--muted); max-width: 440px; }
.tool .demo-error { margin-top: 12px; }
.tool [hidden] { display: none !important; }
@media (max-width: 560px) {
  .tool-opts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool .dropzone { margin: 14px 14px 0; padding: 26px 14px; }
  .tool-run { padding: 14px; }
  .md-out { padding: 14px; font-size: .92rem; }
}

/* ── Home hero tweaks (shared header) ──────────────────── */
.hero--home { padding: 72px 0 84px; }
.hero--home .hero-grid { align-items: start; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: rgba(255,255,255,.72); }
.hero-trust li::before { content: '✓'; color: #7FC49C; font-weight: 800; }

/* ── Generic sections ──────────────────────────────────── */
.section { padding: 84px 24px; }
.section--alt { background: var(--paper); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

/* Cards grid (tools / guides) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: var(--t); }
.card:hover { border-color: var(--brand-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-ico { font-size: 1.4rem; line-height: 1; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.card p { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.card-more { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 700; color: var(--brand); }
.cards-group { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 34px 0 12px; }
.cards-group:first-child { margin-top: 0; }

/* Steps (how it works) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: st; }
.step-card { position: relative; padding: 22px 20px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.step-card::before { counter-increment: st; content: counter(st); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-primary); color: #fff; font-weight: 800; font-size: .85rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.step-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.cmp { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.cmp th, .cmp td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.cmp thead th { background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; color: var(--ink); }
.cmp .yes { color: var(--success); font-weight: 700; }
.cmp .no { color: var(--gray-400); }

/* ── Content pages (tools & guides) ────────────────────── */
.phero { background: linear-gradient(180deg, #FFF7F6 0%, #fff 100%); border-bottom: 1px solid var(--border-soft); padding: 34px 24px 46px; }
.phero-inner { max-width: 1160px; margin: 0 auto; }
.phero--tool .phero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--gray-300); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.phero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin-bottom: 14px; }
.page-lead { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); max-width: 640px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.page-meta strong { color: var(--ink-soft); font-weight: 600; }

.tldr { margin-top: 22px; background: #fff; border: 1px solid var(--border); border-inline-start: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; }
.tldr-title { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.tldr ul { list-style: none; display: grid; gap: 6px; }
.tldr li { position: relative; padding-inline-start: 20px; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.tldr li::before { content: '→'; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }
[dir="rtl"] .tldr li::before { content: '←'; }

.content-wrap { max-width: 1160px; margin: 0 auto; padding: 56px 24px 24px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .84rem; }
.toc-title { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; border-inline-start: 2px solid var(--border-soft); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
[dir="rtl"] .toc a { padding: 5px 14px 5px 0; }
.toc a:hover, .toc a.is-active { color: var(--brand); border-color: var(--brand); }
.toc-cta { display: block; margin-top: 18px; text-align: center; padding: 10px; border-radius: 10px; background: var(--gradient-primary); color: #fff !important; font-weight: 700; text-decoration: none; }

.prose { font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; color: var(--ink); margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: #14141f; color: #e8e8f0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 1.3em; font-size: .85rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose blockquote { border-inline-start: 4px solid var(--brand-light); background: #FFF8F7; padding: 12px 18px; margin: 0 0 1.2em; border-radius: 0 10px 10px 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .9rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.howto { margin: 2.2em 0; }
.howto ol { list-style: none; counter-reset: hs; padding: 0; display: grid; gap: 12px; }
.howto li { counter-increment: hs; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
[dir="rtl"] .howto li { padding: 14px 56px 14px 16px; }
.howto li::before { content: counter(hs); position: absolute; inset-inline-start: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-primary); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.howto li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.howto li span { font-size: .93rem; }

.faq-list { display: grid; gap: 10px; margin-top: 8px; }
.faq-list details { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.faq-list summary { cursor: pointer; list-style: none; padding: 15px 46px 15px 18px; font-weight: 600; color: var(--ink); position: relative; line-height: 1.45; }
[dir="rtl"] .faq-list summary { padding: 15px 18px 15px 46px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; inset-inline-end: 18px; top: 12px; font-size: 1.3rem; color: var(--brand); font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list .faq-a { padding: 0 18px 16px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.faq-list .faq-a p { margin: 0 0 .7em; }
.faq-list .faq-a a { color: var(--brand); }

.related { max-width: 1160px; margin: 0 auto; padding: 24px 24px 72px; }
.related h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 16px; }
.inline-cta { margin: 2.4em 0; padding: 22px 24px; border-radius: 16px; background: linear-gradient(135deg, #1b1b26, #2b1715); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.inline-cta strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: #fff; }
.inline-cta span { color: rgba(255,255,255,.7); font-size: .92rem; }
.inline-cta a { flex-shrink: 0; background: var(--brand); color: #fff !important; text-decoration: none !important; font-weight: 700; padding: 11px 18px; border-radius: 10px; }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 2.6em; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); font-size: .88rem; color: var(--muted); line-height: 1.6; }
.author-box strong { color: var(--ink); }

@media (max-width: 960px) {
  .phero--tool .phero-inner { grid-template-columns: 1fr; gap: 26px; }
  .content-wrap { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .toc { display: none; }
}

/* ── Pricing page ──────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.plan-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); margin: 6px 0 2px; }
.plan-price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan-desc { font-size: .86rem; color: var(--muted); margin-bottom: 14px; min-height: 2.6em; }
.plan ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; font-size: .88rem; color: var(--ink-soft); }
.plan li::before { content: '✓'; color: var(--success); font-weight: 800; margin-inline-end: 8px; }
.plan .price-btn { margin-top: auto; text-align: center; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .section { padding: 60px 16px; } }

/* ── Footer additions ──────────────────────────────────── */
.footer-grid--5 { grid-template-columns: 1.6fr 1.2fr 1.2fr .9fr .9fr; gap: 36px; }
.footer-facts { list-style: none; display: grid; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-facts li::before { content: '✓ '; color: #7FC49C; }
.footer-bottom-links { flex-wrap: wrap; }
@media (max-width: 1000px) { .footer-grid--5 { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 560px) { .footer-grid--5 { grid-template-columns: 1fr; } }

/* 404 */
.notfound { max-width: 720px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.notfound h1 { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* Grid children must be allowed to shrink below their min-content (tool tabs are nowrap) */
.hero-grid > *, .phero--tool .phero-inner > *, .content-wrap > * { min-width: 0; }
.tool { max-width: 100%; }
@media (max-width: 900px) {
  .hero--home { padding: 40px 0 56px; }
  .hero--home .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero--home .hero-copy { text-align: start; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); overflow-wrap: anywhere; }
  .hero-model-badge { max-width: 100%; white-space: normal; }
}
@media (max-width: 560px) {
  .tool-tab { flex: 0 0 auto; padding: 8px 10px; font-size: .8rem; }
  .tool-bottom .btn-submit { width: 100%; justify-content: center; }
  .hero-trust { gap: 6px 14px; }
  .phero { padding: 24px 16px 32px; }
}

/* Mega menu fix (19/10): the box must contain both columns — the document column alone is
   two sub-columns wide, so size the box to the nav and constrain the grid tracks. */
.nav-drop { position: static; }
.mega {
  left: 50%; transform: translateX(-50%); top: calc(100% - 4px);
  width: min(1000px, calc(100vw - 32px)); max-width: none;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px 32px; padding: 22px 24px; background: #fff; overflow: hidden;
}
.mega-col { min-width: 0; }
.mega-col + .mega-col { border-inline-start: 1px solid var(--border-soft); padding-inline-start: 24px; }
.mega a { white-space: normal; }
