/* ============================================================
   System 5 — Reinhardt Software GmbH
   Shared stylesheet, extracted from the approved single-page
   draft and extended for the multi-page site.
   No external fonts, no external requests. System font stack.
   ============================================================ */

:root {
    --navy: #1e2a4a;
    --navy-deep: #151e36;
    --navy-light: #2a3a5c;
    --steel-blue: #7b9cc0;
    --steel-light: #a8c4e0;
    --red: #c0392b;
    --red-bright: #e74c3c;
    --white: #ffffff;
    --gray-900: #1a1a2e;
    --gray-700: #3d3d5c;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
}

/* ---------- Accessibility ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--red);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    z-index: 2000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--steel-blue);
    outline-offset: 2px;
}

/* ---------- Navigation ---------- */

nav.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    padding: 0 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

nav.site-nav .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.85rem;
    text-decoration: none;
}

nav.site-nav .logo img {
    height: 50px;
    width: auto;
    display: block;
}

nav.site-nav .logo-chip {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
}

nav.site-nav .nav-product {
    color: var(--navy);
    font-size: 1.235rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

nav.site-nav .nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

nav.site-nav .nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

nav.site-nav .nav-links a:hover {
    color: var(--red);
}

nav.site-nav .nav-links a.active {
    border-bottom-color: var(--red-bright);
    font-weight: 600;
}

/* Support nav link — permanent red accent */
nav.site-nav .nav-links a.nav-link-support {
    color: var(--red);
    font-weight: 700;
}

nav.site-nav .nav-links a.nav-link-support:hover {
    color: var(--red-bright);
}

.mobile-menu ul li a.nav-link-support {
    color: #f87171;
    font-weight: 600;
}

nav.site-nav .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-demo {
    background: var(--red);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

.btn-demo:hover {
    background: var(--red-bright);
}

nav.site-nav .hamburger {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

nav.site-nav .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

nav.site-nav .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

nav.site-nav .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

nav.site-nav .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile slide-down panel */

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    z-index: 999;
    padding: 0.5rem 1.5rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.mobile-menu.open {
    display: block;
    animation: menuSlide 0.25s ease;
}

@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    color: var(--steel-light);
}

.mobile-menu .btn-demo {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

main {
    margin-top: 64px;
}

/* ---------- Hero (homepage) ---------- */

.hero {
    background: var(--navy);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(123, 156, 192, 0.12), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-label {
    color: var(--steel-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    color: var(--steel-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-wordmark {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--steel-light);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--steel-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ---------- Sub-page hero ---------- */

.page-hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: 4rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(123, 156, 192, 0.12), transparent 60%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-hero .subtitle {
    font-size: 1.15rem;
    color: var(--steel-light);
    max-width: 760px;
    margin-bottom: 0;
}

.page-hero .section-label {
    color: var(--red-bright);
}

/* ---------- Buttons ---------- */

.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* ---------- Trust badges ---------- */

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    text-align: center;
}

.trust-badge-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.trust-badge-label {
    font-size: 0.85rem;
    color: var(--steel-light);
}

/* ---------- Sections ---------- */

section {
    padding: 4rem 2rem;
}

section.white {
    background: var(--white);
}

section.gray {
    background: var(--gray-50);
}

section.navy {
    background: var(--navy);
    color: var(--white);
    border-top: 4px solid var(--red);
}

section.navy h2,
section.navy h3 {
    color: var(--white);
}

section.navy p {
    color: var(--steel-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-label::before {
    content: '// ';
    font-style: italic;
}

/* Inline body-copy emphasis for the SYSTEM 5 product name.
   Scoped to running text only — never applied to nav wordmark,
   hero wordmark, or footer headings. color: inherit so it matches
   surrounding text (white in navy sections, dark in light sections).
   white-space: nowrap prevents "SYSTEM" and "5" splitting across lines. */
.brand-mention {
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
}

section.navy .section-label {
    color: var(--red-bright);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.what-is-system-5 .two-col {
    align-items: center;
}

.highlight-box {
    background: var(--navy-light);
    padding: 2rem;
    border-left: 4px solid var(--red);
}

.white .highlight-box {
    background: var(--navy-light);
    color: var(--white);
}

.highlight-box h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.highlight-box p {
    color: var(--steel-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.highlight-box p::before {
    content: '✓';
    color: var(--red-bright);
    font-weight: bold;
    flex-shrink: 0;
}

/* Light highlight box (About-page honesty callback) */

.highlight-box-light {
    background: var(--gray-100);
    padding: 2rem;
    border-left: 4px solid var(--red);
    border-radius: 0 8px 8px 0;
}

.highlight-box-light p {
    color: var(--gray-700);
}

.highlight-box-light p:last-child {
    margin-bottom: 0;
}

/* ---------- Cards ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.cards-grid-6 {
    grid-template-columns: repeat(3, 1fr);
}

.card-icon-img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1.25rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--steel-light);
}

.card h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.gray .card {
    background: var(--white);
}

.cards-note {
    text-align: center;
    margin-top: 2rem;
}

.cards-note a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.cards-note a:hover {
    border-bottom-color: var(--red);
}

/* ---------- Stats bar ---------- */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border: 1px solid var(--gray-300);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Screenshots ---------- */

.screenshot {
    margin: 0;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

section.navy .screenshot img {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.screenshot-fade img {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.screenshot figcaption {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.6rem;
    text-align: center;
}

section.navy .screenshot figcaption {
    color: var(--steel-light);
}

/* ---------- Lightbox overlay ---------- */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.87);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: default;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-dialog {
    position: relative;
    max-width: min(1100px, 92vw);
    width: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

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

.lightbox-caption {
    padding: 0.8rem 1.25rem;
    font-size: 0.88rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(21, 30, 54, 0.85);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.18s;
    font-family: inherit;
}

.lightbox-close:hover {
    background: var(--red);
}

figure.lightbox-trigger {
    cursor: zoom-in;
}

.screenshot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.screenshot-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Equal-height treatment: figures in the strip share one rendered
   height regardless of native aspect ratio. Each image is sized by
   height (not width), so it scales proportionally with no distortion. */
.screenshot-strip-equal {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: center;
    align-items: start;
}

.screenshot-strip-equal .screenshot img {
    width: auto;
    height: 320px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .screenshot-strip.screenshot-strip-equal {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-auto-columns: unset;
    }

    .screenshot-strip-equal .screenshot img {
        width: 100%;
        height: auto;
    }
}

/* ---------- Homepage teaser rows ---------- */

.teaser-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.teaser-row:last-child {
    border-bottom: none;
}

.teaser-row.reverse .teaser-text {
    order: 2;
}

.teaser-row.reverse .teaser-media {
    order: 1;
}

.teaser-media-compact {
    display: flex;
    justify-content: center;
}

.teaser-media-compact .screenshot img {
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
}

.teaser-text h3 {
    font-size: 1.5rem;
}

.teaser-link {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.teaser-link:hover {
    border-bottom-color: var(--red);
}

.teaser-panel {
    background: var(--white);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.teaser-panel .teaser-panel-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy);
}

.teaser-panel .teaser-panel-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.teaser-panel .teaser-panel-sub {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Hanseatic Honesty ---------- */

.honesty-body {
    max-width: 720px;
}

.honesty-body h2 {
    line-height: 1.25;
}

.accent-band {
    background: var(--navy);
    border-top: 4px solid var(--red);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    border-radius: 0 0 8px 8px;
}

.accent-band p {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Communications features ---------- */

.communications-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.communications-intro p {
    color: var(--steel-light);
    font-size: 1.1rem;
}

.feature-category {
    margin-bottom: 3rem;
}

.feature-category h3 {
    color: var(--red-bright);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.feature-category h3::before {
    content: '// ';
    font-style: italic;
    font-size: 1.2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--navy-light);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--red-bright);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-card h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.feature-card p {
    color: var(--steel-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Comparison table ---------- */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--navy-light);
    color: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: var(--navy);
    font-weight: 700;
    color: var(--white);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table td:first-child {
    font-weight: 600;
}

.checkmark {
    color: var(--red-bright);
    font-weight: bold;
}

.x-mark {
    color: var(--gray-500);
}

section.navy .x-mark {
    color: var(--steel-blue);
}

/* ---------- WebApp ---------- */

.webapp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.webapp-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.webapp-feature-item {
    padding-left: 2rem;
    position: relative;
}

.webapp-feature-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
    font-size: 1.2rem;
}

.webapp-feature-item p {
    margin: 0;
    color: var(--gray-700);
}

.placeholder-box {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
}

.webapp-note {
    background: var(--navy-light);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
    border-left: 4px solid var(--red);
}

.webapp-gallery {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.webapp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ---------- Screenshot carousel (uniform-canvas slider) ---------- */

.screenshot-carousel {
    position: relative;
    margin-top: 3rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 1rem;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track:focus-visible {
    outline: 3px solid var(--steel-blue);
    outline-offset: 4px;
    border-radius: 12px;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
}

@media (min-width: 769px) {
    .carousel-slide { flex-basis: 62%; }
}

/* The canvas gives every slide one identical frame, regardless of the
   image's native aspect ratio. The image is centred and scaled to fit
   (object-fit: contain) — no cropping, no distortion. */
.carousel-canvas {
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.carousel-canvas img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.carousel-btn {
    position: absolute;
    top: 220px;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--navy);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.carousel-btn:hover { background: var(--navy); color: var(--white); }

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
    background: var(--white);
    color: var(--navy);
}

.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.carousel-dot.active {
    background: var(--navy);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .carousel-canvas { height: 360px; padding: 1rem; }
    .carousel-btn { top: 180px; width: 40px; height: 40px; font-size: 1.4rem; }
    .carousel-prev { left: 2px; }
    .carousel-next { right: 2px; }
}

/* ---------- Modules ---------- */

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.module-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--red);
}

.module-card-header {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.module-card-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.module-toggle {
    width: 30px;
    height: 30px;
    background: var(--red);
    border: none;
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.module-toggle.open {
    transform: rotate(180deg);
}

.module-summary {
    padding: 1.5rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.module-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.module-detail.open {
    max-height: 2000px;
}

.module-detail-content {
    padding: 1.5rem;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
}

.module-detail-content .screenshot {
    margin-top: 0;
}

/* Module expanded: two-column layout (bullets left, screenshot right) */
.module-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.module-detail-bullets ul {
    list-style: disc;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.module-detail-bullets li {
    margin-bottom: 0.35rem;
}

.module-screenshot-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.88rem;
    font-style: italic;
}

/* ---------- Module Tabs (tabbed layout, replaces stacked accordion on modules.html) ---------- */

.module-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.module-tabs::-webkit-scrollbar { display: none; }

.module-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.85rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.module-tab:hover { color: var(--navy); }

.module-tab[aria-selected="true"] {
    color: var(--navy);
    border-bottom-color: var(--red);
}

/* Tab panels — JS toggles .active */
.module-tab-panels { margin-top: 0; }

.module-tab-panel { padding-top: 2rem; }
.js .module-tab-panel { display: none; }
.js .module-tab-panel.active { display: block; }

/* Sub-module layout: sidebar nav left, detail panel right */
.module-sub-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.module-sub-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: sticky;
    top: 80px;
    border-right: 1px solid var(--gray-200);
    padding-right: 1rem;
}

.module-sub-btn {
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    padding: 0.55rem 0.85rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    text-align: left;
    border-radius: 0 4px 4px 0;
    transition: color 0.18s, background 0.18s, border-left-color 0.18s;
    line-height: 1.4;
}

.module-sub-btn:hover {
    color: var(--navy);
    background: var(--gray-100);
}

.module-sub-btn[aria-selected="true"] {
    color: var(--navy);
    border-left-color: var(--red);
    background: var(--white);
    font-weight: 700;
}

.module-sub-panels { min-height: 360px; }

.js .module-sub-panel { display: none; }
.js .module-sub-panel.active { display: block; }

/* Sub-panel detail: text left, screenshot right */
.module-sub-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.module-sub-text h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

p.module-sub-desc {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.module-sub-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.8;
}

.module-sub-text li { margin-bottom: 0.35rem; }

/* Laytime: single module, no sub-nav column */
.module-laytime-detail { max-width: 900px; }

/* Invisible anchor bypass targets for deep-link hash routing */
.anchor-target {
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* ---------- M365 ---------- */

.m365-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.m365-feature {
    background: var(--navy-light);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.3s;
}

.m365-feature:hover {
    transform: translateY(-2px);
}

.m365-feature h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.m365-feature p {
    color: var(--steel-light);
    margin: 0;
    font-size: 0.9rem;
}

/* ---------- IT & Security ---------- */

.it-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.it-subsection h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--red);
}

.config-box {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.config-box h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.config-box ul {
    list-style: none;
    color: var(--steel-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.config-box li::before {
    content: '• ';
    color: var(--red-bright);
    margin-right: 0.5rem;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-feature {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--red);
}

.security-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-feature-content h4 {
    color: var(--navy);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.security-feature-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ---------- Private AI ---------- */

.ai-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ai-card {
    background: var(--navy-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.ai-card:hover {
    transform: translateY(-3px);
}

.ai-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.ai-card p {
    color: var(--steel-light);
    margin: 0;
}

.new-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ---------- Airlines ---------- */

.sita-list {
    list-style: none;
    margin: 0 0 1.5rem;
}

.sita-list li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.6rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.sita-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

section.navy .sita-list li {
    color: var(--steel-light);
}

/* ---------- Testimonial ---------- */

.testimonial {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    background: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--red);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
    color: var(--gray-500);
    font-style: italic;
    text-align: right;
}

/* ---------- About ---------- */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* ---------- CTA ---------- */

.cta-section {
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-100);
}

.cta-buttons .btn-outline {
    border-color: var(--white);
}

/* ---------- Questionnaire wizard ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.wizard {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step-indicator {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-dots {
    display: flex;
    gap: 0.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: background 0.3s;
}

.step-dot.active {
    background: var(--red);
}

.step-dot.done {
    background: var(--navy);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-step h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.wizard-intro {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.question {
    margin-bottom: 2rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.question-hint {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.option-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--white);
}

.option-tile:hover {
    border-color: var(--steel-blue);
    background: var(--gray-50);
}

.option-tile input {
    accent-color: var(--red);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.option-tile span {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.option-tile:has(input:checked) {
    border-color: var(--red);
    background: #fdf4f3;
}

.reveal-field {
    display: none;
    margin-top: 0.5rem;
}

.reveal-field.visible {
    display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select.input-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    min-height: 44px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select.input-select:focus {
    border-color: var(--steel-blue);
}

.field-error {
    display: none;
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.field-error.visible {
    display: block;
}

.gdpr-check {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.gdpr-check label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.gdpr-check input {
    accent-color: var(--red);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    cursor: pointer;
}

.gdpr-check a {
    color: var(--red);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.btn-back {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: var(--gray-500);
}

.btn-next,
.btn-submit {
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.mailto-fallback-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: right;
}

.wizard-confirmation {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.wizard-confirmation.visible {
    display: block;
}

.wizard-confirmation h2 {
    font-size: 1.6rem;
}

/* Direct contact block */

.contact-aside {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    border-top: 4px solid var(--red);
}

.contact-aside h3 {
    color: var(--white);
}

.contact-aside p {
    color: var(--steel-light);
    font-size: 0.95rem;
}

.contact-aside a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--steel-blue);
    transition: border-color 0.3s;
}

.contact-aside a:hover {
    border-bottom-color: var(--white);
}

/* ---------- WebApp gallery — two sub-sections (v2) ---------- */

.webapp-gallery-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.webapp-gallery-section > h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Portrait carousel: slides narrow enough to show 3 side-by-side on desktop */
.carousel-portrait .carousel-slide {
    flex-basis: 32%;
}

@media (max-width: 768px) {
    .carousel-portrait .carousel-slide { flex-basis: 80%; }
}

/* Portrait canvas: taller frame for phone-screen screenshots */
.carousel-canvas-portrait {
    height: 460px;
    max-width: 220px;
    margin: 0 auto;
    padding: 0.75rem;
}

/* ============================================================
   WebApp gallery v2 — single-slide carousels + zoom fix
   ============================================================ */

/* True single-slide override — beats the @media 62% and the old
   .carousel-portrait 32% rule (same-specificity but later in sheet). */
.webapp-single-carousel .carousel-slide {
    flex: 0 0 100%;
}

/* Give the carousel 2 rem of horizontal breathing room so the
   absolutely-positioned ±12 px buttons stay well within the
   section's own padding and cannot expand the document scroll-width. */
.webapp-gallery-section .screenshot-carousel {
    padding-left: 2rem;
    padding-right: 2rem;
}

.webapp-gallery-section .carousel-prev {
    left: 0;
}

.webapp-gallery-section .carousel-next {
    right: 0;
}

/* Portrait canvas: single-slide version — phone-portrait proportions.
   max-width raised so the screenshot is visibly larger;
   padding and min-height trimmed to eliminate dead vertical space. */
.webapp-single-carousel .carousel-canvas-portrait {
    height: auto;
    min-height: 300px;
    max-width: 520px;
    margin: 0 auto;
    padding: 0.5rem 0.75rem;
}

/* Centre nav buttons on the portrait carousel regardless of image height */
.webapp-portrait-carousel .carousel-btn {
    top: 50%;
}

/* Landscape carousel: buttons centred vertically on the image */
.webapp-landscape-carousel .carousel-btn {
    top: 50%;
}

/* Landscape gallery: screenshots displayed at 75% width, centred, aspect ratio preserved */
.webapp-landscape-carousel .carousel-slide img {
    width: 75%;
    max-width: 75%;
    display: block;
    margin: 0 auto;
    height: auto;
}

/* Full-width features column (replaces the old two-column features grid) */
.webapp-features-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Laytime dual-screenshot stack */
.laytime-screenshots-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stacked landscape images for tablet/desktop sub-section */
.webapp-gallery-landscape {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Generic image placeholder (used until real screenshots are dropped in) */
.webapp-img-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.88rem;
    font-style: italic;
    width: 100%;
}

.webapp-img-placeholder-portrait {
    height: 100%;
    min-height: 300px;
}

.webapp-img-placeholder-landscape {
    height: 280px;
}

/* ---------- Contact page — support vs sales gate ---------- */

.contact-gate {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-gate h2.contact-gate-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-gate-sub {
    color: var(--gray-500);
    margin-bottom: 2.5rem;
}

.contact-gate-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.contact-gate-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 2rem 1.75rem;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.contact-gate-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

.contact-gate-card-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 0.6rem;
}

.contact-gate-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.contact-gate-card-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .contact-gate-cards { grid-template-columns: 1fr; }
}

/* ---------- About page — intro + team two-column layout ---------- */

.about-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Single-column about intro (used after team section removed) */
.about-intro {
    max-width: 720px;
}

/* ---------- Role selector (index.html Who It's For) ---------- */

.role-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.role-pill {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 100px;
    color: var(--gray-700);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.4rem 1.1rem;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.role-pill:hover {
    border-color: var(--navy);
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.role-pill[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(30, 42, 74, 0.18);
}

.card--highlighted {
    border: 2px solid var(--red) !important;
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.14) !important;
    background: #fffaf9 !important;
    transform: translateY(-3px) !important;
}

/* ---------- Draft banner (legal skeletons) ---------- */

.draft-banner {
    background: #fff3cd;
    color: #7a5c00;
    border: 1px solid #e6c200;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
}

/* ---------- Footer ---------- */

footer {
    background: var(--navy-deep);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--steel-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-company-info {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--steel-light);
}

.footer-company-info strong {
    color: var(--white);
}

.footer-company-info a {
    color: var(--steel-light);
    text-decoration: none;
}

.footer-company-info a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--steel-light);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--steel-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    nav.site-nav .nav-links { display: none; }
    nav.site-nav .nav-actions { display: none; }
    nav.site-nav .hamburger { display: flex; }
}

@media (max-width: 768px) {
    nav.site-nav { padding: 0 1rem; }
    .hero-wordmark { font-size: 3.6rem; }
    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 2rem; }
    .trust-badges { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .two-col, .webapp-features, .it-section, .about-content, .about-cols { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid-6 { grid-template-columns: 1fr; }
    .modules-grid { flex-direction: column; }
    .module-detail-inner { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .m365-features { grid-template-columns: 1fr; }
    .ai-features { grid-template-columns: 1fr; }
    .screenshot-pair, .screenshot-strip { grid-template-columns: 1fr; }
    .module-sub-layout { grid-template-columns: 1fr; }
    .module-sub-nav {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding-right: 0;
        padding-bottom: 0.75rem;
        gap: 0.35rem;
    }
    .module-sub-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 4px;
        font-size: 0.8rem;
        padding: 0.4rem 0.65rem;
    }
    .module-sub-btn[aria-selected="true"] {
        border-left-color: transparent;
        border-bottom-color: var(--red);
        background: var(--gray-100);
    }
    .module-sub-detail { grid-template-columns: 1fr; }
    .teaser-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .teaser-row.reverse .teaser-text { order: 1; }
    .teaser-row.reverse .teaser-media { order: 2; }
    .webapp-gallery { grid-template-columns: 1fr; }
    .webapp-gallery-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .accent-band p { font-size: 1.2rem; }
    h2 { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    section { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .hero-wordmark { font-size: 2.7rem; }
    .hero h1 { font-size: 1.6rem; }
    .cta-buttons, .hero-buttons { flex-direction: column; }
    .cta-buttons .btn, .hero-buttons .btn { width: 100%; }
    .wizard { padding: 1.25rem; }
    .wizard-nav { flex-direction: column-reverse; }
    .wizard-nav button { width: 100%; }
    .mailto-fallback-note { text-align: center; }
}
