/* ==========================================================================
   SemanticWorks.de — Design System
   Based on Corporate Identity Guidelines v2.0, Februar 2026
   Design tokens from colors/palette.css
   ========================================================================== */

/* --- Font Face (Self-hosted for DSGVO compliance) --- */
@font-face {
    font-family: "Source Sans 3";
    src: url("/static/fonts/SourceSans3-VF.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/static/fonts/SourceSans3-VF-Italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   DESIGN TOKENS — from palette.css (canonical source)
   ========================================================================== */
:root {
    /* Brand Colors (tetrahedron faces) */
    --color-navy: #000080;
    --color-blue: #256dbd;
    --color-teal: #3ab0a2;

    /* Navy tonal scale */
    --color-navy-50: #E8EAF6;
    --color-navy-100: #C5C8E8;
    --color-navy-200: #9196D1;
    --color-navy-300: #5C5FB8;
    --color-navy-400: #2E2E9C;
    --color-navy-500: #000080;
    --color-navy-600: #000070;
    --color-navy-700: #00005C;
    --color-navy-800: #000048;
    --color-navy-900: #000033;

    /* Blue tonal scale */
    --color-blue-50: #EBF2FB;
    --color-blue-100: #C9DEF4;
    --color-blue-200: #97BFEA;
    --color-blue-300: #619CDD;
    --color-blue-400: #3C83CF;
    --color-blue-500: #256dbd;
    --color-blue-600: #1E5DA6;
    --color-blue-700: #174A88;
    --color-blue-800: #11386A;
    --color-blue-900: #0A254B;

    /* Teal tonal scale */
    --color-teal-50: #E6F7F5;
    --color-teal-100: #BDE9E4;
    --color-teal-200: #8DD9D0;
    --color-teal-300: #5DC8BB;
    --color-teal-400: #3ab0a2;
    --color-teal-500: #2F9688;
    --color-teal-600: #247B6F;
    --color-teal-700: #1A6256;
    --color-teal-800: #114A40;
    --color-teal-900: #09332C;

    /* Neutral scale */
    --color-neutral-50: #F8F9FA;
    --color-neutral-100: #F0F1F4;
    --color-neutral-200: #E1E3E8;
    --color-neutral-300: #C8CCD3;
    --color-neutral-400: #A0A5AE;
    --color-neutral-500: #6E737D;
    --color-neutral-600: #555B65;
    --color-neutral-700: #3D4350;
    --color-neutral-800: #282D38;
    --color-neutral-900: #1A1A2E;

    /* Signal colors */
    --color-success: #1A7F37;
    --color-success-light: #DAFBE1;
    --color-warning: #9A4E05;
    --color-warning-light: #FFF1DB;
    --color-error: #C4280D;
    --color-error-light: #FDDDD6;

    /* Warm accent */
    --color-accent-warm: #B8600F;
    --color-accent-warm-light: #FAEADB;
    --color-accent-warm-dark: #8A470A;

    /* Semantic tokens — Backgrounds */
    --bg-page: var(--color-neutral-50);
    --bg-surface: #FFFFFF;
    --bg-surface-raised: #FFFFFF;
    --bg-surface-sunken: var(--color-neutral-100);
    --bg-brand: var(--color-navy-500);
    --bg-brand-subtle: var(--color-navy-50);

    /* Semantic tokens — Text */
    --text-primary: var(--color-neutral-900);
    --text-secondary: var(--color-neutral-600);
    --text-tertiary: var(--color-neutral-500);
    --text-on-brand: #FFFFFF;
    --text-link: var(--color-blue-600);
    --text-link-hover: var(--color-blue-700);
    --text-accent: var(--color-teal-600);

    /* Semantic tokens — Borders */
    --border-default: var(--color-neutral-300);
    --border-subtle: var(--color-neutral-200);
    --border-strong: var(--color-neutral-500);

    /* Semantic tokens — Interactive */
    --btn-primary-bg: var(--color-navy-500);
    --btn-primary-hover: var(--color-navy-400);
    --btn-primary-text: #FFFFFF;
    --btn-secondary-border: var(--color-navy-500);
    --btn-secondary-hover-bg: var(--color-navy-50);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-navy-500), var(--color-blue-500));
    --gradient-accent: linear-gradient(135deg, var(--color-blue-500), var(--color-teal-400));
    --gradient-full: linear-gradient(135deg, var(--color-navy-500), var(--color-teal-400));

    /* Spacing (8px baseline grid) */
    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 24px;
    --space-xl: 48px;
    --space-2xl: 96px;

    /* Typography */
    --font-family: "Source Sans 3", "Source Sans Pro", -apple-system,
                    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
                    Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    --font-size-display: 3.5rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-body: 1rem;
    --font-size-body-small: 0.875rem;
    --font-size-caption: 0.75rem;

    --line-height-display: 1.1;
    --line-height-h1: 1.2;
    --line-height-h2: 1.25;
    --line-height-h3: 1.3;
    --line-height-h4: 1.35;
    --line-height-body: 1.6;
    --line-height-body-small: 1.5;
    --line-height-caption: 1.4;

    /* Layout */
    --content-max-width: 1200px;
    --grid-gutter: 24px;
    --border-radius: 8px;

    /* Motion */
    --transition-hover: 200ms ease-out;
    --transition-page: 300ms ease-in-out;
    --transition-reveal: 400ms ease-out;
}

