/* Sysmorra Public Website Theme */

:root {
    --sys-navy: #0B1F3A;
    --sys-navy-light: #123456;
    --sys-teal: #0F766E;
    --sys-teal-dark: #0D5F58;
    --sys-teal-soft: rgba(15, 118, 110, 0.12);
    --sys-gray-50: #F4F7FA;
    --sys-gray-100: #E8EEF3;
    --sys-gray-200: #D1DCE6;
    --sys-gray-600: #5A6B7D;
    --sys-gray-800: #2C3E50;
    --sys-white: #FFFFFF;
    --sys-gradient-soft: linear-gradient(165deg, #F4F7FA 0%, #EEF3F8 45%, #E8EEF5 100%);
    --sys-gradient-hero: linear-gradient(145deg, #F8FAFC 0%, #EEF4F8 50%, #E5EDF5 100%);
    --sys-font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sys-font-body: "DM Sans", system-ui, -apple-system, sans-serif;
    --sys-shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
    --sys-shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
    --sys-radius: 0.5rem;
    --sys-radius-lg: 0.75rem;
    --sys-transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body.sysmorra-body {
    font-family: var(--sys-font-body);
    color: var(--sys-gray-800);
    background: var(--sys-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.brand-display {
    font-family: var(--sys-font-display);
    font-weight: 600;
    color: var(--sys-navy);
    letter-spacing: -0.02em;
}

/* Header / Nav */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--sys-gray-100);
    backdrop-filter: blur(8px);
}

.site-header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: 0;
    align-items: center;
}

.site-header .navbar-brand {
    font-size: 1.5rem;
    text-decoration: none;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    margin-right: 1.25rem;
}

.site-header .site-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: min(280px, 65vw);
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .site-header .site-logo {
        height: 48px;
    }
}

@media (max-width: 575.98px) {
    .site-header .site-logo {
        height: 40px;
    }
}

.site-header .nav-link {
    color: var(--sys-gray-800);
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--sys-radius);
    transition: color var(--sys-transition), background var(--sys-transition);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--sys-teal);
}

.site-header .nav-link.active {
    color: var(--sys-teal);
    background: var(--sys-teal-soft);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--sys-teal);
    --bs-btn-border-color: var(--sys-teal);
    --bs-btn-hover-bg: var(--sys-teal-dark);
    --bs-btn-hover-border-color: var(--sys-teal-dark);
    --bs-btn-active-bg: var(--sys-teal-dark);
    --bs-btn-active-border-color: var(--sys-teal-dark);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
    font-weight: 600;
    transition: transform var(--sys-transition), box-shadow var(--sys-transition), background var(--sys-transition);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: var(--sys-shadow-sm);
}

.btn-outline-primary {
    --bs-btn-color: var(--sys-teal);
    --bs-btn-border-color: var(--sys-teal);
    --bs-btn-hover-bg: var(--sys-teal);
    --bs-btn-hover-border-color: var(--sys-teal);
    --bs-btn-active-bg: var(--sys-teal-dark);
    --bs-btn-active-border-color: var(--sys-teal-dark);
    font-weight: 600;
    transition: transform var(--sys-transition), box-shadow var(--sys-transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    transform: translateY(-1px);
}

.text-primary {
    color: var(--sys-teal) !important;
}

/* Hero */
.hero-section {
    background: var(--sys-gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-brand {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--sys-navy);
}

.hero-title {
    font-family: var(--sys-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--sys-navy);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--sys-gray-600);
    max-width: 36rem;
    margin-bottom: 2rem;
}

/* Fade-in motion */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
}

/* Sections */
.section-padding {
    padding: 4.5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

.bg-soft {
    background: var(--sys-gradient-soft);
}

.section-header h2 {
    font-family: var(--sys-font-display);
    color: var(--sys-navy);
    font-weight: 600;
}

.page-hero h1 {
    font-family: var(--sys-font-display);
    color: var(--sys-navy);
    font-weight: 600;
}

/* Benefits — light containers, not heavy cards */
.benefit-item {
    padding: 1.5rem;
    border-left: 3px solid var(--sys-teal);
    background: var(--sys-white);
    border-radius: 0 var(--sys-radius) var(--sys-radius) 0;
    box-shadow: var(--sys-shadow-sm);
}

.benefit-icon {
    display: inline-block;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Modules */
.module-chip {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--sys-white);
    border: 1px solid var(--sys-gray-100);
    border-radius: var(--sys-radius);
    height: 100%;
    transition: border-color var(--sys-transition);
}

.module-chip:hover {
    border-color: var(--sys-teal);
}

.module-title {
    font-weight: 600;
    color: var(--sys-navy);
}

.module-desc {
    font-size: 0.875rem;
    color: var(--sys-gray-600);
    margin-top: 0.25rem;
}

/* Workflow */
.workflow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--sys-white);
    border-radius: 999px;
    box-shadow: var(--sys-shadow-sm);
    font-weight: 500;
}

