:root {
    /* Color Palette */
    --color-primary: #0a2a43;
    --color-primary-light: #3b82f6;
    --color-accent: #06b6d4;
    --color-accent-hover: #0891b2;
    --color-text: #475569;
    --color-text-light: #64748b;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;
    --space-9: 128px;
    --container-width: 1200px;
    --section-padding: var(--space-8) 0;
}

html {
    scroll-behavior: smooth;
}

/* ============================
   Leistungen & Preise
   ============================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html.menu-open,
body.menu-open {
    overflow: hidden;
}

body.menu-open {
    position: fixed;
    left: 0;
    width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.nav-links a[href="wert-pruefen.html"] {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    background: none;
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.nav-links a[href="wert-pruefen.html"]:hover,
.nav-links a[href="wert-pruefen.html"].active {
    color: var(--color-primary-light);
    background: none;
    background-image: none;
    -webkit-text-fill-color: currentColor;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.admin-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1;
    opacity: 1;
    flex-shrink: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.admin-nav-trigger:hover,
.admin-nav-trigger:focus-visible {
    color: #3b82f6;
    opacity: 1;
    outline: none;
}

.admin-nav-trigger svg {
    width: 24px;
    height: 24px;
    display: block;
    overflow: visible;
    vertical-align: middle;
}

.admin-nav-trigger svg * {
    stroke-width: 1.6;
}

.admin-nav-label {
    display: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1a2e4c;
    box-shadow: 0 4px 12px rgba(10, 42, 67, 0.2);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-brand-motif {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    opacity: 0.05;
    z-index: 1;
    filter: blur(1px);
    pointer-events: none;
    animation: float 25s ease-in-out infinite;
}

.hero-brand-motif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.technical-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.25;
    /* Significantly increased for better visibility */
}

.technical-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    mix-blend-mode: darken;
    filter: contrast(1.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-55%) translateX(-20px);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 82px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-primary);
}

h1 .accent {
    background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    color: #64748b;
    margin-bottom: 48px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.btn-large {
    background: var(--color-primary);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    border: none;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(10, 42, 67, 0.15);
}

.hero-actions .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
}

.hero-primary-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(10, 42, 67, 0.25);
}

.btn-large:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

.hero-subtext-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 320px;
    gap: var(--space-1);
    margin-top: var(--space-3);
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    padding: 0;
}

.hero-subtext-features span {
    display: flex;
    align-items: center;
    opacity: 0.8;
}



.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border: 2px solid #3b82f6;
    font-weight: 800;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-text {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(8px);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.services.services--subpage {
    padding-top: 0;
}

.page-services .services.services--subpage {
    background: white;
}

.services-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.5) 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.15;
}

.services-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    mix-blend-mode: darken;
    filter: contrast(1.1);
}

.section-header {
    margin-bottom: var(--space-7);
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.tag.white {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.card {
    background: white;
    padding: var(--space-5);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 480px;
    text-decoration: none;
    color: var(--color-primary);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.08);
    border-color: #3b82f633;
}

.card.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: #3b82f6;
    flex-shrink: 0;
}

.card.active .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    min-height: 58px;
}

.card.active h3 {
    color: white;
}

.card p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: var(--space-5);
    line-height: 1.6;
    min-height: 192px;
}

.card.active p {
    color: #94a3b8;
}

.card-list {
    list-style: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-list li {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--color-primary);
}

.card.active .card-list li {
    color: white;
}

.card-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 6px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.card.active .card-list li::before {
    background: white;
}

.card-link-cta {
    margin-top: auto;
    padding-top: var(--space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-light);
    transition: all 0.3s ease;
}

.card.active .card-link-cta {
    color: white;
}

.card-link-cta svg {
    transition: transform 0.3s ease;
}

.card:hover .card-link-cta {
    color: var(--color-primary);
}

.card.active:hover .card-link-cta {
    color: white;
}

