/* SensorPulse marketing site – dark theme (default) and light theme aligned with the desktop app */

:root {
 --bg: #0f1117;
 --surface: #181b24;
 --surface-alt: #212530;
 --surface-elevated: #282d38;
 --border: #343b4d;
 --accent: #5b9aff;
 --accent-hover: #78aeff;
 --text: #eceff4;
 --text-muted: #9ca6b8;
 --text-subtle: #6b7589;
 --success: #34d399;
 --warning: #fbbf24;
 --critical: #f87171;
 --radius: 12px;
 --radius-sm: 8px;
 --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
 --max-width: 1120px;
 --header-height: 64px;
 --header-bg: color-mix(in srgb, var(--surface) 92%, transparent);
}

html[data-theme="light"] {
 --bg: #e8eaed;
 --surface: #f4f5f7;
 --surface-alt: #e9ecf1;
 --surface-elevated: #fafbfc;
 --border: #c9d0da;
 --accent: #2563eb;
 --accent-hover: #1d4ed8;
 --text: #171c26;
 --text-muted: #475467;
 --text-subtle: #667085;
 --success: #047857;
 --warning: #c2410c;
 --critical: #b91c1c;
 --shadow: 0 6px 24px rgba(52, 64, 84, 0.08);
}

html[data-theme="light"] .site-nav a.btn-primary {
 color: var(--text);
 background: var(--surface-elevated);
}

html[data-theme="light"] .site-nav a.btn-primary:hover {
 color: var(--text);
 background: var(--surface-alt);
}

*,
*::before,
*::after {
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

body {
 margin: 0;
 font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
 font-size: 16px;
 line-height: 1.6;
 color: var(--text);
 background: var(--bg);
 -webkit-font-smoothing: antialiased;
}

img {
 max-width: 100%;
 height: auto;
}

a {
 color: var(--accent);
 text-decoration: none;
 transition: color 0.15s ease;
}

a:hover {
 color: var(--accent-hover);
}

.skip-link {
 position: absolute;
 left: -9999px;
 top: 0;
 z-index: 9999;
 padding: 0.75rem 1rem;
 background: var(--accent);
 color: #fff;
}

.skip-link:focus {
 left: 1rem;
 top: 1rem;
}

.container {
 width: min(100% - 2rem, var(--max-width));
 margin-inline: auto;
}

/* Header */
.site-header {
 position: sticky;
 top: 0;
 z-index: 100;
 background: var(--header-bg);
 backdrop-filter: blur(12px);
 border-bottom: 1px solid var(--border);
}

.header-inner {
 display: flex;
 align-items: center;
 justify-content: space-between;
 min-height: var(--header-height);
 gap: 1rem;
}

.brand {
 display: flex;
 align-items: center;
 gap: 0.65rem;
 color: var(--text);
 font-weight: 700;
 font-size: 1.15rem;
}

.brand:hover {
 color: var(--text);
}

.brand-mark {
 width: 32px;
 height: 32px;
 border-radius: 8px;
 background: linear-gradient(135deg, var(--accent), #3d7ae8);
 display: grid;
 place-items: center;
 font-size: 0.85rem;
 font-weight: 800;
 color: #fff;
 flex-shrink: 0;
}

.site-nav ul {
 display: flex;
 align-items: center;
 gap: 0.25rem;
 list-style: none;
 margin: 0;
 padding: 0;
}

.site-nav a {
 display: block;
 padding: 0.5rem 0.75rem;
 border-radius: var(--radius-sm);
 color: var(--text-muted);
 font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
 color: var(--text);
 background: var(--surface-alt);
}

.nav-toggle {
 display: none;
 background: transparent;
 border: 1px solid var(--border);
 color: var(--text);
 border-radius: var(--radius-sm);
 padding: 0.45rem 0.65rem;
 cursor: pointer;
}

/* Buttons */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 padding: 0.75rem 1.35rem;
 border-radius: var(--radius-sm);
 font-weight: 600;
 font-size: 0.95rem;
 border: none;
 cursor: pointer;
 transition: background 0.15s ease, transform 0.1s ease;
 text-align: center;
}

.btn:active {
 transform: translateY(1px);
}

.site-nav a.btn-primary {
 color: #0f1117;
 background: #ffffff;
}

.site-nav a.btn-primary:hover {
 color: #0f1117;
 background: #e8ecf4;
}

.btn-primary {
 background: var(--accent);
 color: #fff;
}

.btn-primary:hover {
 background: var(--accent-hover);
 color: #fff;
}

.btn-secondary {
 background: transparent;
 color: var(--text);
 border: 1px solid var(--border);
}

.btn-secondary:hover {
 background: var(--surface-alt);
 color: var(--text);
}

.btn-lg {
 padding: 0.9rem 1.75rem;
 font-size: 1rem;
}

/* Hero */
.hero {
 padding: 4.5rem 0 3.5rem;
 background:
 radial-gradient(ellipse 80% 60% at 50% -20%, rgba(91, 154, 255, 0.18), transparent),
 var(--bg);
}

.hero-grid {
 display: grid;
 grid-template-columns: 1.1fr 0.9fr;
 gap: 3rem;
 align-items: center;
}

.hero-badge {
 display: inline-block;
 padding: 0.35rem 0.75rem;
 border-radius: 999px;
 background: var(--surface-alt);
 border: 1px solid var(--border);
 color: var(--text-muted);
 font-size: 0.85rem;
 margin-bottom: 1rem;
}

.hero h1 {
 font-size: clamp(2rem, 5vw, 3rem);
 line-height: 1.15;
 margin: 0 0 1rem;
 letter-spacing: -0.02em;
}

.hero-lead {
 font-size: 1.15rem;
 color: var(--text-muted);
 margin: 0 0 1.75rem;
 max-width: 36rem;
}

.hero-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.75rem;
 margin-bottom: 1.5rem;
}

