/* EchoMention Cloud: small additions on top of Pico.css */
:root {
  --em-accent: #4f46e5;
  --em-negative: #dc2626;
  --em-positive: #16a34a;
}

.brand img { display: block; }
.inline-form { display: inline; margin: 0; }
.inline-form button { margin: 0; padding: 0.35rem 0.8rem; }

article.narrow { max-width: 28rem; margin: 2rem auto; }

.flashes { margin-bottom: 1rem; }
.flash { padding: 0.75rem 1rem; margin-bottom: 0.5rem; border-left: 4px solid var(--pico-primary); }
.flash-success { border-left-color: var(--em-positive); }
.flash-warning { border-left-color: #d97706; }
.flash-error { border-left-color: var(--em-negative); }

.form-error { color: var(--em-negative); font-weight: 500; }

.sentiment-negative { color: var(--em-negative); }
.sentiment-positive { color: var(--em-positive); }

.site-footer { margin-top: 3rem; padding-bottom: 2rem; text-align: center; opacity: 0.8; }

.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* --- App layout (sidebar) ------------------------------------------------------- */
.app-shell { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.app-sidebar { position: sticky; top: 1rem; }
.app-sidebar nav ul { display: flex; flex-direction: column; align-items: stretch; margin: 0; padding: 0; }
.app-sidebar nav li { padding: 0.15rem 0; list-style: none; }
.app-sidebar nav a { display: block; padding: 0.35rem 0.6rem; border-radius: var(--pico-border-radius); text-decoration: none; }
.app-sidebar nav a[aria-current="page"] { background: var(--pico-primary-background); color: var(--pico-primary-inverse); }
.ws-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.ws-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.app-main { min-width: 0; }
@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; gap: 1rem; }
  .app-sidebar { position: static; }
  .app-sidebar nav ul { flex-direction: row; flex-wrap: wrap; }
}

