:root {
    --brand-blue: #0077b8;
    --brand-blue-dark: #005f95;
    --brand-blue-soft: #e7f4fb;
    --brand-green: #a8c957;
    --brand-green-dark: #7f9e35;
    --brand-green-soft: #edf5d6;
    --text: #202124;
    --muted: #5f6368;
    --line: #e5e7eb;
    --surface: #fff;
    --page: #f8f9fa;
    --nav-active: #edf5d6;
    --shadow: 0 1px 2px rgba(32,33,36,.08), 0 1px 3px 1px rgba(60,64,67,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--page);
}
a { color: inherit; }
button { font: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 308px;
    background: #fff;
    border-right: 1px solid var(--line);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.brand-row {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
}
.icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #3c4043;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}
.brand-logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}
.side-nav { padding-top: 22px; }
.nav-item {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    text-decoration: none;
    color: #202124;
    border-radius: 0 24px 24px 0;
    margin-right: 24px;
    font-size: 15px;
}
.nav-item:hover { background: var(--brand-blue-soft); }
.nav-item.active {
    background: var(--nav-active);
    color: var(--brand-blue-dark);
    border-left: 6px solid var(--brand-green);
    padding-left: 18px;
    font-weight: 600;
}
.nav-icon {
    width: 18px;
    text-align: center;
    color: var(--brand-blue);
    font-size: 20px;
}
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sidebar-footer a { color: var(--brand-blue-dark); }
.main-content { margin-left: 308px; flex: 1; min-width: 0; }
.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px 0 46px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.topbar h1 { font-size: 20px; font-weight: 400; margin: 0; flex: 1; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}
.primary-button {
    background: var(--brand-green);
    color: #163500;
    box-shadow: 0 1px 2px rgba(44,70,35,.18);
}
.primary-button:hover { background: var(--brand-green-dark); color: #fff; }
.secondary-button {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}
.secondary-button:hover { background: #d5edf8; }
.home-grid {
    max-width: 1060px;
    margin: 38px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-card {
    min-height: 360px;
    padding: 44px;
    background:
        radial-gradient(circle at 92% 18%, rgba(168,201,87,.32) 0 90px, transparent 92px),
        radial-gradient(circle at 82% 48%, rgba(0,119,184,.12) 0 150px, transparent 152px),
        #fff;
}
.eyebrow {
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hero-card h2 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 700;
}
.hero-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.summary-card,
.story-card,
.builds-card,
.ideas-card,
.resources-card { padding-bottom: 26px; }
.summary-card { padding: 28px 28px 70px; }
.summary-card h2 { margin: 0 0 12px; font-size: 24px; }
.summary-card p,
.card-title-row p,
.timeline-item p,
.idea-tile p,
.resource-list span {
    color: var(--muted);
    line-height: 1.58;
}
.view-report {
    position: absolute;
    left: 28px;
    bottom: 24px;
    color: var(--brand-blue-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}
.card-title-row { padding: 28px 28px 8px; }
.card-title-row h2 { margin: 0; font-size: 24px; font-weight: 500; }
.card-title-row p { max-width: 820px; margin: 14px 0 0; }
.timeline { padding: 12px 28px 24px; }
.timeline-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #eef0f2;
}
.timeline-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 34px;
    border-radius: 999px;
    background: var(--brand-green-soft);
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 14px;
}
.timeline-item h3,
.idea-tile h3 { margin: 0 0 8px; font-size: 18px; }
.timeline-item p,
.idea-tile p { margin: 0; }
.idea-grid,
.build-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}
.idea-tile,
.build-tile {
    border: 1px solid #e7edf2;
    border-radius: 10px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.idea-tile h3 { color: var(--brand-blue-dark); }
.build-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.build-heading h3 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: 18px;
}
.build-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--brand-green-soft);
    color: var(--brand-blue-dark);
    font-size: 12px;
    font-weight: 700;
}
.build-tile strong {
    display: block;
    margin-bottom: 10px;
    color: #263238;
}
.build-tile p {
    color: var(--muted);
    line-height: 1.58;
    margin: 0 0 16px;
}
.build-tile a {
    color: var(--brand-blue-dark);
    font-weight: 700;
    text-decoration: none;
}
.build-tile a:hover { text-decoration: underline; }
.resource-list { padding: 14px 28px 28px; display: grid; gap: 10px; }
.resource-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #e7edf2;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
}
.resource-list a:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.resource-list strong { color: var(--text); }
.resource-list span { text-align: right; }
@media (max-width: 1100px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .topbar { padding-left: 16px; }
    .home-grid { margin: 24px auto; }
}
@media (max-width: 720px) {
    .hero-card { padding: 30px 24px; }
    .idea-grid,
    .build-grid { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 1fr; gap: 10px; }
    .resource-list a { display: block; }
    .resource-list span { display: block; text-align: left; margin-top: 6px; }
}

