/* 1. Custom properties and global defaults */
:root {
    --color-navy-950: #031622;
    --color-navy-900: #062130;
    --color-navy-800: #0a2b3e;
    --color-navy-700: #153f56;
    --color-gold: #ffc542;
    --color-gold-deep: #e8a91f;
    --color-paper: #f4f7f8;
    --color-surface: #ffffff;
    --color-ink: #071626;
    --color-muted: #4d6473;
    --color-border: #bfd0d9;
    --color-white: #ffffff;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Arial Narrow", "Aptos Display", var(--font-sans);
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.2rem;
    --text-xl: clamp(1.45rem, 2.5vw, 2rem);
    --text-2xl: clamp(2rem, 5vw, 3.75rem);
    --content-width: 73rem;
    --space-1: 0.35rem;
    --space-2: 0.65rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --radius-sm: 0.35rem;
    --radius-md: 0.65rem;
    --shadow-card: 0 0.8rem 2rem rgb(2 19 29 / 0.16);
    --shadow-focus: 0 0 0 0.2rem rgb(255 197 66 / 0.45);
}

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

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    margin: 0;
    background: var(--color-navy-950);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.55;
}

/* 2. Base element styles */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 0.15rem solid var(--color-gold);
    outline-offset: 0.2rem;
    box-shadow: var(--shadow-focus);
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.08;
}

h1 {
    font-size: var(--text-2xl);
}

h2 {
    font-size: var(--text-xl);
}

/* 3. Layout */
.site-canvas {
    width: min(100%, var(--content-width));
    min-height: 100vh;
    margin-inline: auto;
    background: var(--color-paper);
}

.container {
    width: min(100% - 3rem, var(--content-width));
    margin-inline: auto;
}

.section-light {
    background:
        radial-gradient(circle at 88% 10%, rgb(191 208 217 / 0.28), transparent 20rem),
        var(--color-paper);
}

.visually-hidden {
    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 {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-gold);
    color: var(--color-ink);
    font-weight: 800;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* 4. Header and navigation */
.site-header {
    position: relative;
    z-index: 20;
    background: #0a1b25;
    color: var(--color-white);
}

.site-header__inner {
    min-height: 5.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-white);
    text-decoration: none;
}

.brand__mark {
    width: 3rem;
    height: auto;
}