/* Responsive: Mobile (< 768px) */
@media (max-width: 767px) {
    :root {
        --font-size-display: 2.5rem;
        --font-size-h1: 2rem;
    }

    .site-header .container {
        height: 56px;
    }

    .site-nav a:not(.btn--nav) {
        display: none;
    }

    .btn--nav {
        padding: 8px 14px;
        min-height: 44px;
        font-size: var(--font-size-body-small);
        margin-left: 0;
    }

    .hero .display {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   RESET & BASE
   Based on Bootstrap 5 Reboot, Tailwind Preflight, Josh Comeau's Reset
   ========================================================================== */

/* 1. Border-box everything (Bootstrap pattern) */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Prevent text size inflation on mobile (Bootstrap + Andy Bell) */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-bottom: 70px;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    overflow-x: clip;
}

/* 3. Body: clip overflow as safety net without creating scroll container */
body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-body);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
}

/* 4. Responsive media: block + constrained (Tailwind/Comeau pattern) */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

/* 5. Form elements inherit font to prevent unexpected sizing (Bootstrap) */
input,
button,
textarea,
select {
    font: inherit;
}

/* 6. Fieldset: override browser min-width: min-content (Bootstrap) */
fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

/* 7. Textarea: vertical resize only */
textarea {
    resize: vertical;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
/* Text overflow prevention (Josh Comeau / Andy Bell pattern) */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* German compound words need proper hyphenation in narrow containers.
   lang="de" on <html> provides the hyphenation dictionary. */
p, li, dd, blockquote {
    hyphens: auto;
    -webkit-hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    color: var(--color-navy-500);
}

p {
    text-wrap: pretty;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-h1);
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-h2);
    margin-bottom: var(--space-m);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-h3);
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-h4);
    color: var(--text-primary);
}

.display {
    font-size: var(--font-size-display);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-display);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--space-m);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-hover);
}

a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

.overline {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-accent);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: var(--space-l);
}

.container--narrow {
    max-width: 720px;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.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 navigation link (WCAG 2.4.1) — visible on focus only */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-m);
    z-index: 2000;
    padding: var(--space-s) var(--space-m);
    background: var(--color-navy-500);
    color: var(--text-on-brand);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-body-small);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-decoration: none;
    transition: top var(--transition-hover);
}

