/* =============================================================================
   RundPfung — Pre-Launch Onepager
   Self-contained stylesheet. Tokens lifted from frontend/public/css/index.css
   so this page can deploy standalone (S3/CloudFront) without the full app CSS.
   ============================================================================= */

/* ----- Tokens ----- */
:root {
    --primary: #15526c;
    --primary-dark: #0f3d4f;
    --primary-light: #1f6b88;
    --accent: #dea825;
    --accent-dark: #c59620;
    --background: #f4f6f8;
    --surface: #ffffff;
    --surface-muted: #eef4f6;
    --text: #1c3340;
    --text-muted: #465f6d;
    --border: #cbd8de;
    --border-strong: #92400e;
    --focus-ring: 0 0 0 3px rgba(146, 64, 14, 0.45);
    --shadow: 0 2px 12px rgba(15, 61, 79, 0.08);
    --shadow-large: 0 14px 42px rgba(15, 61, 79, 0.16);
    --radius: 8px;
    --radius-small: 6px;
    --radius-pill: 999px;
    --nav-height: 68px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --primary-dark: #000000;
        --text: #000000;
        --border: #000000;
        --focus-ring: 0 0 0 4px #000000;
    }
}

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

/* ----- Reset ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus {
    color: var(--primary);
}

button,
input,
select {
    font: inherit;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--border-strong);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-small);
}

.container {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
}

.sr-only {
    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,
.skip-link:focus-visible {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.75rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: #ffffff;
    background: var(--primary-dark);
    border: 3px solid var(--accent);
    border-radius: var(--radius-small);
    font-weight: 700;
    text-decoration: none;
}

/* ============================================================================
   Header
   ============================================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(15, 61, 79, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.logo:hover,
.logo:focus {
    color: var(--primary-dark);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
}

.logo-mark img {
    width: 30px;
    height: 30px;
}

.header-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    color: var(--primary-dark);
    background: #fff8e6;
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.header-meta-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-dark);
    border-radius: 50%;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.8); }
}

/* ============================================================================
   Hero
   ============================================================================ */
.hero {
    position: relative;
    color: #ffffff;
    background-color: var(--primary-dark);
    background-image:
        radial-gradient(circle at 12px 12px, rgba(222, 168, 37, 0.22) 2px, transparent 2px);
    background-size: 42px 42px;
    overflow: hidden;
}

.hero::after {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 1.25rem;
    padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(3.5rem, 8vw, 6rem);
    max-width: 880px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 32px;
    padding: 0.35rem 0.85rem;
    color: #000000;
    background: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-dark);
}

.hero h1 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1 .hero-h1-accent {
    color: var(--accent);
}

.hero-subtitle {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.5;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn--primary:hover,
.btn--primary:focus {
    color: #000000;
    background: var(--accent-dark);
    text-decoration: none;
}

.btn--ghost {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover,
.btn--ghost:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    text-decoration: none;
}

.btn--secondary {
    color: var(--primary-dark);
    background: var(--surface);
    border-color: var(--primary-dark);
}

.btn--secondary:hover,
.btn--secondary:focus {
    color: var(--primary-dark);
    background: var(--surface-muted);
    text-decoration: none;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    list-style: none;
}

.hero-badges li {
    padding: 0.4rem 0.75rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
}

/* ============================================================================
   Status notice (under the hero, sits half-on-half-off the dark band)
   ============================================================================ */
.status-band {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
}

.status-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.15rem;
    align-items: start;
    padding: 1.35rem 1.5rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-large);
}

.status-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #000000;
    background: var(--accent);
    border-radius: var(--radius-small);
    font-size: 1.3rem;
    font-weight: 700;
}