.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.page-head h1 { margin: 0; }
.muted { opacity: 0.75; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.row-disabled { opacity: 0.6; }
.actions { white-space: nowrap; }
.actions > * + * { margin-left: 0.5rem; }
button.small, a.small[role="button"] { padding: 0.25rem 0.6rem; font-size: 0.85rem; margin: 0; }
.form-actions { display: flex; gap: 1rem; align-items: center; }
.form-warning { color: #b45309; }

/* --- Badges and chips ---------------------------------------------------------------- */
.badge, .chip, .plan-badge {
  display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.78rem;
  line-height: 1.5; border: 1px solid var(--pico-muted-border-color); white-space: nowrap; text-decoration: none;
}
.plan-badge { font-weight: 600; text-transform: capitalize; }
.plan-free { background: var(--pico-card-sectioning-background-color); }
.plan-pro { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.plan-business { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.source-badge { font-family: var(--pico-font-family-monospace); }
.source-notice { white-space: normal; margin-top: 0.25rem; background: #fef3c7; color: #92400e; border-color: #fde68a; }
.sentiment-chip.sentiment-negative, .status-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.sentiment-chip.sentiment-positive, .status-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.status-running { background: #e0f2fe; color: #075985; }
.toggle { padding: 0.2rem 0.7rem; font-size: 0.85rem; margin: 0; }
.toggle.off { background: transparent; color: var(--pico-muted-color); border-color: var(--pico-muted-border-color); }

/* --- Dashboard ------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters select { width: auto; flex: 1 1 10rem; margin-bottom: 0.5rem; }
.counts-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.count { display: flex; flex-direction: column; min-width: 6rem; padding: 0.5rem 0.8rem;
  border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
.count-num { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.count-label { font-size: 0.8rem; opacity: 0.75; }
.count-negative .count-num, .count-error .count-num { color: var(--em-negative); }
.feed { list-style: none; padding: 0; margin: 0; }
.feed .mention { list-style: none; padding: 0.75rem 0; border-bottom: 1px solid var(--pico-muted-border-color); }
.mention-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; margin-bottom: 0.25rem; }
.mention-meta time, .mention-meta .author { opacity: 0.75; }
.kw-name { font-weight: 600; }
.mention-title { font-weight: 600; }
.mention .snippet { margin: 0.25rem 0 0; font-size: 0.92rem; }
.mention .summary { margin: 0.25rem 0 0; font-size: 0.92rem; font-style: italic; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.empty-state { text-align: center; }

/* --- Sources / channels / settings -------------------------------------------------------- */
.source-card { margin-bottom: 1rem; }
.source-card.locked { opacity: 0.7; }
.source-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.5rem; }
.source-card details { margin: 0.5rem 0 0; }
.target { word-break: break-all; }
.flash-inline.flash-success { color: var(--em-positive); }
.flash-inline.flash-error { color: var(--em-negative); }
.flash-inline.flash-warning { color: #b45309; }
.upgrade-note { border-left: 4px solid var(--em-accent); }
.danger-zone { margin-top: 3rem; }
.danger-zone article { border: 1px solid var(--em-negative); }
button.danger { background: var(--em-negative); border-color: var(--em-negative); }

/* Dashboard onboarding checklist */
.getting-started { border-left: 4px solid var(--em-accent); }
.getting-started .checklist { margin-bottom: 0; }
.getting-started .checklist li.done { opacity: 0.6; }

/* --- Landing page ------------------------------------------------------------------ */
.hero { padding: 3rem 0 2rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.hero p.lead { font-size: 1.2rem; max-width: 40rem; margin: 0 auto 1.5rem; }
.hero .actions a { margin: 0.25rem; }
.landing-section { padding: 2.5rem 0 1rem; }
.landing-section > h2 { text-align: center; }
.steps { counter-reset: step; }
.steps article h3::before { counter-increment: step; content: counter(step) ". "; color: var(--em-accent); }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.sources article { margin: 0; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; align-items: stretch; }
.pricing article { display: flex; flex-direction: column; margin: 0; }
.pricing article.featured { border: 2px solid var(--em-accent); }
.pricing .price { font-size: 2.25rem; font-weight: 700; margin: 0; }
.pricing .price small { font-size: 1rem; font-weight: 400; }
.pricing ul { flex: 1; padding-left: 1.1rem; }
.pricing footer a[role=button] { width: 100%; }
.pricing .badge { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--em-accent); }
.pricing-note { text-align: center; opacity: 0.8; }
.faq details { margin-bottom: 0.5rem; }
.hero h1, .seo-hero h1, .info-card h2, .seo-page h2 { margin-top: 0; }
.hero h1, .seo-hero h1 { text-wrap: balance; }
.landing-visual { max-width: 56rem; margin: 0 auto 1.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }
.hero .eyebrow { color: var(--em-accent); font-weight: 600; margin-bottom: 0.25rem; }
.landing-section.centered { text-align: center; }
.explore ul { padding-left: 1.1rem; margin-bottom: 0; }

/* --- Brand colour for Pico components (buttons, links) -------------------------------- */
/* "html:root:not(...)" outranks Pico's own ":root:not([data-theme=dark])" theme selectors. */
html:root:not([data-theme=em-none]) {
  --pico-primary: #4f46e5; --pico-primary-background: #4f46e5; --pico-primary-border: #4f46e5;
  --pico-primary-underline: rgba(79, 70, 229, 0.5); --pico-primary-hover: #4338ca;
  --pico-primary-hover-background: #4338ca; --pico-primary-hover-border: #4338ca;
  --pico-primary-hover-underline: #4338ca; --pico-primary-focus: rgba(79, 70, 229, 0.35);
  --pico-primary-inverse: #fff;
}
@media (prefers-color-scheme: dark) {
  html:root:not([data-theme=em-none]) { --pico-primary: #a5b4fc; --pico-primary-underline: rgba(165, 180, 252, 0.5); --pico-primary-hover: #c7d2fe; --pico-primary-hover-underline: #c7d2fe; }
}

/* --- SEO pages (alternatives, sources, integrations, use cases, compare) ---------------- */
:root { --em-accent-soft: rgba(79, 70, 229, 0.08); --em-accent-line: rgba(79, 70, 229, 0.25); --em-neutral: #94a3b8; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.breadcrumbs { margin: 0.5rem 0 0; font-size: 0.875rem; }
.breadcrumbs ul { padding: 0; }
.seo-page { padding: 0; margin: 0; box-shadow: none; background: transparent; }
.seo-page h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.seo-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center;
  padding: 1.5rem 0 2.5rem; margin: 0; background: transparent; border: 0; }
.seo-hero .eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--em-accent); font-weight: 600;
  background: var(--em-accent-soft); border-radius: 999px; padding: 0.25rem 0.75rem; margin-bottom: 0.9rem; font-size: 0.9rem; }
.seo-hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
.seo-hero .lead { font-size: 1.1rem; margin-bottom: 1.5rem; }
.seo-hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.seo-hero .fineprint { opacity: 0.75; margin: 0; }
.seo-hero-visual { min-width: 0; }

.seo-section { padding: 1.5rem 0; }
.seo-band { margin: 1.5rem 0; padding: 2rem 1.5rem; border-radius: calc(var(--pico-border-radius) * 2); background: var(--em-accent-soft); }
.seo-band h2 { text-align: center; }

/* Cards with sections */
/* Two balanced columns: cards of different heights pack without half-empty boxes. */
.card-grid { columns: 2; column-gap: 1.25rem; }
.card-grid.card-grid-1 { columns: 1; }
.card-grid > .info-card { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 1.25rem; }
.info-card { margin: 0; padding: 1.5rem; }
.info-card h2 { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1.2rem; margin-bottom: 0.9rem; }
.info-card h2 .icon { color: var(--em-accent); width: 1.6rem; height: 1.6rem; padding: 0.3rem; box-sizing: content-box;
  background: var(--em-accent-soft); border-radius: 0.6rem; margin-top: -0.2rem; }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
ul.ticks { padding: 0; margin: 0 0 1rem; }
ul.ticks li { list-style: none; display: flex; gap: 0.55rem; align-items: flex-start; margin-bottom: 0.55rem; }
ul.ticks li .icon { color: var(--em-positive); margin-top: 0.15rem; }

/* Flow diagram: sources -> EchoMention -> channels */
.flow { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, 0.9fr); align-items: center; gap: 0.5rem; margin: 0;
  padding: 1.25rem 1rem; border-radius: calc(var(--pico-border-radius) * 2); background: var(--pico-card-background-color);
  box-shadow: var(--pico-card-box-shadow); }
.flow-col { display: flex; flex-direction: column; gap: 0.4rem; padding: 0; margin: 0; }
.chip { list-style: none; display: flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.3rem 0.55rem; font-size: 0.8rem; min-width: 0;
  border: 1px solid var(--pico-muted-border-color); border-radius: 999px; background: var(--pico-background-color); white-space: nowrap; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip .icon { color: var(--em-accent); width: 1.05rem; height: 1.05rem; }
.chip-on { border-color: var(--em-accent); background: var(--em-accent); color: #fff; font-weight: 600; }
.chip-on .icon { color: #fff; }
.flow-arrow { color: var(--em-accent); opacity: 0.7; }
.flow-core { text-align: center; padding: 0.9rem 0.6rem; border: 2px solid var(--em-accent); border-radius: calc(var(--pico-border-radius) * 2);
  background: var(--em-accent-soft); }
.flow-core img { max-width: 100%; height: auto; margin-bottom: 0.6rem; }
.flow-core ul { padding: 0; margin: 0; text-align: left; font-size: 0.75rem; line-height: 1.25; }
.flow-core li { list-style: none; display: flex; gap: 0.35rem; align-items: center; margin: 0.25rem 0; }
.flow-core .icon { color: var(--em-accent); width: 1rem; height: 1rem; }

/* Example digest */
.digest { margin: 0; padding: 1.25rem; border-radius: calc(var(--pico-border-radius) * 2); background: var(--pico-card-background-color);
  box-shadow: var(--pico-card-box-shadow); border-top: 4px solid var(--em-accent); }
.digest-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.85rem; }
.digest-app { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.digest-app .icon { color: var(--em-accent); }
.digest-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; }
.digest-title { margin-bottom: 0.6rem; line-height: 1.35; }
.sentbar { display: flex; height: 0.6rem; border-radius: 999px; overflow: hidden; margin-bottom: 0.4rem; }
.seg-pos { width: 35.7%; background: var(--em-positive); }
.seg-neu { width: 50%; background: var(--em-neutral); }
.seg-neg { width: 14.3%; background: var(--em-negative); }
.sentlegend { margin-bottom: 0.75rem; }
.dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin: 0 0.25rem 0 0.6rem; }
.dot:first-child { margin-left: 0; }
.dot-pos { background: var(--em-positive); } .dot-neu { background: var(--em-neutral); } .dot-neg { background: var(--em-negative); }
.digest-list { padding: 0; margin: 0; }
.digest-list li { list-style: none; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; margin: 0;
  border-top: 1px solid var(--pico-muted-border-color); font-size: 0.86rem; }
.digest-list .src { color: var(--em-accent); display: flex; }
.digest-list .txt { flex: 1; min-width: 0; }
.pill { font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.pill-pos { color: var(--em-positive); background: rgba(22, 163, 74, 0.1); }
.pill-neu { color: #64748b; background: rgba(148, 163, 184, 0.18); }
.pill-neg { color: var(--em-negative); background: rgba(220, 38, 38, 0.1); }

/* Price chart */
.pricechart { margin: 0; padding: 1.25rem 1.5rem; border-radius: calc(var(--pico-border-radius) * 2); background: var(--pico-card-background-color);
  box-shadow: var(--pico-card-box-shadow); }
.pricechart figcaption { margin-bottom: 0.75rem; opacity: 0.75; }
.pricechart ul { padding: 0; margin: 0; }
.pricechart li { list-style: none; display: grid; grid-template-columns: 9.5rem 1fr 4.2rem; gap: 0.75rem; align-items: center; margin: 0.55rem 0; }
.pc-name { font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.pc-name small { display: block; font-weight: 400; opacity: 0.7; font-size: 0.75rem; }
.pricechart progress { margin: 0; height: 0.9rem; }
.pricechart progress::-webkit-progress-value { background: var(--em-neutral); }
.pricechart progress::-moz-progress-bar { background: var(--em-neutral); }
.pricechart .pc-us progress::-webkit-progress-value { background: var(--em-accent); }
.pricechart .pc-us progress::-moz-progress-bar { background: var(--em-accent); }
.pc-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pc-us .pc-name, .pc-us .pc-val { color: var(--em-accent); }

/* Comparison tables */
.cmp { border-radius: calc(var(--pico-border-radius) * 2); overflow: hidden; box-shadow: var(--pico-card-box-shadow); }
.cmp-table { margin: 0; }
.cmp-table th, .cmp-table td { padding: 0.8rem 1rem; vertical-align: top; }
.cmp-table thead th { font-weight: 700; }
.cmp-table th[scope=row] { font-weight: 600; width: 22%; }
.cmp-table .cmp-us { background: var(--em-accent-soft); }
.cmp-table thead .cmp-us { color: var(--em-accent); }
.cmp-us-row th, .cmp-us-row td { background: var(--em-accent-soft); }
.cmp-us-row th { color: var(--em-accent); }
.source-note { margin-top: 0.75rem; opacity: 0.8; overflow-wrap: anywhere; }

/* Steps and timeline */
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; padding: 0; margin: 0; counter-reset: st; }
.steps-row li { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.step-icon { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 0.8rem;
  background: var(--em-accent); color: #fff; margin-bottom: 0.4rem; }
.step-icon .icon { width: 1.4rem; height: 1.4rem; }
.steps-row strong::before { counter-increment: st; content: counter(st) ". "; color: var(--em-accent); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; position: relative; }
.timeline li { list-style: none; position: relative; padding: 3.25rem 1rem 0 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.timeline li::before { content: ""; position: absolute; top: 1.2rem; left: 0; right: 0; height: 2px; background: var(--em-accent-line); }
.tl-dot { position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--pico-background-color); border: 2px solid var(--em-accent); color: var(--em-accent); }
.tl-hot .tl-dot { background: var(--em-negative); border-color: var(--em-negative); color: #fff; }

/* FAQ */
.faq details { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.faq details summary { font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.faq details summary::after { float: none; flex: none; margin-inline-start: 0; }
.faq details p { margin: 0.75rem 0 0; }

/* CTA and links */
.seo-cta { text-align: center; padding: 2.5rem 1.5rem; margin: 2rem 0; border-radius: calc(var(--pico-border-radius) * 2);
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.seo-cta h2 { color: #fff; margin-bottom: 0.5rem; }
.seo-cta p { color: rgba(255, 255, 255, 0.9); }
.seo-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.25rem 0 0; }
.seo-cta a[role=button].cta-light { --pico-background-color: #fff; --pico-border-color: #fff; --pico-color: #4338ca; }
.seo-cta a[role=button].cta-light:is(:hover, :focus, :active) { --pico-background-color: #e0e7ff; --pico-border-color: #e0e7ff; --pico-color: #3730a3; }
.seo-cta a[role=button].cta-ghost { --pico-background-color: transparent; --pico-border-color: rgba(255, 255, 255, 0.85); --pico-color: #fff; }
.seo-cta a[role=button].cta-ghost:is(:hover, :focus, :active) { --pico-background-color: rgba(255, 255, 255, 0.16); --pico-border-color: #fff; --pico-color: #fff; }
.seo-cta a[role=button]:focus-visible { --pico-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }
.link-cards, .hub-cards { display: grid; gap: 1rem; padding: 0; margin: 0; }
.link-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-cards { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
.link-cards li, .hub-cards li { list-style: none; margin: 0; }
.link-cards a, .hub-cards a { display: flex; gap: 0.6rem; height: 100%; padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  border: 1px solid var(--pico-muted-border-color); border-radius: calc(var(--pico-border-radius) * 1.5); background: var(--pico-card-background-color);
  transition: border-color 0.15s, box-shadow 0.15s; }
.link-cards a:hover, .hub-cards a:hover { border-color: var(--em-accent); box-shadow: var(--pico-card-box-shadow); }
.link-cards .icon { color: var(--em-accent); margin-top: 0.1rem; }
.hub-cards a { flex-direction: column; padding: 1.4rem; }
.hub-icon { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 0.8rem;
  background: var(--em-accent-soft); color: var(--em-accent); }
.hub-icon .icon { width: 1.4rem; height: 1.4rem; }
.hub-cards small { opacity: 0.8; flex: 1; }
.hub-cards .more { color: var(--em-accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 0.3rem; align-items: center; }

@media (max-width: 1024px) {
  .seo-hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .seo-page h2 { font-size: 1.3rem; }
  .flow { grid-template-columns: 1fr; padding: 1rem; }
  .flow-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .steps-row, .timeline, .link-cards { grid-template-columns: 1fr; gap: 1rem; }
  .card-grid { columns: 1; }
  .steps-row li { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 0.9rem; row-gap: 0.1rem; }
  .steps-row .step-icon { grid-row: span 2; margin: 0; }
  .timeline li { padding: 0 0 0 3.5rem; min-height: 2.75rem; }
  .timeline li::before { top: 2.5rem; bottom: -1rem; left: 1.2rem; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .pricechart { padding: 1rem; }
  .pricechart li { grid-template-columns: 6.5rem 1fr 3.6rem; gap: 0.5rem; }
  .info-card { padding: 1.15rem; }
  .seo-band { padding: 1.5rem 1rem; }
  /* Tables become stacked cards */
  .cmp { box-shadow: none; overflow: visible; }
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: 100%; }
  .cmp-table tr { margin-bottom: 0.9rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); overflow: hidden; }
  .cmp-table th[scope=row] { width: 100%; background: var(--pico-card-sectioning-background-color); }
  .cmp-table td { border-bottom: 0; }
  .cmp-table td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; opacity: 0.65; margin-bottom: 0.15rem; }
}
.sources article p { margin-bottom: 0; }