.skip-link:focus {
    top: 0;
    color: var(--text-on-brand);
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

/* ==========================================================================
   BUTTONS (per guidelines section 9.1)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px var(--space-l);
    min-height: 48px;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    font-family: inherit;
    line-height: 1.25;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-hover), border-color var(--transition-hover), transform 0.1s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn--primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    color: var(--btn-primary-text);
    text-decoration: none;
}

.btn--secondary {
    background: transparent;
    color: var(--color-navy-500);
    border-color: var(--btn-secondary-border);
}

.btn--secondary:hover {
    background: var(--btn-secondary-hover-bg);
    color: var(--color-navy-500);
    text-decoration: none;
}

.btn--sm {
    padding: var(--space-s) var(--space-m);
    min-height: 36px;
    font-size: var(--font-size-body-small);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */
.input {
    padding: 12px var(--space-m);
    font-size: var(--font-size-body);
    font-family: inherit;
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    color: var(--text-primary);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
}

.input:focus {
    outline: none;
    border-color: var(--color-blue-500);
    box-shadow: 0 0 0 3px rgba(37, 109, 189, 0.15);
}

.input:focus-visible {
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

.input::placeholder {
    color: var(--text-tertiary);
}

/* ==========================================================================
   SUBSCRIBE FORM
   ========================================================================== */
.subscribe-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    max-width: 100%;
}

.subscribe-form .form-hint {
    font-size: var(--font-size-body-small);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    margin-bottom: 0;
}

.subscribe-form--inline {
    display: flex;
    gap: var(--space-s);
    align-items: center;
    max-width: 100%;
}

.subscribe-form--inline .input {
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
}

.subscribe-form--inline .btn {
    flex-shrink: 0;
}

/* Submit loading state (HTMX adds .htmx-request during POST) */
.subscribe-form.htmx-request .btn {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.subscribe-form.htmx-request .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.25em;
    height: 1.25em;
    border: 3px solid var(--btn-primary-text);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.subscribe-result {
    padding: var(--space-m);
    border-radius: var(--border-radius);
    animation: fadeIn 0.3s ease;
}

.subscribe-result--success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.subscribe-result--error {
    background: var(--color-error-light);
    color: var(--color-error);
}

.subscribe-result__hint {
    font-size: var(--font-size-body-small);
    margin-top: var(--space-xs);
    margin-bottom: 0;
    opacity: 0.85;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: box-shadow var(--transition-hover);
}

.site-header--scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-navy-500);
    flex-shrink: 0;
    min-width: 0;
}

.site-header__logo:hover {
    text-decoration: none;
    color: var(--color-navy-500);
}

.site-header__logo img {
    height: 36px;
    width: auto;
}

.site-header__logo span {
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 0;
    flex-shrink: 1;
}

.site-nav a {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-neutral-600);
    text-decoration: none;
    padding: var(--space-s) var(--space-m);
    border-radius: 6px;
    transition: color var(--transition-hover), background-color var(--transition-hover);
}

.site-nav a:hover {
    color: var(--color-navy-500);
    background: var(--color-neutral-50);
    text-decoration: none;
}

.site-nav a.active {
    color: var(--color-navy-500);
    background: var(--color-navy-50);
}

/* Nav CTA button — higher specificity to override .site-nav a color */
.site-nav .btn--nav {
    padding: var(--space-s) var(--space-m);
    min-height: 36px;
    font-size: var(--font-size-body-small);
    margin-left: var(--space-s);
    border-radius: 6px;
    color: var(--btn-primary-text);
}

.site-nav .btn--nav:hover {
    color: var(--btn-primary-text);
    background: var(--btn-primary-hover);
    text-decoration: none;
}

/* ==========================================================================
   HERO SECTION (per guidelines section 9.1)
   ========================================================================== */
.hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--gradient-primary);
    color: var(--text-on-brand);
    position: relative;
    overflow-x: clip;
}

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

.hero h1,
.hero .display {
    color: var(--text-on-brand);
    margin-bottom: var(--space-m);
}

.hero .overline {
    color: var(--color-teal-200);
    margin-bottom: var(--space-s);
    font-size: var(--font-size-body-small);
}

