/* Color Palette (Light Mode) */
:root {
    color-scheme: light;
    --page-bg: #E8EEF6;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-secondary: #F1F5F9;
    --border: #D8E2EF;
    --text: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --accent: #0B7CFF;
    --accent-hover: #2563EB;
    --success: #16A34A;
    --warning: #F59E0B;
    --shell-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
    --surface-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 1320px;
    min-height: 100vh;
    margin: 0 auto;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    box-shadow: var(--shell-shadow);
}

html {
    background: linear-gradient(180deg, var(--page-bg) 0%, #F3F6FA 100%);
    overflow-y: scroll;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Layout */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.header-inner {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.logo-link {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    grid-column: 1;
    justify-self: start;
}

.logo {
    height: 36px;
}

.logo-dark {
    display: none;
}

.primary-nav {
    flex: 1 1 auto;
    grid-column: 2;
    justify-self: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    align-items: center;
    border-radius: 8px;
    color: var(--text-secondary);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    min-height: 38px;
    padding: 0 12px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: var(--surface-secondary);
    color: var(--accent);
}

.nav-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    grid-column: 3;
    justify-self: end;
}

.mobile-menu {
    display: none;
    position: relative;
}

.theme-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    width: 38px;
    z-index: 2;
}

.theme-toggle:hover {
    background: var(--surface-secondary);
    color: var(--accent);
}

.theme-icon {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.theme-icon-sun {
    display: none;
}

.theme-icon-moon {
    display: block;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    transition: border-color 0.15s, background 0.15s;
}

.menu-toggle::-webkit-details-marker {
    display: none;
}

.menu-toggle:hover {
    border-color: var(--text-muted);
    background: var(--surface-secondary);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    transition: transform 0.15s, top 0.15s;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.mobile-menu[open] .menu-icon {
    background: transparent;
}

.mobile-menu[open] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu[open] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(260px, calc(100vw - 36px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--surface-shadow);
    padding: 8px;
    display: grid;
    gap: 2px;
    z-index: 120;
}

.mobile-menu-panel a {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.mobile-menu-panel a:hover {
    background: var(--surface-secondary);
    color: var(--text);
}

/* Buttons */
.btn-ghost {
    display: inline-block;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

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

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.btn-primary.nav-cta {
    padding: 9px 20px;
    font-size: 14px;
}

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

.btn-primary.large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

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

.btn-secondary.large {
    padding: 14px 32px;
    font-size: 16px;
}

.inline-link {
    color: var(--accent);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    margin-top: 16px;
    text-decoration: none;
}

.inline-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Focus States (Plan 003 Section 10) */
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-secondary:focus-visible,
.inline-link:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.mobile-menu-panel a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Hero */
.hero {
    background: var(--bg);
    padding: 96px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-text p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 24px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-proof-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin-top: 28px;
}

.hero-proof-list li {
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 22px;
    position: relative;
}

.hero-proof-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Product Mock Frame */
.product-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

.browser-bar {
    display: flex;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-secondary);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.45;
}

.mock-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.mock-toolbar span {
    color: var(--text-secondary);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.mock-toolbar .toolbar-brand {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.mock-grid {
    display: grid;
    padding: 16px;
    gap: 8px;
}

.mock-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
    gap: 8px;
}

.mock-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 10px;
}

.mock-header span {
    color: var(--text);
    font-weight: 800;
}

.proof-caption {
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 12px;
    margin: 0;
    padding: 12px 16px 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Shared Section Headers */
.section-header {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-header p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 16px;
}

/* Product Proof */
.product-proof {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 96px 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.proof-card,
.feature-card,
.use-case-card,
.trust-card,
.faq-card,
.solution-card,
.about-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    padding: 24px;
}

.proof-card h3,
.feature-card h3,
.use-case-card h3,
.trust-card h3,
.faq-card h3,
.solution-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.proof-card p,
.feature-card p,
.use-case-card p,
.trust-card p,
.faq-card p,
.solution-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.media-frame {
    align-items: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-secondary) 100%);
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 240px;
    padding: 24px;
    text-align: center;
}

.media-frame-small {
    min-height: 150px;
}

.section-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
}

.section-actions .inline-link {
    margin-top: 0;
}

.compact-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin-top: 16px;
}

.compact-list li {
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.compact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Solutions */
.solutions {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 96px 0;
}

.task-list {
    display: grid;
    gap: 12px;
    list-style: none;
}

.task-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--surface-shadow);
    color: var(--text-secondary);
    font-size: 15px;
    padding: 16px 18px 16px 38px;
    position: relative;
}