.brand__name {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.brand__name span {
    color: var(--color-gold);
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav a,
.footer-nav a {
    position: relative;
    display: inline-block;
    padding-block: 0.65rem;
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.25rem;
    left: 0;
    height: 0.13rem;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 150ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-white);
}

/* 5. Shared components */
.eyebrow {
    margin-bottom: var(--space-2);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow--dark {
    color: var(--color-navy-700);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.72rem 1.2rem;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    background: linear-gradient(135deg, #ffd263, var(--color-gold));
    color: var(--color-ink);
    box-shadow: 0 0.4rem 1rem rgb(232 169 31 / 0.2);
}

.button--dark {
    background: var(--color-navy-900);
    color: var(--color-white);
}

.button--outline {
    border: 1px solid var(--color-white);
    background: rgb(3 22 34 / 0.58);
    color: var(--color-white);
}

.button--small {
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    font-size: var(--text-sm);
}

.text-link {
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 800;
    text-decoration: none;
}

.text-link--dark {
    color: var(--color-ink);
}

.section-heading {
    margin-bottom: var(--space-3);
}

.section-heading--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.software-card {
    display: grid;
    min-height: 11rem;
    min-width: 0;
    overflow: hidden;
    grid-template-columns: 10rem minmax(0, 1fr);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, var(--color-navy-900), var(--color-navy-950));
    color: var(--color-white);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.software-card:hover {
    box-shadow: 0 1rem 2.25rem rgb(2 19 29 / 0.24);
    transform: translateY(-0.12rem);
}

.software-card:focus-visible {
    outline-offset: 0.2rem;
}

.software-card__media {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: var(--space-3);
    background: var(--color-navy-900);
}

.software-card__image {
    width: 100%;
    height: 100%;
    max-height: 9rem;
    object-fit: contain;
}

.software-card__body {
    min-width: 0;
    align-self: center;
    padding: var(--space-3);
}

.software-card h2 {
    margin-bottom: var(--space-1);
    font-size: 1.1rem;
}

.software-card__tagline {
    margin-bottom: var(--space-2);
    color: #d4e0e6;
    font-size: var(--text-sm);
}

.software-card__platforms {
    margin-bottom: 0;
    color: #9fc2d3;
    font-size: var(--text-xs);
    font-weight: 700;
}

.software-card__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, var(--color-navy-700), var(--color-navy-950));
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.software-detail__fallback {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, var(--color-navy-700), var(--color-navy-950));
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.status-badge {
    display: table;
    margin-bottom: var(--space-2);
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background: #1075bc;
    color: var(--color-white);
    font-size: 0.68rem;
    font-weight: 800;
}

.notice {
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    border-left: 0.3rem solid var(--color-gold);
    border-radius: var(--radius-sm);
    background: #fff7dc;
    color: #49390d;
}

.notice--error {
    border-left-color: #b83232;
    background: #fff0f0;
    color: #681b1b;
}

.pagination {
    display: flex;
    gap: 0.45rem;
}

.pagination a {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    text-decoration: none;
}

.pagination a[aria-current="page"] {
    border-color: var(--color-gold);
    background: var(--color-gold);
    font-weight: 900;
}

.page-heading {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgb(3 22 34 / 0.94), rgb(6 33 48 / 0.65)),
        url("../images/placeholders/temporary-coastal-banner.svg") center / cover;
    color: var(--color-white);
}

.page-heading__content {
    padding-block: clamp(2.7rem, 8vw, 5rem);
}

.page-heading h1 {
    margin-bottom: var(--space-2);
}

.page-heading__intro {
    max-width: 43rem;
    margin-bottom: 0;
    font-size: var(--text-lg);
}

/* 6. Page-framework styles */
.home-hero {
    background: var(--color-navy-900);
}

.home-hero__art {
    width: 100%;
    height: auto;
}

.interior-banner {
    height: clamp(25rem, 44vw, 32rem);
    overflow: hidden;
    background: var(--color-navy-900);
}

.interior-banner__art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.featured-section {
    position: relative;
    z-index: 1;
    margin-top: -7.5rem;
    padding-block: var(--space-5) var(--space-4);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.catalog {
    min-height: 40rem;
    padding-block: var(--space-5) var(--space-7);
}

.catalog-introduction {
    margin-bottom: var(--space-4);
}

.catalog-introduction h1 {
    margin-bottom: var(--space-2);
}

.catalog-introduction p {
    max-width: 43rem;
    margin-bottom: 0;
    font-size: var(--text-lg);
}

.catalog-empty {
    max-width: 43rem;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.catalog-tools {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: var(--space-3);
}

.catalog-tools input,
.catalog-tools select {
    width: 100%;
}

.control-note {
    margin: var(--space-2) 0 var(--space-4);
    color: var(--color-muted);
    font-size: var(--text-xs);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.catalog-footer p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.mobile-group-controls {
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.mobile-group-controls p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-xs);
    text-align: center;
}

.software-detail {
    padding-block: var(--space-6) var(--space-7);
}

.software-detail__heading {
    margin-bottom: var(--space-6);
}

.software-detail__heading h1 {
    margin-bottom: var(--space-2);
}

.software-detail__heading > p:last-child {
    max-width: 43rem;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: var(--text-lg);
}

.software-detail__presentation {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

.software-detail__media {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-navy-900);
    box-shadow: var(--shadow-card);
}

.software-detail__media--carousel {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.software-detail__summary {
    padding-top: var(--space-2);
}

.software-detail__description {
    margin-bottom: var(--space-4);
    color: var(--color-navy-900);
    font-size: clamp(1.2rem, 2.3vw, 1.65rem);
    font-weight: 750;
    line-height: 1.35;
}

.software-detail__full-description {
    max-width: 66rem;
    margin-top: var(--space-6);
    font-size: 1.075rem;
    line-height: 1.75;
}

.software-detail__full-description p {
    margin-bottom: var(--space-3);
}

.software-detail__full-description p:last-child {
    margin-bottom: 0;
}

.product-facts {
    margin-block: var(--space-4);
    border-block: 1px solid var(--color-border);
}

.product-facts div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.product-facts div:last-child {
    border-bottom: 0;
}

.product-facts dt {
    font-weight: 800;
}

.product-facts dd {
    margin: 0;
}

.screenshot-carousel {
    position: relative;
}

.screenshot-carousel__viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-navy-950);
    box-shadow: var(--shadow-card);
    touch-action: pan-y;
}

.screenshot-carousel__slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: var(--color-navy-950);
    color: var(--color-white);
    cursor: zoom-in;
}

.screenshot-carousel__slide[hidden] {
    display: none;
}

.screenshot-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.screenshot-carousel__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem var(--space-3) var(--space-2);
    background: linear-gradient(transparent, rgb(3 22 34 / 0.88));
    font-size: var(--text-sm);
    text-align: left;
}

