/* ============================================
   Chronos Documentation — Technical Editorial
   ============================================ */

:root {
    /* Uniphore Brand */
    --primary: #2E3192;
    --accent: #00C9FF;

    /* Editorial Palette */
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-primary: #0A0A0A;
    --text-secondary: #5A5A5A;
    --text-tertiary: #8A8A8A;
    --border: #E0E0E0;
    --border-strong: #C0C0C0;

    /* Typography */
    --font-display: 'Libre Franklin', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing Scale */
    --s1: 0.5rem;
    --s2: 1rem;
    --s3: 1.5rem;
    --s4: 2rem;
    --s5: 3rem;
    --s6: 4rem;
    --s7: 6rem;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--s4);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--s2);
}

.brand-mark {
    width: 8px;
    height: 8px;
    background: var(--primary);
    transform: rotate(45deg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.brand-name {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.version {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s4);
    min-width: 0;
}

/* Cross-page link, so it is set apart from the in-page anchors rather than reading as
   another section of this document. The class was already on the markup with no rule
   behind it. */
.nav-link-external {
    padding-left: var(--s4);
    border-left: 1px solid var(--border);
    color: var(--text-tertiary);
    white-space: nowrap;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    margin-top: 70px;
    padding: var(--s7) 0 var(--s6);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1e5e 100%);
    opacity: 0.03;
    transform: skewY(-3deg);
    transform-origin: top left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s4);
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: var(--s2);
    animation: fadeInUp 0.6s var(--ease-smooth);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: var(--s3);
    animation: fadeInUp 0.6s var(--ease-smooth) 0.1s backwards;
}

.highlight {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--s5);
    animation: fadeInUp 0.6s var(--ease-smooth) 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: var(--s5);
    animation: fadeInUp 0.6s var(--ease-smooth) 0.3s backwards;
}

.stat {
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.stat:first-child::before {
    display: none;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Main Layout
   ============================================ */

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--s6) var(--s4);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--s6);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: var(--s3);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: var(--s1);
}

.toc-link {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s1) 0;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-smooth);
    position: relative;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: -1rem;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s var(--ease-smooth);
}

.toc-link.active::before {
    height: 100%;
}

.toc-link.active {
    color: var(--primary);
}

.toc-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.toc-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    width: 2rem;
    text-align: right;
}

.toc-link.active .toc-number {
    color: var(--accent);
}

.toc-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   Content
   ============================================ */

.content {
    max-width: 900px;
}

.section {
    margin-bottom: var(--s7);
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: var(--s5);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--border);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--s1);
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--s1);
}

.section-meta {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

.section-intro {
    margin-bottom: var(--s3);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Platform Tabs
   ============================================ */

.platform-tabs {
    display: flex;
    gap: var(--s2);
    margin-bottom: var(--s4);
    border-bottom: 2px solid var(--border);
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: var(--s1);
    padding: var(--s2) var(--s3);
    border: none;
    background: none;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s var(--ease-smooth);
}

.platform-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-smooth);
}

.platform-tab.active::after {
    transform: scaleX(1);
}

.platform-tab.active {
    color: var(--primary);
}

.platform-tab:hover {
    color: var(--primary);
}

.tab-icon {
    font-size: 1.25rem;
}

.platform-content {
    display: none;
}

.platform-content.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Download Cards
   ============================================ */

.download-grid {
    display: grid;
    gap: var(--s4);
}

.download-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.download-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: var(--s4);
    position: relative;
    transition: all 0.3s var(--ease-smooth);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(46, 49, 146, 0.08);
    transform: translateY(-2px);
}

.download-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.02), var(--bg-card));
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--bg-card);
    background: var(--accent);
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    white-space: nowrap;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--s2);
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--s2);
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-size {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: var(--s3);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: var(--s3);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s1);
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.card-actions {
    display: flex;
    gap: var(--s2);
    margin-bottom: var(--s2);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s1);
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-card);
}

.btn-primary:hover {
    background: #1a1e5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.checksum-btn svg {
    transition: transform 0.3s var(--ease-smooth);
}

.checksum-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ============================================
   Checksum Panel
   ============================================ */

.checksum-panel {
    display: none;
    background: #F5F5F5;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--s2);
    margin-top: var(--s2);
    animation: slideDown 0.3s var(--ease-smooth);
}

.checksum-panel.active {
    display: flex;
    align-items: center;
    gap: var(--s2);
    flex-wrap: wrap;
}

/* Only needed where a card offers more than one download (User Edition offers the
   bundle and the Standard MSI). An unlabelled hash there could be read as belonging
   to whichever file the reader clicked, which is worse than showing no hash. */
.checksum-label {
    flex-basis: 100%;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checksum-panel code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    word-break: break-all;
    flex: 1;
    background: none;
    padding: 0;
}

.copy-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--bg-card);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    white-space: nowrap;
}

.copy-btn:hover {
    background: #1a1e5e;
}

/* ============================================
   Archive Link
   ============================================ */

.archive-link-container {
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid var(--border);
    text-align: center;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: var(--s2) var(--s3);
    border-radius: 4px;
    transition: all 0.2s var(--ease-smooth);
}

.archive-link:hover {
    color: var(--accent);
    background: rgba(0, 201, 255, 0.05);
}

.archive-link .arrow {
    transition: transform 0.2s var(--ease-smooth);
}

.archive-link:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   Requirements Comparison
   ============================================ */

.req-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
    margin-bottom: var(--s4);
}

.req-column {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: var(--s4);
}

.req-column.req-featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 201, 255, 0.03), var(--bg-card));
}

.req-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: var(--s1);
}

.req-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--s3);
}

.spec-table {
    width: 100%;
    margin-bottom: var(--s3);
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
}

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

.spec-table td {
    padding: var(--s2) 0;
    vertical-align: top;
}