.task-list li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 24px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Feature Highlights */
.features {
    background: var(--surface);
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.feature-showcase {
    display: grid;
    gap: 24px;
}

.feature-panel {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--surface-shadow);
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    padding: 28px;
}

.feature-panel:nth-child(even) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.feature-panel:nth-child(even) .feature-copy {
    order: 2;
}

.feature-panel:nth-child(even) .media-frame {
    order: 1;
}

.feature-panel:first-child,
.feature-panel:nth-child(2) {
    border-color: rgba(11, 124, 255, 0.35);
}

.feature-copy h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-copy p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Solutions */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.solution-card {
    display: flex;
    flex-direction: column;
}

/* FAQs */
.faqs {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 96px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* FAQ Page — Category nav + accordion */
.faq-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 61px;
    z-index: 90;
}

.faq-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.faq-nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.faq-search {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.faq-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-search-input::placeholder {
    color: var(--text-muted);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.1);
}

.faq-nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.faq-nav-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(11, 124, 255, 0.04);
}

.faq-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 0;
}

.faq-section[id] {
    scroll-margin-top: 136px;
}

.faq-section.alt {
    background: var(--bg);
}

.faq-section-head {
    margin-bottom: 28px;
}

.faq-section-head h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 4px;
}

.faq-accordion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

.faq-section.alt .faq-accordion {
    background: var(--surface);
}

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

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    transition: background 0.15s, color 0.15s;
}

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

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s;
    margin-top: -3px;
}

.faq-item summary:hover {
    background: var(--surface-secondary);
    color: var(--accent);
}

.faq-item summary:hover::after {
    border-color: var(--accent);
}

.faq-item[open] summary {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
    border-color: var(--accent);
    margin-top: 3px;
}

.faq-answer {
    padding: 16px 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.faq-disclaimer {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 24px;
    line-height: 1.6;
}

.faq-bottom-cta {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 0;
    text-align: center;
}

.faq-bottom-cta p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
}

.faq-bottom-cta .eyebrow {
    margin-bottom: 8px;
}

.faq-no-results {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 0;
    text-align: center;
}

.faq-no-results p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Solutions Center */
.solutions-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 61px;
    z-index: 90;
}

.solutions-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.solutions-search {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.solutions-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.solutions-search-input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.solutions-search-input::placeholder {
    color: var(--text-muted);
}

.solutions-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.1);
}

.solutions-toggles {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-toggle {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cat-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(11, 124, 255, 0.04);
}

.cat-toggle.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.cat-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cat-toggle:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.tag-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tag-bar-search {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin-bottom: 5px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.tag-bar-search:focus-within {
    opacity: 1;
}

.tag-bar-search-icon {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.tag-bar-input {
    width: 100%;
    padding: 4px 12px 4px 24px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    transition: border-color 0.15s;
}

.tag-bar-input::placeholder {
    color: var(--text-muted);
}

.tag-bar-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.tag-bar-clear {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-bar-clear[hidden] {
    display: none;
}

.tag-bar-clear svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tag-bar-clear:hover svg {
    stroke: var(--text);
}

.tag-bar-count {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 5px;
    pointer-events: none;
}

.tag-bar-pills {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 720px;
}

.tag-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tag-color, var(--text-secondary));
    background: color-mix(in srgb, var(--tag-color, var(--text-secondary)) 8%, transparent);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tag-pill:hover {
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 16%, transparent);
}

/* Pre-size tag pills (except All) with room for the dismiss × */
.tag-pill:not([data-tag="all"]) {
    position: relative;
    padding: 6px 26px;
    border-width: 1.25px;
}

.tag-pill:not([data-tag="all"]).active {
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 18%, transparent);
    border-color: var(--tag-color, var(--accent));
}

.tag-pill:not([data-tag="all"]).active:hover {
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 28%, transparent);
}

.tag-pill:not([data-tag="all"]).active::after {
    content: "×";
    position: absolute;
    right: 9px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--tag-color, var(--accent));
}