.hero .subheadline {
    font-size: var(--font-size-h4);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-l);
    max-width: 600px;
}

.hero .cta-box {
    max-width: 480px;
    margin: 0 0 var(--space-l);
    scroll-margin-top: 80px;
}

.hero .cta-box .input {
    background: rgba(255, 255, 255, 0.95);
}

.hero .trust-bar {
    font-size: var(--font-size-body-small);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-l);
}

.hero__illustration {
    margin-top: var(--space-l);
    text-align: center;
}

.hero__illustration img {
    width: 100%;
    max-width: 960px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto;
}

/* Hero — About page variant (same left-aligned layout, consistent sizing) */

/* ==========================================================================
   FOUNDER LETTER SECTION
   ========================================================================== */
.founder-letter {
    padding: var(--space-2xl) 0;
    background: var(--bg-surface);
}

.founder-content {
    position: relative;
}

.founder-letter h2 {
    margin-bottom: var(--space-l);
}

.founder-letter h3 {
    margin-top: var(--space-l);
    margin-bottom: var(--space-s);
    color: var(--color-navy-500);
}

.founder-letter p {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.founder-signature {
    margin-top: var(--space-l);
    padding-top: var(--space-l);
    border-top: 1px solid var(--border-subtle);
}

.founder-name {
    font-size: var(--font-size-h4);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.founder-credentials {
    font-size: var(--font-size-body-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-l);
}

.founder-cta {
    margin-top: var(--space-s);
}


/* ==========================================================================
   TESTIMONIALS / SOCIAL PROOF
   ========================================================================== */
.testimonials {
    padding: var(--space-xl) 0;
    background: var(--bg-surface);
}

.testimonials h2 {
    margin-bottom: var(--space-l);
}

.testimonial-grid {
    display: grid;
    gap: var(--space-m);
}

.testimonial-card {
    padding: var(--space-l);
    background: var(--bg-surface-sunken);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-teal-400);
}

.testimonial-quote {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-m);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author strong {
    font-size: var(--font-size-body);
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: var(--font-size-body-small);
    color: var(--text-secondary);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq {
    padding: var(--space-xl) 0;
    background: var(--bg-surface-sunken);
}

.faq h2 {
    margin-bottom: var(--space-l);
}

.faq-list {
    margin: 0;
}

.faq-item {
    border-top: 1px solid var(--border-subtle);
}

.faq-item:first-child {
    border-top: none;
}

.faq-item summary {
    font-weight: var(--font-weight-bold);
    font-size: 1.0625rem;
    padding: var(--space-m) 0;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-m);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: var(--font-weight-regular);
    color: var(--color-neutral-400);
    flex-shrink: 0;
    transition: transform var(--transition-hover);
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    padding: 0 0 var(--space-m);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   SOCIAL PROOF / SECONDARY CTA SECTION
   ========================================================================== */
.social-proof {
    padding: var(--space-xl) 0;
    background: var(--bg-brand-subtle);
    text-align: center;
}

.social-proof h2 {
    margin-bottom: var(--space-s);
}

.social-proof > .container > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-l);
}

.social-proof .cta-box {
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================================================
   ABOUT PAGE SECTIONS
   ========================================================================== */
.about-section {
    padding: var(--space-xl) 0;
}

.about-section:nth-child(even) {
    background: var(--bg-surface);
}

.about-section h2 {
    margin-bottom: var(--space-l);
}

.about-section h3 {
    margin-bottom: var(--space-s);
}

.principles {
    list-style: none;
    margin: var(--space-l) 0;
}

.principles li {
    padding: var(--space-l);
    margin-bottom: var(--space-m);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    transition: box-shadow var(--transition-hover);
}

.principles li:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.08);
}

.principles li strong {
    display: block;
    font-size: var(--font-size-h4);
    color: var(--color-navy-500);
    margin-bottom: var(--space-s);
}

/* Team section */
.team-grid {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.team-card {
    padding: var(--space-l);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    transition: box-shadow var(--transition-hover);
}

.team-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.08);
}

