/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* VivaSecuris brand: red, black, white from logo */
    --primary-gradient: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
    --primary-color: #c41e3a;
    --primary-dark: #8b1528;
    --secondary-color: #1a1a1a;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    width: 100%;
}

.nav-brand {
    background: var(--bg-white);
    padding: 4px 12px 4px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.nav-brand .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand .logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-brand .logo-text {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-dark);
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-badge {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.hero-badge span {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
}

.hero--short {
    padding: 120px 0 60px;
}

.hero--short .hero-buttons,
.hero--short .hero-badge {
    display: none;
}

/* Blog hero: post title pops */
.hero--blog .hero-meta {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-title--accent {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.6em;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero--blog .hero-subtitle {
    font-size: 1.2em;
    max-width: 560px;
}

/* Blog */
.blog-section {
    padding: 60px 0 100px;
}

.blog-intro {
    font-size: 1.15em;
    color: var(--text-light);
    margin-bottom: 48px;
    line-height: 1.7;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.blog-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-post-header {
    margin-bottom: 12px;
}

.blog-post-date {
    display: block;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.blog-post-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.blog-post-kicker {
    margin: 0.4em 0 0;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.blog-post-more:hover {
    text-decoration: underline;
}

.blog-post--media {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.blog-post-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.blog-post-thumb img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center;
    background: #f4f4f4;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.home-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}

.home-blog-card img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: contain;
    object-position: center;
    background: #f4f4f4;
}

.home-blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.home-blog-card-body time {
    font-size: 0.82em;
    color: var(--text-light);
}

.home-blog-card-body h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-dark);
}

.home-blog-card-body p {
    margin: 0;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.home-blog-all {
    margin: 22px 0 0;
}

.home-takeback-points {
    margin-top: 0;
    margin-bottom: 48px;
}

.home-takeback-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.home-takeback-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.home-takeback-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.home-takeback-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: left top;
    background: white;
    border-bottom: 1px solid #eee;
}

.home-takeback-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 28px 32px;
    flex: 1;
}

.home-takeback-card-body time {
    font-size: 0.9em;
    color: var(--text-light);
}

.home-takeback-card-body h3 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-dark);
}

.home-takeback-card-kicker {
    margin: 0;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.home-takeback-card-body p:not(.home-takeback-card-kicker) {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
}

.home-takeback-card .blog-post-more {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .blog-post--media {
        grid-template-columns: 1fr;
    }

    .blog-post-thumb img {
        height: 180px;
    }
}

/* Blog post page */
.blog-post-meta {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-post-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-post-meta a:hover {
    text-decoration: underline;
}

/* On the crimson hero the grey/crimson pair above is unreadable */
.hero .blog-post-meta,
.hero .blog-post-meta a {
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero .blog-post-meta a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article-lead {
    font-size: 1.25em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.2em;
}

.blog-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.25em 0 0.75em;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.blog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-video-links {
    font-size: 0.95em;
    margin: 0 0 1.5em;
}

.article-section .blog-video {
    max-width: 960px;
    margin: 28px auto 14px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.article-section .blog-video-links {
    max-width: 720px;
    margin: 0 auto 28px;
    color: inherit;
}

.article-section .blog-video-links a {
    color: var(--primary-color);
}

.article-section.approach-section .blog-video-links a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2em 0 0.75em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid #e8e8e8;
}

.blog-article h2:first-of-type {
    margin-top: 1.5em;
}

.blog-article h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5em 0 0.5em;
}

.blog-article p {
    margin: 0 0 1em;
    line-height: 1.75;
}

.blog-article ul {
    margin: 0 0 1em 1.5em;
    padding: 0;
    line-height: 1.75;
}

.blog-article li {
    margin-bottom: 0.35em;
}

.blog-back {
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #e8e8e8;
}

.blog-back a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.blog-back a:hover {
    text-decoration: underline;
}

.blog-figure {
    margin: 1.75em 0 2em;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 10px 10px 14px;
}

.blog-figure-link {
    display: block;
    cursor: zoom-in;
}

.blog-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 5px);
}

.blog-figure figcaption {
    margin-top: 0.85em;
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.65;
}

.blog-figure--wide {
    margin-top: 2.4em;
}

.blog-article .blog-figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 1.75em 0 2em;
}

.blog-article .blog-figure-grid .blog-figure {
    margin: 0;
}

.blog-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 1.75em 0 2em;
}