/* "All" pill keeps the solid accent style */
.tag-pill[data-tag="all"] {
    color: var(--text-secondary);
    background: transparent;
    border-color: var(--border);
}

.tag-pill[data-tag="all"]:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(11, 124, 255, 0.04);
}

.tag-pill[data-tag="all"].active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.tag-pill:focus-visible {
    outline: 2px solid var(--tag-color, var(--accent));
    outline-offset: 2px;
}

.tag-pill:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.solutions-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 0;
}

.solutions-section.alt {
    background: var(--bg);
}

.solutions-section-head {
    margin-bottom: 28px;
}

.solutions-section-head h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 4px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.solutions-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.solutions-section.alt .solutions-card {
    background: var(--surface);
}

.solutions-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(11, 124, 255, 0.08);
}

.solutions-card h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.solutions-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.solutions-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.solutions-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tag-color, var(--text-muted));
    background: color-mix(in srgb, var(--tag-color, var(--text-muted)) 8%, transparent);
}

.card-tags-more {
    display: inline-block;
    position: relative;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--border);
    cursor: default;
}

.card-tags-overflow {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    z-index: 10;
}

.card-tags-overflow .card-tag {
    margin: 0 2px;
}

.card-tags-more:hover .card-tags-overflow {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cat-grid {
    background: rgba(11, 124, 255, 0.08);
    color: #0b6cd8;
}

.cat-reports {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
}

.cat-workflows {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
}

.cat-qol {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
}

.cat-other {
    background: rgba(20, 184, 166, 0.09);
    color: #0f766e;
}

.solutions-no-results {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 0;
    text-align: center;
}

.solutions-no-results p {
    color: var(--text-muted);
    font-size: 16px;
}

.solutions-bottom-cta {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 0;
    text-align: center;
}

.solutions-bottom-cta p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
}

.solutions-bottom-cta .eyebrow {
    margin-bottom: 8px;
}

/* Article pages (solutions-hub) */
.article-breadcrumb {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    padding: 12px 0;
}

.article-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb span {
    color: var(--text-muted);
}

.article-callout {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    margin: 24px 0 0;
    padding: 20px 24px;
}

.article-callout p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.article-comparison {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
}

.article-comparison h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.how-to-steps {
    padding-left: 24px;
    line-height: 1.7;
}

.how-to-steps li {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.how-to-steps li:last-child {
    margin-bottom: 0;
}

.how-to-steps ul {
    list-style: disc;
    margin-top: 8px;
    padding-left: 20px;
}

.how-to-steps ul li {
    margin-bottom: 6px;
}

.how-to-steps kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    padding: 2px 6px;
}