.card:hover .card-link-cta svg {
    transform: translateX(6px);
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.section-subtext {
    font-size: 16px;
    color: var(--color-text-light);
    margin-top: 12px;
    font-weight: 400;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 16px 40px rgba(10, 25, 47, 0.08);
    transform: translateY(-4px);
}

.pricing-card--highlight {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pricing-card--highlight .pricing-category,
.pricing-card--highlight .pricing-title,
.pricing-card--highlight .pricing-price,
.pricing-card--highlight .pricing-currency,
.pricing-card--highlight .pricing-features li {
    color: white;
}

.pricing-card--highlight .pricing-note {
    color: #94a3b8;
}

.pricing-card--highlight .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-card--highlight .pricing-addon {
    color: #7dd3fc;
}

.pricing-card--highlight .pricing-cta {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.pricing-card--highlight .pricing-cta:hover {
    background: #dbeafe;
}

.pricing-card-header {
    margin-bottom: 28px;
}

.pricing-category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 10px;
}

.pricing-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.pricing-price {
    font-size: 44px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1xl);
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-bounce);
    position: relative;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: var(--color-primary-light);
}

.pricing-card.highlighted {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(10 42 67 / 0.1), 0 8px 10px -6px rgb(10 42 67 / 0.1);
    z-index: 10;
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-8px);
}