.blog-story-card,
.blog-process-card,
.blog-callout {
    background: var(--bg-light);
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
}

.blog-story-card h3,
.blog-process-card h3,
.blog-callout h3 {
    margin-top: 0;
}

.blog-story-card p:last-child,
.blog-process-card p:last-child,
.blog-callout p:last-child {
    margin-bottom: 0;
}

.blog-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 1.75em 0 2em;
}

.blog-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 0.8em;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.blog-callout {
    margin: 2em 0;
    border-left: 4px solid var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Solution card CTA: same visible style on light background (doctors/hospitals) */
.btn-solution {
    background: var(--primary-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-solution:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.35);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3em;
    color: var(--text-light);
}

/* Problem Section */
.problem-section {
    background: var(--bg-light);
}

.problem-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.problem-lead {
    font-size: 1.4em;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
}

.problem-consequence {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.consequence-text {
    font-size: 1.5em;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.problem-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Solution Section */
.solution-section {
    background: white;
}

.solution-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-lead {
    font-size: 1.4em;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
}

.solution-approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.solution-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.solution-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.solution-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05em;
}

.solution-result {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(139, 21, 40, 0.08) 100%);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.result-text {
    font-size: 1.3em;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* Solutions Section (homepage) */
.solutions-section {
    background: var(--bg-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solutions-card {
    display: flex;
    flex-direction: column;
}

.solutions-card .solutions-cta {
    margin-top: auto;
    padding-top: 20px;
}

.solutions-cta {
    align-self: center;
}

.solutions-cta-single {
    text-align: center;
    margin-top: 40px;
}

.platform-teaser {
    margin-top: 48px;
    padding: 24px 32px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-size: 1.05em;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.platform-teaser a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}


.platform-teaser a:hover {
    text-decoration: underline;
}

/* Platform status (secure architecture page) */
.platform-status {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.platform-status p {
    font-size: 0.95em;
    color: var(--text-light);
    margin: 0;
}

.platform-status a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.platform-status a:hover {
    text-decoration: underline;
}

/* Validation Section */
.validation-section {
    background: white;
}

.validation-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.insight-item {
    background: linear-gradient(135deg, #fde8ea 0%, #fad0d5 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--success-color);
    transition: transform 0.3s ease;
}

.insight-item:hover {
    transform: translateX(5px);
}

.insight-quote {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 15px;
}

.insight-mapping {
    font-size: 0.95em;
    color: var(--success-color);
    font-weight: 600;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.validation-note {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
}

/* Approach Section */
.approach-section {
    background: var(--primary-gradient);
    color: white;
}

.approach-section .section-title {
    color: white;
    -webkit-text-fill-color: white;
}

.approach-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.lead-text {
    font-size: 1.8em;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 300;
}

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

.principle-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.principle-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.principle-item h3 {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.principle-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Platform Section */
.platform-section {
    background: var(--bg-light);
}

.platform-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.platform-lead {
    font-size: 1.4em;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
}

.platform-note {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.platform-note p {
    font-size: 1.1em;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.platform-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    font-size: 4em;
    margin-bottom: 20px;
    text-align: center;
}

.platform-card h4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-align: center;
}

.platform-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1.05em;
}

/* Team / leadership headshots (company page) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 32px;
    justify-items: center;
}

.team-card {
    text-align: center;
    max-width: 260px;
}

.team-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    border: 3px solid var(--bg-light);
    box-shadow: var(--shadow);
}

.team-card h3 {
    font-size: 1.25em;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.team-card .team-title {
    color: var(--text-light);
    font-size: 0.95em;
    margin: 0;
}

/* Deployment Section */
.deployment-section {
    background: white;
}

.deployment-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.principle-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 4px solid var(--success-color);
}

.principle-card .principle-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.principle-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.principle-card p {
    color: var(--text-light);
    font-size: 0.95em;
}

.deployment-proof {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
}

.deployment-proof h3 {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.proof-item {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.proof-item strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.proof-item p {
    color: var(--text-light);
    font-size: 0.95em;
    margin: 0;
}

/* Evidence Section */
.evidence-section {
    background: var(--bg-light);
}

.evidence-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--text-light);
}

.evidence-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.evidence-feature {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.evidence-feature strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.evidence-feature p {
    color: var(--text-light);
    font-size: 0.95em;
    margin: 0;
}

.evidence-use-cases {
    margin-top: 50px;
}

.evidence-use-cases h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.use-case {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Mission Section */
.mission-section {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.mission-title {
    font-size: 3em;
    margin-bottom: 30px;
}

.mission-statement {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mission-badge {
    margin-top: 40px;
}

.mission-badge span {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Spam trap: off the canvas, never focusable, never announced. Not display:none
   and not type="hidden" — a form-filling bot skips both, and this field only
   works if the bot sees it and fills it in. Paired with index.html and the
   contact handler's TRAP_FIELD. */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 16px;
    font-size: 0.95em;
    line-height: 1.5;
}

.form-status--ok {
    color: #1a6b3a;
}

.form-status--err {
    color: var(--primary-color);
}

.contact-form .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-credentials {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.contact-credentials p {
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-credentials ul {
    list-style: none;
    padding-left: 0;
}

.contact-credentials ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.contact-credentials ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.hero-tagline {
    font-size: 1.3em;
    margin: 30px 0;
    font-weight: 300;
    opacity: 0.95;
    font-style: italic;
}

.hero-patient {
    font-size: 1.1em;
    margin: 20px 0 0;
    opacity: 0.95;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Patient section (for average patients) */
.patient-section {
    background: white;
}

.patient-content {
    max-width: 720px;
    margin: 0 auto;
}

.patient-lead {
    font-size: 1.2em;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.patient-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.patient-list li {
    padding: 14px 0 14px 36px;
    position: relative;
    line-height: 1.7;
    color: var(--text-dark);
}

.patient-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.patient-list li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.patient-close {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: baseline;
    justify-content: center;
}

.footer-brand .footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
}

.footer-logo-text {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-brand p {
    margin-top: 10px;
    opacity: 0.8;
}

.footer-column {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
}

.footer-column h4 {
    margin: 0;
    font-size: 1.2em;
    white-space: nowrap;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin: 0;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

.footer-tagline {
    margin-top: 10px;
    font-style: italic;
}

.footer-contact {
    margin-top: 14px;
    font-size: 0.95em;
    color: #fff;
}

.footer-contact a,
.footer-contact a:link,
.footer-contact a:visited,
.footer-contact a:hover,
.footer-contact a:active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-title--accent {
        font-size: 1.85em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-tagline {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 56px;
        right: 20px;
        left: auto;
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        background: var(--bg-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: var(--border-radius);
        z-index: 1001;
    }

    .nav-menu.is-open {
        display: flex;
    }

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

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-column ul {
        justify-content: center;
    }

    .problem-grid,
    .platform-grid,
    .solutions-grid,
    .home-takeback-pair,
    .deployment-principles,
    .proof-grid {
        grid-template-columns: 1fr;
    }

    .architecture-diagram {
        flex-direction: column;
    }

    .optional-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}


/* ---------------------------------------------------------------
   Zero Trust page: dark-ground overrides + grid balance
   .blog-intro and .blog-callout were authored for light sections.
   On .approach-section (crimson gradient) they need inverting, or
   the intro washes out and the callout is white-on-white.
   --------------------------------------------------------------- */
.approach-section .blog-intro {
    color: rgba(255, 255, 255, 0.92);
}

.approach-section .blog-callout {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    padding: 26px 30px;
}

.approach-section .blog-callout strong {
    color: #ffffff;
}

/* Icons: consistent stroked SVGs instead of mixed text/emoji glyphs */
.card-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Even rows: card lists are an even count, locked to two columns,
   so the last row is never a single stretched card. */
@media (min-width: 769px) {
    .problem-grid,
    .solutions-grid,
    .home-takeback-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .blog-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Section subheads and grid lead-ins for long-form pages */
.section-subhead {
    font-size: 1.45em;
    color: var(--text-dark);
    margin: 52px 0 18px;
    letter-spacing: -0.01em;
}

.approach-section .section-subhead,
.approach-section .grid-lead {
    color: #ffffff;
}

.grid-lead {
    margin-top: 44px;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.problem-section .problem-grid {
    margin-top: 28px;
}

/* Long-form prose rhythm. The global reset zeroes every margin, so
   narrative paragraphs need their own spacing and a readable measure
   (the 1200px container is far too wide for running text). */
.problem-section > .container > p {
    max-width: 760px;
    margin: 0 auto 1.25em;
    line-height: 1.75;
    color: var(--text-light);
}

.problem-section > .container > .section-subhead,
.problem-section > .container > .grid-lead {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.problem-section > .container > .grid-lead {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Long-form article pages (zero-trust-healthcare-access.html)
   --------------------------------------------------------------- */
.article-hero { padding: 120px 0 70px; text-align: center; }
.article-hero .hero-title {
    max-width: 720px;
    margin: 0 auto 14px;
    font-size: 2.6em;
    line-height: 1.15;
}
.article-hero .hero-kicker {
    max-width: 720px;
    margin: 0 auto 18px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}
.article-hero .hero-subtitle {
    max-width: 680px; margin: 0 auto; font-size: 1.12em;
    color: rgba(255, 255, 255, 0.92); line-height: 1.6;
}

.article-section > .container > p {
    max-width: 720px; margin: 0 auto 1.3em;
    line-height: 1.78; font-size: 1.02em; color: var(--text-light);
}

.article-section > .container > ul,
.article-section > .container > ol {
    max-width: 720px;
    margin: 0 auto 1.3em;
    padding-left: 1.35em;
    line-height: 1.78;
    font-size: 1.02em;
    color: var(--text-light);
}

.article-section > .container > ul li,
.article-section > .container > ol li {
    margin-bottom: 0.35em;
}

.article-section.approach-section > .container > ul,
.article-section.approach-section > .container > ol,
.article-section.approach-section > .container > .section-subhead {
    color: rgba(255, 255, 255, 0.93);
}

.article-section > .container > .section-subhead {
    max-width: 720px; margin-left: auto; margin-right: auto;
    margin-top: 48px; margin-bottom: 14px;
}

.article-section.approach-section > .container > p { color: rgba(255, 255, 255, 0.93); }
.article-section.approach-section > .container > p.blog-back {
    margin-top: 2.4em; border-top-color: rgba(255, 255, 255, 0.35);
}
.article-section.approach-section .blog-back a { color: #fff; }
.article-section .section-header {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: left;
}

.article-section .section-title {
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--primary-color);
}

.article-section.approach-section .section-title {
    color: rgba(255, 255, 255, 0.88);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
}

.article-section.problem-section .section-title {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.references-section .section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.references-section .section-title {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: none;
    color: rgba(255, 255, 255, 0.88);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
}

.article-lede { padding-top: 70px; padding-bottom: 10px; background: var(--bg-white); }
.article-lede > .container > p.lede {
    font-size: 1.22em; line-height: 1.65; color: var(--text-dark); margin-bottom: 1.1em;
}

.blog-callout.lifecycle { max-width: 720px; margin: 30px auto 34px; text-align: center; }
.blog-callout.lifecycle p { font-size: 0.98em; line-height: 2; }
.approach-section .blog-callout.lifecycle strong { color: #fff; }

.cite { font-size: 0.72em; font-weight: 600; }
.cite a { color: var(--primary-color); text-decoration: none; }
.approach-section .cite a { color: rgba(255, 255, 255, 0.85); }

.references-section { background: var(--secondary-color); }
.references-section .section-title {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: none;
    color: rgba(255, 255, 255, 0.88);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
}
.references {
    max-width: 760px; margin: 0 auto; padding-left: 22px;
    color: rgba(255, 255, 255, 0.72); font-size: 0.92em; line-height: 1.7;
}
.references li { margin-bottom: 14px; }
.references a { color: rgba(255, 255, 255, 0.9); word-break: break-word; }

/* Blog pitch layer: a white card on a grey band below each post (mirrors .platform-teaser).
   Inherits .blog-callout's border, radius and crimson left bar. White background is required:
   .blog-callout's grey equals .problem-section's grey. Not in script.js's fade-in list. */
.blog-pitch-section { padding: 64px 0; }
.blog-pitch {
    background: var(--bg-white);
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 32px;
}
.blog-pitch-title {
    font-size: 1.45em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.6em;
}
.blog-pitch p { margin: 0 0 1em; line-height: 1.7; color: var(--text-light); }
.blog-pitch ul { margin: 0 0 1.4em 1.25em; padding: 0; line-height: 1.65; color: var(--text-light); }
.blog-pitch li { margin-bottom: 0.5em; }
.blog-pitch li strong { color: var(--text-dark); }
.blog-pitch a:not(.btn) { color: var(--primary-color); }
.blog-pitch .btn { padding: 12px 28px; font-size: 1em; max-width: 100%; white-space: normal; text-align: center; }
.blog-pitch-alt { font-size: 0.92em; }

/* The in-development note in the VivaOS hero carries a link; the hero is crimson */
.hero-tagline a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Inline links inside article prose. The site has no global anchor rule, so a
   link in a body paragraph would render as browser-default blue; it also needs
   a second colour because the article bands alternate white and crimson. */
.article-section a.inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-section a.inline-link:hover {
    color: var(--primary-dark);
}

.article-section.approach-section a.inline-link,
.article-section.approach-section a.inline-link:hover {
    color: #ffffff;
}

/* The home page lists recent writing as date and title only, so the rows need
   less air than the blog index, where every entry also carries an excerpt. */
.blog-list--compact {
    gap: 22px;
}

.blog-list--compact .blog-post {
    padding-bottom: 22px;
}

.blog-list--compact .blog-post-header {
    margin-bottom: 0;
}

.blog-list--compact .blog-post-title {
    font-size: 1.15em;
}

/* Cards on the home page carry a link, which must sit at the card foot however
   long the sentence above it runs. */
.home-build-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.home-build-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 14px;
}

.home-build-card .blog-post-more {
    margin-top: auto;
}
/* ---------------------------------------------------------------
   Article figures and callouts (render-blog-post.py: ![alt](src "caption"), > text)
   Staged for the AI Lobotomy release; appended to assets/www/styles.css on release day.
   Figures sit wider than the 720px prose measure so screenshots stay legible, on a
   white card so they read the same on the crimson and the grey band.
   --------------------------------------------------------------- */
.article-section .blog-figure {
    max-width: 960px; margin: 34px auto 38px;
    background: var(--bg-white); border-radius: var(--border-radius);
    box-shadow: var(--shadow); padding: 10px 10px 14px;
}
.article-section .blog-figure-link { display: block; cursor: zoom-in; }
.article-section .blog-figure img {
    display: block; width: 100%; height: auto;
    border-radius: calc(var(--border-radius) - 5px);
}
.article-section .blog-figure figcaption {
    margin: 12px 8px 0; color: var(--text-light);
    font-size: 0.93em; line-height: 1.6; text-align: left;
}
.article-section .blog-figure figcaption a { color: var(--primary-color); }

.article-section .blog-figure-grid {
    max-width: 1100px; margin: 34px auto 38px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px; align-items: start;
}
.article-section .blog-figure-grid .blog-figure { margin: 0; max-width: none; }

.article-section .blog-callout--article {
    max-width: 720px; margin: 30px auto 34px;
}
.article-section .blog-callout--article p {
    font-size: 1.08em; line-height: 1.7; font-weight: 500;
}

@media (max-width: 600px) {
    .article-section .blog-figure { padding: 6px 6px 10px; margin: 26px auto 28px; }
    .article-section .blog-figure-grid { grid-template-columns: 1fr; gap: 16px; }
}