.article-intro {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.solution-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.solution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.article-demo {
    margin-top: 8px;
}

.article-demo-img {
    border: 1px solid var(--border);
    border-radius: 10px;
    display: block;
    max-width: 100%;
    height: auto;
}

.article-demo-caption {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.solutions-grid-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solutions-grid-related .solutions-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Positioning */
.positioning {
    background: var(--bg);
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.about-panel {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-panel h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.about-actions {
    margin-top: 8px;
}

.positioning p,
.about-panel p {
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

/* Pricing */
.pricing {
    background: var(--surface);
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.pricing-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.pricing-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-header p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 16px;
}

.billing-toggle-wrap {
    text-align: center;
    margin-bottom: 32px;
}

.billing-toggle {
    display: inline-flex;
    background: var(--surface-secondary);
    border-radius: 999px;
    padding: 4px;
}

.billing-option {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.billing-option.active {
    background: var(--accent);
    color: #fff;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    min-height: 18px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--surface-shadow);
}

.pricing-card.featured-plan {
    border-color: rgba(11, 124, 255, 0.55);
    box-shadow: 0 24px 70px rgba(11, 124, 255, 0.14);
}


.plan-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.plan-intro .price-note {
    margin-bottom: 0;
}

.plan-intro .plan-price {
    justify-content: center;
}

.plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(11, 124, 255, 0.12);
    color: #0b6cd8;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.plan-badge.save {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.pricing-card h2,
.pricing-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}


.pricing-card > p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-list li {
    color: var(--text-secondary);
    font-size: 15px;
    padding-left: 22px;
    position: relative;
}

.pricing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Static Detail Pages */
.page-hero {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 72px 0 56px;
}

.page-hero-inner {
    max-width: 800px;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 16px;
}

.page-lead {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 720px;
}

.page-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 72px 0;
}

.page-section.alt {
    background: var(--bg);
}

.page-section-header {
    max-width: 760px;
    margin-bottom: 32px;
}

.page-section-header h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.page-section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.detail-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card,
.notice-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    padding: 24px;
}

.detail-card h2,
.detail-card h3,
.notice-panel h2,
.notice-panel h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.detail-card p,
.notice-panel p {
    color: var(--text-muted);
    font-size: 15px;
}

.detail-card .inline-link {
    margin-top: 18px;
}

.detail-card-link {
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.detail-card-link h2 a {
    color: inherit;
    text-decoration: none;
}

.detail-card-link h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.detail-card-link:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .detail-card-link {
        transition: none;
    }

    .detail-card-link:hover {
        transform: none;
    }
}

.feature-list,
.policy-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin-top: 16px;
}

.feature-list li,
.policy-list li {
    color: var(--text-secondary);
    font-size: 15px;
    padding-left: 22px;
    position: relative;
}

.feature-list li::before,
.policy-list li::before {
    background: var(--accent);
    border-radius: 50%;
    content: '';
    height: 7px;
    left: 0;
    position: absolute;
    top: 9px;
    width: 7px;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    overflow-x: auto;
}

.comparison-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    padding: 16px;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    color: var(--text);
    font-weight: 800;
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.contact-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Contact Page — Two-pane form layout */
.contact-pane {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.contact-pane.affiliate-pane {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.contact-selectors {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-auto-rows: 1fr;
}

.contact-selector {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    height: 100%;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.contact-selector:hover {
    border-color: var(--text-muted);
    background: var(--surface-secondary);
}

.contact-selector.active {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.1);
}

.contact-selector:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.contact-selector-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 1px;
    transition: stroke 0.15s;
}

.contact-selector.active .contact-selector-icon {
    stroke: var(--accent);
}

.contact-selector-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-selector-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    transition: color 0.15s;
}

.contact-selector.active .contact-selector-label {
    color: var(--accent);
}

.contact-selector-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Form panels */
.contact-forms {
    min-width: 0;
}

.contact-form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    padding: 32px;
}

.contact-form-header {
    margin-bottom: 24px;
}

.contact-form-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-form-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Form fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field select {
    appearance: none;
    cursor: pointer;
}

.form-field option {
    background: var(--surface);
    color: var(--text);
}

.select-wrap {
    position: relative;
}

.select-wrap select {
    padding-right: 38px;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-forms .contact-form .btn-primary {
    align-items: center;
    align-self: flex-start;
    display: inline-flex;
    gap: 8px;
    justify-content: flex-start;
}

.contact-forms .contact-form .btn-primary .btn-icon {
    display: block;
    fill: none;
    flex: 0 0 auto;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 16px;
}

/* File upload drop zone */
.label-optional {
    font-weight: 500;
    color: var(--text-muted);
}

.form-field-checkbox {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
}

.form-field-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-field-checkbox label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
}

.form-field-checkbox label a {
    color: var(--accent);
    text-decoration: underline;
}

.form-field-checkbox label a:hover {
    color: var(--accent-hover);
}

.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.file-drop:hover,
.file-drop:focus-within {
    border-color: var(--accent);
    background: var(--surface-secondary);
}

.file-drop.drag-over {
    border-color: var(--accent);
    background: var(--surface-secondary);
    box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.1);
}

.file-drop:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.file-drop-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-drop-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.file-drop-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.file-drop-hint {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* File list */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.file-list:empty {
    display: none;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.file-list li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.file-remove:hover {
    background: var(--border);
    color: var(--text);
}

.file-remove:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* Success state */
.contact-success {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    padding: 56px 32px;
    text-align: center;
}

.contact-success-icon {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--success);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 16px;
}

.contact-success h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-success p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

/* Category Rows (Features page — zigzag layout) */
.category-row {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 80px 0;
}

.category-row.alt {
    background: var(--bg);
}

.category-row-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.category-row.reversed .category-row-inner {
    flex-direction: row-reverse;
}

.category-text {
    flex: 1;
    min-width: 0;
}

.category-text h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 4px;
    margin-bottom: 24px;
}