@media (max-width: 1024px) {
    .pricing-card.highlighted {
        transform: scale(1);
    }
    .pricing-card.highlighted:hover {
        transform: translateY(-8px);
    }
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.pricing-card.highlighted .pricing-header h3 {
    color: var(--color-primary);
    font-weight: 800;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.payment-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.pricing-content {
    flex-grow: 1;
}

.pricing-desc {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.pricing-features li::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2a43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.pricing-footer {
    margin-top: 2.5rem;
}

.pricing-note {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.w-full {
    width: 100%;
}

.pricing-currency {
    font-size: 28px;
    font-weight: 700;
}

.pricing-note {
    font-size: 13px;
    color: var(--color-text-light);
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--color-text);
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.5;
}

.pricing-addon {
    font-weight: 700;
    color: var(--color-primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.pricing-cta:hover {
    background: #1a3a5c;
    transform: translateY(-1px);
}

.pricing-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Pricing Tabs & Extended Cards --- */
.pricing-tabs-section {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.page-prices .pricing-tabs-section {
    background: #ffffff;
    padding-top: 0;
}

.pricing-tabs-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: 0;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 34px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d9e2ec;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 14px 28px rgba(10, 25, 47, 0.05);
}

.tab-btn svg {
    color: var(--color-primary-light);
    transition: color 0.2s ease;
}

.tab-btn:hover {
    border-color: rgba(59, 130, 246, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(10, 25, 47, 0.08);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 20px 36px rgba(10, 25, 47, 0.16);
}

.tab-btn.active svg {
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.pricing-grid-extended--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-prices .btn-primary,
.page-prices .sp-hero a.sp-cta,
.page-prices .tab-btn,
.page-prices .pricing-card-ex {
    border-radius: 0;
}

.pricing-card-ex {
    background: white;
    border: 1px solid #d6e0ea;
    border-radius: 0;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    min-height: 420px;
    box-shadow: 0 16px 34px rgba(10, 25, 47, 0.05);
}

.pricing-card-ex:hover {
    box-shadow: 0 22px 44px rgba(10, 25, 47, 0.08);
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.18);
}

.card-ex-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-5);
    line-height: 1.3;
    min-height: 52px;
}

.card-ex-features {
    list-style: none;
    margin-bottom: var(--space-5);
}

.card-ex-features li {
    font-size: 15px;
    color: var(--color-text);
    padding: 12px 0 12px 28px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #edf2f7;
}

.card-ex-features li::before {
    content: "•";
    color: var(--color-primary-light);
    position: absolute;
    left: 6px;
    font-weight: bold;
    font-size: 20px;
}

.card-ex-features li:last-child {
    border-bottom: none;
}

.card-ex-footer {
    margin-top: auto;
    padding-top: var(--space-5);
    border-top: 1px solid #e2e8f0;
}

.result-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #16a34a; /* Green success color like in screenshot */
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-ex-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.card-ex-price .currency {
    font-size: 22px;
    font-weight: 700;
}

.pricing-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.highlight-item {
    background: #f8fafc;
    border-style: dashed;
    border-width: 2px;
}

@media (max-width: 768px) {
    .pricing-tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-btn {
        justify-content: center;
    }

    .pricing-grid-extended--balanced {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-section {

    padding: var(--section-padding);
    background: white;
}

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

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.about-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 56px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
    margin-bottom: 56px;
}

.about-point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-point svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 4px;
}

.about-point h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.about-point p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

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

/* Footer */
.tool-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.tool-watermark {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(-10deg);
    width: 60%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

.tool-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    filter: contrast(1.3) brightness(1.1);
}

.glass-card {
    background: var(--color-primary);
    border-radius: 40px;
    padding: 80px;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(-15deg);
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background-image: url('logo-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    filter: brightness(0) invert(1);
    z-index: 0;
    pointer-events: none;
}

.tool-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.tool-text {
    flex: 1;
}

.tool-text h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.tool-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 48px;
    max-width: 500px;
}

.steps-visual {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
}

.step.active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.step-label {
    position: absolute;
    bottom: -32px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.step.active .step-label {
    color: white;
}

.step-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-white-large {
    background: white;
    color: var(--color-primary);
    padding: 24px 64px;
    border-radius: 16px;
    border: none;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-white-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.sub-note {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

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

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal-text-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards;
}

.reveal-fade {
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

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

/* Unified Contact and Career Styles */
.sp-hero-bg.sp-hero-bg--abstract {
    background:
        linear-gradient(135deg, rgba(10, 42, 67, 0.94) 0%, rgba(10, 42, 67, 0.86) 50%, rgba(30, 64, 175, 0.78) 100%),
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.28), transparent 42%),
        radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.2), transparent 48%);
    opacity: 1;
}

.sp-hero.sp-hero--compact {
    height: 320px;
    align-items: center;
}

.sp-hero.sp-hero--compact .container {
    padding-bottom: 0;
}

.sp-hero.sp-hero--compact h1 {
    margin-bottom: 0;
}

.sp-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.career-selection {
    padding-top: var(--space-7);
    padding-bottom: var(--space-8);
}

.career-selection-head {
    max-width: 760px;
    margin-bottom: var(--space-6);
    border-left: 3px solid var(--color-primary-light);
    padding-left: var(--space-4);
}

.career-selection-head h2 {
    font-size: 42px;
    line-height: 1.18;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.career-selection-head p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-text);
}

.career-options-grid {
    align-items: stretch;
}

.sp-option-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--space-5);
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.05);
}

.career-choice-card {
    min-height: 320px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.career-choice-card:hover {
    border-color: rgba(10, 42, 67, 0.22);
    box-shadow: 0 24px 48px rgba(10, 25, 47, 0.08);
    transform: translateY(-2px);
}

.career-choice-card.is-active {
    border-color: rgba(10, 42, 67, 0.25);
    box-shadow: 0 26px 54px rgba(10, 25, 47, 0.08);
}

.sp-option-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-primary);
}

