:root {
    --ink: #0B1220;
    --ink-2: #1F2A37;
    --muted: #5B6B7C;
    --line: #E3E8EF;
    --line-strong: #C9D2DC;
    --bg: #FFFFFF;
    --bg-soft: #F6F8FA;
    --bg-grid: rgba(11, 18, 32, .04);
    --accent: #0F766E;
    --accent-600: #0D5F59;
    --accent-bright: #2DD4BF;
    --accent-soft: #E6F4F1;
    --warn: #B45309;
    --ok: #15803D;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .06);
    --container: 1160px;
    --font-sans: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.chat-is-open {
    overflow: hidden;
}

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

a {
    color: var(--accent);
    text-underline-offset: .18em;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.25;
    letter-spacing: -.01em;
}

h3 {
    font-size: 20px;
}

[hidden] {
    display: none !important;
}

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

::selection {
    color: #fff;
    background: var(--accent);
}

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

.skip-link:focus {
    position: fixed !important;
    top: 10px;
    left: 10px;
    z-index: 200;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    clip: auto;
    color: var(--ink);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    outline: 2px solid var(--accent-bright);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 88px 0;
}

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

.section-head {
    max-width: 800px;
    margin-bottom: 40px;
}

.section-head__title {
    margin-bottom: 12px;
}

.section-head__sub {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

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

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

.btn--ghost {
    color: var(--accent);
    background: var(--bg);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    color: var(--accent-600);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn--link {
    min-height: 40px;
    padding: 4px 0;
    color: var(--accent);
    border: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.btn--lg {
    min-height: 52px;
    padding: 13px 24px;
    font-size: 16px;
}

.btn--sm {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 68px;
}

.wordmark {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    color: var(--ink);
    line-height: 1.1;
    text-decoration: none;
}

.wordmark:hover {
    color: var(--ink);
}

.wordmark__name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.wordmark__tagline {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
}

.primary-nav {
    margin-inline: auto;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a {
    color: var(--accent);
}

.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.nav-toggle__bars::after {
    position: absolute;
    top: 6px;
    left: 0;
}

.nav-open .nav-toggle__bars {
    background: transparent;
}

.nav-open .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.header-cta {
    flex: 0 0 auto;
    white-space: nowrap;
}

.hero {
    padding: 78px 0 70px;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 54px;
    align-items: center;
}

.hero__copy {
    min-width: 0;
}

.hero__title {
    margin-bottom: 22px;
    max-width: 12em;
}

.hero__lead {
    max-width: 36em;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 30px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.hero__status li {
    padding: 0 14px;
    border-left: 1px solid var(--line);
}

.hero__status li:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero__media {
    min-width: 0;
}

.hero__figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    position: relative;
    padding: 26px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-2px);
        border-color: var(--line-strong);
        box-shadow: var(--shadow);
    }
}

.card__label {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 3px 8px;
    color: var(--accent-600);
    background: var(--accent-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.card__title {
    margin-bottom: 10px;
}

.card__text {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-row > li,
.stat-row > div {
    padding: 18px 20px;
    background: var(--bg);
}

.stat-row__value {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-row__label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

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

.pain-card {
    padding: 28px;
    border-top: 3px solid var(--line-strong);
}

.pain-card .card__title {
    font-size: 19px;
}

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

.card--feature {
    min-height: 230px;
    padding: 48px 24px 24px;
}

.card--feature .card__title {
    margin-bottom: 12px;
    font-size: 19px;
}

.feature-footnote {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: 36px;
    align-items: start;
}

.demo {
    min-width: 0;
}

.demo__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.demo__title {
    margin-bottom: 0;
    font-size: 18px;
}

.demo__note {
    margin-bottom: 0;
    color: var(--warn);
    font-size: 12px;
    font-weight: 700;
}

.demo__screen {
    padding: 20px;
    color: #fff;
    background: var(--ink);
    border: 1px solid #243247;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.demo__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.demo .btn--ghost {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
}

.demo .btn--ghost:hover {
    color: var(--ink);
    background: #fff;
    border-color: #fff;
}

.demo .btn--primary {
    background: var(--accent);
    border-color: var(--accent);
}

.demo__speeds {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.demo__speed {
    min-width: 44px;
    min-height: 44px;
    padding: 4px 8px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.demo__speed[aria-pressed="true"] {
    color: var(--ink);
    background: var(--accent-bright);
    border-color: var(--accent-bright);
}

.demo__clock {
    margin: 0 0 0 auto;
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.demo__channels {
    padding: 8px 0;
}

.demo__row {
    display: grid;
    grid-template-columns: 112px 66px minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.demo__row:last-child {
    border-bottom: 0;
}

.demo__switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    background: transparent;
    border: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: left;
}

.demo__switch-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    background: #526074;
    border-radius: 50%;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.demo__row.is-on .demo__switch {
    color: #fff;
}

.demo__row.is-on .demo__switch-dot {
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .16);
}

.demo__time {
    color: rgba(255, 255, 255, .5);
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.demo__track {
    position: relative;
    display: block;
    min-width: 0;
    height: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    border-radius: 3px;
}

.demo__wave {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
}

.demo__wave span {
    width: 3px;
    height: 6px;
    flex: 0 0 3px;
    background: rgba(255, 255, 255, .08);
    border-radius: 1px;
    transition: background-color .16s ease;
}

.demo__wave span:nth-child(3n) {
    height: 13px;
}

.demo__wave span:nth-child(4n) {
    height: 9px;
}

.demo__wave span.is-on {
    background: var(--accent-bright);
}

.demo__fill {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    opacity: .7;
}

.demo__state {
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
    text-align: right;
}

.demo__row.is-on .demo__state {
    color: var(--accent-bright);
}

.demo__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.demo__count,
.demo__status {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .64);
    font-family: var(--font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.demo__status {
    color: var(--accent-bright);
}

.demo-side {
    padding-top: 36px;
}

.demo-side__list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.demo-side__list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

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

.scenario-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.scenario-card__list {
    margin: 0 0 16px;
    padding-left: 1.15em;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.scenario-card__list li + li {
    margin-top: 4px;
}

.scenario-card .text-link {
    margin-top: auto;
}

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

.model-card {
    padding: 0;
    overflow: hidden;
}

.model-card__figure {
    margin: 0;
    padding: 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.model-card__figure img {
    width: 100%;
    height: auto;
}

.model-card__body {
    padding: 24px;
}

.model-card__title {
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.model-card__body .btn {
    margin-top: 20px;
}

.model-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.65;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.compare-table thead th {
    color: var(--ink);
    background: var(--bg-soft);
    font-size: 13px;
    font-weight: 700;
}

.compare-table tbody th {
    color: var(--ink);
    font-weight: 700;
}

.compare-table tbody td {
    color: var(--muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-note {
    max-width: 860px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.7;
}

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

.spec-table th {
    width: 32%;
    padding-right: 24px;
    color: var(--ink-2);
    font-weight: 600;
}

.spec-table td {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.screenshot-frame {
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.screenshot-frame::before {
    display: block;
    height: 30px;
    background:
        radial-gradient(circle at 16px 15px, #F87171 0 4px, transparent 4.5px),
        radial-gradient(circle at 30px 15px, #FBBF24 0 4px, transparent 4.5px),
        radial-gradient(circle at 44px 15px, #34D399 0 4px, transparent 4.5px),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
    content: "";
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    border: 0;
}

.honesty {
    padding: 26px 28px;
    background: var(--bg-soft);
    border-left: 3px solid var(--warn);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.honesty__list li {
    position: relative;
    padding-left: 20px;
    color: var(--ink-2);
    font-size: 15px;
}

.honesty__list li::before {
    position: absolute;
    top: .8em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--warn);
    border-radius: 50%;
    content: "";
}

.honesty__list li + li {
    margin-top: 12px;
}

.faq-section__inner {
    max-width: 900px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

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

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 16px 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

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

.faq-item__marker {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.faq-item__marker::before,
.faq-item__marker::after {
    position: absolute;
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
    background: var(--accent);
    content: "";
    transition: transform .16s ease;
}

.faq-item__marker::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-item__marker::after {
    transform: rotate(0);
}

.faq-item__answer {
    padding: 0 36px 20px 0;
}

.faq-item__answer p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.cta-band {
    padding: 66px 0;
    color: #fff;
    background: var(--ink);
}

.cta-band__inner {
    max-width: 820px;
    text-align: center;
}

.cta-band__title {
    margin-bottom: 12px;
    color: #fff;
}

.cta-band__sub {
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
}

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

.cta-band .btn--ghost {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .32);
}

.cta-band .btn--ghost:hover {
    color: var(--ink);
    background: #fff;
    border-color: #fff;
}

.site-footer {
    padding: 56px 0 100px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-col__heading {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: .06em;
}

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

.footer-col__links li {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.footer-col__links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-col__links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-col__text {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.footer-nav {
    margin-top: 28px;
}

.footer-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav__list a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.footer-nav__list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    display: block;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p + p {
    margin-top: 4px;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: var(--accent);
}

.breadcrumbs {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li + li::before {
    margin-right: 6px;
    color: var(--line-strong);
    content: "/";
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-hero {
    padding: 58px 0 46px;
    background-color: var(--bg-soft);
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    border-bottom: 1px solid var(--line);
}

.page-hero__title {
    max-width: 22em;
    margin-bottom: 12px;
}

.page-hero__lead {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.prose {
    max-width: 820px;
}

.prose > *:last-child {
    margin-bottom: 0;
}

.prose h2 {
    margin: 1.4em 0 .5em;
    font-size: 24px;
}

.prose h3 {
    margin: 1.3em 0 .4em;
}

.prose p,
.prose ul,
.prose ol {
    margin-bottom: 1.2em;
}

.prose p {
    line-height: 1.9;
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    font-size: 14px;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--bg-soft);
}

.prose code {
    padding: 2px 5px;
    font-family: var(--font-mono);
    font-size: .9em;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.prose pre {
    overflow-x: auto;
    padding: 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
}

.prose pre code {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
}

.placeholder-note {
    padding: 18px 20px;
    color: var(--muted);
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    font-size: 15px;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card {
    padding: 26px 28px;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.post-card__title {
    margin-bottom: 8px;
    font-size: 22px;
}

.post-card__title a {
    color: var(--ink);
    text-decoration: none;
}

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

.post-card__excerpt {
    color: var(--muted);
    font-size: 15px;
}

.post-card__excerpt p {
    margin-bottom: 8px;
}

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

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.related-reading h2 {
    margin-bottom: 22px;
}

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

.article-next .card__title {
    margin-bottom: 18px;
}

.pagination {
    margin-top: 28px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 12px;
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.nav-links .current {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.nav-links .dots {
    border-color: transparent;
    background: transparent;
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    background: var(--bg-soft);
    border-left: 3px solid var(--line-strong);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.search-form__field {
    min-height: 44px;
    min-width: 0;
    flex: 1 1 220px;
    padding: 8px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.search-form__field:focus {
    border-color: var(--accent);
}

.chat-dock {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-dock__launcher {
    position: relative;
    z-index: 4;
    box-shadow: 0 6px 20px rgba(11, 18, 32, .18);
}

.chat-dock__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(11, 18, 32, .56);
}

.chat-dock__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 3;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(11, 18, 32, .22);
}

.chat-dock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.chat-dock__head h2 {
    margin: 0;
    font-size: 20px;
}

.chat-dock__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 24px;
    line-height: 1;
}

.chat-dock__channel {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.chat-dock__channel-label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
}

.chat-dock__value {
    margin-bottom: 8px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.chat-dock__value code {
    font-family: var(--font-mono);
    font-size: 13px;
}

.chat-dock__qr {
    width: 160px;
    max-width: 100%;
    height: auto;
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.chat-dock__response {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.chat-dock__status {
    min-height: 1.6em;
    margin: 6px 0 0;
    color: var(--accent-600);
    font-size: 13px;
}

.chat-dock__all {
    margin: 8px 0 0;
    font-size: 13px;
}

.chat-dock__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 12px 0 0;
}

.chat-dock__link {
    font-size: 13px;
    font-weight: 700;
}

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

.js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 1200px) {
    .container {
        width: min(calc(100% - 48px), 1080px);
    }

    .hero__grid {
        gap: 40px;
    }
}

@media (max-width: 980px) {
    .section {
        padding: 68px 0;
    }

    .site-header__inner {
        gap: 12px;
    }

    .nav-toggle {
        display: inline-flex;
        order: 4;
    }

    .header-cta {
        order: 3;
        margin-left: auto;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 20px 18px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 24px rgba(11, 18, 32, .08);
    }

    .nav-ready .primary-nav {
        display: none;
    }

    .nav-ready.nav-open .primary-nav {
        display: block;
    }

    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav__list li {
        border-bottom: 1px solid var(--line);
    }

    .primary-nav__list li:last-child {
        border-bottom: 0;
    }

    .primary-nav__list a {
        min-height: 48px;
        padding: 6px 0;
        font-size: 16px;
    }

    .primary-nav__list .current-menu-item > a,
    .primary-nav__list .current_page_item > a {
        box-shadow: none;
    }

    .hero {
        padding: 54px 0 58px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero__copy {
        max-width: 720px;
    }

    .hero__figure {
        max-width: 640px;
    }

    .hero__title {
        max-width: 18em;
    }

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

    .demo-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-side {
        padding-top: 0;
    }

    .demo-side__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .demo-side__list li {
        padding: 12px;
        border: 1px solid var(--line);
        border-right: 0;
        font-size: 14px;
    }

    .demo-side__list li:last-child {
        border-right: 1px solid var(--line);
    }

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

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

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

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

    .card--feature {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .section {
        padding: 54px 0;
    }

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

    .section-head__sub {
        font-size: 16px;
    }

    .site-header__inner {
        min-height: 64px;
    }

    .wordmark__name {
        font-size: 18px;
    }

    .wordmark__tagline {
        font-size: 9px;
    }

    .header-cta {
        padding-inline: 10px;
        font-size: 13px;
    }

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

    .hero__lead {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__status {
        margin-top: 24px;
        padding-top: 12px;
        font-size: 12px;
    }

    .hero__status li {
        padding: 2px 10px;
    }

    .card {
        padding: 22px;
    }

    .card--feature {
        padding-top: 46px;
    }

    .pain-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .demo__screen {
        padding: 14px;
    }

    .demo__toolbar {
        gap: 8px;
    }

    .demo__speeds {
        margin-left: 0;
    }

    .demo__clock {
        margin-left: 0;
    }

    .demo__row {
        grid-template-columns: 92px 50px minmax(0, 1fr) 64px;
        gap: 8px;
    }

    .demo__switch {
        font-size: 12px;
    }

    .demo__state {
        font-size: 11px;
    }

    .demo-side__list {
        grid-template-columns: 1fr;
    }

    .demo-side__list li {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .demo-side__list li:last-child {
        border-bottom: 1px solid var(--line);
    }

    .table-scroll {
        border-radius: var(--radius-sm);
    }

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

    .post-list--compact,
    .article-next__grid {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 52px 0;
    }

    .cta-band__actions {
        flex-direction: column;
    }

    .cta-band__actions .btn {
        width: 100%;
    }

    .chat-dock {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .chat-dock__panel {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 104px);
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 4px;
    }
}

/* Round 2: product page */
.product-page .page-hero__actions,
.software-page .page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.product-page .page-hero__lead,
.software-page .page-hero__lead {
    margin-top: 16px;
}

.product-page .page-hero__links,
.software-page .page-hero__links {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.product-page .page-hero__links a,
.software-page .page-hero__links a {
    font-weight: 700;
}

.product-page .product-model-grid {
    align-items: start;
}

.product-page .model-card__figure {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
}

.product-page .model-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-page .model-card__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.product-page .model-card__specs li {
    position: relative;
    padding-left: 14px;
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.product-page .model-card__specs li::before {
    position: absolute;
    top: .55em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    content: "";
}

.product-page .product-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
}

.product-page .product-spec {
    min-width: 0;
}

.product-page .product-spec__title {
    margin-bottom: 16px;
    font-size: 22px;
}

.product-page .product-spec .spec-table th,
.product-page .product-spec .spec-table td {
    padding-inline: 14px;
}

.product-page .product-spec .spec-table th {
    width: 38%;
    padding-right: 16px;
}

.product-page .wiring-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 32px;
    align-items: start;
}

.product-page .wiring-figure {
    margin: 0;
    padding: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-page .wiring-figure img {
    width: 100%;
    height: auto;
}

.product-page .wiring-layout .honesty {
    min-width: 0;
}

.product-page .product-inline-note,
.software-page .software-inline-note {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.product-page .product-inline-note a,
.software-page .software-inline-note a {
    font-weight: 700;
}

.product-page .fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-page .fit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px 20px;
    color: var(--ink-2);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.product-page .fit-item__mark {
    color: var(--warn);
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.5;
}

/* Round 2: software page */
.software-page .screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.software-page .screenshot-card {
    min-width: 0;
    margin: 0;
}

.software-page .screenshot-card__caption {
    padding: 16px 2px 0;
}

.software-page .screenshot-card__title {
    margin-bottom: 6px;
    font-size: 17px;
}

.software-page .screenshot-card__text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.software-page .demo-block {
    max-width: 900px;
}

.software-page .demo-tour {
    margin-top: 42px;
}

.software-page .demo-tour__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
    margin-bottom: 14px;
}

.software-page .demo-tour__title {
    margin: 0;
    font-size: 18px;
}

.software-page .demo-tour__hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.software-page .demo-tour__tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.software-page .demo-tour__tab {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 8px 14px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.software-page .demo-tour__tab:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.software-page .demo-tour__tab[aria-selected="true"] {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.software-page .demo-tour__panels {
    margin-top: 18px;
}

.software-page .demo-tour__panel {
    min-width: 0;
}

.software-page .demo-tour__progress {
    height: 3px;
    margin-top: 14px;
    overflow: hidden;
    background: var(--line);
    border-radius: 2px;
}

.software-page .demo-tour__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
}

.software-page .demo-constraint {
    max-width: 880px;
    margin: 24px 0 0;
    padding: 16px 20px;
    color: var(--ink-2);
    background: var(--bg);
    border-left: 3px solid var(--warn);
    font-size: 14px;
}

.software-page .download-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.software-page .download-card__main,
.software-page .download-card__side {
    min-width: 0;
    padding: 30px 32px;
}

.software-page .download-card__side {
    border-left: 1px solid var(--line);
}

.software-page .download-card__name {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.software-page .download-card__meta {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.software-page .download-card__sha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 20px 0;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.software-page .download-card__sha-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.software-page .download-card__sha-value {
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
}

.software-page .download-card__copy-status {
    color: var(--accent);
    font-size: 12px;
}

.software-page .download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.software-page .download-card__actions .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.software-page .download-card__pending {
    margin: 14px 0 0;
    color: var(--warn);
    font-size: 14px;
    font-weight: 700;
}

.software-page .download-card__note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.software-page .download-card__note a {
    font-weight: 700;
}

.software-page .download-card__heading {
    margin: 0 0 10px;
    font-size: 15px;
}

.software-page .download-card__heading:not(:first-child) {
    margin-top: 24px;
}

.software-page .install-steps,
.software-page .system-reqs {
    margin: 0;
    padding-left: 1.2em;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.software-page .install-steps li + li,
.software-page .system-reqs li + li {
    margin-top: 8px;
}

.software-page .changelog-list {
    max-width: 880px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.software-page .changelog-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 18px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.software-page .changelog-list__version {
    color: var(--ink);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* Download page: same tokens as the software card, with room for API docs. */
.download-page .download-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.download-page .download-card__main,
.download-page .download-card__side {
    min-width: 0;
    padding: 30px 32px;
}

.download-page .download-card__side {
    border-left: 1px solid var(--line);
}

.download-page .download-card__name {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.download-page .download-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 20px 0;
}

.download-page .download-meta__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.download-page .download-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.download-page .download-meta dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.download-page .download-meta__code {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.download-page .download-meta__bytes {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.download-page .download-card__sha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 20px 0;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.download-page .download-card__sha-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.download-page .download-card__sha-value {
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: all;
}

.download-page .download-card__copy-status {
    color: var(--accent);
    font-size: 12px;
}

.download-page .download-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.download-page .download-card__actions .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.download-page .download-card__pending {
    margin: 14px 0 0;
    color: var(--warn);
    font-size: 14px;
    font-weight: 700;
}

.download-page .download-card__note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.download-page .download-card__note a {
    font-weight: 700;
}

.download-page .download-card__heading {
    margin: 0 0 10px;
    font-size: 15px;
}

.download-page .download-card__heading:not(:first-child) {
    margin-top: 24px;
}

.download-page .install-steps,
.download-page .system-reqs {
    margin: 0;
    padding-left: 1.2em;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.download-page .install-steps li + li,
.download-page .system-reqs li + li {
    margin-top: 8px;
}

.download-page .changelog-list {
    max-width: 880px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.download-page .changelog-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 18px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.download-page .changelog-list__version {
    color: var(--ink);
    font-family: var(--font-mono);
    font-weight: 700;
}

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

.download-page .download-api-panel {
    min-width: 0;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.download-page .download-api-panel p {
    color: var(--muted);
    font-size: 14px;
}

.download-page .download-code {
    display: block;
    max-width: 100%;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.download-page .download-pre {
    max-width: 100%;
    margin: 0 0 16px;
    padding: 16px;
    background: #0B1220;
    border-radius: var(--radius-sm);
    color: #E2E8F0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
}

.download-page .download-pre code {
    font: inherit;
    color: inherit;
    white-space: pre;
}

.download-page .download-pre--tall {
    max-height: 520px;
    overflow-y: auto;
}

.download-page .download-api-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.download-page .download-related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.download-page .download-related a {
    font-weight: 700;
}

/* Download page: three independent platform cards plus one SDK card. */
.download-page .platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.download-page .platform-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-margin-top: 96px;
}

.download-page .platform-card--unavailable {
    background: var(--bg-soft);
}

.download-page .platform-card__head {
    margin-bottom: 16px;
}

.download-page .platform-card__eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.download-page .platform-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.download-page .platform-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0 0 18px;
}

.download-page .platform-card__meta-item {
    min-width: 0;
}

.download-page .platform-card__meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.download-page .platform-card__meta dd {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.download-page .platform-card__file,
.download-page .platform-card__sha-value,
.download-page .platform-card__bytes {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.download-page .platform-card__file {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.download-page .platform-card__bytes {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.download-page .platform-card__sha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.download-page .platform-card__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.download-page .platform-card__sha-value {
    flex: 1 1 100%;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    user-select: all;
}

.download-page .platform-card__copy-status {
    color: var(--accent);
    font-size: 12px;
}

.download-page .platform-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
}

.download-page .platform-card__pending {
    margin: 0;
    color: var(--warn);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.download-page .platform-card__heading {
    margin: 22px 0 8px;
    font-size: 15px;
}

.download-page .sdk-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 26px 28px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.download-page .sdk-card__body {
    flex: 1 1 480px;
    min-width: 0;
}

.download-page .sdk-card__title {
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 20px;
}

.download-page .sdk-card__text {
    max-width: 760px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.download-page .sdk-card__meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.download-page .sdk-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 1100px) {
    .download-page .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .download-page .download-card,
    .download-page .download-api-grid {
        grid-template-columns: 1fr;
    }

    .download-page .download-card__side {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .download-page .page-hero__actions,
    .download-page .download-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .download-page .page-hero__actions .btn,
    .download-page .download-card__actions .btn {
        width: 100%;
    }

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

    .download-page .download-card__main,
    .download-page .download-card__side {
        padding: 22px;
    }

    .download-page .download-api-panel {
        padding: 18px;
    }

    .download-page .platform-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .download-page .platform-card {
        padding: 22px;
    }

    .download-page .platform-card__actions .btn,
    .download-page .sdk-card__actions .btn {
        width: 100%;
    }

    .download-page .sdk-card {
        padding: 22px;
    }

    .download-page .sdk-card__body {
        flex-basis: 100%;
    }

    .download-page .sdk-card__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 980px) {
    .product-page .product-spec-grid,
    .product-page .wiring-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .software-page .download-card {
        grid-template-columns: 1fr;
    }

    .software-page .download-card__side {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .product-page .page-hero__actions,
    .software-page .page-hero__actions {
        flex-direction: column;
    }

    .product-page .page-hero__actions .btn,
    .software-page .page-hero__actions .btn {
        width: 100%;
    }

    .product-page .model-card__specs,
    .product-page .fit-grid {
        grid-template-columns: 1fr;
    }

    .software-page .download-card__actions {
        flex-direction: column;
    }

    .software-page .download-card__actions .btn {
        width: 100%;
    }

    .software-page .download-card__main,
    .software-page .download-card__side {
        padding: 22px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }

    .card:hover {
        transform: none;
    }
}

/* Round 3: purchase and contact pages */
.purchase-page .page-hero__lead,
.contact-page .page-hero__lead {
    margin-top: 16px;
}

.purchase-page .page-hero__links,
.contact-page .page-hero__links {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.purchase-page .page-hero__links a,
.contact-page .page-hero__links a {
    font-weight: 700;
}

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

.purchase-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.purchase-page .model-card__figure {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.purchase-page .model-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.purchase-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.purchase-card__title {
    margin-bottom: 10px;
    font-size: 20px;
}

.purchase-card__line {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.purchase-card__body .btn {
    align-self: flex-start;
    margin-top: auto;
}

.purchase-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.purchase-reasons li {
    padding: 20px 22px;
    background: var(--bg);
}

.purchase-reasons strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 16px;
}

.purchase-reasons span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.purchase-batch p {
    max-width: 820px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.purchase-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: purchase-step;
}

.purchase-steps li {
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.purchase-steps li::before {
    counter-increment: purchase-step;
    content: counter(purchase-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 14px;
}

.purchase-steps h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.purchase-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.purchase-steps a {
    font-weight: 700;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.channel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
}

.channel-card__title {
    margin: 0;
    font-size: 18px;
}

.channel-card__value {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 16px;
    word-break: break-word;
}

.channel-card__value a {
    font-weight: 700;
}

.channel-card__status {
    min-height: 1.4em;
    color: var(--ok);
    font-size: 13px;
}

.channel-card__qr {
    margin: 4px 0 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.channel-card__qr img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.contact-generic {
    padding: 18px 20px;
    color: var(--muted);
    background: var(--bg-soft);
    border-left: 3px solid var(--line-strong);
    font-size: 15px;
}

.contact-guidance {
    max-width: 720px;
}

.contact-guidance__title {
    margin: 0 0 10px;
    font-size: 20px;
}

.contact-guidance__text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.contact-guidance__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0;
}

.contact-guidance__link {
    font-size: 14px;
    font-weight: 700;
}

.contact-form__note {
    margin-top: 18px;
}

.contact-replies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-replies li {
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-replies strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 16px;
}

.contact-replies span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .purchase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .purchase-steps,
    .contact-replies {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .purchase-grid,
    .purchase-reasons {
        grid-template-columns: 1fr;
    }

    .prose {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prose table {
        min-width: 620px;
    }
}

/* Round 7: content expansion — Android app, SDK, three access paths, gallery. */
.software-page .android-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 34px;
    justify-items: center;
}

.software-page .android-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.software-page .phone-frame {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    background: var(--ink);
    border: 1px solid #243247;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.software-page .phone-frame img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 14px;
}

.software-page .android-figure__caption {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.software-page .android-connections {
    margin-top: 34px;
}

.software-page .android-table {
    min-width: 640px;
}

.software-page .android-table caption {
    padding: 12px 16px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.software-page .android-table thead th {
    color: var(--ink);
    background: var(--bg-soft);
    font-size: 13px;
}

.software-page .android-note,
.software-page .android-meta {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.software-page .android-note {
    padding-left: 14px;
    border-left: 3px solid var(--warn);
}

.software-page .sdk-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.software-page .sdk-code {
    min-width: 0;
}

.software-page .sdk-code__title {
    margin: 0 0 10px;
    font-size: 16px;
}

.software-page .sdk-code pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}

.software-page .sdk-code code {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre;
}

.software-page .sdk-subtitle {
    margin: 34px 0 12px;
    font-size: 18px;
}

.software-page .sdk-capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin: 0;
    padding-left: 1.2em;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.7;
}

.software-page .sdk-params,
.software-page .sdk-boundary {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.software-page .sdk-boundary {
    padding-left: 14px;
    border-left: 3px solid var(--warn);
}

.software-page .software-platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.software-page .download-card__actions.software-platform-actions {
    margin-top: 0;
}

.product-page .access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-page .access-card {
    display: flex;
    flex-direction: column;
}

.product-page .access-card__limit {
    margin: 0 0 12px;
    color: var(--warn);
    font-size: 14px;
    line-height: 1.7;
}

.product-page .access-card .text-link {
    margin-top: auto;
}

.product-page .product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 900px;
}

.product-page .product-gallery__item {
    min-width: 0;
    margin: 0;
    padding: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-page .product-gallery__item img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

.product-page .product-gallery__caption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.product-page .product-gallery__note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.home-platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-platform-card {
    display: flex;
    flex-direction: column;
}

.home-platform-card .text-link {
    margin-top: auto;
}

@media (max-width: 900px) {
    .software-page .android-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .software-page .sdk-code-grid {
        grid-template-columns: 1fr;
    }

    .product-page .access-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .software-page .android-grid {
        grid-template-columns: 1fr;
    }

    .software-page .sdk-capabilities {
        grid-template-columns: 1fr;
    }

    .software-page .software-platform-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .software-page .software-platform-actions .btn {
        width: 100%;
    }

    .product-page .product-gallery {
        grid-template-columns: 1fr;
    }

    .home-platform-grid {
        grid-template-columns: 1fr;
    }
}