.status-card-body p:first-child {
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.status-card-body p + p {
    margin-top: 0.25rem;
    color: var(--text-muted);
}

/* ============================================================================
   Generic section pattern
   ============================================================================ */
.section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--muted {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.65rem;
    color: var(--primary-dark);
    background: var(--surface-muted);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-title {
    max-width: 28ch;
    color: var(--primary-dark);
    font-size: clamp(1.65rem, 3.4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.section-lead {
    max-width: 64ch;
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.section-lead--narrow {
    max-width: 58ch;
}

/* ============================================================================
   Problem + Lösung (two-up)
   ============================================================================ */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.split-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.65rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-card--problem {
    border-top: 4px solid var(--border-strong);
}

.split-card--loesung {
    border-top: 4px solid var(--accent);
}

.split-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    color: var(--primary-dark);
    background: var(--surface-muted);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.split-card--problem .split-card-tag {
    color: #5a2c08;
    background: #f7e4d4;
}

.split-card h3 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

.split-card p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
}

.split-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.split-card li {
    position: relative;
    padding-left: 1.65rem;
    color: var(--text);
}

.split-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.split-card--problem li::before {
    background: var(--border-strong);
    opacity: 0.85;
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.split-card--loesung li::before {
    background: var(--accent);
    clip-path: polygon(20% 50%, 0% 70%, 40% 100%, 100% 30%, 80% 10%, 40% 60%);
}

/* ============================================================================
   MVP features
   ============================================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.features--aligned {
    align-items: stretch;
}

.feature-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.85rem;
    padding: 1.4rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover,
.feature-card:focus-within {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--primary-dark);
    background: var(--surface-muted);
    border-radius: var(--radius-small);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    color: var(--primary-dark);
    font-size: 1.08rem;
    line-height: 1.25;
    min-height: 1.35em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.feature-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.55rem;
    color: var(--primary-dark);
    background: #fff8e6;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
}

.feature-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-dark);
}

/* ============================================================================
   Founder case preview
   ============================================================================ */
.case-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 2rem;
}

.case-preview-card {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.case-preview-card h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    line-height: 1.25;
}

.case-preview-card p {
    color: var(--text-muted);
}

.case-preview-card .btn {
    justify-self: start;
    margin-top: 0.25rem;
}

.case-steps {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 1.25rem;
    list-style: none;
    color: #ffffff;
    background: var(--primary-dark);
    border-radius: var(--radius);
}

.case-steps li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.case-steps li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.case-steps li::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================================================
   AWS-Architektur
   ============================================================================ */
.aws {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.aws-meta {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    color: #ffffff;
    background: var(--primary-dark);
    background-image: radial-gradient(circle at 12px 12px, rgba(222, 168, 37, 0.18) 2px, transparent 2px);
    background-size: 42px 42px;
    border-radius: var(--radius);
}

.aws-meta h3 {
    color: #ffffff;
    font-size: 1.2rem;
}

.aws-meta p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
}

.aws-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    padding-top: 0.85rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.94rem;
}

.aws-meta dt {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.aws-meta dd {
    color: #ffffff;
    font-weight: 700;
}

.aws-stages {
    display: grid;
    gap: 1rem;
}

.aws-stage {
    padding: 1.35rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.aws-stage--current {
    border-top: 4px solid var(--accent);
}

.aws-stage--planned {
    border-top: 4px solid var(--primary-light);
}

.aws-stage-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.aws-stage h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.aws-stage-tag {
    padding: 0.2rem 0.55rem;
    color: var(--primary-dark);
    background: var(--surface-muted);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aws-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
}

.aws-services li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    color: var(--text);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 700;
}

.aws-stage--current .aws-services li {
    color: var(--primary-dark);
    background: #fff8e6;
    border-color: var(--accent);
}

.aws-services li code {
    font-family: var(--font-family);
}

/* ============================================================================
   Region card
   ============================================================================ */
.region {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.region-card {
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.region-card-title {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.region-card-text {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.region-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.region-stat dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.region-stat dd {
    margin-top: 0.2rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.region-stat dd small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.15rem;
}

/* Map placeholder — pure CSS, no external tiles, no tracking */
.region-map {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.region-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

.region-map-caption {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.55rem 0.8rem;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-size: 0.84rem;
    font-weight: 700;
}

/* ============================================================================
   Contact section
   ============================================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.contact-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-card:hover,
.contact-card:focus-within {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.contact-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-card-email {
    color: var(--primary-dark);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    word-break: break-all;
}

.contact-card-email:hover,
.contact-card-email:focus {
    color: var(--primary);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.contact-foot {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.94rem;
}

.contact-foot strong {
    color: var(--text);
}

/* ============================================================================
   Legal sections
   ============================================================================ */
.legal-section {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.legal-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    gap: 2rem;
    align-items: start;
}

.legal-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section--muted .legal-card {
    background: var(--surface);
}

.legal-card address {
    font-style: normal;
    line-height: 1.7;
}

.legal-card a {
    font-weight: 700;
}

.legal-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ============================================================================
   KI case subpage
   ============================================================================ */
.hero--case .hero-inner {
    max-width: 920px;
}

.timeline {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}

.timeline strong {
    color: var(--primary-dark);
}

.timeline span {
    color: var(--text-muted);
}

.case-architecture {
    align-items: stretch;
}

.case-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.case-principles article {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.case-principles h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    line-height: 1.25;
}

.case-principles p {
    color: var(--text-muted);
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    margin-top: 0;
    padding: 3rem 0 1.25rem;
    color: #ffffff;
    background: var(--primary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, minmax(140px, 1fr));
    gap: 2rem;
}

.footer-brand p {
    max-width: 36ch;
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.footer-logo {
    color: #ffffff;
}

.footer-logo:hover,
.footer-logo:focus {
    color: #ffffff;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.footer-links h2 {
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-link-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.88);
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 820px) {
    .split,
    .features,
    .aws,
    .region,
    .case-preview,
    .legal-grid,
    .case-principles,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .region-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .status-band {
        margin-top: -1.75rem;
    }
}

@media (max-width: 540px) {
    .region-stats {
        grid-template-columns: 1fr;
    }

    .status-card {
        grid-template-columns: 1fr;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-row .btn {
        width: 100%;
    }

    .header-meta {
        display: none;
    }

    .timeline li {
        grid-template-columns: 1fr;
    }

    .case-preview-card .btn {
        width: 100%;
    }
}

@media print {
    .header,
    .hero::after,
    .hero-cta-row,
    .footer {
        display: none !important;
    }

    .hero {
        color: #000000;
        background: #ffffff;
    }

    .status-band {
        margin-top: 1rem;
    }
}