.sp-option-card h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.sp-option-card p {
    flex-grow: 1;
    margin-bottom: var(--space-5);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.sp-option-card .sp-block-cta {
    margin-top: auto;
}

.sp-option-card .sp-block-cta .arrow {
    display: inline-block;
    margin-left: var(--space-1);
    transition: transform 0.2s ease;
}

.sp-option-card .sp-block-cta:hover .arrow {
    transform: translateX(6px);
}

.sp-form-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.career-detail-shell {
    max-width: 980px;
    margin: 0 auto;
}

.career-detail-heading {
    margin-bottom: var(--space-6);
}

.career-detail-copy {
    max-width: 860px;
    margin: 0 auto var(--space-6);
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d9e2ec;
}

.career-detail-panel {
    display: none;
}

.career-detail-panel.is-active {
    display: block;
}

.career-detail-panel h3 {
    font-size: 32px;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.career-detail-panel>p {
    margin-bottom: var(--space-5);
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.career-detail-panel .sp-list {
    margin-bottom: 0;
}

.sp-form-section.is-hidden {
    display: none;
}

.sp-form-heading {
    max-width: 720px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.sp-form-heading .sp-section-label {
    margin-bottom: var(--space-3);
}

.sp-form-heading h2 {
    font-size: 42px;
    color: var(--color-primary);
    line-height: 1.2;
}

.contact-form-container,
.sp-form-shell {
    max-width: 860px;
    margin: 0 auto;
    background: white;
    padding: var(--space-6);
    border: 1px solid #d9e2ec;
    box-shadow: 0 24px 56px rgba(10, 25, 47, 0.06);
}

.page-contact .sp-form-section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-8);
    background: #ffffff;
}

.page-contact .sp-block.sp-shaded {
    background: #ffffff;
}

.page-contact .sp-hero .container {
    width: 100%;
}

.page-contact .contact-detail-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-contact .sp-form-heading {
    width: 100%;
    max-width: none;
    margin: 0 0 var(--space-5);
    text-align: left;
}

.page-contact .sp-form-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px 48px;
    border: 1px solid #d6e0ea;
    box-shadow: 0 16px 34px rgba(10, 25, 47, 0.05);
}

.page-contact .form-row {
    gap: 20px;
}

.page-contact .form-group {
    margin-bottom: 20px;
}

.page-contact .form-label {
    margin-bottom: 8px;
}

.page-contact .form-control {
    padding: 15px 16px;
}

.page-contact textarea.form-control {
    min-height: 160px;
}

.page-contact .form-checkbox {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
}

.page-contact .submit-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
    text-align: left;
}

.page-contact .submit-btn-container .btn-large {
    width: auto;
    min-width: 280px;
    padding: 17px 32px;
}

.page-contact .submit-note {
    margin-top: 0;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
}

.form-feedback {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border: 1px solid #d9e2ec;
    font-size: 15px;
    line-height: 1.6;
}

.form-feedback.is-success {
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.form-feedback.is-error {
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(10, 42, 67, 0.08);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23475569%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px auto;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-5);
    margin-bottom: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid #e2e8f0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-primary-light);
}

.submit-btn-container {
    text-align: center;
}

.submit-btn-container .btn-large {
    width: 100%;
    padding: 18px 24px;
    border-radius: 0;
    border: none;
    font-size: 16px;
    box-shadow: none;
}

.submit-btn-container .btn-large:hover {
    transform: none;
    box-shadow: none;
}

.submit-btn-container .btn-large:disabled {
    opacity: 0.7;
    cursor: wait;
}

.submit-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-light);
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 24px;
    border: 1px dashed #94a3b8;
    border-radius: 0;
    background: #f8fafc;
    color: var(--color-primary);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload:hover .file-upload-label {
    border-color: var(--color-primary-light);
    background: rgba(59, 130, 246, 0.05);
}

@media (max-width: 900px) {
    .sp-options-grid {
        grid-template-columns: 1fr;
    }

    .career-selection-head h2 {
        font-size: 36px;
    }

    .career-detail-copy {
        padding: var(--space-5);
    }

    .sp-form-shell {
        padding: var(--space-5);
    }

    .sp-form-heading h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sp-hero.sp-hero--compact {
        height: 260px;
    }

    .career-selection {
        padding-top: var(--space-6);
        padding-bottom: var(--space-7);
    }

    .sp-block.career-selection {
        padding-top: var(--space-6) !important;
    }

    .career-selection-head {
        margin-bottom: var(--space-5);
        padding-left: var(--space-3);
    }

    .career-selection-head h2 {
        font-size: 30px;
    }

    .career-selection-head p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .sp-form-shell {
        padding: var(--space-5) var(--space-4);
    }

    .sp-option-card {
        padding: var(--space-5) var(--space-4);
    }

    .career-choice-card {
        min-height: auto;
    }

    .career-detail-copy {
        margin-bottom: var(--space-4);
        padding: var(--space-4);
    }

    .career-detail-panel h3 {
        font-size: 26px;
    }

    .sp-block.sp-form-section {
        padding-top: var(--space-7);
        padding-bottom: var(--space-7);
    }
}

