:root {
    color-scheme: light;
    --paper: #fff;
    --surface: #fff;
    --surface-soft: #f5f5f7;
    --ink: #1d1d1f;
    --muted: #55555a;
    --line: #d2d2d7;
    --strong: #1d1d1f;
    --strong-text: #fff;
    --focus: #155eef;
    --container: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #111;
    --surface: #181818;
    --surface-soft: #202020;
    --ink: #f5f5f7;
    --muted: #b8b8bd;
    --line: #414145;
    --strong: #f5f5f7;
    --strong-text: #161616;
    --focus: #8ab4f8;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --paper: #111;
        --surface: #181818;
        --surface-soft: #202020;
        --ink: #f5f5f7;
        --muted: #b8b8bd;
        --line: #414145;
        --strong: #f5f5f7;
        --strong-text: #161616;
        --focus: #8ab4f8;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

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

a {
    color: inherit;
}

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

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

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    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;
    z-index: 20;
    inset: 12px auto auto 12px;
    padding: 10px 16px;
    background: var(--surface);
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header__inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.wordmark {
    color: var(--ink);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.045em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 30px);
}

.site-nav > a {
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
}

.site-nav > a:not(.site-nav__cta):hover,
.text-link:hover,
.language-menu__list a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-nav .site-nav__cta {
    padding: 9px 13px;
    border: 1px solid var(--strong);
    border-radius: 4px;
    background: var(--strong);
    color: var(--strong-text);
}

.language-menu {
    position: relative;
    font-size: 12px;
}

.language-menu summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

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

.language-menu__list {
    position: absolute;
    z-index: 15;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    display: grid;
    width: 190px;
    max-height: 310px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.language-menu__list a {
    padding: 7px 9px;
    text-decoration: none;
}

.language-menu__list a[aria-current="page"] {
    background: var(--surface-soft);
    font-weight: 700;
}

.theme-toggle,
.menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.theme-toggle {
    font-size: 18px;
}

.menu-toggle {
    display: none;
}

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

.hero__grid {
    display: grid;
    min-height: 424px;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    align-items: center;
    gap: clamp(36px, 7vw, 100px);
    padding-block: 56px;
}

.hero__content,
.hero__offers {
    min-width: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    text-wrap: balance;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(40px, 4.4vw, 62px);
    font-weight: 620;
    letter-spacing: -0.06em;
    line-height: 1.04;
}

.hero__lede {
    max-width: 670px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border: 1px solid var(--strong);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.button--primary {
    background: var(--strong);
    color: var(--strong-text);
}

.button--primary:hover {
    background: var(--ink);
    color: var(--paper);
}

.button--secondary {
    background: transparent;
    color: var(--ink);
}

.button--secondary:hover {
    background: var(--strong);
    color: var(--strong-text);
}

.text-link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero__notice {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.hero__offers {
    padding: 22px 24px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.hero__offers-label {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 650;
}

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

.hero-offers__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}

.hero-offers__name,
.hero-offers__spec {
    display: block;
}

.hero-offers__name {
    font-size: 14px;
    font-weight: 620;
}

.hero-offers__spec {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.hero-offers__item strong {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.hero-offers__item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 450;
    letter-spacing: 0;
}

.section {
    padding-block: 78px;
}

.section--models {
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.section-heading h2,
.request-copy h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 610;
    letter-spacing: -0.05em;
    line-height: 1.12;
}

.section-heading > p,
.section-heading > div > p {
    max-width: 560px;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 14px;
}

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

.model-card {
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    background: var(--surface);
}

.model-card__head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.model-card__head h3 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 620;
    letter-spacing: -0.035em;
}

.model-card__head p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.model-card__prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 22px 0;
    margin: 0;
}

.model-price {
    min-width: 0;
}

.model-price dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.model-price dd {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 630;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.model-card > .button {
    width: 100%;
}

.section--benchmarks {
    border-bottom: 1px solid var(--line);
}

.section-heading--benchmark {
    align-items: center;
}

.section-heading--benchmark > div {
    min-width: 0;
}

.section-heading--benchmark h2 {
    margin-bottom: 8px;
}

.section-heading--benchmark .text-link {
    flex: 0 0 auto;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--surface);
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--muted) var(--surface-soft);
}

.benchmark-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    text-align: start;
}

.benchmark-table caption {
    padding: 13px 15px;
    color: var(--muted);
    font-size: 13px;
    text-align: start;
}

.benchmark-table th,
.benchmark-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    text-align: start;
    white-space: nowrap;
}

.benchmark-table thead th {
    background: var(--surface-soft);
    font-size: 12px;
    font-weight: 650;
}

.benchmark-table thead th span {
    color: var(--muted);
    font-weight: 450;
}

.benchmark-table tbody th {
    font-size: 13px;
    font-weight: 630;
}

.benchmark-table tbody td {
    font-size: 13px;
}

.benchmark-table tbody tr:nth-child(even) {
    background: var(--surface-soft);
}

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

.benchmark-method {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.benchmark-method summary {
    padding: 14px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 620;
}

.benchmark-method p {
    max-width: 980px;
    color: var(--muted);
    font-size: 13px;
}

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

.section--editorial {
    border-bottom: 1px solid var(--line);
}

.editorial-content {
    overflow-wrap: anywhere;
}

.editorial-content h2 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.05em;
}

.editorial-content h3 {
    font-size: 20px;
}