.team-card h3 {
    color: var(--color-navy-500);
    margin-bottom: var(--space-xs);
}

.team-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-neutral-100);
    object-fit: cover;
    margin-bottom: var(--space-m);
}

.team-card .role {
    font-size: var(--font-size-body-small);
    color: var(--text-accent);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-s);
}

.team-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
}

.team-card p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   PRINCIPLE CARDS (homepage 3-column grid)
   ========================================================================== */
.principle-cards {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.principle-card {
    padding: var(--space-l);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    transition: box-shadow var(--transition-hover);
}

.principle-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.08);
}

.principle-card h3 {
    color: var(--color-navy-500);
    margin-bottom: var(--space-s);
    hyphens: auto;
    -webkit-hyphens: auto;
}

.principle-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
    margin-bottom: 0;
}

/* ==========================================================================
   PRODUCT TEASERS (homepage 3-column grid with links)
   ========================================================================== */
.product-teasers {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.product-teaser {
    display: block;
    padding: var(--space-l);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow var(--transition-hover), border-color var(--transition-hover);
}

.product-teaser:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.08);
    border-color: var(--color-blue-300);
    text-decoration: none;
    color: var(--text-primary);
}

.product-teaser h3 {
    color: var(--color-navy-500);
    margin-bottom: var(--space-s);
}

.product-teaser p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
    margin-bottom: var(--space-s);
}

.product-teaser__link {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-semibold);
    color: var(--text-link);
}

.product-teaser:hover .product-teaser__link {
    color: var(--text-link-hover);
}

/* ==========================================================================
   CREDIBILITY (text-based trust signals)
   ========================================================================== */
.credibility {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.credibility__item {
    padding: var(--space-l);
    background: var(--bg-surface-sunken);
    border-radius: var(--border-radius);
}

.credibility__item strong {
    display: block;
    font-size: var(--font-size-h4);
    color: var(--color-navy-500);
    margin-bottom: var(--space-s);
    hyphens: auto;
    -webkit-hyphens: auto;
}

.credibility__item p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
    margin-bottom: 0;
}

/* ==========================================================================
   DOMAIN CARDS (domains page)
   ========================================================================== */
.domain-cards {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.domain-card {
    padding: var(--space-l);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    transition: box-shadow var(--transition-hover);
}

.domain-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.08);
}

.domain-card h3 {
    color: var(--color-navy-500);
    margin-bottom: var(--space-xs);
}

.domain-card__who {
    font-size: var(--font-size-body-small);
    color: var(--text-accent);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-s);
}

.domain-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
}

.domain-card p:last-of-type {
    margin-bottom: var(--space-s);
}

.domain-card__link {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   RESEARCH CARDS (technology + about pages)
   ========================================================================== */
.research-cards {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-l);
    margin-bottom: var(--space-l);
}

.research-card {
    padding: var(--space-l);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--color-teal-400);
    transition: box-shadow var(--transition-hover);
}

.research-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.08);
}

.research-card h3 {
    color: var(--color-navy-500);
    margin-bottom: var(--space-xs);
}

.research-card__subtitle {
    font-size: var(--font-size-body-small);
    color: var(--text-accent);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-s);
}

.research-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
}

.research-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   COMPARISON TABLE (FinOps differentiation)
   ========================================================================== */
.comparison-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-l) 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-subtle);
}

.comparison-table {
    width: 100%;
    min-width: 580px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-size-body-small);
    background: var(--bg-surface);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    width: 22%;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-s) var(--space-m);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    background: var(--bg-surface-sunken);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    white-space: nowrap;
}

.comparison-table tbody th {
    color: var(--color-navy-500);
}