/* ============================
   Subpage Layout System (sp-)
   ============================ */

/* ─── Full-width Hero ─── */
.sp-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    margin-top: 110px;
    overflow: hidden;
    background: var(--color-primary);
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    opacity: 0.22;
}

.sp-hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 56px;
    width: 100%;
}

.sp-hero-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 14px;
}

.sp-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 12px;
}

.sp-hero h1 .sp-first-line {
    display: block;
    color: white;
    -webkit-text-fill-color: white;
}

.sp-hero h1 .sp-accent {
    display: block;
    background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-hero-sub {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 32px;
}

.sp-hero a.sp-cta {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #60a5fa;
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.25s ease, color 0.25s ease;
}

.sp-hero a.sp-cta:hover {
    background: #60a5fa;
    color: var(--color-primary);
}

/* ─── Intro Text ─── */
.sp-intro {
    padding: var(--space-7) 0;
    background: white;
}

.sp-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    max-width: 820px;
    margin-left: 0;
    margin-right: auto;
    border-left: 3px solid var(--color-primary-light);
    padding-left: 24px;
}

/* ─── Content Blocks ─── */
.sp-block {
    padding: var(--space-8) 0;
    background: white;
}

.sp-block.career-selection {
    padding-top: var(--space-7);
}

.sp-intro + .sp-block,
.sp-intro + .pricing-tabs-section,
.sp-intro + .services.services--subpage {
    padding-top: 0 !important;
}

.sp-block.sp-shaded {
    background: var(--color-surface);
}

.sp-block-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

.sp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: flex-start;
}

.sp-grid.sp-reverse .sp-text { order: 2; }
.sp-grid.sp-reverse .sp-img  { order: 1; }

/* ─── Text Side ─── */
.sp-text .sp-section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: var(--space-3);
}

.sp-text h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.sp-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.sp-label-small {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.sp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.sp-list li {
    font-size: 15px;
    color: var(--color-text);
    padding: var(--space-1) 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.sp-list li::before {
    content: '—';
    color: var(--color-primary-light);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.page-about .sp-list li {
    gap: 0;
}

.page-about .sp-list li::before {
    content: none;
}

.sp-block-cta {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sp-block-cta:hover {
    background: var(--color-primary);
    color: white;
}

/* ─── Image Side ─── */
.sp-img {
    position: relative;
}

.sp-img img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: none;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
}

.sp-img-caption {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* ─── Final CTA Banner ─── */
.sp-cta-section {
    background: var(--color-primary);
    padding: 80px 0;
    text-align: center;
}

.sp-cta-section .eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 16px;
}

.sp-cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 32px;
}

.sp-cta-final {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease;
}

/* Valuation Page */
.page-valuation .sp-hero {
    height: 420px;
    margin-top: 110px;
    align-items: flex-end;
    padding: 0;
    background: var(--color-primary);
}

.page-valuation .sp-hero::before {
    content: none;
}

.page-valuation .sp-hero-bg {
    opacity: 0.22;
    background-position: center center;
    transform: none;
}

.page-valuation .sp-hero .container {
    width: 100%;
    padding-bottom: 56px;
}

.page-career .sp-hero .container {
    width: 100%;
}

.page-valuation .sp-hero-sub {
    margin-bottom: 32px;
}

.page-valuation .sp-tool-section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-8);
    background: #ffffff;
}