.screenshot-carousel__arrow,
.screenshot-lightbox__arrow,
.screenshot-lightbox__close {
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: 999px;
    background: rgb(3 22 34 / 0.82);
    color: var(--color-white);
    cursor: pointer;
}

.screenshot-carousel__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.screenshot-carousel__arrow--previous {
    left: var(--space-2);
}

.screenshot-carousel__arrow--next {
    right: var(--space-2);
}

.screenshot-carousel__indicators {
    min-height: 1.5rem;
    margin-top: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.screenshot-carousel__indicators button {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    background: rgb(3 22 34 / 0.65);
    box-shadow: 0 0.1rem 0.35rem rgb(0 0 0 / 0.45);
    cursor: pointer;
}

.screenshot-carousel__indicators button[aria-current="true"] {
    background: var(--color-gold);
}

.screenshot-lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-white);
    overflow: hidden;
}

.screenshot-lightbox[open] {
    display: grid;
    place-items: center;
}

.screenshot-lightbox::backdrop {
    background: rgb(3 22 34 / 0.94);
    backdrop-filter: blur(0.2rem);
}

.screenshot-lightbox__panel {
    position: relative;
    width: min(calc(100% - 3rem), calc(var(--lightbox-natural-width, 56.25rem) + 8.75rem), 65rem);
    max-height: calc(100dvh - 3rem);
    display: grid;
    place-items: center;
    padding: 4rem 4.375rem 3rem;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: var(--radius-md);
    background: var(--color-navy-900);
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 0.5);
    touch-action: pan-y;
}

.screenshot-lightbox__figure {
    width: min(100%, 56.25rem, var(--lightbox-natural-width, 56.25rem));
    max-height: calc(100dvh - 10rem);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    margin: 0;
    place-items: center;
}

.screenshot-lightbox__figure img {
    width: min(100%, 56.25rem, var(--lightbox-natural-width, 56.25rem));
    height: auto;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100dvh - 12rem);
    object-fit: contain;
    place-self: center;
}

.screenshot-lightbox__figure figcaption {
    max-width: 70rem;
    padding-top: var(--space-2);
    color: #d6e3e9;
    font-size: var(--text-sm);
    text-align: center;
}

.screenshot-lightbox__close {
    position: absolute;
    z-index: 3;
    top: var(--space-3);
    right: var(--space-3);
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    line-height: 1;
}

.screenshot-lightbox__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 2.4rem;
    line-height: 1;
    transform: translateY(-50%);
}

.screenshot-lightbox__arrow--previous {
    left: var(--space-3);
}

.screenshot-lightbox__arrow--next {
    right: var(--space-3);
}

.screenshot-lightbox__status {
    position: absolute;
    right: 0;
    bottom: var(--space-3);
    left: 0;
    margin: 0;
    color: #d6e3e9;
    font-size: var(--text-sm);
    text-align: center;
}

html.media-lightbox-open,
body.media-lightbox-open {
    overflow: hidden;
}

.information-page {
    min-height: 37rem;
    padding-block: var(--space-6) var(--space-7);
}

.privacy-policy {
    padding-block: var(--space-6) var(--space-7);
}