.comparison-table td:last-child {
    color: var(--color-navy-500);
    font-weight: var(--font-weight-semibold);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   CTA ALTERNATIVE TEXT (finops page)
   ========================================================================== */
.cta-alternative {
    margin-top: var(--space-l);
    margin-bottom: var(--space-s);
    color: var(--text-secondary);
    font-size: var(--font-size-body-small);
}

/* ==========================================================================
   STICKY CTA (CSS-only)
   ========================================================================== */
.sticky-cta {
    position: sticky;
    bottom: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-default);
    padding: var(--space-s) 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   MESSAGE PAGES (confirm, unsubscribe, 404)
   ========================================================================== */
.message-page {
    padding: var(--space-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.message-box {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
}

.message-box h1 {
    margin-bottom: var(--space-m);
}

.message-box p {
    margin-bottom: var(--space-l);
    color: var(--text-secondary);
}

.message-box--success {
    border: 1px solid var(--color-success);
}

.message-box--error {
    border: 1px solid var(--color-error);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page {
    padding: var(--space-xl) 0;
    background: var(--bg-surface);
}

.legal-page h1 {
    margin-bottom: var(--space-s);
}

.legal-page h2 {
    margin-top: var(--space-l);
    font-size: var(--font-size-h4);
}

.legal-page ul {
    margin: var(--space-s) 0 var(--space-m) var(--space-l);
}

.legal-page li {
    margin-bottom: var(--space-xs);
}

.legal-ref {
    color: var(--text-tertiary);
    font-size: var(--font-size-body-small);
    margin-bottom: var(--space-l);
}

.legal-nav {
    margin-top: var(--space-xl);
    padding-top: var(--space-l);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--font-size-body-small);
}

address {
    font-style: normal;
    margin-bottom: var(--space-m);
}

/* ==========================================================================
   FOOTER (per guidelines section 9.1: Neutral-900 bg, white text, white logo)
   ========================================================================== */
.site-footer {
    padding: var(--space-xl) 0 var(--space-l);
    background: var(--color-neutral-900);
    color: var(--color-neutral-50);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-m);
    text-align: center;
    min-width: 0;
    max-width: 100%;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    color: var(--text-on-brand);
    text-decoration: none;
}

.site-footer__logo img {
    height: 28px;
    width: auto;
}

.site-footer__logo span {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-body);
}

.site-footer__tagline {
    font-size: var(--font-size-body-small);
    color: var(--color-neutral-400);
    margin-bottom: 0;
    text-wrap: balance;
}

.site-footer__links {
    font-size: var(--font-size-body-small);
}

.site-footer__links a {
    color: var(--color-neutral-300);
}

.site-footer__links a:hover {
    color: var(--text-on-brand);
}

.site-footer__legal {
    font-size: var(--font-size-caption);
    color: var(--color-neutral-400);
    margin-bottom: 0;
}

/* ==========================================================================
   ANIMATION
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE: Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .subscribe-form .form-group {
        flex-direction: row;
    }

    .subscribe-form .input--email {
        flex: 1;
    }

    html {
        scroll-padding-bottom: 0;
    }

    .sticky-cta {
        display: none;
    }

    .site-footer__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: var(--space-m) var(--space-xl);
        text-align: left;
    }

    .site-footer__logo {
        justify-content: flex-start;
    }

    .site-footer__legal {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   RESPONSIVE: Desktop (1024px+)
   ========================================================================== */
@media (min-width: 768px) {
    .principle-cards,
    .product-teasers,
    .credibility {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .domain-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-xl);
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */

/* Admin body */
.admin-body {
    background: var(--bg-page);
}

/* Admin header — dark sticky bar */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-neutral-900);
    border-bottom: 1px solid var(--color-neutral-700);
}

.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.admin-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    color: var(--text-on-brand);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-body);
}

.admin-header__logo:hover {
    color: var(--text-on-brand);
    text-decoration: none;
}

.admin-header__logo img {
    height: 28px;
    width: auto;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.admin-nav a {
    color: var(--color-neutral-300);
    text-decoration: none;
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-xs) var(--space-s);
    border-radius: 4px;
    transition: color var(--transition-hover), background-color var(--transition-hover);
}