.workflow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--sys-teal);
    color: var(--sys-white);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Capability / Feature cards */
.capability-card,
.feature-card {
    padding: 1.25rem;
    background: var(--sys-white);
    border: 1px solid var(--sys-gray-100);
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--sys-shadow-sm);
}

.feature-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.75rem;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.status-available { background: #D1FAE5; color: #065F46; }
.status-under-final-testing { background: #FEF3C7; color: #92400E; }
.status-coming-soon { background: var(--sys-gray-100); color: var(--sys-gray-600); }
.status-available-in-selected-plans { background: #DBEAFE; color: #1E40AF; }

/* Plan cards */
.plan-card {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    background: var(--sys-white);
    border: 1px solid var(--sys-gray-100);
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--sys-shadow-sm);
    position: relative;
}

.plan-card-featured {
    border-color: var(--sys-teal);
    box-shadow: var(--sys-shadow-md);
}

.plan-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sys-teal);
    color: var(--sys-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.plan-price .price-amount {
    font-family: var(--sys-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sys-navy);
}

.plan-features {
    padding-left: 1.25rem;
    margin: 1rem 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 0.35rem;
    font-size: 0.925rem;
}

.billing-toggle {
    display: inline-flex;
    background: var(--sys-gray-100);
    border-radius: 999px;
    padding: 0.25rem;
}

.billing-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--sys-gray-600);
    cursor: pointer;
    transition: background var(--sys-transition), color var(--sys-transition);
}

.billing-toggle-btn.active {
    background: var(--sys-white);
    color: var(--sys-navy);
    box-shadow: var(--sys-shadow-sm);
}

/* Screenshots */
.screenshot-card {
    margin: 0;
    background: var(--sys-white);
    border-radius: var(--sys-radius-lg);
    overflow: hidden;
    box-shadow: var(--sys-shadow-sm);
}

.screenshot-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--sys-gray-100);
}

.screenshot-card figcaption {
    padding: 1rem;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--sys-navy) 0%, var(--sys-navy-light) 100%);
}

/* Footer */
.site-footer {
    background: var(--sys-navy);
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .brand-display {
    color: var(--sys-white);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--sys-transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--sys-white);
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.4rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Forms */
.sysmorra-form .form-label {
    font-weight: 500;
    color: var(--sys-navy);
}

.sysmorra-form .form-control:focus,
.sysmorra-form .form-select:focus {
    border-color: var(--sys-teal);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

/* Thank you */
.thank-you-icon {
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    border-radius: 50%;
    background: var(--sys-teal-soft);
    color: var(--sys-teal);
    font-size: 1.75rem;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
}

/* Legal pages */
.legal-content {
    font-size: 1rem;
}

.legal-content h2,
.legal-content h3 {
    font-family: var(--sys-font-display);
    color: var(--sys-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
    color: var(--sys-gray-800);
}

.draft-banner {
    margin-bottom: 1rem;
}

/* FAQ accordion */
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--sys-teal-soft);
    color: var(--sys-navy);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

/* Responsive */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 3rem 0;
    }

    .workflow-list {
        flex-direction: column;
        align-items: stretch;
    }

    .workflow-step {
        border-radius: var(--sys-radius);
    }
}

@media (max-width: 575.98px) {
    .hero-brand {
        font-size: 2.25rem;
    }
}

.public-compact-form .form-control,
.public-compact-form .form-select {
    min-height: 2.4rem;
    font-size: 0.95rem;
}

.public-form-card {
    background: var(--sys-white);
    border: 1px solid var(--sys-gray-100);
    border-radius: var(--sys-radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--sys-shadow-sm);
}

.public-form-card h2 {
    font-family: var(--sys-font-display);
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--sys-navy);
    margin: 0 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--sys-gray-100);
}

.product-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--sys-teal-soft, #f0fdfa);
    border-left: 3px solid var(--sys-teal);
    border-radius: 0 var(--sys-radius) var(--sys-radius) 0;
}

.product-selected__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--sys-gray-600);
}

.product-selected__value {
    font-weight: 650;
    color: var(--sys-navy);
}

.public-summary {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    gap: 0.45rem 1rem;
    margin: 0;
}

.public-summary dt {
    font-weight: 600;
    color: var(--sys-gray-600);
}

.public-summary dd {
    margin: 0;
    font-weight: 600;
    color: var(--sys-navy);
}

@media (max-width: 575.98px) {
    .public-summary {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .public-summary dt {
        margin-top: 0.55rem;
    }
}