.privacy-policy__document {
    max-width: 55rem;
}

.privacy-policy__header {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-ink);
}

.privacy-policy__header h1 {
    max-width: none;
    margin-bottom: var(--space-2);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.privacy-policy__updated {
    margin: 0;
    color: var(--color-muted);
}

.privacy-policy section + section {
    margin-top: var(--space-5);
}

.privacy-policy section h2 {
    max-width: 48rem;
    margin-bottom: var(--space-2);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.privacy-policy section p {
    max-width: 48rem;
}

.privacy-policy__choice {
    max-width: 48rem;
    margin-block: var(--space-3);
    padding: var(--space-3);
    border-left: 4px solid var(--color-gold);
    background: var(--color-surface);
}

.privacy-policy__choice p,
.privacy-policy__opt-out {
    margin-bottom: 0;
}

.privacy-policy__opt-out {
    margin-block: var(--space-3);
}

.prose {
    max-width: 55rem;
}

.about-introduction {
    margin-bottom: var(--space-5);
}

.about-introduction p {
    max-width: 48rem;
    margin-bottom: 0;
    font-size: var(--text-lg);
}

.prose section + section {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}

.prose p {
    max-width: 48rem;
}

.error-page {
    min-height: 65vh;
    display: grid;
    align-items: center;
    padding-block: var(--space-7);
}

.error-page__content {
    max-width: 48rem;
}

/* 7. Forms */
.contact-form {
    margin-top: var(--space-4);
}

.contact-direct {
    min-height: 42rem;
    padding-block: var(--space-6) var(--space-7);
}

.contact-workspace {
    display: grid;
    grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.contact-workspace__beacon {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 31rem;
    padding: var(--space-5);
    background: #0a1b25;
    color: var(--color-white);
}

.contact-workspace__beacon img {
    width: min(11rem, 75%);
}

.contact-workspace__beacon span {
    margin-top: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.contact-workspace__beacon strong {
    color: var(--color-gold);
}

.contact-workspace__form {
    padding: clamp(1.25rem, 4vw, 3rem);
}

.contact-workspace__availability {
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.contact-modal {
    width: min(58rem, calc(100% - 3rem));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-ink);
    overflow: visible;
}

.contact-modal::backdrop {
    background: rgb(3 22 34 / 0.82);
    backdrop-filter: blur(0.25rem);
}

.contact-modal__panel {
    position: relative;
    max-height: calc(100dvh - 3rem);
    overflow: auto;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 0.45);
}

.contact-modal__close {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
    color: var(--color-navy-950);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.contact-modal__loading {
    min-height: 20rem;
    display: grid;
    margin: 0;
    place-items: center;
    color: var(--color-muted);
}

.contact-modal .contact-workspace {
    box-shadow: none;
}

html.contact-modal-open,
body.contact-modal-open {
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.form-field {
    margin-bottom: var(--space-3);
}

.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field label {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 800;
}

input,
select,
textarea {
    min-height: 2.8rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid #9eb5c2;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-ink);
}

[aria-invalid="true"] {
    border-color: #a52525;
    box-shadow: 0 0 0 1px #a52525;
}

.form-error {
    margin: var(--space-1) 0 0;
    color: #8a1f1f;
    font-size: var(--text-sm);
    font-weight: 700;
}

textarea {
    width: 100%;
    min-height: 8rem;
    resize: vertical;
}

select {
    background: var(--color-navy-900);
    color: var(--color-white);
}

input:disabled,
select:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.form-preview-result {
    margin-top: var(--space-3);
    color: var(--color-muted);
}

/* Footer */
.site-footer {
    background: #0a1b25;
    color: var(--color-white);
}

.site-footer__top,
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) auto;
    padding-block: var(--space-4);
}

.site-footer__bottom {
    padding-block: var(--space-3);
    border-top: 1px solid rgb(255 255 255 / 0.17);
    color: #a9bdc7;
    font-size: var(--text-sm);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.site-footer__identity p {
    margin: var(--space-1) 0 0;
    color: #c7d8e0;
    font-size: var(--text-sm);
}

.site-footer__bottom small {
    display: block;
    font-size: inherit;
}

/* 8. Responsive rules */
@media (max-width: 52rem) {
    .software-detail__presentation {
        grid-template-columns: 1fr;
    }

    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 42rem) {
    .container {
        width: min(100% - 2rem, var(--content-width));
    }

    .site-header__inner {
        min-height: 4.6rem;
        flex-wrap: wrap;
        padding-block: 0.65rem;
    }

    .nav-toggle {
        display: inline-flex;
        min-height: 2.6rem;
        align-items: center;
        gap: 0.55rem;
        padding: 0.5rem 0.7rem;
        cursor: pointer;
    }

    .nav-toggle__icon,
    .nav-toggle__icon::before,
    .nav-toggle__icon::after {
        display: block;
        width: 1.2rem;
        height: 2px;
        background: currentColor;
    }

    .nav-toggle__icon {
        position: relative;
    }

    .nav-toggle__icon::before,
    .nav-toggle__icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle__icon::before { top: -0.38rem; }
    .nav-toggle__icon::after { top: 0.38rem; }

    .js .primary-nav {
        display: none;
        width: 100%;
    }

    .js .primary-nav.is-open {
        display: block;
    }

    .primary-nav {
        width: 100%;
    }

    .primary-nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: var(--space-2);
        padding-top: var(--space-2);
        border-top: 1px solid rgb(255 255 255 / 0.16);
    }

    .primary-nav a {
        padding: 0.6rem 0.45rem;
    }

    .featured-grid,
    .catalog-grid,
    .catalog-tools,
    .form-row {
        grid-template-columns: 1fr;
    }

    .interior-banner {
        height: auto;
    }

    .interior-banner__art {
        height: auto;
        object-fit: contain;
    }

    .contact-workspace {
        grid-template-columns: 1fr;
    }

    .contact-workspace__beacon {
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: start;
        min-height: 0;
        padding: var(--space-3);
    }

    .contact-workspace__beacon img {
        width: 4.5rem;
    }

    .contact-workspace__beacon span {
        margin: 0 0 0 var(--space-3);
    }

    .contact-modal {
        width: 100%;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border-radius: 0;
    }

    .contact-modal__panel {
        min-height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    .contact-modal .contact-workspace {
        min-height: 100dvh;
        border-radius: 0;
    }

    .contact-modal .contact-workspace__form {
        padding-top: var(--space-4);
    }

    .screenshot-lightbox__panel {
        width: calc(100% - 1rem);
        max-height: calc(100dvh - 1rem);
        padding: 3.75rem 3rem 2.75rem;
    }

    .screenshot-lightbox__figure {
        max-height: calc(100dvh - 8rem);
    }

    .screenshot-lightbox__figure img {
        max-height: calc(100dvh - 10rem);
    }

    .screenshot-lightbox__arrow,
    .screenshot-lightbox__close {
        width: 2.75rem;
        height: 2.75rem;
    }

    .screenshot-lightbox__arrow--previous {
        left: var(--space-1);
    }

    .screenshot-lightbox__arrow--next {
        right: var(--space-1);
    }

    .screenshot-carousel__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .software-card {
        min-height: 9.5rem;
        grid-template-columns: 7rem minmax(0, 1fr);
    }

    .software-card__media {
        padding: var(--space-2);
    }

    .software-card__image {
        max-height: 8rem;
    }

    .featured-section {
        margin-top: -2.5rem;
    }

    .js [data-mobile-catalog] [data-catalog-card].is-mobile-hidden {
        display: none;
    }

    .js .mobile-group-controls[hidden] {
        display: none;
    }

    .js .mobile-group-controls {
        display: flex;
    }

    .catalog-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading__content {
        padding-block: var(--space-5);
    }

    .product-facts div {
        grid-template-columns: 6rem 1fr;
    }

    .site-footer__top,
    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__top {
        display: flex;
    }

    .footer-nav {
        width: 100%;
        justify-content: space-between;
        gap: var(--space-2);
    }
}

@media (max-width: 24rem) {
    .button-row .button {
        width: 100%;
    }

    .mobile-group-controls {
        align-items: stretch;
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }
}