/* Download-focused additions */
code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: .92em;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 5px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 18px;
}
.stat-grid div {
    border: 1px solid #e7edf2;
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.stat-grid strong {
    display: block;
    color: var(--brand-blue-dark);
    font-size: 22px;
    line-height: 1;
}
.stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}
.download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-tile { display: flex; flex-direction: column; }
.download-tile p { margin-bottom: 18px; }
.meta-list,
.checksum-list {
    margin: 0;
    display: grid;
    gap: 8px;
}
.meta-list { margin-top: auto; }
.meta-list div,
.checksum-list div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}
.meta-list dt,
.checksum-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.meta-list dd,
.checksum-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.download-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}
.code-grid > div {
    border: 1px solid #e7edf2;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}
.code-grid h3 { margin: 0 0 12px; color: var(--brand-blue-dark); }
.code-grid p { color: var(--muted); line-height: 1.58; margin: 12px 0 0; }
pre {
    margin: 0;
    overflow-x: auto;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}
pre code {
    display: block;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}
.package-card { padding-bottom: 26px; }
.package-list {
    display: grid;
    gap: 14px;
    padding: 14px 28px 28px;
}
.package-item {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    padding: 22px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    scroll-margin-top: 86px;
}
.package-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.package-head h3 { margin: 0 0 8px; color: var(--brand-blue-dark); }
.package-head p { margin: 0; color: var(--muted); line-height: 1.58; }
.package-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.package-columns h4 { margin: 0 0 10px; }
ul { margin: 0; padding-left: 20px; }
li { margin: 6px 0; color: #374151; }
.checksum-list {
    border-top: 1px solid #eef0f2;
    padding-top: 16px;
}
@media (max-width: 900px) {
    .download-grid,
    .code-grid,
    .package-columns { grid-template-columns: 1fr; }
    .package-head { display: block; }
    .package-head .primary-button { margin-top: 14px; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .meta-list div,
    .checksum-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* Versioning, compliance and SEO/accessibility additions */
.version-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}
.version-filter {
    text-align: left;
    border: 1px solid #e7edf2;
    border-radius: 12px;
    background: #fff;
    padding: 18px 20px;
    cursor: pointer;
    box-shadow: none;
}
.version-filter:hover,
.version-filter.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
}
.version-filter strong,
.version-filter span,
.version-filter small { display: block; }
.version-filter strong { color: var(--brand-blue-dark); font-size: 18px; }
.version-filter span { color: var(--text); margin-top: 6px; font-weight: 700; }
.version-filter small { color: var(--muted); margin-top: 8px; line-height: 1.5; font-size: 14px; }
.version-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}
.site-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px 28px;
    color: var(--muted);
    font-size: 14px;
}
.site-footer a { color: var(--brand-blue-dark); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.legal-shell {
    max-width: 920px;
    margin: 38px auto;
    padding: 0 18px;
}
.legal-card { padding: 34px; }
.legal-card h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; }
.legal-card h2 { margin: 30px 0 10px; color: var(--brand-blue-dark); }
.legal-card p,
.legal-card li { color: var(--muted); line-height: 1.7; }
.legal-card .updated { color: var(--brand-blue-dark); font-weight: 700; }
.legal-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: var(--brand-blue-dark);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 99;
}
.skip-link:focus { left: 8px; }
@media (max-width: 720px) {
    .version-list { grid-template-columns: 1fr; }
    .legal-card { padding: 26px 22px; }
}

/* Beginner FAQ for command line encoder packages */
.faq-card {
    scroll-margin-top: 86px;
}
.faq-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 28px 20px;
}
.faq-intro > div {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.faq-intro h3 {
    margin: 0 0 10px;
    color: var(--brand-blue-dark);
}
.faq-intro p {
    color: var(--muted);
    line-height: 1.65;
}
.faq-intro pre {
    margin: 12px 0;
}
.faq-list {
    display: grid;
    gap: 10px;
    padding: 0 28px 28px;
}
.faq-item {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--brand-blue-dark);
    font-weight: 800;
    list-style-position: inside;
}
.faq-item summary:hover {
    background: var(--brand-blue-soft);
}
.faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.65;
}
@media (max-width: 900px) {
    .faq-intro { grid-template-columns: 1fr; }
}