.spec-key {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    width: 40%;
}

.spec-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.req-note {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-tertiary);
    padding: var(--s2);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    border-left: 3px solid var(--accent);
}

/* ============================================
   Optimization Box
   ============================================ */

.optimization-box {
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.05), rgba(0, 201, 255, 0.05));
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: var(--s4);
}

.opt-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--s3);
}

.opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s2);
}

.opt-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.opt-item code {
    font-size: 0.875rem;
    background: var(--bg-card);
    padding: 0.375rem 0.625rem;
    border-radius: 3px;
}

.opt-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Installation
   ============================================ */

.install-params {
    margin-bottom: var(--s5);
}

.params-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--s3);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.params-table thead {
    background: var(--primary);
    color: var(--bg-card);
}

.params-table th {
    padding: var(--s2);
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.params-table td {
    padding: var(--s2);
    border-bottom: 1px solid var(--border);
}

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

.params-table code {
    font-size: 0.875rem;
}

.table-scroll {
    overflow-x: auto;
}

.edition-compare {
    margin-bottom: var(--s5);
}

.edition-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.edition-table thead {
    background: var(--primary);
    color: var(--bg-card);
}

.edition-table th {
    padding: var(--s2);
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edition-table th.edition-featured {
    background: var(--accent);
}

.edition-table th.edition-col,
.edition-table td.edition-col {
    text-align: center;
}

.edition-table td {
    padding: var(--s2);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: top;
}

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

.edition-table td.crit-key {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.edition-table td.edition-featured-col {
    background: rgba(0, 201, 255, 0.05);
}

.edition-table code {
    font-size: 0.8125rem;
}

.install-methods {
    display: grid;
    gap: var(--s3);
    margin-bottom: var(--s4);
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s2) var(--s3);
    background: #F5F5F5;
    border-bottom: 1px solid var(--border);
}

.method-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.copy-code-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--bg-card);
    border: none;
    padding: 0.375rem 0.875rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
}

.copy-code-btn:hover {
    background: #1a1e5e;
}

.code-block {
    margin: 0;
    padding: var(--s3);
    background: #1E1E1E;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #D4D4D4;
    background: none;
    padding: 0;
}

.post-install {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--s4);
    margin-bottom: var(--s4);
}

.pi-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--s3);
}

.pi-checks {
    display: grid;
    gap: var(--s2);
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--s2);
}

.check-icon {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: bold;
}

.check-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.verify-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--s2);
}

.note-card {
    display: flex;
    align-items: flex-start;
    gap: var(--s2);
    background: #FFF8E1;
    border: 1px solid #F5C518;
    border-radius: 8px;
    padding: var(--s3);
    margin-bottom: var(--s3);
}

.note-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: #F5C518;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: #0A0A0A;
}

.note-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.verify-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--s2) var(--s3);
    background: #F5F5F5;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   Storage Usage (Simplified)
   ============================================ */

.storage-simple {
    display: flex;
    justify-content: center;
    padding: var(--s4) 0;
}

.storage-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: var(--s5) var(--s6);
    text-align: center;
    max-width: 500px;
    width: 100%;
    transition: all 0.3s var(--ease-smooth);
}

.storage-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(46, 49, 146, 0.1);
    transform: translateY(-4px);
}

.storage-value {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--s2);
}

.storage-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--s3);
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--border);
}

.storage-desc {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ============================================
   FAQs
   ============================================ */

.faq-list {
    display: grid;
    gap: var(--s3);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s var(--ease-smooth);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item[open] {
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.08);
}

.faq-q {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.faq-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.faq-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-tertiary);
    transition: transform 0.3s var(--ease-smooth);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    padding: 1rem var(--s3) var(--s3);
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    animation: fadeInDown 0.3s var(--ease-smooth);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-a code {
    font-size: 0.875rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--s6) 0 var(--s3);
    margin-top: var(--s7);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--s4);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
    margin-bottom: var(--s4);
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--s1);
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--s1);
}

.footer-text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* The footer sits on --text-primary (near-black), and nothing else on the page styles a bare
   <a>, so without this rule the one link in the footer renders in the UA default #0000EE --
   about 1.3:1 against that background, i.e. effectively invisible. It matters more than one
   link usually would: at 1024px and below the footer is the only route to the Chrome extension
   page, since .nav-link-external is display:none there. */
.footer-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.15s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    border-bottom-color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--s3) var(--s4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-mark {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

/* ============================================
   Responsive
   ============================================ */

/* The header carries a handful of primary destinations, not one link per section -- the
   sidebar owns the full contents. These steps tighten it before it can overflow, because a
   fixed bar that runs off the edge silently loses whatever sat on the right. */
@media (max-width: 1200px) {
    .nav-links {
        gap: var(--s3);
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .nav-link-external {
        padding-left: var(--s3);
    }
}

@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }

    .sidebar {
        display: none;
    }

    /* The sidebar is gone at this width, so the header is the only navigation left --
       hiding it too (which is what this rule used to do) left narrow windows with none at
       all. Kept visible and allowed to scroll sideways instead; the cross-page link drops
       out first because it is the one destination reachable from the footer as well. */
    .nav-links {
        gap: var(--s2);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link-external {
        display: none;
    }

    .nav-content {
        gap: var(--s3);
        padding: 0 var(--s2);
    }
}

@media (max-width: 768px) {
    .req-comparison {
        grid-template-columns: 1fr;
    }

    .download-grid-compact {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--s3);
    }

    .stat::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Documentation Screenshots
   ============================================ */

.doc-shot {
    margin: var(--s1) 0 var(--s2);
    max-width: 620px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.doc-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border);
}

.doc-shot figcaption {
    padding: var(--s1) var(--s2);
    background: #F5F5F5;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