.hero-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 1.25rem;
 font-size: 0.9rem;
 color: var(--text-subtle);
}

.hero-meta strong {
 color: var(--text-muted);
}

.hero-visual {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.25rem;
 box-shadow: var(--shadow);
}

.mock-dashboard {
 display: grid;
 gap: 0.75rem;
}

.mock-bar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding-bottom: 0.75rem;
 border-bottom: 1px solid var(--border);
}

.mock-title {
 font-weight: 700;
 font-size: 1.1rem;
}

.mock-subtitle {
 font-size: 0.8rem;
 color: var(--text-muted);
}

.mock-stats {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 0.5rem;
}

.mock-stat {
 background: var(--surface-alt);
 border-radius: var(--radius-sm);
 padding: 0.65rem;
 text-align: center;
}

.mock-stat-label {
 font-size: 0.65rem;
 color: var(--text-subtle);
 letter-spacing: 0.04em;
}

.mock-stat-value {
 font-size: 1.25rem;
 font-weight: 700;
}

.mock-stat-value.ok { color: var(--success); }
.mock-stat-value.warn { color: var(--warning); }
.mock-stat-value.crit { color: var(--critical); }

.mock-sensors {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 0.5rem;
}

.mock-sensor {
 background: var(--surface-alt);
 border: 1px solid var(--border);
 border-radius: var(--radius-sm);
 padding: 0.65rem 0.75rem;
}

.mock-sensor-name {
 font-size: 0.75rem;
 color: var(--text-muted);
}

.mock-sensor-value {
 font-size: 1.1rem;
 font-weight: 600;
}

.mock-spark {
 height: 24px;
 margin-top: 0.35rem;
 background: linear-gradient(90deg, transparent, rgba(91, 154, 255, 0.35), transparent);
 border-radius: 2px;
 opacity: 0.7;
}

/* Sections */
section {
 padding: 4rem 0;
}

.section-header {
 text-align: center;
 max-width: 42rem;
 margin: 0 auto 3rem;
}

.section-header h2 {
 font-size: clamp(1.6rem, 3vw, 2.1rem);
 margin: 0 0 0.75rem;
 letter-spacing: -0.02em;
}

.section-header p {
 margin: 0;
 color: var(--text-muted);
 font-size: 1.05rem;
}

.feature-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
 gap: 1.25rem;
}

.feature-card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.5rem;
 transition: border-color 0.15s ease;
}

.feature-card:hover {
 border-color: rgba(91, 154, 255, 0.45);
}

.feature-icon {
 width: 40px;
 height: 40px;
 border-radius: 10px;
 background: rgba(91, 154, 255, 0.15);
 color: var(--accent);
 display: grid;
 place-items: center;
 font-size: 1.2rem;
 margin-bottom: 1rem;
}

.feature-card h3 {
 margin: 0 0 0.5rem;
 font-size: 1.05rem;
}

.feature-card p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.95rem;
}

/* Steps / pricing */
.steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 1.25rem;
 counter-reset: step;
}

.step-card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.5rem;
 position: relative;
}

.step-card::before {
 counter-increment: step;
 content: counter(step);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: var(--accent);
 color: #fff;
 font-size: 0.85rem;
 font-weight: 700;
 margin-bottom: 0.75rem;
}

.step-card h3 {
 margin: 0 0 0.5rem;
 font-size: 1rem;
}

.step-card p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.92rem;
}

.step-card-media .step-screenshot {
 margin: 1rem 0 0;
}

.step-screenshot img {
 display: block;
 width: 100%;
 aspect-ratio: 16 / 10;
 object-fit: cover;
 border-radius: var(--radius-sm);
 border: 1px solid var(--border);
 cursor: zoom-in;
}

.pricing-card {
 max-width: 420px;
 margin: 0 auto;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 2rem;
 text-align: center;
 box-shadow: var(--shadow);
}

.price {
 font-size: 3rem;
 font-weight: 800;
 line-height: 1;
 margin: 0.5rem 0;
}

.price-note {
 color: var(--text-muted);
 font-size: 0.95rem;
 margin-bottom: 1.5rem;
}

.pricing-features {
 text-align: left;
 list-style: none;
 padding: 0;
 margin: 0 0 1.75rem;
}

.pricing-features li {
 padding: 0.45rem 0;
 border-bottom: 1px solid var(--border);
 color: var(--text-muted);
 font-size: 0.92rem;
}

.pricing-features li::before {
 content: "✓";
 color: var(--success);
 margin-right: 0.5rem;
 font-weight: 700;
}

.alt-bg {
 background: var(--surface);
 border-block: 1px solid var(--border);
}

.faq-list {
 max-width: 960px;
 margin: 0 auto;
}

.faq-lead {
 margin: 0 0 1rem;
 color: var(--text-subtle);
 font-size: 0.92rem;
 text-align: center;
}

.faq-filters {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 0.45rem;
 margin-bottom: 1rem;
}

