:root {
    --indigo: #3f51b5;
    --indigo-dark: #2f3f9c;
    --ink: #171a2b;
    --muted: #626a7c;
    --line: #d8dbe5;
    --page: #f6f6f4;
    --panel: #ffffff;
    --green: #159455;
    --red: #d94b56;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }
a { color: inherit; }

.device-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 68px;
    padding: 0 clamp(20px, 4vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(23, 26, 43, .09);
    backdrop-filter: blur(14px);
}

.device-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--indigo);
    font-family: "Sora", sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.device-logo img { width: 38px; height: 38px; object-fit: contain; }

.device-nav nav { display: flex; align-items: center; gap: 30px; }
.device-nav nav > a { color: #4e5568; font-size: .92rem; font-weight: 600; text-decoration: none; }
.device-nav nav > a:hover { color: var(--indigo); }

.device-nav .nav-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    background: var(--indigo);
    border-radius: 7px;
}

.device-nav .nav-download:hover { color: #fff; background: var(--indigo-dark); }
.device-nav svg { width: 17px; height: 17px; }

main { overflow: hidden; }

.device-hero {
    position: relative;
    padding: 96px 24px 76px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(63, 81, 181, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 81, 181, .035) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, #e8ecff 0, transparent 55%);
    background-size: 36px 36px, 36px 36px, auto;
}

.device-hero::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -1px;
    width: min(1180px, calc(100% - 40px)); height: 14px;
    transform: translateX(-50%);
    border-left: 1px solid #c9cddb;
    border-right: 1px solid #c9cddb;
    pointer-events: none;
}