.page-valuation .sp-tool-intro {
    max-width: 760px;
    margin-bottom: var(--space-5);
    border-left: 3px solid var(--color-primary-light);
    padding-left: var(--space-4);
}

.page-valuation .sp-tool-intro .sp-section-label {
    display: block;
    margin-bottom: var(--space-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.page-valuation .sp-tool-intro h2 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.page-valuation .sp-tool-intro p {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.page-valuation .sp-tool-intro .sp-tool-kicker {
    margin-bottom: var(--space-3);
    font-size: 16px;
    line-height: 1.6;
    color: #657489;
}

.page-valuation .sp-tool-layout {
    display: block;
}

.page-valuation .sp-tool-embed {
    border: 1px solid #d7e1eb;
    background: #f7f9fb;
    box-shadow: 0 24px 54px rgba(10, 25, 47, 0.06);
    overflow: hidden;
}

.page-valuation .sp-tool-embed iframe {
    display: block;
    width: 100%;
    min-height: 1080px;
    border: 0;
    background: #f7f9fb;
}

@media (max-width: 900px) {
    .page-valuation .sp-tool-embed iframe {
        min-height: 900px;
    }
}

@media (max-width: 768px) {
    .page-valuation .sp-hero {
        margin-top: 0;
        padding: 64px 0 48px;
        text-align: left;
        align-items: flex-end;
    }

    .page-valuation .sp-hero .container {
        padding-bottom: 0;
    }

    .page-valuation .sp-hero-sub {
        margin-bottom: 24px;
    }

    .page-valuation .sp-tool-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .page-valuation .sp-tool-intro {
        margin-bottom: var(--space-4);
        padding-left: var(--space-3);
    }

    .page-valuation .sp-tool-intro .sp-tool-kicker {
        font-size: 16px;
    }

    .page-valuation .sp-tool-intro h2 {
        font-size: 32px;
    }

    .page-valuation .sp-tool-intro p {
        font-size: 16px;
    }

    .page-valuation .sp-tool-embed iframe {
        min-height: 780px;
    }
}
@media (max-width: 900px) {
    .sp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sp-grid.sp-reverse .sp-text,
    .sp-grid.sp-reverse .sp-img {
        order: unset;
    }
    .sp-hero h1 {
        font-size: 36px;
    }
    .sp-intro {
        padding: 48px 0 0;
    }
}


.subpage-hero {
    padding: 160px 0 100px;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.subpage-hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    filter: blur(60px);
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.subpage-hero-content h1 {
    font-size: 52px;
    margin-bottom: 24px;
}

.subpage-hero-content p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.7;
}

.subpage-hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 42, 67, 0.1);
}

.subpage-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.content-section {
    padding: 100px 0;
    background: white;
}

.content-section.bg-surface {
    background: var(--color-surface);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-grid.reverse .content-text {
    order: 2;
}

.content-grid.reverse .content-visual {
    order: 1;
}

.content-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.content-text p {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.content-text ul {
    list-style: none;
    margin-top: 32px;
}

.content-text ul li {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content-text ul li svg {
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 4px;
}

.content-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
    aspect-ratio: 4/3;
    background: var(--color-surface);
}

.content-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================
   Global Angular UI
   ============================ */

.btn-primary,
.btn-large,
.btn-secondary,
.btn-white-large,
.tag,
.popular-badge,
.card,
.card-icon,
.pricing-card,
.pricing-cta,
.tab-btn,
.pricing-card-ex,
.glass-card,
.step,
.sp-hero a.sp-cta,
.sp-block-cta,
.sp-cta-final,
.contact-form-container,
.sp-form-shell,
.file-upload-label,
.subpage-hero-image,
.content-visual {
    border-radius: 0 !important;
}

.card-list li::before,
.pricing-card.highlighted,
.pricing-card.highlighted:hover {
    border-radius: 0 !important;
}

.content-visual:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .subpage-hero .container,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .content-grid.reverse .content-text,
    .content-grid.reverse .content-visual {
        order: unset;
    }
    
    .subpage-hero-content h1 {
        font-size: 40px;
    }

}

/* ============================
   Unified Mobile Optimization
   ============================ */

/* Global Mobile Fixes */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 100px; /* Offset for anchor links */
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
        overflow-x: hidden;
        width: 100%;
        position: relative;
        padding-top: 80px; /* Offset for fixed header on mobile */
    }

    section {
        scroll-margin-top: 100px; /* Ensure sections don't start under header */
    }

    * {
        box-sizing: border-box;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
    }

    h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 32px !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important; 
        gap: var(--space-4);
    }

    .card {
        padding: var(--space-5) var(--space-4) !important;
        min-height: auto !important;
    }

    .card p {
        margin-bottom: var(--space-4);
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 15px; /* Increased touch target */
        margin-right: -10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Nav Links Mobile Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(85vw, 360px);
        max-width: 100%;
        height: 100dvh;
        min-height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 2000; /* Increased to ensure visibility above all content */
        padding: calc(96px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto; /* Allow menu to scroll if links exceed height */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        will-change: transform;
    }

    .nav-links.active {
        transform: translate3d(0, 0, 0);
    }

    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        min-height: 100vh;
        background: rgba(10, 42, 67, 0.5);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1500;
        pointer-events: none;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @supports (-webkit-touch-callout: none) {
        .nav-links {
            min-height: -webkit-fill-available;
        }

        .nav-backdrop {
            min-height: -webkit-fill-available;
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        font-weight: 600;
        display: block;
        padding: 10px;
    }

    /* Hero Mobile Adjustments */
    .hero {
        height: auto;
        min-height: 85svh; /* Using svh for better mobile UA support */
        padding-top: 60px;
        padding-bottom: 60px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3rem) !important; /* Slightly smaller to prevent cutoffs */
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 32px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        line-height: 1.5;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 24px;
    }

    .hero-primary-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
        padding: 18px 24px;
        font-size: 16px;
        margin: 0 !important; /* Reset any legacy margins */
    }

    .hero-actions .btn-large {
        min-height: 0;
    }

    .card h3,
    .card p,
    .card-ex-title {
        min-height: 0;
    }

    .hero-subtext-features {
        align-items: flex-start;
        width: 100%;
        max-width: 320px;
        gap: var(--space-1);
        margin-top: var(--space-3);
    }

    .hero-subtext-features span {
        font-size: 12px;
    }

    /* Brand Motif Mobile */
    .hero-brand-motif {
        width: 300px;
        height: 300px;
        right: -50px;
        opacity: 0.03;
    }

    /* Pricing Section Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Services & About Section Spacing */
    .services, .about-section, .pricing-section, .pricing-tabs-section, .sp-block {
        padding: var(--space-7) 0 !important;
        text-align: center;
    }

    .section-header {
        text-align: center;
        margin-bottom: var(--space-6);
    }

    .tag {
        margin-left: auto;
        margin-right: auto;
    }

    /* Subpages Mobile */
    .sp-hero {
        height: auto;
        min-height: 400px;
        margin-top: 0;
        padding: 64px 0 48px;
        text-align: left;
        align-items: flex-end;
    }

    .sp-hero .container {
        padding-bottom: 0;
    }

    .sp-hero-content {
        max-width: 100%;
    }

    .sp-hero h1 {
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
        margin-bottom: 16px;
    }

    .sp-hero-sub {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .sp-hero a.sp-cta {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 16px 20px;
    }

    .sp-intro {
        padding: var(--space-6) 0;
    }

    .sp-intro p {
        font-size: 16px;
        padding-left: var(--space-3);
        text-align: left;
        max-width: 100%;
    }

    .sp-block {
        padding: var(--space-7) 0;
    }

    .sp-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .sp-text,
    .pricing-tabs-section,
    .sp-form-heading,
    .sp-form-shell {
        text-align: left;
    }

    .page-contact .sp-form-heading {
        margin-bottom: var(--space-5);
    }

    .page-contact .sp-form-shell {
        max-width: 100%;
        padding: var(--space-4);
    }

    .page-contact .submit-btn-container {
        display: block;
        text-align: center;
    }

    .page-contact .submit-btn-container .btn-large {
        width: 100%;
        min-width: 0;
    }

    .page-contact .submit-note {
        max-width: none;
        margin-top: 12px;
    }

    .sp-text h2 {
        font-size: 24px;
        text-align: left;
    }

    .sp-text p,
    .sp-list,
    .sp-list li,
    .sp-label-small,
    .sp-section-label,
    .sp-img-caption {
        text-align: left;
    }

    .sp-block .sp-block-cta,
    .pricing-actions .btn-large,
    .sp-cta-final {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .sp-img img {
        aspect-ratio: 16 / 11;
    }

    .pricing-tabs-section {
        padding-top: var(--space-6) !important;
        padding-bottom: var(--space-6) !important;
    }

    .pricing-tabs-nav {
        gap: var(--space-2);
        margin-top: 0;
        margin-bottom: var(--space-5);
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 18px;
        font-size: 15px;
    }

    .pricing-grid-extended {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }

    .pricing-card-ex {
        min-height: auto;
        padding: var(--space-4);
        text-align: left;
    }

    .card-ex-title,
    .card-ex-features,
    .card-ex-features li,
    .card-ex-footer,
    .card-ex-price,
    .result-label {
        text-align: left;
    }

    .pricing-actions {
        justify-content: stretch;
    }

    .sp-form-heading {
        margin-bottom: var(--space-5);
    }

    .sp-form-heading h2 {
        font-size: 30px;
    }

    .sp-form-shell {
        padding: var(--space-4);
    }

    .form-label,
    .form-checkbox,
    .form-checkbox label,
    .submit-btn-container,
    .submit-note {
        text-align: left;
    }

    .submit-btn-container .btn-large {
        max-width: none;
    }

    .sp-cta-section {
        padding: var(--space-7) 0;
    }

    .sp-cta-section h2 {
        font-size: 28px !important;
        margin-bottom: 24px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column p, .footer-column h4 {
        text-align: center;
        width: 100%;
    }

    .footer {
        padding: 60px 0 calc(30px + env(safe-area-inset-bottom)); /* Add safe area for iPhones */
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    h1 {
        font-size: 32px !important; /* Further shrunk to avoid overflow-x */
    }

    .sp-hero {
        min-height: 360px;
        padding: 56px 0 40px;
    }

    .sp-hero h1 {
        font-size: 30px !important;
    }

    .sp-hero-sub,
    .sp-intro p,
    .sp-text p,
    .card-ex-features li {
        font-size: 15px;
    }

    .tab-btn,
    .sp-hero a.sp-cta,
    .sp-block .sp-block-cta,
    .sp-cta-final {
        font-size: 14px;
    }
    
    .btn-large {
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* ── Cookie Notice ──────────────────────────────────────────── */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    max-width: 480px;
    background: rgba(241, 243, 246, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #475569;
    border-radius: 0;
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: cookie-slide-up 0.24s ease-out both;
}

.cookie-notice.is-hidden {
    animation: cookie-slide-down 0.2s ease-in both;
}

@keyframes cookie-slide-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cookie-slide-down {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(10px); }
}

.cookie-notice__content {
    flex: 1;
    min-width: 0;
}

.cookie-notice__eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #94a3b8;
    margin: 0 0 4px;
}

.cookie-notice__title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px;
}

.cookie-notice__text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.cookie-notice__text a {
    color: #475569;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice__text a:hover {
    color: #0a2a43;
}

.cookie-notice__actions {
    flex-shrink: 0;
}

.cookie-notice__button {
    background: #475569;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-notice__button:hover {
    background: #0a2a43;
}

@media (max-width: 560px) {
    .cookie-notice {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-notice__button {
        width: 100%;
        text-align: center;
    }
}