.category-features {
    margin-bottom: 24px;
}

.category-feature {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.category-feature dt {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-feature dd {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.category-media {
    flex: 1;
    min-width: 0;
}

/* Slideshow */
.slideshow {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--surface-shadow);
}

.slideshow-viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin: 0;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--bg) 100%);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

.slide figcaption {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.slide-dot.active {
    background: var(--accent);
}

.slide-dot:hover {
    background: var(--accent);
    opacity: 0.7;
}

.page-hero .hero-actions {
    margin-top: 24px;
}

/* Final CTA */
.final-cta {
    background: var(--bg);
    padding: 96px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.final-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.final-cta p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 auto 24px;
    max-width: 640px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer span {
    color: var(--text-muted);
    font-size: 13px;
}

.footer p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.footer a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

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

/* Theme overrides */
html[data-theme="light"] {
    color-scheme: light;
    --page-bg: #E8EEF6;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-secondary: #F1F5F9;
    --border: #D8E2EF;
    --text: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --accent: #0B7CFF;
    --accent-hover: #2563EB;
    --success: #16A34A;
    --warning: #F59E0B;
    --shell-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
    --surface-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, var(--page-bg) 0%, #F3F6FA 100%);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #020617;
    --bg: #0F172A;
    --surface: #111C33;
    --surface-secondary: #17233D;
    --border: #26344F;
    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --accent: #38BDF8;
    --accent-hover: #60A5FA;
    --success: #22C55E;
    --warning: #F59E0B;
    --shell-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    --surface-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    background: linear-gradient(180deg, var(--page-bg) 0%, var(--bg) 100%);
}

html[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

html[data-theme="dark"] .header {
    background: rgba(17, 28, 51, 0.94);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .mock-toolbar .toolbar-brand {
    color: #fff;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .mock-toolbar .toolbar-brand {
    color: #0F172A;
}

html[data-theme="dark"] .billing-option.active {
    color: #0F172A;
}

html[data-theme="dark"] .plan-badge {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

html[data-theme="dark"] .plan-badge.save {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

html[data-theme="light"] .feature-panel:first-child,
html[data-theme="light"] .feature-panel:nth-child(2) {
    border-color: rgba(11, 124, 255, 0.35);
}

html[data-theme="dark"] .feature-panel:first-child,
html[data-theme="dark"] .feature-panel:nth-child(2) {
    border-color: rgba(56, 189, 248, 0.45);
}

html[data-theme="dark"] .cat-toggle.active {
    color: #0F172A;
}

html[data-theme="dark"] .tag-pill {
    background: color-mix(in srgb, var(--tag-color, var(--text-secondary)) 12%, transparent);
}

html[data-theme="dark"] .tag-pill:hover {
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 20%, transparent);
}

html[data-theme="dark"] .tag-pill:not([data-tag="all"]).active {
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 22%, transparent);
    border-color: var(--tag-color, var(--accent));
}

html[data-theme="dark"] .tag-pill:not([data-tag="all"]).active:hover {
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 34%, transparent);
}

html[data-theme="dark"] .tag-pill[data-tag="all"] {
    background: transparent;
}

html[data-theme="dark"] .tag-pill[data-tag="all"]:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
}

html[data-theme="dark"] .tag-pill[data-tag="all"].active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0F172A;
}

html[data-theme="dark"] .tag-pill[data-tag="all"].active:hover {
    background: #5bcefa;
    border-color: #5bcefa;
}

html[data-theme="dark"] .cat-grid {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

html[data-theme="dark"] .cat-reports {
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
}

html[data-theme="dark"] .cat-workflows {
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

html[data-theme="dark"] .cat-qol {
    background: rgba(167, 139, 250, 0.12);
    color: #c4b5fd;
}

html[data-theme="dark"] .cat-other {
    background: rgba(45, 212, 191, 0.14);
    color: #5eead4;
}

html[data-theme="dark"] .solutions-card:hover {
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.1);
}

html[data-theme="dark"] .card-tag {
    background: color-mix(in srgb, var(--tag-color, var(--text-muted)) 12%, transparent);
}

html[data-theme="dark"] .article-demo-img {
    border-color: var(--border);
}

html[data-theme="dark"] .theme-icon-sun {
    display: block;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .logo-light {
    display: none;
}

html[data-theme="dark"] .logo-dark {
    display: block;
}

html[data-theme="light"] .logo-light {
    display: block;
}

html[data-theme="light"] .logo-dark {
    display: none;
}

html[data-theme="light"] .theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-icon-moon {
    display: block;
}

/* Responsive */
@media (max-width: 1240px) {
    .nav-actions {
        margin-right: 54px;
    }
}

@media (max-width: 960px) {
    .primary-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .btn-ghost {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .detail-grid,
    .detail-grid.two,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-pane {
        grid-template-columns: 1fr;
    }

    .contact-selectors {
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-selector {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 8px;
        gap: 8px;
    }

    .contact-selector-desc {
        display: none;
    }

    .category-row-inner {
        flex-direction: column;
        gap: 32px;
    }

    .category-row.reversed .category-row-inner {
        flex-direction: column;
    }

    .proof-grid,
    .trust-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .use-case-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-nav,
    .solutions-nav {
        top: 57px;
    }

    .faq-nav-inner,
    .solutions-nav-inner {
        gap: 10px;
    }

    .faq-search,
    .solutions-search {
        max-width: 320px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solutions-grid-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-comparison {
        gap: 32px;
    }

    .solution-cards {
        grid-template-columns: 1fr;
    }

    .feature-panel,
    .feature-panel:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .feature-panel:nth-child(even) .feature-copy,
    .feature-panel:nth-child(even) .media-frame {
        order: initial;
    }
}

@media (max-width: 768px) {
    body {
        border-right: none;
        border-left: none;
        box-shadow: none;
    }

    .hero-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .page-hero {
        padding: 48px 0 40px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .category-row {
        padding: 48px 0;
    }

    .category-text h2 {
        font-size: 24px;
    }

    .product-proof,
    .solutions,
    .features,
    .use-cases,
    .trust,
    .faqs,
    .positioning,
    .pricing,
    .final-cta {
        padding: 56px 0;
    }

    .faq-section,
    .solutions-section {
        padding: 40px 0;
    }

    .faq-section[id] {
        scroll-margin-top: 216px;
    }

    .solutions-grid,
    .solutions-grid-related {
        grid-template-columns: 1fr;
    }

    .article-comparison {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solution-cards {
        grid-template-columns: 1fr 1fr;
    }

    .cat-toggle {
        padding: 6px 14px;
        font-size: 12px;
    }

    .tag-bar-search {
        max-width: 180px;
    }

    .tag-bar-pills {
        gap: 4px;
    }

    .tag-pill {
        font-size: 11px;
    }

    .tag-pill[data-tag="all"] {
        padding: 5px 10px;
    }

    .tag-pill:not([data-tag="all"]) {
        padding: 5px 22px;
    }

    .tag-pill:not([data-tag="all"]).active::after {
        right: 7px;
        font-size: 12px;
    }

    .faq-item summary {
        padding: 14px 18px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 12px 18px 16px;
    }

    .faq-nav-link {
        padding: 6px 14px;
        font-size: 12px;
    }

    .faq-bottom-cta {
        padding: 40px 0;
    }

    .container {
        padding: 0 18px;
    }

    .header-inner {
        gap: 16px;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-primary.nav-cta {
        padding: 9px 16px;
    }

    .mobile-menu-panel {
        position: fixed;
        top: 64px;
        right: 18px;
        left: 18px;
        width: auto;
    }

    .theme-toggle {
        right: 18px;
    }

    .pricing-card,
    .proof-card,
    .feature-card,
    .use-case-card,
    .trust-card,
    .faq-card,
    .solution-card,
    .detail-card,
    .notice-panel,
    .about-panel {
        padding: 24px;
    }

    .contact-form-panel {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feature-panel {
        padding: 24px;
    }

    .media-frame {
        min-height: 180px;
    }

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

    .hero-actions a,
    .cta-actions a {
        text-align: center;
    }

    .mock-row {
        grid-template-columns: 1fr 0.8fr;
    }

    .mock-row span:nth-child(3),
    .mock-row span:nth-child(4) {
        display: none;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .header-inner {
        gap: 10px;
    }

    .logo {
        height: 32px;
    }

    .btn-primary.nav-cta {
        display: none;
    }
}