.device-eyebrow, .section-kicker {
    color: var(--indigo);
    font-family: "Sora", sans-serif;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.device-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.device-eyebrow svg { width: 18px; height: 18px; }

h1, h2 { margin: 0; font-family: "Sora", sans-serif; letter-spacing: -.035em; }

.device-hero h1 {
    max-width: 880px;
    margin: 18px auto 18px;
    font-size: clamp(2.35rem, 5.4vw, 4.7rem);
    line-height: 1.03;
}

.device-hero > p:not(.privacy-note) {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.hero-actions, .footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions { margin-top: 30px; }

.primary-button, .secondary-button, .card-button, .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.primary-button { padding: 13px 20px; color: #fff; background: var(--indigo); }
.primary-button:hover, .card-button:hover:not(:disabled) { background: var(--indigo-dark); transform: translateY(-1px); }
.secondary-button { padding: 12px 19px; color: var(--indigo); background: #fff; border: 1px solid #cbd0e2; }
.secondary-button:hover { border-color: var(--indigo); transform: translateY(-1px); }
.primary-button svg, .secondary-button svg, .card-button svg { width: 18px; height: 18px; }

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 17px auto 0;
    color: #737b8a;
    font-size: .86rem;
}

.privacy-note svg { width: 16px; height: 16px; color: var(--green); }

.browser-coverage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    color: #7b8291;
    font-size: .75rem;
}

.browser-coverage > span {
    margin-right: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.browser-coverage strong {
    padding: 4px 9px;
    color: #4f5871;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #d5d8e3;
    border-radius: 99px;
}

.device-shell, .device-grid, .routing-summary, .browser-wide-section, .limits-section {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.device-shell {
    margin-top: 66px;
    padding: clamp(22px, 4vw, 38px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h2, .routing-summary h2, .limits-section h2 { margin-top: 7px; font-size: clamp(1.55rem, 3vw, 2.35rem); }

.icon-button { width: 42px; height: 42px; color: var(--indigo); background: #eef0fa; border: 1px solid #d7daf0; }
.icon-button:hover { background: #e3e6f7; }
.icon-button svg { width: 18px; height: 18px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.support-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fafafa;
}

.support-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--indigo); background: #eceefa; border-radius: 7px; }
.support-icon svg { width: 18px; height: 18px; }
.support-item strong, .support-item small { display: block; }
.support-item strong { font-size: .9rem; }
.support-item small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.support-state { padding: 4px 8px; color: #73798a; background: #eceef2; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.support-item.is-supported .support-state { color: #08703c; background: #ddf5e8; }
.support-item.is-unsupported .support-state { color: #a52d37; background: #f9e2e5; }

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    color: #526078;
    background: #eff2f8;
    border-left: 3px solid var(--indigo);
    line-height: 1.5;
}
.notice svg { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.notice.is-success { color: #11683e; background: #eaf7f0; border-color: var(--green); }
.notice.is-error { color: #8c2e36; background: #fbecee; border-color: var(--red); }

.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }

.device-card {
    position: relative;
    padding: clamp(22px, 4vw, 36px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.device-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--indigo); }
.device-card--mic::before { background: #159455; }
.device-card-header { display: flex; align-items: center; gap: 14px; }
.device-type-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--indigo); background: #e9ebf8; border-radius: 8px; }
.device-card--mic .device-type-icon { color: #0d8b4d; background: #e2f5eb; }
.device-type-icon svg { width: 24px; height: 24px; }
.device-step { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.device-card h2 { margin-top: 2px; font-size: 1.55rem; }
.device-card > p { min-height: 52px; margin: 20px 0 24px; color: var(--muted); line-height: 1.6; }
.device-card code { padding: 2px 5px; color: var(--indigo-dark); background: #eef0fa; border-radius: 4px; font-size: .86em; }
.device-card label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 800; }

.select-wrap { position: relative; }
.select-wrap > svg:first-child { position: absolute; z-index: 1; top: 50%; left: 14px; width: 18px; height: 18px; color: #677085; transform: translateY(-50%); pointer-events: none; }
.select-wrap .select-chevron { position: absolute; top: 50%; right: 14px; width: 17px; height: 17px; color: #677085; transform: translateY(-50%); pointer-events: none; }
.select-wrap select {
    width: 100%;
    height: 48px;
    padding: 0 42px;
    color: var(--ink);
    background: #f7f7f7;
    border: 1px solid #ccd1dd;
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    outline: none;
}
.select-wrap select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(63, 81, 181, .12); }
.select-wrap select:disabled { cursor: not-allowed; opacity: .62; }

.meter-block { margin: 22px 0; }
.meter-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.meter-track { height: 9px; background: #e8eae9; border-radius: 99px; overflow: hidden; }
.meter-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #26ad66, #8ad149); border-radius: inherit; transition: width .08s linear; }

.card-button { width: 100%; min-height: 46px; padding: 11px 16px; color: #fff; background: var(--indigo); }
.card-button:disabled { cursor: not-allowed; opacity: .45; }
.card-button--outline { color: var(--indigo); background: #fff; border: 1px solid #c8cee2; }
.card-button--outline:hover:not(:disabled) { color: #fff; }
.speaker-actions { display: grid; gap: 9px; margin-top: 22px; }
.device-card .card-hint { display: flex; gap: 8px; min-height: 0; margin: 17px 0 0; font-size: .79rem; line-height: 1.45; }
.card-hint svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }

.routing-summary {
    margin-top: 18px;
    padding: clamp(24px, 5vw, 48px);
    color: #fff;
    background: var(--indigo);
    border-radius: 8px;
}
.routing-summary { display: grid; grid-template-columns: .72fr 1.4fr; align-items: center; gap: 44px; }
.routing-summary .section-kicker { color: #d9ddff; }
.routing-summary p { margin: 13px 0 0; color: rgba(255,255,255,.75); line-height: 1.55; }
.route-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.route-node { min-width: 0; padding: 18px 12px; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.19); border-radius: 7px; }
.route-node > svg, .route-node > img { width: 27px; height: 27px; margin-bottom: 8px; object-fit: contain; }
.route-node span, .route-node strong { display: block; }
.route-node span { color: rgba(255,255,255,.67); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.route-node strong { margin-top: 5px; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-node--connect { background: #fff; color: var(--indigo); }
.route-node--connect span { color: #727995; }
.route-arrow { width: 18px; height: 18px; color: #c9ceff; }

.browser-wide-section {
    margin-top: 18px;
    padding: clamp(26px, 5vw, 48px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.browser-wide-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 30px;
}

.browser-wide-heading h2 {
    margin-top: 7px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.browser-wide-heading p {
    max-width: 760px;
    margin: 13px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.browser-wide-heading code {
    padding: 2px 5px;
    color: var(--indigo-dark);
    background: #eef0fa;
    border-radius: 4px;
}

.detected-browser {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 9px;
    min-width: 180px;
    padding: 13px 15px;
    background: #f0f1f8;
    border: 1px solid #d8dbea;
    border-radius: 7px;
}

.detected-browser svg {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
    color: var(--indigo);
}

.detected-browser span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.detected-browser strong { font-family: "Sora", sans-serif; font-size: .9rem; }

.browser-wide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.browser-wide-steps article {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 24px;
    background: #f8f8f7;
    border: 1px solid #dfe1e7;
    border-radius: 7px;
}

.wide-step-number {
    position: absolute;
    top: 16px;
    right: 17px;
    color: #a3a8b6;
    font-family: "Sora", sans-serif;
    font-size: .78rem;
    font-weight: 800;
}

.wide-step-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--indigo);
    background: #e7e9f7;
    border-radius: 7px;
}

.wide-step-icon svg { width: 21px; height: 21px; }
.browser-wide-steps h3 { margin: 18px 0 0; font-family: "Sora", sans-serif; font-size: 1rem; }
.browser-wide-steps p { margin: 9px 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.copy-setting-button, .setting-path {
    margin-top: auto;
    color: var(--indigo-dark);
    font-size: .78rem;
    font-weight: 700;
}

.copy-setting-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #cbd0e2;
    border-radius: 6px;
    cursor: pointer;
}

.copy-setting-button:hover { border-color: var(--indigo); }
.copy-setting-button svg { width: 15px; height: 15px; }
.setting-path { display: block; line-height: 1.45; }

.sound-permission-note {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    color: #7a8191;
    border-top: 1px solid #dddfe5;
    font-size: .73rem;
    line-height: 1.45;
}

.browser-wide-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 16px;
    color: #555f77;
    background: #eff1f8;
    border-left: 3px solid var(--indigo);
    line-height: 1.5;
}

.browser-wide-note svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; color: var(--indigo); }

.limits-section { margin-top: 18px; margin-bottom: 80px; padding: clamp(26px, 5vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.limits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.limit-item { display: flex; align-items: flex-start; gap: 13px; padding: 20px; background: #f8f8f7; border: 1px solid #e0e2e7; border-radius: 7px; }
.limit-item > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.limit-item--yes > svg { color: var(--green); }
.limit-item--no > svg { color: var(--red); }
.limit-item strong { font-family: "Sora", sans-serif; }
.limit-item p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.platform-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 16px 18px; color: #4f5870; background: #eff1f8; border-left: 3px solid var(--indigo); line-height: 1.55; }
.platform-note svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; color: var(--indigo); }

.device-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 26px;
    padding: 42px clamp(20px, 5vw, 72px) 24px;
    color: #fff;
    background: #151827;
}
.device-footer .device-logo { color: #9ca8ff; }
.device-footer p { margin: 8px 0 0; color: #9ca1b2; }
.device-footer .secondary-button { color: #fff; background: transparent; border-color: #4a4f61; }
.footer-legal { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding-top: 22px; color: #858a9a; border-top: 1px solid #313544; font-size: .82rem; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-legal span { margin-left: auto; }

@media (max-width: 900px) {
    .support-grid, .device-grid, .browser-wide-steps, .limits-grid { grid-template-columns: 1fr; }
    .routing-summary { grid-template-columns: 1fr; }
    .route-flow { max-width: 680px; width: 100%; }
    .browser-wide-heading { grid-template-columns: 1fr; }
    .detected-browser { justify-self: start; }
}

@media (max-width: 680px) {
    .device-nav nav > a:not(.nav-download) { display: none; }
    .device-nav { padding: 0 16px; }
    .device-nav .nav-download { padding: 9px 12px; font-size: .82rem; }
    .device-hero { padding: 72px 20px 58px; }
    .device-shell, .device-grid, .routing-summary, .browser-wide-section, .limits-section { width: calc(100% - 24px); }
    .support-item { grid-template-columns: auto 1fr; }
    .support-state { grid-column: 2; justify-self: start; }
    .route-flow { grid-template-columns: 1fr; }
    .route-arrow { transform: rotate(90deg); justify-self: center; }
    .device-footer { grid-template-columns: 1fr; text-align: center; }
    .device-footer .device-logo { justify-content: center; }
    .footer-actions { flex-direction: column; align-items: stretch; }
    .footer-legal { justify-content: center; flex-wrap: wrap; }
    .footer-legal span { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