.faq-filter {
 border: 1px solid var(--border);
 border-radius: 999px;
 background: var(--surface);
 color: var(--text-muted);
 cursor: pointer;
 font-size: 0.85rem;
 padding: 0.35rem 0.85rem;
 transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.faq-filter:hover {
 border-color: var(--accent);
 color: var(--text);
}

.faq-filter.is-active {
 background: rgba(91, 154, 255, 0.12);
 border-color: rgba(91, 154, 255, 0.45);
 color: var(--text);
 font-weight: 600;
}

.faq-groups {
 display: flex;
 flex-direction: column;
 gap: 0.65rem;
}

.faq-group.is-hidden {
 display: none;
}

.faq-group-items {
 display: grid;
 grid-template-columns: 1fr;
 gap: 0.35rem;
 padding: 0.65rem;
}

@media (min-width: 768px) {
 .faq-group-items {
 grid-template-columns: 1fr 1fr;
 gap: 0.35rem 0.65rem;
 }
}

.faq-item {
 border-bottom: 1px solid var(--border);
 padding: 1.25rem 0;
}

.faq-item h3 {
 margin: 0 0 0.5rem;
 font-size: 1rem;
}

.faq-item p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.95rem;
}

.legal-notice {
 background: rgba(251, 191, 36, 0.08);
 border: 1px solid rgba(251, 191, 36, 0.35);
 border-radius: var(--radius-sm);
 padding: 1rem 1.25rem;
 margin-bottom: 2rem;
 font-size: 0.92rem;
 color: var(--text-muted);
}

.legal-notice strong {
 color: var(--warning);
}

/* Legal pages */
.page-hero {
 padding: 3rem 0 2rem;
 border-bottom: 1px solid var(--border);
}