.admin-nav a:hover {
    color: var(--text-on-brand);
    background: var(--color-neutral-700);
    text-decoration: none;
}

.admin-nav a.active {
    color: var(--text-on-brand);
    background: var(--color-neutral-700);
}

.admin-nav__back {
    margin-left: var(--space-s);
    opacity: 0.6;
}

/* Admin main content area */
.admin-main {
    padding: var(--space-l) 0 var(--space-xl);
}

/* Admin page header with title and toolbar */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

.admin-page-header h1 {
    font-size: var(--font-size-h2);
    margin-bottom: 0;
}

.admin-toolbar {
    display: flex;
    gap: var(--space-xs);
}

/* Summary card grid */
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

/* Generic admin card */
.admin-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-subtle);
    padding: var(--space-l);
}

.admin-card--stat {
    text-align: center;
}

.admin-card__label {
    display: block;
    font-size: var(--font-size-body-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-semibold);
}

.admin-card__value {
    display: block;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-500);
}

.admin-card__sub {
    display: block;
    font-size: var(--font-size-caption);
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

/* Stat card color variants */
.admin-card--success .admin-card__value { color: var(--color-success); }
.admin-card--warning .admin-card__value { color: var(--color-warning); }
.admin-card--muted .admin-card__value { color: var(--text-tertiary); }

/* Chart grid */
.admin-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

.admin-chart-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-subtle);
    padding: var(--space-l);
}

.admin-chart-card h3 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-m);
}

/* Table toolbar (search) */
.admin-table-toolbar {
    margin-bottom: var(--space-m);
}

.admin-search {
    max-width: 360px;
}

/* Table wrapper for horizontal scroll */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-l);
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-subtle);
    font-size: var(--font-size-body-small);
}

.admin-table th,
.admin-table td {
    padding: var(--space-s) var(--space-m);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.admin-table th {
    background: var(--bg-surface-sunken);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    position: sticky;
    top: 0;
}

.admin-table tr:hover td {
    background: var(--color-neutral-50);
}

.admin-table__empty {
    text-align: center;
    color: var(--text-tertiary);
    padding: var(--space-xl) var(--space-m);
}

/* Sort links in table headers */
.admin-sort-link {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}

.admin-sort-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.admin-sort-link--active {
    color: var(--color-navy-500);
}

/* Status badges */
.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-semibold);
    line-height: 1.5;
}

.admin-badge--confirmed {
    background: var(--color-success-light);
    color: var(--color-success);
}

.admin-badge--pending {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.admin-badge--unsubscribed {
    background: var(--color-neutral-200);
    color: var(--text-tertiary);
}

/* Trend indicators on stat cards */
.admin-card__trend {
    display: block;
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-semibold);
    margin-top: var(--space-xs);
}

.admin-card__trend--up { color: var(--teal-600, #247B6F); }
.admin-card__trend--down { color: #dc2626; }

/* Funnel card — full-width */
.admin-funnel-card {
    margin-bottom: var(--space-l);
}

.admin-funnel-card h3 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-m);
}

.admin-funnel-rates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-s);
    margin-top: var(--space-m);
    font-size: var(--font-size-body-small);
    color: var(--text-secondary);
}

.admin-funnel-rates__arrow {
    color: var(--text-tertiary);
    font-weight: var(--font-weight-semibold);
}

/* Admin responsive: stack charts on mobile */
@media (max-width: 767px) {
    .admin-chart-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   REDUCED MOTION (WCAG 2.3.3)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .sticky-cta,
    .subscribe-form,
    .cta-box,
    .site-header,
    .site-nav {
        display: none;
    }

    body {
        font-size: 10.5pt;
        color: #000;
        background: #fff;
    }

    .hero {
        background: none;
        color: #000;
        padding: 1rem 0;
    }

    .hero h1,
    .hero .display {
        color: #000;
    }

    .site-footer {
        background: none;
        color: #000;
        border-top: 1px solid #ccc;
    }
}