.request-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(32px, 7vw, 100px);
}

.request-copy h2 {
    max-width: 480px;
}

.request-copy > p:not(.request-copy__notice) {
    max-width: 520px;
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.request-copy__notice {
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.request-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    background: var(--surface);
}

.rms-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.rms-form__grid > label {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 590;
}

.rms-form__grid > label:not(.rms-form__wide) > span {
    min-height: 3.2em;
}

.rms-form__configuration {
    grid-column: 1 / -1;
}

.rms-form__configuration select {
    min-height: 66px;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 620;
}

.rms-form__date-iso {
    display: block;
    min-height: 1.4em;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.rms-form__grid > label small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.rms-form input,
.rms-form select,
.rms-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink);
}

.rms-form textarea {
    min-height: 112px;
    resize: vertical;
}

.rms-form__wide {
    grid-column: 1 / -1;
}

.rms-form__privacy {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.rms-form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.rms-form > .button {
    width: 100%;
}

.rms-form__grid + .button {
    margin-top: 18px;
}

.site-main {
    overflow-wrap: anywhere;
}

.form-feedback {
    padding: 12px 14px;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    font-size: 14px;
}

.form-feedback--success {
    border-inline-start: 4px solid var(--ink);
}

.form-feedback--error {
    border-inline-start: 4px solid #a12020;
}

.site-footer {
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px;
}

.site-footer__inner p,
.site-footer__inner > span {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .site-header__inner {
        gap: 16px;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav > a {
        font-size: 12px;
    }

    .hero__grid {
        min-height: 390px;
        grid-template-columns: minmax(0, 1fr) minmax(285px, 0.9fr);
        gap: 32px;
        padding-block: 44px;
    }

    .hero h1 {
        font-size: clamp(36px, 5.2vw, 48px);
    }

    .request-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 32px;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 68px;
    }

    .container {
        width: min(var(--container), calc(100% - 36px));
    }

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

    .menu-toggle {
        display: grid;
    }

    .menu-toggle__lines,
    .menu-toggle__lines::before,
    .menu-toggle__lines::after {
        display: block;
        width: 17px;
        height: 1px;
        background: currentColor;
    }

    .menu-toggle__lines {
        position: relative;
    }

    .menu-toggle__lines::before,
    .menu-toggle__lines::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .menu-toggle__lines::before {
        top: -5px;
    }

    .menu-toggle__lines::after {
        top: 5px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        display: none;
        align-items: stretch;
        padding: 12px 18px 18px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
    }

    .site-nav.is-open {
        display: grid;
        gap: 0;
    }

    .site-nav > a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }

    .site-nav .site-nav__cta {
        margin-block: 12px;
        text-align: center;
    }

    .language-menu {
        padding: 5px 4px;
        border-bottom: 1px solid var(--line);
    }

    .language-menu summary {
        min-height: 42px;
    }

    .language-menu__list {
        position: static;
        width: 100%;
        max-height: 220px;
        margin-bottom: 8px;
    }

    .theme-toggle {
        margin-top: 12px;
    }

    .hero__grid {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-block: 28px 24px;
    }

    .hero h1 {
        max-width: 620px;
        margin-bottom: 16px;
        font-size: clamp(36px, 10vw, 46px);
        line-height: 1.04;
    }

    .hero__lede {
        margin-bottom: 21px;
        font-size: 16px;
    }

    .hero__actions {
        align-items: stretch;
        gap: 12px 16px;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__actions .text-link {
        padding-block: 4px;
    }

    .hero__notice {
        margin-top: 12px;
    }

    .hero__offers {
        padding: 14px;
    }

    .hero-offers__item {
        gap: 10px;
        padding-block: 10px;
    }

    .hero-offers__item strong {
        font-size: 18px;
    }

    .section {
        padding-block: 58px;
    }

    .section-heading,
    .section-heading--benchmark {
        display: grid;
        align-items: start;
        gap: 10px;
        margin-bottom: 22px;
    }

    .section-heading h2,
    .request-copy h2 {
        font-size: 30px;
    }

    .section-heading > p,
    .section-heading > div > p {
        font-size: 13px;
    }

    .section-heading--benchmark .text-link {
        justify-self: start;
    }

    .benchmark-table-hint {
        margin: -8px 0 8px;
        color: var(--muted);
        font-size: 12px;
    }

    .model-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .model-card {
        padding: 20px 17px;
    }

    .model-card__prices {
        gap: 5px;
        padding-block: 18px;
    }

    .model-price dt {
        font-size: 11px;
    }

    .model-price dd {
        font-size: clamp(18px, 6vw, 22px);
    }

    .table-scroll {
        margin-inline: 0;
    }

    .benchmark-table {
        min-width: 900px;
    }

    .benchmark-table th,
    .benchmark-table td {
        padding: 11px 12px;
    }

    .request-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .request-panel {
        padding: 18px 15px;
    }

    .rms-form__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .rms-form__grid > label:not(.rms-form__wide) > span {
        min-height: 0;
    }

    .rms-form__wide {
        grid-column: auto;
    }

    .site-footer__inner {
        display: grid;
        justify-content: start;
        gap: 8px;
        padding-block: 22px;
    }
}

@media (max-width: 390px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero__offers {
        padding-inline: 12px;
    }

    .hero-offers__spec {
        font-size: 11px;
    }

    .hero-offers__item strong {
        font-size: 17px;
    }

    .model-card {
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