.page-hero h1 {
 margin: 0 0 0.5rem;
 font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-hero p {
 margin: 0;
 color: var(--text-muted);
}

.legal-content {
 padding: 2.5rem 0 4rem;
}

.legal-content h2 {
 font-size: 1.25rem;
 margin: 2rem 0 0.75rem;
}

.legal-content h3 {
 font-size: 1.05rem;
 margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
 color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
 padding-left: 1.25rem;
}

.legal-updated {
 color: var(--text-muted);
 margin-bottom: 1.5rem;
 font-size: 0.95rem;
}

.legal-link-list li {
 margin-bottom: 0.35rem;
}

.legal-form-block {
 background: var(--card-bg, rgba(255, 255, 255, 0.04));
 border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
 border-radius: 8px;
 padding: 1rem 1.25rem;
 margin: 1rem 0 1.5rem;
}

.placeholder {
 background: rgba(91, 154, 255, 0.1);
 border: 1px dashed rgba(91, 154, 255, 0.45);
 border-radius: 4px;
 padding: 0 0.35rem;
 color: var(--accent-hover);
 font-family: Consolas, monospace;
 font-size: 0.9em;
}

/* Footer */
.site-footer {
 background: var(--surface);
 border-top: 1px solid var(--border);
 padding: 3rem 0 2rem;
 margin-top: auto;
}

.footer-grid {
 display: grid;
 grid-template-columns: 1.5fr repeat(3, 1fr);
 gap: 2rem;
 margin-bottom: 2rem;
}

.social-links {
 list-style: none;
 padding: 0;
 margin: 0;
}

.social-links li {
 margin-bottom: 0.4rem;
}

.social-links a {
 display: inline-flex;
 align-items: center;
 gap: 0.45rem;
 color: var(--text-muted);
 font-size: 0.92rem;
}

.social-links a:hover {
 color: var(--text);
}

.social-icon {
 width: 1.05rem;
 height: 1.05rem;
 flex-shrink: 0;
}

.social-follow {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.75rem 1rem;
 margin-top: 1.25rem;
}

.social-follow-label {
 color: var(--text-muted);
 font-size: 0.88rem;
 font-weight: 600;
 letter-spacing: 0.02em;
 text-transform: uppercase;
}

.social-icons {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.social-icon-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 2.25rem;
 height: 2.25rem;
 border-radius: var(--radius-sm);
 border: 1px solid var(--border);
 color: var(--text-muted);
 background: rgba(255, 255, 255, 0.03);
 transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-icon-link .social-icon {
 width: 1.1rem;
 height: 1.1rem;
}

.social-icon-link:hover {
 color: var(--text);
 border-color: rgba(255, 255, 255, 0.22);
 background: rgba(255, 255, 255, 0.06);
}

.footer-brand p {
 color: var(--text-muted);
 font-size: 0.92rem;
 margin: 0.75rem 0 0;
 max-width: 22rem;
}

.footer-col h4 {
 margin: 0 0 0.75rem;
 font-size: 0.85rem;
 text-transform: uppercase;
 letter-spacing: 0.06em;
 color: var(--text-subtle);
}

.footer-col ul {
 list-style: none;
 padding: 0;
 margin: 0;
}

.footer-col li {
 margin-bottom: 0.4rem;
}

.footer-col a {
 color: var(--text-muted);
 font-size: 0.92rem;
}

.footer-col a:hover {
 color: var(--text);
}

.footer-bottom {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 gap: 0.75rem;
 padding-top: 1.5rem;
 border-top: 1px solid var(--border);
 font-size: 0.85rem;
 color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 860px) {
 .hero-grid {
 grid-template-columns: 1fr;
 }

 .hero-visual {
 order: -1;
 }

 .footer-grid {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 720px) {
 .nav-toggle {
 display: block;
 }

 .site-nav {
 position: absolute;
 top: var(--header-height);
 left: 0;
 right: 0;
 background: var(--surface);
 border-bottom: 1px solid var(--border);
 padding: 0.75rem 1rem 1rem;
 display: none;
 }

 .site-nav.is-open {
 display: block;
 }

 .site-nav ul {
 flex-direction: column;
 align-items: stretch;
 }

 .site-nav a {
 padding: 0.75rem;
 }

 .mock-stats {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (prefers-reduced-motion: reduce) {
 html {
 scroll-behavior: auto;
 }

 *,
 *::before,
 *::after {
 transition: none !important;
 }
}

/* Download page */
.download-section {
 padding: 2.5rem 0 4rem;
}

.download-grid {
 display: grid;
 grid-template-columns: 1.2fr 0.8fr;
 gap: 1.5rem;
 align-items: start;
}

.download-panel {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 2rem;
 box-shadow: var(--shadow);
}

.download-panel h2 {
 margin: 0.75rem 0 0.75rem;
 font-size: 1.5rem;
}

.download-lead {
 color: var(--text-muted);
 margin: 0 0 1.5rem;
}

.download-button {
 width: 100%;
 margin-bottom: 1.5rem;
}

.download-meta {
 display: grid;
 gap: 0.75rem;
 margin: 0 0 1.25rem;
 padding: 1rem;
 background: var(--surface-alt);
 border-radius: var(--radius-sm);
 border: 1px solid var(--border);
}

.download-meta div {
 display: grid;
 grid-template-columns: 7rem 1fr;
 gap: 0.5rem;
 align-items: baseline;
}

.download-meta dt {
 margin: 0;
 font-size: 0.8rem;
 text-transform: uppercase;
 letter-spacing: 0.04em;
 color: var(--text-subtle);
}

.download-meta dd {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.92rem;
}

.download-meta code {
 font-family: Consolas, "Courier New", monospace;
 font-size: 0.88em;
 color: var(--text);
 word-break: break-all;
}

.hash-value {
 font-size: 0.82rem !important;
}

.download-note {
 margin: 0;
 font-size: 0.92rem;
 color: var(--text-muted);
}

.download-aside {
 display: grid;
 gap: 1rem;
}

.install-options {
 display: grid;
 gap: 1rem;
}

.install-options h4 {
 margin: 0 0 0.35rem;
 font-size: 0.95rem;
 color: var(--text);
}

.install-steps,
.check-list {
 margin: 0;
 padding-left: 1.2rem;
 color: var(--text-muted);
 font-size: 0.92rem;
}

.install-steps li,
.check-list li {
 margin-bottom: 0.4rem;
}

.install-steps code,
.check-list code {
 font-family: Consolas, monospace;
 font-size: 0.88em;
}

@media (max-width: 860px) {
 .download-grid {
 grid-template-columns: 1fr;
 }

 .download-meta div {
 grid-template-columns: 1fr;
 gap: 0.15rem;
 }
}

.installer-section {
 padding: 3rem 0 4rem;
}

.installer-intro {
 max-width: 52rem;
 margin: 0 auto 2rem;
 text-align: center;
 color: var(--text-muted);
 line-height: 1.6;
}

.installer-grid {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 1.5rem;
 margin-bottom: 2rem;
}

.installer-card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.75rem;
 box-shadow: var(--shadow);
}

.installer-card h3 {
 margin: 0.75rem 0 0.5rem;
 font-size: 1.25rem;
}

.installer-card > p {
 margin: 0 0 1rem;
 color: var(--text-muted);
 font-size: 0.95rem;
}

.installer-badge {
 display: inline-block;
}

.installer-badge--offline {
 background: var(--success-muted, rgba(4, 108, 78, 0.15));
 color: var(--success, #046c4e);
}

.installer-button {
 width: 100%;
 margin-top: 0.5rem;
}

.installer-filename {
 margin: 0.75rem 0 0;
 text-align: center;
 font-size: 0.85rem;
 color: var(--text-subtle);
}

.installer-compare {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.5rem 2rem;
}

.installer-compare h3 {
 margin: 0 0 1rem;
 font-size: 1.1rem;
}

.installer-compare-list {
 display: grid;
 gap: 1rem;
 margin: 0;
}

.installer-compare-list div {
 display: grid;
 grid-template-columns: 11rem 1fr;
 gap: 0.75rem;
 align-items: start;
}

.installer-compare-list dt {
 margin: 0;
 font-size: 0.8rem;
 text-transform: uppercase;
 letter-spacing: 0.04em;
 color: var(--text-subtle);
}

.installer-compare-list dd {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.92rem;
 line-height: 1.5;
}

.download-grid--installers {
  align-items: start;
}

.installer-primary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.installer-card--featured {
  height: 100%;
}

.manuals-section {
 padding: 3rem 0;
}

.manuals-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
 gap: 1.25rem;
 margin-top: 1.5rem;
}

.language-packs-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
 gap: 1rem;
 margin-top: 1.25rem;
}

.language-pack-card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.25rem 1.15rem;
 display: flex;
 flex-direction: column;
 gap: 0.65rem;
}

.installer-bundled-info {
 margin-bottom: 1.25rem;
}

.manual-card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 1.5rem 1.35rem;
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
 transition: border-color 0.15s ease, transform 0.15s ease;
}

.manual-card:hover {
 border-color: var(--accent);
 transform: translateY(-2px);
}

.manual-card-badge {
 display: inline-flex;
 align-self: flex-start;
 padding: 0.2rem 0.65rem;
 border-radius: 999px;
 background: rgba(91, 154, 255, 0.15);
 color: var(--accent);
 font-size: 0.8rem;
 font-weight: 700;
 letter-spacing: 0.04em;
}

.manual-card h3 {
 margin: 0;
 font-size: 1.2rem;
}

.manual-card p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.95rem;
 flex: 1;
}

.manual-card-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.65rem;
 margin-top: 0.35rem;
}

.manual-card-actions .btn {
 flex: 1 1 auto;
 min-width: 9rem;
 text-align: center;
 justify-content: center;
}

.manual-print-hint {
 text-align: center;
 color: var(--text-subtle);
 font-size: 0.9rem;
 margin: 1.5rem 0 0;
}

@media (max-width: 640px) {
 .manual-card-actions {
  flex-direction: column;
 }
 .manual-card-actions .btn {
  width: 100%;
 }
}

@media (max-width: 860px) {
 .installer-grid {
 grid-template-columns: 1fr;
 }

 .installer-compare-list div {
 grid-template-columns: 1fr;
 gap: 0.25rem;
 }
}

/* Layout polish & responsive enhancements */
html {
 height: 100%;
}

body {
 min-height: 100%;
 display: flex;
 flex-direction: column;
}

main {
 flex: 1 0 auto;
}

.site-header {
 position: sticky;
}

.header-inner {
 position: relative;
}

.header-end {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.brand-icon {
 width: 32px;
 height: 32px;
 border-radius: 8px;
 flex-shrink: 0;
}

.lang-toggle {
 background: transparent;
 border: 1px solid var(--border);
 color: var(--text-muted);
 border-radius: var(--radius-sm);
 padding: 0.45rem 0.75rem;
 font-size: 0.85rem;
 font-weight: 600;
 cursor: pointer;
 white-space: nowrap;
 transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover,
.theme-toggle:hover {
 color: var(--text);
 background: var(--surface-alt);
 border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.theme-toggle {
 background: transparent;
 border: 1px solid var(--border);
 color: var(--text-muted);
 border-radius: var(--radius-sm);
 padding: 0.45rem 0.75rem;
 font-size: 0.85rem;
 font-weight: 600;
 cursor: pointer;
 white-space: nowrap;
 transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hero-screenshot {
 margin: 0;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 0.75rem;
 box-shadow: var(--shadow);
 overflow: hidden;
}

.hero-screenshot img,
.screenshot-card img,
.detail-media img,
.step-screenshot img {
 display: block;
 width: 100%;
 max-height: 280px;
 aspect-ratio: 16 / 9;
 object-fit: contain;
 background: transparent;
 border-radius: var(--radius-sm);
 cursor: zoom-in;
}

.hero-screenshot figcaption,
.screenshot-card figcaption {
 margin-top: 0.75rem;
 font-size: 0.92rem;
 color: var(--text-muted);
}

.screenshot-card figcaption strong {
 display: block;
 color: var(--text);
 margin-bottom: 0.25rem;
}

.screenshots-subtitle {
 margin: 2rem 0 0.35rem;
 font-size: 1.15rem;
 color: var(--text);
}

.screenshot-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
 gap: 1.25rem;
}

.carousel-host {
 position: relative;
 margin-top: 0.5rem;
}

.carousel {
 position: relative;
 outline: none;
 padding: 0 2.75rem;
}

.carousel:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 4px;
 border-radius: var(--radius-sm);
}

.carousel-viewport {
 overflow: hidden;
 border-radius: var(--radius);
 width: 100%;
 touch-action: pan-y pinch-zoom;
}

.carousel-track {
 display: flex;
 transition: transform 0.35s ease;
 will-change: transform;
 width: 100%;
}

.carousel-slide {
 flex: 0 0 100%;
 width: 100%;
 min-width: 100%;
 max-width: 100%;
 box-sizing: border-box;
}

.carousel-btn {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 z-index: 2;
 width: 2.5rem;
 height: 2.5rem;
 border: 1px solid var(--border);
 border-radius: 999px;
 background: var(--surface-elevated);
 color: var(--text);
 cursor: pointer;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-size: 1rem;
 line-height: 1;
 box-shadow: var(--shadow);
 transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.carousel-btn:hover {
 background: var(--surface-alt);
 border-color: var(--accent);
}

.carousel-btn:disabled {
 opacity: 0.35;
 cursor: default;
}

.carousel-btn-prev {
 left: 0;
}

.carousel-btn-next {
 right: 0;
}

.carousel-footer {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 1rem;
 margin-top: 1rem;
 flex-wrap: wrap;
}

.carousel-counter {
 font-size: 0.9rem;
 color: var(--text-muted);
 min-width: 4.5rem;
 text-align: center;
}

.carousel-dots {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 0.4rem;
 max-width: 100%;
}

.carousel-dot {
 width: 0.55rem;
 height: 0.55rem;
 border: 0;
 border-radius: 999px;
 padding: 0;
 background: var(--border);
 cursor: pointer;
 transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dot.is-active {
 background: var(--accent);
 transform: scale(1.2);
}

.details-carousel-host .detail-block {
 border-bottom: none;
 padding: 0.5rem 0 0;
}

.details-carousel-host .carousel {
 padding-bottom: 0.25rem;
}

.feature-category .carousel-host .feature-card {
 height: 100%;
}

.feature-category .carousel-host .carousel-slide {
 padding: 0 0.35rem;
}

.screenshot-card {
 margin: 0;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 padding: 0.75rem;
 transition: border-color 0.15s ease, transform 0.15s ease;
}

.screenshot-card:hover {
 border-color: rgba(91, 154, 255, 0.45);
}

.detail-block {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 2rem;
 align-items: stretch;
 padding: 2rem 0;
 border-bottom: 1px solid var(--border);
}

.detail-block:last-child {
 border-bottom: none;
}

.detail-block-reverse .detail-media {
 order: -1;
}

.detail-aside {
 display: flex;
 flex-direction: column;
 min-height: 0;
 align-self: stretch;
}

.detail-heading {
 margin: 0 0 0.5rem;
 font-size: 1.2rem;
 line-height: 1.3;
 flex-shrink: 0;
}

.detail-teaser {
 margin: 0 0 0.75rem;
 color: var(--text-muted);
 font-size: 0.92rem;
 line-height: 1.45;
 flex: 1 1 auto;
 min-height: 0;
 overflow: hidden;
}

.detail-copy h3 {
 margin: 0 0 0.75rem;
 font-size: 1.2rem;
}

.detail-copy p {
 margin: 0 0 1rem;
 color: var(--text-muted);
}

.detail-list {
 margin: 0;
 padding-left: 1.2rem;
 color: var(--text-muted);
}

.detail-list li {
 margin-bottom: 0.45rem;
}

.detail-media {
 margin: 0;
}

.spec-table-wrap {
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 border: 1px solid var(--border);
 border-radius: var(--radius);
 background: var(--surface);
}

.spec-table {
 width: 100%;
 min-width: 520px;
 border-collapse: collapse;
}

.spec-table th,
.spec-table td {
 padding: 0.85rem 1rem;
 text-align: left;
 border-bottom: 1px solid var(--border);
 vertical-align: top;
}

.spec-table th {
 background: var(--surface-alt);
 font-size: 0.85rem;
 text-transform: uppercase;
 letter-spacing: 0.04em;
 color: var(--text-subtle);
}

.spec-table td {
 color: var(--text-muted);
 font-size: 0.95rem;
}

.spec-table tr:last-child td {
 border-bottom: none;
}

.spec-table kbd {
 display: inline-block;
 padding: 0.15rem 0.45rem;
 border-radius: 4px;
 border: 1px solid var(--border);
 background: var(--surface-alt);
 font-family: Consolas, monospace;
 font-size: 0.85em;
 color: var(--text);
}

.shortcuts-footnote {
 margin: 1rem 0 0;
 text-align: center;
 color: var(--text-subtle);
 font-size: 0.9rem;
}

.compact-section {
 padding-block: 2.5rem;
}

.section-header-compact {
 margin-bottom: 1.25rem;
}

.section-header-compact h2 {
 margin-bottom: 0.35rem;
}

.section-header-compact p {
 margin: 0;
 max-width: 52rem;
}

.compact-section .detail-block {
 padding: 1rem 0;
}

.collapse-panel {
 border: 1px solid var(--border);
 border-radius: var(--radius-sm);
 background: var(--surface);
 margin-bottom: 0.75rem;
 overflow: hidden;
}

.collapse-panel > summary {
 cursor: pointer;
 list-style: none;
 padding: 0.85rem 1rem;
 font-weight: 600;
 font-size: 0.98rem;
 color: var(--text);
 user-select: none;
}

.collapse-panel > summary::-webkit-details-marker {
 display: none;
}

.collapse-panel > summary::after {
 content: "+";
 float: right;
 font-weight: 400;
 color: var(--text-subtle);
}

.collapse-panel[open] > summary::after {
 content: "−";
}

.collapse-panel[open] > summary {
 border-bottom: 1px solid var(--border);
 background: var(--surface-alt);
}

.shortcuts-groups .collapse-panel:last-of-type {
 margin-bottom: 0;
}

.spec-table-compact th,
.spec-table-compact td {
 padding: 0.55rem 0.75rem;
 font-size: 0.88rem;
}

.tech-panel > summary {
 font-size: 1rem;
}

.tech-grid-compact {
 gap: 0.75rem;
 padding: 0.75rem;
}

.tech-grid-compact .feature-card {
 padding: 0.85rem 1rem;
}

.tech-grid-compact .feature-card h3 {
 font-size: 0.95rem;
 margin-bottom: 0.35rem;
}

.tech-grid-compact .feature-card p {
 font-size: 0.88rem;
 margin: 0;
}

.detail-block .detail-panel {
 margin-bottom: 0;
 margin-top: auto;
 flex-shrink: 0;
 align-self: stretch;
}

.detail-block .detail-panel > summary {
 font-size: 0.9rem;
 font-weight: 500;
}

.detail-block .detail-panel[open] {
 flex-shrink: 0;
}

.detail-block:has(.detail-panel[open]) {
 align-items: start;
}

.detail-block .detail-panel .detail-copy {
 padding: 0.75rem 1rem 1rem;
}

.compact-toolbar {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.75rem;
 margin-bottom: 1rem;
}

.compact-toolbar-actions {
 display: flex;
 gap: 0.5rem;
 margin-left: auto;
}

.faq-search {
 flex: 1 1 220px;
 min-width: 0;
 padding: 0.55rem 0.85rem;
 border: 1px solid var(--border);
 border-radius: var(--radius-sm);
 background: var(--surface);
 color: var(--text);
 font-size: 0.95rem;
}

.btn-text {
 background: none;
 border: none;
 color: var(--accent);
 cursor: pointer;
 font-size: 0.9rem;
 padding: 0.35rem 0.5rem;
 text-decoration: underline;
 text-underline-offset: 2px;
}

.btn-text:hover {
 opacity: 0.85;
}

.visually-hidden {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}

.hidden {
 display: none !important;
}

.faq-accordion .faq-item {
 border: 1px solid var(--border);
 border-radius: var(--radius-sm);
 margin-bottom: 0;
 padding: 0;
 overflow: hidden;
 background: var(--surface-alt);
}

.faq-accordion .faq-item > summary {
 cursor: pointer;
 list-style: none;
 padding: 0.5rem 0.65rem;
 font-weight: 600;
 font-size: 0.86rem;
 line-height: 1.35;
}

.faq-accordion .faq-item > summary::-webkit-details-marker {
 display: none;
}

.faq-accordion .faq-item > summary::after {
 content: "+";
 float: right;
 font-weight: 400;
 color: var(--text-subtle);
}

.faq-accordion .faq-item[open] > summary::after {
 content: "−";
}

.faq-accordion .faq-item[open] > summary {
 border-bottom: 1px solid var(--border);
 background: var(--surface-alt);
}

.faq-accordion .faq-answer {
 padding: 0.5rem 0.65rem 0.65rem;
}

.faq-accordion .faq-answer p {
 margin: 0;
 font-size: 0.88rem;
 line-height: 1.45;
}

.faq-group > summary {
 font-size: 1rem;
}

.faq-empty {
 text-align: center;
 color: var(--text-subtle);
 font-size: 0.92rem;
 margin: 0.5rem 0 1rem;
}

.faq-accordion .faq-item.is-hidden {
 display: none;
}

.lic-year {
 margin-top: 2rem;
 padding: 1.25rem 1.5rem;
 background: var(--surface);
 border: 1px solid var(--border);
 border-left: 4px solid var(--accent);
 border-radius: var(--radius);
}

.lic-recovery {
 margin-top: 1.5rem;
 padding: 1.25rem 1.5rem;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
}

.lic-recovery h3 {
 margin: 0 0 0.5rem;
}

.lic-recovery > p {
 margin: 0 0 1rem;
 color: var(--text-muted);
 font-size: 0.95rem;
}

.license-resend-form {
 display: grid;
 gap: 0.85rem;
 max-width: 520px;
}

.license-resend-field {
 display: grid;
 gap: 0.35rem;
}

.license-resend-field span {
 font-size: 0.85rem;
 color: var(--text-subtle);
}

.license-resend-field input {
 padding: 0.55rem 0.75rem;
 border: 1px solid var(--border);
 border-radius: var(--radius-sm);
 background: var(--surface-alt);
 color: var(--text);
 font-size: 0.95rem;
}

.license-resend-status {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.92rem;
}

.license-resend-status:not(.hidden) {
 margin-top: 0.25rem;
}

.lic-year h3 {
 margin: 0 0 0.5rem;
 font-size: 1.05rem;
}

.lic-year p {
 margin: 0;
 color: var(--text-muted);
 line-height: 1.6;
}

.lic-premium {
 margin-top: 2rem;
 padding: 1.5rem;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
}

.lic-premium h3 {
 margin: 0 0 0.5rem;
}

.lic-premium-trial {
 margin: 1rem 0 0;
 color: var(--text-subtle);
 font-size: 0.92rem;
}

.license-paypal {
 margin-top: 2rem;
 padding: 1.5rem;
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 text-align: center;
}

.license-paypal--compact {
 margin-top: 1.25rem;
 padding: 1.25rem;
 text-align: left;
}

.license-withdrawal-consent {
 display: flex;
 gap: 0.65rem;
 align-items: flex-start;
 margin: 0 0 1rem;
 text-align: left;
 cursor: pointer;
 font-size: 0.92rem;
 line-height: 1.55;
 color: var(--text);
}

.license-withdrawal-consent-input {
 flex: 0 0 auto;
 margin: 0.2rem 0 0;
 width: 1rem;
 height: 1rem;
 accent-color: var(--accent);
}

.license-withdrawal-consent-text a {
 color: var(--accent);
}

.license-paypal-note {
 margin: 0.85rem 0 0;
 color: var(--text-muted);
 font-size: 0.92rem;
 line-height: 1.55;
}

.license-paypal-hint {
 margin: 0.65rem 0 0;
 color: var(--text-subtle);
 font-size: 0.88rem;
 line-height: 1.5;
}

.license-paypal-mail {
 display: inline-block;
 margin-top: 0.75rem;
 color: var(--accent);
 font-size: 0.92rem;
 font-weight: 600;
}

.license-paypal-mail:hover {
 color: var(--accent-hover);
}

.btn-paypal {
 background: #0070ba;
 color: #fff;
 border: none;
}

.btn-paypal:hover {
 background: #003087;
 color: #fff;
}

.btn-paypal--gated,
.btn-paypal--gated:hover {
 background: #6b7c8f;
 color: rgba(255, 255, 255, 0.92);
 cursor: not-allowed;
 pointer-events: none;
}

/* Lightbox */
.lightbox {
 position: fixed;
 inset: 0;
 z-index: 1000;
 display: grid;
 place-items: center;
 padding: 1rem;
}

.lightbox[hidden] {
 display: none !important;
}

.lightbox-backdrop {
 position: absolute;
 inset: 0;
 background: rgba(8, 10, 14, 0.88);
 backdrop-filter: blur(4px);
}

.lightbox-dialog {
 position: relative;
 z-index: 1;
 width: min(96vw, 1920px);
 max-height: calc(100vh - 2rem);
 display: flex;
 flex-direction: column;
}

.lightbox-figure {
 margin: 0;
 display: flex;
 flex-direction: column;
 min-height: 0;
}

.lightbox-image {
 width: 100%;
 max-height: calc(100vh - 6rem);
 object-fit: contain;
 border-radius: var(--radius-sm);
 background: transparent;
}

.lightbox-caption {
 margin-top: 0.75rem;
 color: var(--text-muted);
 font-size: 0.95rem;
 text-align: center;
}

.lightbox-close {
 position: absolute;
 top: -0.25rem;
 right: 0;
 width: 2.5rem;
 height: 2.5rem;
 border: 1px solid var(--border);
 border-radius: 999px;
 background: var(--surface);
 color: var(--text);
 font-size: 1.5rem;
 line-height: 1;
 cursor: pointer;
 z-index: 2;
}

.lightbox-nav {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 width: 2.75rem;
 height: 2.75rem;
 border: 1px solid var(--border);
 border-radius: 999px;
 background: var(--header-bg);
 color: var(--text);
 font-family: "Segoe MDL2 Assets", sans-serif;
 font-size: 1.4rem;
 cursor: pointer;
 z-index: 2;
}

.lightbox-nav[hidden] {
 display: none;
}

.lightbox-counter {
 margin: 0.35rem 0 0;
 color: var(--text-muted);
 font-size: 0.85rem;
 text-align: center;
}

.lightbox-counter[hidden] {
 display: none;
}

.lightbox-nav:hover {
 background: var(--surface-elevated);
}

.lightbox-nav-prev {
 left: 0.5rem;
}

.lightbox-nav-next {
 right: 0.5rem;
}

body.lightbox-open {
 overflow: hidden;
}

.legal-content {
 max-width: 48rem;
}

@media (max-width: 1024px) {
 .footer-grid {
 grid-template-columns: 1.2fr 1fr 1fr;
 }

 .footer-grid .footer-col:last-child {
 grid-column: 1 / -1;
 }
}

@media (max-width: 900px) {
 .detail-block,
 .detail-block-reverse {
 grid-template-columns: 1fr;
 }

 .detail-block-reverse .detail-media {
 order: -1;
 }

 .detail-aside {
 height: auto;
 }

 .detail-teaser {
 overflow: visible;
 flex: none;
 }
}

@media (max-width: 720px) {
 .compact-toolbar {
 flex-direction: column;
 align-items: stretch;
 }

 .compact-toolbar-actions {
 margin-left: 0;
 justify-content: flex-end;
 }

 .header-end {
 gap: 0.35rem;
 }

 .lang-toggle,
 .theme-toggle {
 padding: 0.4rem 0.55rem;
 font-size: 0.8rem;
 }

 .hero {
 padding-top: 3rem;
 }

 .hero-meta {
 flex-direction: column;
 align-items: flex-start;
 gap: 0.65rem;
 }

 .hero-actions {
 flex-direction: column;
 align-items: stretch;
 }

 .hero-actions .btn {
 width: 100%;
 }

 .site-nav .btn {
 width: 100%;
 margin-top: 0.35rem;
 }

 section {
 padding: 3rem 0;
 }

 .page-hero {
 padding: 2.25rem 0 1.5rem;
 }

 .footer-bottom {
 flex-direction: column;
 align-items: flex-start;
 }
}

@media (max-width: 480px) {
 .container {
 width: min(100% - 1.25rem, var(--max-width));
 }

 .download-panel {
 padding: 1.25rem;
 }

 .feature-card {
 padding: 1.15rem;
 }
}

/* Feature category sections (comparison-style layout) */
.feature-compare-intro {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.feature-category {
  margin-bottom: 2.75rem;
}

.feature-category:last-child {
  margin-bottom: 0;
}

.feature-category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.feature-category-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.feature-category-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.feature-category .feature-grid {
  margin-top: 0;
}

@media (max-width: 720px) {
  .feature-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Operator dashboard (capfu.html) */
.capfu-section {
  padding: 2rem 0 4rem;
}

.capfu-panel {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.capfu-login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.capfu-login-form label {
  font-weight: 600;
}

.capfu-login-form input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.capfu-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.capfu-error {
  margin: 0.75rem 0 0;
  color: #f87171;
}

.capfu-dashboard {
  display: grid;
  gap: 1.5rem;
}

.capfu-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.capfu-toolbar-meta {
  display: grid;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.capfu-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.capfu-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.capfu-status--success {
  border-color: #166534;
  background: rgba(22, 101, 52, 0.15);
}

.capfu-status--error {
  border-color: #991b1b;
  background: rgba(153, 27, 27, 0.15);
}

.capfu-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}

.capfu-stat-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid;
  gap: 0.35rem;
}

.capfu-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.capfu-stat-value {
  font-size: 1.5rem;
  line-height: 1.2;
}

.capfu-stat-value--small {
  font-size: 0.95rem;
  font-weight: 600;
}

.capfu-notes {
  display: grid;
  gap: 0.5rem;
}

.capfu-note {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.capfu-table-wrap h2 {
  margin-bottom: 0.35rem;
}

.capfu-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.capfu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.capfu-table th,
.capfu-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.capfu-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--bg);
}

.capfu-table tbody tr:last-child td {
  border-bottom: none;
}

.capfu-key {
  font-size: 0.78rem;
  word-break: break-all;
}

.capfu-muted {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .capfu-toolbar-actions {
    width: 100%;
  }

  .capfu-toolbar-actions .btn {
    flex: 1 1 auto;
  }
}

/* Compact marketing pages: verbose sections stay in DOM for anchors/SEO */
body[data-page="index"] #details,
body[data-page="index"] #shortcuts,
body[data-page="index"] #technik,
body[data-page="index"] #anforderungen {
  display: none;
}

body[data-page="index"] .evolution-list {
  max-width: 52rem;
  margin: 0 auto;
}

body[data-page="download"] .download-aside .feature-card:nth-child(n+2) {
  display: none;
}

.manuals-section + .manuals-section {
  padding-top: 0;
}

.manuals-section-sub .section-header {
  margin-top: 0;
}

/* Download page: stacked installers and readable compare list on phones */
@media (max-width: 900px) {
  body[data-page="download"] .download-grid--installers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body[data-page="download"] .installer-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="download"] .installer-card {
    min-width: 0;
  }

  body[data-page="download"] .installer-button {
    width: 100%;
    text-align: center;
  }

  body[data-page="download"] .installer-compare-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="download"] .download-hero {
    padding: 1.5rem 1rem 1rem;
  }

  body[data-page="download"] .installer-filename code {
    word-break: break-all;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}
