/* --- CSS Variables & Design System --- */
:root {
    /* Core Colors from Reference Image */
    --clr-bg-dark: #223447; /* The dark slate navy background */
    --clr-primary: #389585; /* Teal color */
    --clr-primary-hover: #2e7a6d;
    --clr-text-light: #ffffff;
    --clr-text-muted: #9aa8b8; /* Muted text for nav and less prominent text */
    --clr-border: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Radii */
    --radius-full: 9999px;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-glow: 0 0 80px rgba(56, 149, 133, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

/* Typography Classes */
.font-serif { font-family: var(--font-serif); }
.text-teal { color: var(--clr-primary); }
.text-muted { color: var(--clr-text-muted); }
.text-center { text-align: center; }

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 500;
}

/* Material Icons Setup */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.icon-small {
    font-size: 1.25rem;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding: 0 var(--spacing-8);
}

.w-full { width: 100%; }
.mt-4 { margin-top: var(--spacing-4); }
.mt-12 { margin-top: var(--spacing-12); }
.pt-4 { padding-top: var(--spacing-4); }
.section-padding { padding-top: 6rem; padding-bottom: 6rem; }

.hidden { display: none; }
@media (min-width: 768px) {
    .md-block { display: block; }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent;
    transition: background-color var(--transition-normal);
}

.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled .nav-links .nav-item {
    color: var(--clr-bg-dark);
}

.navbar.scrolled .nav-links .nav-item:hover {
    color: var(--clr-primary);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--clr-bg-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 1rem 2rem;
}

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

.logo-circle {
    width: 3rem;
    height: 3rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-primary);
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-8);
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
}

.nav-links .nav-item {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links .nav-item:hover {
    color: var(--clr-text-light);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: -1rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 0.15rem);
    left: 0;
    min-width: 11.5rem;
    background: rgba(23, 35, 48, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0.95rem;
    padding: 0.45rem;
    box-shadow: 0 18px 36px rgba(8, 15, 24, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    overflow: visible;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -0.35rem;
    left: 1.6rem;
    width: 0.7rem;
    height: 0.7rem;
    background: rgba(23, 35, 48, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    padding: 0.8rem 0.95rem;
    border-radius: 0.7rem;
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(56, 149, 133, 0.16);
    color: #8fe0d2;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(56, 149, 133, 0.16);
}

.nav-btn {
    display: none;
}

.mobile-menu-btn {
    display: block;
    color: var(--clr-text-light);
}

@media (min-width: 900px) {
    .nav-btn { display: inline-flex; }
    .mobile-menu-btn { display: none; }
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-dark);
    padding: var(--spacing-4) var(--spacing-8);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 49;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav .nav-item {
    font-size: 1.125rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-light);
}

.mobile-nav .mobile-subnav-item {
    padding-left: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg); /* Slightly rounded rectangle like image */
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

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

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

.btn-outline {
    background-color: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid var(--clr-border);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Floating btn */
.floating-btn-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.floating-btn {
    border-radius: 20px 0 0 20px; /* Flat on right side */
    padding: 0.75rem 1rem 0.75rem 1.5rem;
}

/* --- Hero Section --- */
.hero {
    padding-top: 8rem; /* Adjust based on nav height */
    position: relative;
    background-color: var(--clr-bg-dark);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: var(--spacing-12);
    align-items: center;
    padding-bottom: 8rem;
}

@media (min-width: 900px) {
    .hero { padding-top: 10rem; }
    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.74fr);
        padding-bottom: 12rem;
    }

    .hero-grid-text-only {
        grid-template-columns: minmax(0, 1fr);
        max-width: 58rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--clr-text-light);
    margin-bottom: var(--spacing-6);
}

.danish-flag-icon {
    width: 1.15rem;
    height: 0.85rem;
    flex: 0 0 auto;
    display: inline-block;
    border-radius: 0.12rem;
    background:
        linear-gradient(90deg, transparent 0 31%, #ffffff 31% 43%, transparent 43% 100%),
        linear-gradient(180deg, transparent 0 39%, #ffffff 39% 55%, transparent 55% 100%),
        #c8102e;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    letter-spacing: -0.01em;
    font-weight: 400; /* As requested, professional elegant look */
    line-height: 1.1;
}

.hero-mobile-portrait {
    display: none;
    width: 100%;
    max-width: 24rem;
    height: clamp(13.8rem, 62vw, 19.8rem);
    margin: 1.15rem 0 0.25rem;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #e8ebe7;
    box-shadow: 0 18px 42px rgba(28, 45, 58, 0.14);
}

.hero-mobile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 767px) {
    .hero-mobile-portrait {
        display: block;
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--spacing-8);
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--clr-text-light);
}

.bullet-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    display: inline-block;
}

.hero-price-note {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
    margin: -0.9rem 0 var(--spacing-8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.trust-indicators-hero {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-6);
    padding-top: var(--spacing-6);
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle separator if needed, optional */
    width: 100%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.trust-item .material-symbols-outlined {
    font-size: 1.125rem;
}

.hero-portrait {
    display: none;
}

@media (min-width: 900px) {
    .hero-portrait {
        display: block; /* grid column placeholder only — photo is abs positioned */
    }
}

/* Right-side portrait panel with an oval left cut into the navbar */
.hero-photo-bubble {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(28rem, 38vw, 46rem);
    height: 100%;
    border-radius: 0;
    clip-path: polygon(36% 0, 32.5% 5%, 29% 11%, 25.5% 18%, 22% 26%, 18.5% 36%, 15% 48%, 11.5% 62%, 8% 78%, 4.5% 100%, 100% 100%, 100% 0);
    overflow: hidden;
    background: #e8ebe7;
    z-index: 1;
    filter: drop-shadow(-4px 0 0 rgba(255, 255, 255, 0.9));
}

@media (min-width: 900px) {
    .hero-photo-bubble {
        display: block;
    }
}

/* The arc line tracing the left cut */
.hero-photo-bubble::after {
    content: none;
}

.hero-photo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 33%;
    display: block;
}

/* -- Wave -- */
.hero-wave {
    position: absolute;
    bottom: -1px; /* Prevents 1px line gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (min-width: 900px) {
    .hero-wave svg {
        height: 120px;
    }
}

/* Frontpage light hero test */
.frontpage-light-hero .hero-dark {
    background-color: #e4f2ef;
    color: #1c2d3a;
}

.frontpage-light-hero .navbar:not(.scrolled) .nav-links .nav-item,
.frontpage-light-hero .navbar:not(.scrolled) .mobile-menu-btn {
    color: rgba(28, 45, 58, 0.68);
}

.frontpage-light-hero .navbar:not(.scrolled) .nav-links .nav-item:hover {
    color: #1c2d3a;
}

.frontpage-light-hero .hero-title,
.frontpage-light-hero .hero-features li,
.frontpage-light-hero .hero-tag,
.frontpage-light-hero .hero-price-note {
    color: #1c2d3a;
}

.frontpage-light-hero .hero-tag {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(28, 45, 58, 0.12);
}

.frontpage-light-hero .hero-price-note {
    color: rgba(28, 45, 58, 0.82);
}

.frontpage-light-hero .trust-indicators-hero {
    border-top-color: rgba(28, 45, 58, 0.08);
}

.frontpage-light-hero .trust-item {
    color: rgba(28, 45, 58, 0.64);
}

.frontpage-light-hero .btn-outline {
    background: rgba(255, 255, 255, 0.72);
    color: #1c2d3a;
    border-color: rgba(28, 45, 58, 0.12);
}

.frontpage-light-hero .btn-outline:hover {
    background: #ffffff;
}

/* --- Fact Section --- */
.fact-section {
    background: #f7f8f5;
    color: var(--clr-bg-dark);
    padding: 4.75rem 0 5.5rem;
    border-bottom: 1px solid rgba(34, 52, 71, 0.06);
}

.fact-card {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.fact-icon {
    width: 3.35rem;
    height: 3.35rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: #dff4ee;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact-icon .material-symbols-outlined {
    font-size: 1.9rem;
}

.fact-card h2 {
    font-family: var(--font-serif);
    color: var(--clr-bg-dark);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.fact-card p {
    max-width: 36rem;
    margin: 0 auto;
    color: #223447;
    font-size: clamp(0.98rem, 1.8vw, 1.12rem);
    line-height: 1.65;
    font-weight: 500;
}

.fact-card p span {
    display: inline;
    color: var(--clr-primary);
    font-weight: 700;
}

/* --- Process Section --- */
.process-section {
    background: #ffffff;
    color: #1b1c19;
    padding-top: 5rem;
}

.process-container {
    max-width: 78rem;
    margin: 0 auto;
}

.process-heading {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.process-heading .section-title {
    font-size: clamp(2.65rem, 5vw, 4.1rem);
    margin-bottom: 0.6rem;
}

.process-heading p {
    color: var(--clr-primary);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header {
    margin-bottom: var(--spacing-16);
}

.label-primary {
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: var(--spacing-4);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--clr-bg-dark);
    margin-bottom: var(--spacing-4);
    font-weight: 400;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1rem;
    max-width: 42rem;
    margin: 0 auto;
}

.treatment-flow-card {
    width: 100%;
    border: 1px solid rgba(34, 52, 71, 0.12);
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 10px 28px rgba(34, 52, 71, 0.04);
    padding: 1.35rem 1.25rem 1.55rem;
}

.flow-label {
    display: block;
    text-align: center;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.treatment-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0 0.35rem;
}

.flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e4f1ec;
    color: rgba(34, 52, 71, 0.74);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.flow-icon {
    width: 3.75rem;
    height: 3.75rem;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.flow-icon .material-symbols-outlined {
    font-size: 2.65rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.flow-icon-mitid {
    color: var(--clr-primary);
}

.mitid-phone {
    position: relative;
    width: 2.25rem;
    height: 3.3rem;
    border: 2px solid var(--clr-primary);
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2850b8;
    font-size: 0.48rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    background: #ffffff;
}

.mitid-phone::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    right: 0.42rem;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: #d03d3d;
}

.mitid-phone::after {
    content: "";
    position: absolute;
    bottom: 0.24rem;
    left: 50%;
    width: 0.45rem;
    height: 0.1rem;
    border-radius: var(--radius-full);
    background: rgba(56, 149, 133, 0.4);
    transform: translateX(-50%);
}

.flow-step h3 {
    color: var(--clr-bg-dark);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.flow-step p {
    max-width: 11rem;
    color: rgba(34, 52, 71, 0.62);
    font-size: 0.76rem;
    line-height: 1.45;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 52, 71, 0.42);
}

.flow-arrow .material-symbols-outlined {
    font-size: 1.5rem;
    transform: rotate(90deg);
}

@media (min-width: 860px) {
    .treatment-flow-card {
        padding: 1.15rem 1.5rem 1.35rem;
    }

    .treatment-flow {
        grid-template-columns: minmax(0, 1fr) 2.3rem minmax(0, 1fr) 2.3rem minmax(0, 1fr) 2.3rem minmax(0, 1fr);
        gap: 0.25rem;
    }

    .flow-arrow {
        padding-top: 4.75rem;
    }

    .flow-arrow .material-symbols-outlined {
        transform: none;
    }
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-12);
    margin-top: var(--spacing-12);
}

.timeline-line {
    position: absolute;
    left: 1.5rem; /* center of 3rem icon */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(56, 149, 133, 0.15); /* Very faint solid line */
    z-index: 0;
}

.process-step {
    display: flex;
    gap: var(--spacing-6);
    position: relative;
    z-index: 1;
}

.step-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid rgba(56, 149, 133, 0.2); /* light green border */
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px #ffffff; /* Hide timeline line behind it */
}

.step-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.25rem;
}

.step-label {
    font-size: 0.7rem;
    color: var(--clr-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.step-title {
    font-size: 1.25rem;
    color: var(--clr-bg-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.step-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 38rem;
    line-height: 1.6;
}

.step-badge {
    font-size: 0.75rem;
    color: var(--clr-primary);
    background-color: #eaf5f4; /* light teal pill */
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* --- Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 200ms; }

/* --- Pricing Section --- */
.pricing-section {
    background-color: #f7f6f2; /* Off-white beige background */
    color: var(--clr-bg-dark);
}

.pricing-card-wrapper {
    max-width: 32rem;
    margin: 0 auto;
    position: relative;
    padding-top: var(--spacing-4);
}

.pricing-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem 3rem 2rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* very soft shadow */
    border: 1px solid rgba(56, 149, 133, 0.15); /* faintest teal border */
    position: relative;
    text-align: center;
}

.pricing-card .popular-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-primary);
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--clr-bg-dark);
}

.pricing-desc {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--clr-bg-dark);
    font-variant-numeric: lining-nums;
}

.price-currency {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--clr-bg-dark);
    margin-left: 0.1rem;
}

.price-period {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.pricing-divider {
    border: none;
    height: 1px;
    background-color: #eae8e1;
    margin: 2rem 0;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    margin-bottom: var(--spacing-8);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-bg-dark);
    font-size: 0.95rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #eaf5f4;
    color: var(--clr-primary);
    font-size: 0.875rem;
    font-weight: bold;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    justify-content: center;
}

.pricing-note {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    margin-top: 1.5rem;
}

.pricing-footer-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

/* --- Benefits Section --- */
.benefits-section {
    background-color: #ffffff;
    color: var(--clr-bg-dark);
}

.benefits-container {
    display: flex;
    justify-content: center;
}

.benefits-content {
    max-width: 48rem;
    width: 100%;
    text-align: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem; /* adjusted for nice even spacing */
    align-items: center;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--clr-bg-dark);
    width: min(100%, 36rem);
    text-align: left;
}

.mt-8 {
    margin-top: var(--spacing-8);
}

/* --- FAQ Section --- */
.faq-section {
    background-color: #f7f6f2; /* Off-white beige */
    color: var(--clr-bg-dark);
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--spacing-8);
}

.faq-item {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(56, 149, 133, 0.1);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-fast), border-color var(--transition-fast);
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.faq-item.open {
    border-color: rgba(56, 149, 133, 0.2);
    transform: translateY(-1px);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    color: var(--clr-bg-dark);
    font-weight: 500;
    font-family: var(--font-serif);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.faq-question:hover {
    color: var(--clr-primary);
}

.faq-question .material-symbols-outlined {
    color: var(--clr-text-muted);
    transition: transform var(--transition-normal);
}

/* Open state for FAQ */
.faq-item.open .faq-question .material-symbols-outlined {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0 1.5rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transition:
        max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 240ms ease,
        padding-top 360ms cubic-bezier(0.22, 1, 0.36, 1),
        padding-bottom 360ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 360ms;
}

.faq-item.open .faq-answer {
    opacity: 1;
    visibility: visible;
    transition:
        max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 280ms ease 40ms,
        padding-top 420ms cubic-bezier(0.22, 1, 0.36, 1),
        padding-bottom 420ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

/* --- FAQ Page --- */
.faq-page {
    background:
        radial-gradient(circle at top left, rgba(56, 149, 133, 0.1), transparent 28%),
        linear-gradient(180deg, #f5f6f2 0%, #f7f4ef 34%, #ffffff 34%, #ffffff 100%);
    color: var(--clr-bg-dark);
}

.faq-page-hero {
    padding-top: 9.5rem;
    padding-bottom: 4.5rem;
}

.faq-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 980px) {
    .faq-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.9fr);
    }
}

.faq-hero-copy p {
    max-width: 40rem;
    color: rgba(34, 52, 71, 0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
}

.faq-hero-copy .hero-title {
    color: var(--clr-bg-dark);
    margin-bottom: 1.25rem;
}

.faq-hero-copy {
    text-align: center;
    max-width: 58rem;
    margin: 0 auto;
}

.faq-hero-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76));
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 1.8rem;
    box-shadow: 0 24px 60px rgba(34, 52, 71, 0.1);
    padding: 1.5rem;
}

.faq-hero-card-grid {
    display: grid;
    gap: 0.9rem;
}

.faq-hero-stat {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 1.15rem;
    padding: 1rem 1.1rem;
}

.faq-hero-stat strong {
    display: block;
    font-size: 1.2rem;
    color: var(--clr-bg-dark);
    margin-bottom: 0.2rem;
}

.faq-hero-stat span {
    color: rgba(34, 52, 71, 0.66);
    font-size: 0.93rem;
}

.faq-page-section {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.faq-page-layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 980px) {
    .faq-page-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
    }
}

.faq-page-list {
    display: grid;
    gap: 1rem;
}

.faq-page-list .faq-item {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 1.3rem;
    box-shadow: 0 12px 30px rgba(34, 52, 71, 0.06);
}

.faq-page-list .faq-question {
    color: var(--clr-bg-dark);
    padding: 1.4rem 1.5rem;
}

.faq-page-list .faq-answer {
    padding: 0 1.5rem;
    will-change: max-height, opacity;
}

.faq-page-list .faq-answer p,
.faq-page-list .faq-answer li {
    color: rgba(34, 52, 71, 0.78);
    line-height: 1.8;
}

.faq-page-list .faq-answer ul {
    list-style: disc;
    padding-left: 1.3rem;
    margin: 1rem 0;
}

.faq-page-list .faq-item.open .faq-answer {
    padding-top: 0.15rem;
    padding-bottom: 1.4rem;
}

.faq-side-panel {
    position: sticky;
    top: 7.5rem;
    background: linear-gradient(180deg, #223447 0%, #2d475e 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: 0 22px 40px rgba(34, 52, 71, 0.18);
    display: grid;
    gap: 1.35rem;
}

.faq-side-panel h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

.faq-side-panel p,
.faq-side-panel li {
    color: rgba(255, 255, 255, 0.82);
}

.faq-side-panel ul {
    display: grid;
    gap: 0.85rem;
    margin: 1.4rem 0 1.8rem;
}

.faq-side-panel li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.faq-side-panel li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--clr-primary);
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.faq-fact + .faq-fact {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.35rem;
}

.faq-fact p {
    line-height: 1.65;
}

@media (max-width: 900px) {
    .faq-page-hero {
        padding-top: 8.5rem;
    }

    .faq-hero-card,
    .faq-side-panel {
        padding: 1.4rem;
    }
}

/* --- Before/After Page --- */
.before-after-page {
    background:
        radial-gradient(circle at top left, rgba(56, 149, 133, 0.1), transparent 26%),
        linear-gradient(180deg, #f6f7f3 0%, #f7f3ee 34%, #ffffff 34%, #ffffff 100%);
    color: var(--clr-bg-dark);
}

.before-after-hero {
    padding-top: 9.5rem;
    padding-bottom: 4.5rem;
}

.before-after-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 980px) {
    .before-after-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.85fr);
    }
}

.before-after-hero-copy .hero-title {
    color: var(--clr-bg-dark);
    margin-bottom: 0;
    font-size: clamp(2.1rem, 3.8vw, 3.55rem);
    line-height: 1.05;
    max-width: 56rem;
}

.before-after-hero-copy p {
    color: rgba(34, 52, 71, 0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 41rem;
    margin-left: auto;
    margin-right: auto;
}

.before-after-hero-copy {
    text-align: center;
    max-width: 84rem;
    margin: 0 auto;
    position: relative;
}

.before-after-eyebrow {
    display: inline-block;
    color: var(--clr-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
}

.before-after-headline-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 13rem;
    padding-right: 0;
}

.before-after-price-badge {
    width: 15.4rem;
    height: 15.4rem;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 22px 44px rgba(56, 149, 133, 0.28);
    transform: rotate(8deg);
    padding: 2rem;
    gap: 0.08rem;
}

.before-after-price-badge .badge-kicker,
.before-after-price-badge .badge-days,
.before-after-price-badge .badge-after {
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.15;
}

.before-after-price-badge .badge-kicker {
    font-size: 0.82rem;
    margin-bottom: 0.12rem;
}

.before-after-price-badge .badge-free {
    font-family: var(--font-sans);
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 0.98;
    text-transform: uppercase;
}

.before-after-price-badge strong {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    margin: 0.15rem 0 0.14rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.28rem;
}

.before-after-price-badge .price-zero {
    font-size: 5.05rem;
    line-height: 0.88;
    font-variant-numeric: lining-nums;
}

.before-after-price-badge .price-kr {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.before-after-price-badge .badge-days {
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

.before-after-price-badge .badge-divider {
    display: block;
    flex: 0 0 auto;
    width: 64%;
    height: 2px;
    min-height: 2px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.72);
    margin: 0.46rem 0 0.34rem;
}

.before-after-price-badge .badge-after {
    font-size: 0.62rem;
    opacity: 0.88;
}

.before-after-price-badge .badge-next-price {
    font-family: var(--font-sans);
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 0.95;
}

.before-after-price-badge .badge-next-price span {
    font-size: 1rem;
    font-weight: 800;
    margin-left: 0.12rem;
}

@media (min-width: 900px) {
    .before-after-headline-row .hero-title {
        text-align: center;
    }

    .before-after-price-badge {
        position: absolute;
        right: -1.5rem;
        top: 50%;
        transform: translateY(-50%) rotate(8deg);
    }
}

@media (min-width: 900px) and (max-width: 1180px) {
    .before-after-headline-row .hero-title {
        max-width: 48rem;
    }

    .before-after-price-badge {
        right: -0.5rem;
        width: 13.4rem;
        height: 13.4rem;
        padding: 1.65rem;
    }

    .before-after-price-badge strong {
        font-size: inherit;
    }

    .before-after-price-badge .badge-free {
        font-size: 1.76rem;
    }

    .before-after-price-badge .price-zero {
        font-size: 4.18rem;
    }

    .before-after-price-badge .price-kr {
        font-size: 1.45rem;
    }

    .before-after-price-badge .badge-next-price {
        font-size: 1.92rem;
    }
}

@media (max-width: 640px) {
    .before-after-headline-row {
        flex-direction: column;
        min-height: 0;
        padding-right: 0;
        gap: 1.5rem;
    }

    .before-after-price-badge {
        width: 12.8rem;
        height: 12.8rem;
        padding: 1.5rem;
    }

    .before-after-price-badge strong {
        font-size: inherit;
    }

    .before-after-price-badge .badge-free {
        font-size: 1.66rem;
    }

    .before-after-price-badge .price-zero {
        font-size: 3.92rem;
    }

    .before-after-price-badge .price-kr {
        font-size: 1.35rem;
    }

    .before-after-price-badge .badge-next-price {
        font-size: 1.82rem;
    }
}

.before-after-sidecard {
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    border: 1px solid rgba(255,255,255,0.92);
    border-radius: 1.8rem;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(34, 52, 71, 0.1);
}

.before-after-sidecard-grid {
    display: grid;
    gap: 0.9rem;
}

.before-after-sideitem {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 1.15rem;
    padding: 1rem 1.1rem;
}

.before-after-sideitem strong {
    display: block;
    font-size: 1.12rem;
    color: var(--clr-bg-dark);
    margin-bottom: 0.2rem;
}

.before-after-sideitem span {
    color: rgba(34, 52, 71, 0.66);
    font-size: 0.93rem;
}

.before-after-section {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.case-stack {
    display: grid;
    gap: 2rem;
}

.case-card {
    background: #ffffff;
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 2rem;
    box-shadow: 0 18px 40px rgba(34, 52, 71, 0.08);
    padding: 2rem;
}

.case-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.case-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--clr-bg-dark);
    margin-bottom: 0.45rem;
}

.case-desc {
    color: rgba(34, 52, 71, 0.7);
    max-width: 38rem;
}

.case-pill {
    background: rgba(56, 149, 133, 0.1);
    color: var(--clr-primary);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-grid-four {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .comparison-grid-four {
        grid-template-columns: repeat(4, 1fr);
    }
}

.comparison-grid-two {
    display: grid;
    gap: 1rem;
}

@media (min-width: 760px) {
    .comparison-grid-two {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comparison-tile {
    background: linear-gradient(180deg, #f8faf9 0%, #f4f6f6 100%);
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 1.4rem;
    overflow: hidden;
}

.comparison-media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.comparison-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    color: var(--clr-bg-dark);
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(34, 52, 71, 0.08);
}

.case-result-note {
    margin-top: 1rem;
    color: var(--clr-bg-dark);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .before-after-hero {
        padding-top: 8.5rem;
    }

    .case-card,
    .before-after-sidecard {
        padding: 1.4rem;
    }
}

/* --- Footer --- */
.footer {
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 149, 133, 0.14), transparent 28%),
        linear-gradient(135deg, #07192b 0%, var(--clr-bg-dark) 55%, #0b2338 100%);
    color: var(--clr-text-muted);
    padding-top: 4.75rem;
    padding-bottom: 2.25rem;
}

.footer .container {
    max-width: 70rem;
}

.footer-grid {
    display: grid;
    gap: 2.75rem;
    align-items: start;
    margin-bottom: 3.75rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.footer-brand {
    max-width: 16rem;
}

.footer-logo {
    width: 8.4rem;
    height: 4.5rem;
    margin-bottom: 1.1rem;
    background: url("pictures/logo.jpg") center / contain no-repeat;
    color: transparent;
    font-size: 0;
}

.footer-logo span {
    display: none;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: #ffffff;
}

.footer-desc {
    display: block;
    max-width: 15rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.75;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--clr-primary);
    color: #ffffff;
}

.footer-heading {
    color: white;
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.footer-contact-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-contact-group li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact-group li .material-symbols-outlined {
    color: var(--clr-primary);
    font-size: 1rem;
}

.footer-contact-group {
    display: grid;
    gap: 1.15rem 1.8rem;
    align-items: center;
    justify-self: end;
}

@media (min-width: 640px) {
    .footer-contact-group {
        grid-template-columns: auto auto;
    }

    .footer-contact-group .footer-heading {
        grid-column: 1 / -1;
    }
}

.footer-cta {
    justify-self: start;
    border-radius: var(--radius-full);
    padding: 0.72rem 1.25rem;
    font-size: 0.82rem;
}

@media (max-width: 767px) {
    .footer {
        text-align: center;
    }

    .footer-brand,
    .footer-contact-group {
        justify-self: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-desc,
    .social-links,
    .footer-contact-group ul {
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-cta {
        justify-self: center;
    }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.6rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.48);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.legal-links {
    display: flex;
    gap: var(--spacing-6);
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: white;
}

/* --- Forms & Contact Page --- */
.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.contact-intake-page {
    background:
        linear-gradient(180deg, rgba(56, 149, 133, 0.13) 0, rgba(56, 149, 133, 0.13) 6.5rem, #f7fbfa 6.5rem, #f7fbfa 32rem, #ffffff 43rem, #ffffff 100%);
    color: var(--clr-bg-dark);
}

.contact-intake-page .navbar {
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(34, 52, 71, 0.08);
}

.contact-intake-page .nav-links .nav-item,
.contact-intake-page .mobile-menu-btn {
    color: var(--clr-bg-dark);
}

.contact-intake-page .nav-links .nav-item:hover {
    color: var(--clr-primary);
}

.contact-intake-page .mobile-nav {
    background-color: #ffffff;
    box-shadow: 0 18px 40px rgba(34, 52, 71, 0.12);
}

.contact-intake-page .mobile-nav .nav-item {
    color: var(--clr-bg-dark);
    border-bottom: 1px solid rgba(34, 52, 71, 0.08);
}

.contact-intake-hero {
    padding: 8.75rem 0 2.2rem;
}

.contact-intake-shell {
    max-width: 42rem;
    text-align: center;
}

.contact-intake-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    background-color: rgba(56, 149, 133, 0.08);
    color: rgba(34, 52, 71, 0.82);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(56, 149, 133, 0.12);
}

.contact-intake-pill .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--clr-primary);
}

.contact-intake-title {
    font-family: var(--font-serif);
    font-size: clamp(2.55rem, 5.2vw, 4.15rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--clr-bg-dark);
    margin: 1.05rem auto 1.3rem;
    max-width: none;
}

.contact-intake-lead {
    max-width: 38rem;
    margin: 0 auto;
    color: rgba(34, 52, 71, 0.78);
    font-size: 1.08rem;
    line-height: 1.65;
}

.contact-intake-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin: 1.1rem 0 1.4rem;
}

.contact-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--clr-bg-dark);
    font-weight: 600;
    font-size: 0.96rem;
}

.contact-trust-item .material-symbols-outlined {
    color: var(--clr-primary);
    font-size: 1.25rem;
}

.contact-intake-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: min(100%, 27rem);
    padding: 1rem 1.25rem 1rem 1.6rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-hover) 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(56, 149, 133, 0.22);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.contact-intake-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(56, 149, 133, 0.28);
}

.contact-intake-cta .material-symbols-outlined {
    font-size: 1.75rem;
}

.contact-intake-form {
    width: min(100%, 33.5rem);
    margin: 0 auto;
    padding: 1.2rem;
    display: grid;
    gap: 0.95rem;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid rgba(56, 149, 133, 0.14);
    border-radius: 0.95rem;
    box-shadow: 0 18px 44px rgba(34, 52, 71, 0.1), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
    position: relative;
    overflow: hidden;
}

.contact-intake-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 3px;
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    background: linear-gradient(90deg, rgba(56, 149, 133, 0), rgba(56, 149, 133, 0.85), rgba(56, 149, 133, 0));
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form-row {
    display: grid;
    gap: 0.8rem;
}

@media (min-width: 620px) {
    .contact-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-form-field {
    display: grid;
    gap: 0.35rem;
}

.contact-form-field span {
    color: var(--clr-bg-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.contact-form-field input {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid rgba(34, 52, 71, 0.12);
    border-radius: 0.55rem;
    background: #f9fbfa;
    color: var(--clr-bg-dark);
    padding: 0.75rem 0.85rem;
    font: inherit;
    font-size: 0.88rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.contact-form-field input::placeholder {
    color: rgba(34, 52, 71, 0.42);
}

.contact-form-field input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 149, 133, 0.14);
}

.contact-form-submit {
    width: 100%;
    min-height: 3.2rem;
    position: relative;
    border-radius: 0.58rem;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-hover) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 3.2rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(56, 149, 133, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.contact-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(56, 149, 133, 0.24);
}

.contact-form-submit .material-symbols-outlined {
    position: absolute;
    right: 1rem;
    font-size: 1.45rem;
}

.contact-form-status {
    display: none;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

.contact-form-status.is-success,
.contact-form-status.is-error {
    display: block;
}

.contact-form-status.is-success {
    color: #12624f;
    background: rgba(56, 149, 133, 0.12);
    border: 1px solid rgba(56, 149, 133, 0.24);
}

.contact-form-status.is-error {
    color: #8f1f1f;
    background: rgba(200, 56, 56, 0.1);
    border: 1px solid rgba(200, 56, 56, 0.24);
}

.contact-intake-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.1rem;
    width: 100%;
    color: rgba(34, 52, 71, 0.7);
    font-size: 0.92rem;
    font-weight: 500;
}

.contact-intake-note .material-symbols-outlined {
    color: var(--clr-primary);
    font-size: 1.05rem;
}

.contact-journey-section {
    background-color: #ffffff;
    padding: 0.5rem 0 5rem;
}

.contact-journey-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.8rem;
}

.contact-journey-grid {
    position: relative;
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .contact-journey-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }

    .contact-journey-grid::before {
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        top: 2.35rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(56, 149, 133, 0), rgba(56, 149, 133, 0.22), rgba(56, 149, 133, 0));
        z-index: 0;
    }
}

.journey-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%);
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem 0.85rem;
    box-shadow: 0 12px 28px rgba(34, 52, 71, 0.05);
}

.journey-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-hover) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 22px rgba(56, 149, 133, 0.18);
}

.journey-icon .material-symbols-outlined {
    font-size: 1.7rem;
}

.journey-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0.85rem 0 0.75rem;
    border-radius: 50%;
    background-color: #edf3ef;
    color: var(--clr-bg-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.journey-step h3 {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--clr-bg-dark);
    max-width: 10rem;
}

@media (min-width: 1200px) {
    .contact-intake-page {
        background:
            linear-gradient(180deg, rgba(56, 149, 133, 0.13) 0, rgba(56, 149, 133, 0.13) 6.5rem, #f7fbfa 6.5rem, #f7fbfa 31.5rem, #ffffff 42rem, #ffffff 100%);
    }

    .contact-intake-hero {
        padding: 7.7rem 0 1.8rem;
    }

    .contact-intake-shell {
        max-width: 46rem;
    }

    .contact-intake-pill {
        font-size: 0.82rem;
        padding: 0.52rem 0.9rem;
    }

    .contact-intake-title {
        font-size: clamp(2.6rem, 3.6vw, 4.15rem);
        margin: 0.8rem auto 1rem;
        max-width: none;
        white-space: nowrap;
    }

    .contact-intake-lead {
        max-width: 44rem;
        font-size: 1rem;
        line-height: 1.58;
    }

    .contact-intake-trust {
        gap: 1rem 2.1rem;
        margin: 1rem 0 1rem;
    }

    .contact-trust-item {
        font-size: 0.95rem;
    }

    .contact-trust-item .material-symbols-outlined {
        font-size: 1.1rem;
    }

    .contact-intake-cta {
        min-width: min(100%, 26rem);
        padding: 0.9rem 1.15rem 0.9rem 1.45rem;
        font-size: 1.08rem;
        border-radius: 0.85rem;
    }

    .contact-intake-cta .material-symbols-outlined {
        font-size: 1.5rem;
    }

    .contact-intake-note {
        margin-top: 0.95rem;
        font-size: 0.88rem;
    }

    .contact-journey-section {
        margin-top: 0;
        padding: 0.5rem 0 3.75rem;
    }

    .contact-journey-header {
        margin-bottom: 1.95rem;
        max-width: 44rem;
    }

    .contact-journey-header .label-primary {
        margin-bottom: 0.45rem;
        font-size: 0.68rem;
    }

    .contact-journey-header .section-title {
        font-size: clamp(2rem, 3vw, 2.8rem);
        margin-bottom: 0.4rem;
    }

    .contact-journey-header .section-subtitle {
        font-size: 1rem;
    }

    .contact-journey-grid {
        gap: 0.95rem;
    }

    .contact-journey-grid::before {
        top: 2rem;
    }

    .journey-step {
        padding: 1.05rem 0.8rem;
        border-radius: 1.1rem;
    }

    .journey-icon {
        width: 3.55rem;
        height: 3.55rem;
    }

    .journey-icon .material-symbols-outlined {
        font-size: 1.45rem;
    }

    .journey-number {
        width: 1.7rem;
        height: 1.7rem;
        margin: 0.7rem 0 0.55rem;
        font-size: 0.78rem;
    }

    .journey-step h3 {
        font-size: 0.88rem;
        line-height: 1.35;
        max-width: 10rem;
    }
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-bg-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--clr-bg-dark);
    background-color: #fcfcfc;
    border: 1px solid rgba(34, 52, 71, 0.15); /* Light navy border */
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(56, 149, 133, 0.15); /* Soft teal glow */
    background-color: #ffffff;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-text-muted);
}

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

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .contact-intake-hero {
        padding-top: 8.6rem;
    }

    .contact-intake-pill {
        font-size: 0.8rem;
        padding: 0.55rem 0.85rem;
    }

    .contact-intake-lead {
        font-size: 0.98rem;
    }

    .contact-intake-trust {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* --- Om os Page --- */
.doctor-container {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 64rem;
    margin: 0 auto;
}

.doctor-portrait-image {
    object-position: center 30%;
}

@media (min-width: 768px) {
    .doctor-container {
        grid-template-columns: 1fr 1.25fr;
    }
}

.values-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

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

/* --- Viden om hårtab Page --- */
.viden-layout {
    display: grid;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 900px) {
    .viden-layout {
        grid-template-columns: 3fr 2fr;
    }
}

.viden-sidebar-stack {
    position: sticky;
    top: 8rem;
    display: grid;
    gap: 1rem;
}

/* --- Finasterid Page --- */
.finasterid-page {
    background: #ffffff;
    color: var(--clr-bg-dark);
}

.hero-soft {
    background:
        radial-gradient(circle at top left, rgba(56, 149, 133, 0.12), transparent 30%),
        linear-gradient(180deg, #f5f6f2 0%, #f7f3ee 100%);
    padding-top: 8rem;
    position: relative;
}

.hair-medicine-hero {
    overflow: hidden;
}

.product-hero {
    position: relative;
    padding: 2rem 0 5rem;
}

.product-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 980px) {
    .product-hero-grid {
        grid-template-columns: 1.05fr 1fr;
    }
}

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(34, 52, 71, 0.62);
    margin-bottom: 2rem;
}

.breadcrumb a:hover {
    color: var(--clr-primary);
}

.product-eyebrow {
    display: inline-block;
    color: rgba(34, 52, 71, 0.58);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-title {
    color: var(--clr-bg-dark);
    margin-bottom: 1.25rem;
    font-size: clamp(2.45rem, 4.05vw, 3.85rem);
}

.nowrap {
    white-space: nowrap;
}

.product-hero-copy p {
    color: rgba(34, 52, 71, 0.72);
    max-width: 34rem;
    font-size: 1.05rem;
}

.product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-peach {
    background-color: #cc8a76;
    color: #ffffff;
}

.btn-peach:hover {
    background-color: #b87967;
}

.btn-text-link {
    color: var(--clr-bg-dark);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    padding-inline: 0;
}

.product-hero-visual {
    position: relative;
    min-height: 21rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-visual-panel {
    width: min(100%, 33rem);
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.68));
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 2rem;
    box-shadow: 0 25px 60px rgba(34, 52, 71, 0.12);
    padding: 1.85rem;
    position: relative;
    overflow: hidden;
}

.hair-medicine-panel {
    transform: none;
}

.hero-visual-panel::before {
    content: "";
    position: absolute;
    inset: auto auto 12% -10%;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(56, 149, 133, 0.08);
    filter: blur(8px);
}

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

.hair-medicine-panel .hero-focus-copy,
.hair-medicine-panel .hero-bottle-stage {
    transform: none;
}

.hero-focus-copy {
    max-width: 20rem;
    margin-bottom: 1.75rem;
}

.hero-focus-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 0.75rem;
}

.hero-focus-copy h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.08;
    color: var(--clr-bg-dark);
    margin-bottom: 0.8rem;
}

.hero-focus-copy p {
    color: rgba(34, 52, 71, 0.7);
    font-size: 0.98rem;
    line-height: 1.7;
}

.hero-bottle-stage {
    position: relative;
    min-height: 18rem;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
}

.hero-bottle-card {
    position: absolute;
    width: 11rem;
    height: 14rem;
    border-radius: 1.75rem;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: 0 18px 40px rgba(34, 52, 71, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.hero-bottle-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 22px rgba(34, 52, 71, 0.16));
}

.hero-bottle-card-front {
    right: 1.2rem;
    top: 0;
    z-index: 2;
}

.hero-bottle-card-back {
    left: 2.8rem;
    bottom: 0;
    z-index: 1;
    transform: rotate(-7deg);
}

.hero-bottle-card-solo {
    position: relative;
    width: 14rem;
    height: 18rem;
}

.hero-bottle-card-duo {
    position: relative;
    width: min(100%, 20rem);
    height: 21rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
}

.hair-medicine-ring {
    position: absolute;
    right: 0.4rem;
    top: 3.2rem;
    width: 8.6rem;
    height: 8.6rem;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    transform: rotate(10deg);
    box-shadow: 0 18px 34px rgba(56, 149, 133, 0.22);
    z-index: 3;
}

.hero-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.hero-stat-chip {
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(34, 52, 71, 0.08);
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
}

.hero-stat-chip strong {
    display: block;
    color: var(--clr-bg-dark);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.hero-stat-chip span {
    color: rgba(34, 52, 71, 0.68);
    font-size: 0.92rem;
}

.hero-offer-badge {
    position: absolute;
    right: -0.75rem;
    bottom: -1.5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background-color: #cc8a76;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(204, 138, 118, 0.35);
    transform: rotate(-7deg);
    z-index: 6;
}

.hero-offer-badge strong {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
}

.product-cards-section {
    background: #f7f3ee;
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.hair-medicine-fact {
    max-width: 48rem;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #223447 0%, #2d475e 100%);
    color: #ffffff;
    padding: 2rem;
    box-shadow: 0 22px 40px rgba(34, 52, 71, 0.16);
}

.hair-medicine-fact h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.hair-medicine-fact p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.7;
}

.product-card-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .product-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(34, 52, 71, 0.08);
    box-shadow: 0 18px 40px rgba(34, 52, 71, 0.08);
    overflow: hidden;
}

.product-card-image {
    background: linear-gradient(180deg, #eef4f2 0%, #f7f5f1 100%);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 18rem;
}

.product-card-image img {
    width: min(100%, 18rem);
    max-height: 16rem;
    object-fit: contain;
    filter: drop-shadow(0 16px 20px rgba(34, 52, 71, 0.15));
}

.product-card-body {
    padding: 2rem;
}

.product-card-text-only .product-card-body {
    display: grid;
    gap: 1.15rem;
    height: 100%;
}

.product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--clr-bg-dark);
    margin: 1rem 0 0.3rem;
}

.product-price span {
    font-size: 1rem;
    font-family: var(--font-sans);
    color: rgba(34, 52, 71, 0.65);
}

.product-meta {
    color: rgba(34, 52, 71, 0.68);
    margin-bottom: 1.25rem;
}

.product-points {
    display: grid;
    gap: 0.75rem;
}

.product-points li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: rgba(34, 52, 71, 0.76);
}

.product-points .bullet-dot {
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.finasterid-content {
    background: #ffffff;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.article-layout {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 980px) {
    .article-layout {
        grid-template-columns: minmax(0, 1.75fr) minmax(18rem, 0.85fr);
    }
}

.article-stack {
    display: grid;
    gap: 2rem;
}

.content-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(34, 52, 71, 0.08);
    box-shadow: 0 14px 35px rgba(34, 52, 71, 0.06);
}

.content-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--clr-bg-dark);
    margin-bottom: 1rem;
}

.content-card p,
.content-card li {
    color: rgba(34, 52, 71, 0.78);
    font-size: 1.02rem;
    line-height: 1.8;
}

.content-card ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 1rem 0;
}

.content-card p + p,
.content-card p + ul,
.content-card ul + p {
    margin-top: 1rem;
}

.fact-panel {
    position: sticky;
    top: 7.5rem;
    background: linear-gradient(180deg, #223447 0%, #2d475e 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 22px 40px rgba(34, 52, 71, 0.2);
}

.fact-panel h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.fact-panel h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.fact-panel p,
.fact-panel li {
    color: rgba(255, 255, 255, 0.8);
}

.fact-panel ul {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0 2rem;
}

.fact-panel li {
    display: flex;
    gap: 0.75rem;
}

.fact-panel li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--clr-primary);
    margin-top: 0.55rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-offer-badge {
        position: static;
        margin: 1.5rem auto 0;
        transform: none;
    }

    .hero-bottle-stage {
        min-height: 15rem;
    }

    .hero-bottle-card {
        width: 9.5rem;
        height: 12rem;
    }

    .hair-medicine-panel,
    .hair-medicine-panel .hero-focus-copy,
    .hair-medicine-panel .hero-bottle-stage {
        transform: none;
    }

    .hero-bottle-card-duo {
        width: min(100%, 17rem);
        height: 18rem;
    }

    .hair-medicine-ring {
        right: -0.2rem;
        top: 4.5rem;
        width: 6.8rem;
        height: 6.8rem;
        font-size: 0.72rem;
    }

    .hero-bottle-card-front {
        right: 0;
    }

    .hero-bottle-card-back {
        left: 0.75rem;
    }

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

    .content-card,
    .fact-panel,
    .product-card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hair-medicine-ring {
        right: 0.2rem;
        top: 8.6rem;
        width: 5.6rem;
        height: 5.6rem;
        font-size: 0.62rem;
    }
}

/* --- Cookie consent --- */
.cookie-banner[hidden],
.cookie-modal-backdrop[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 90;
    color: #193347;
    opacity: 0;
    transform: translateY(calc(100% + 2rem));
    transition: opacity 280ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: none;
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.1rem;
    align-items: center;
    width: min(100%, 78rem);
    margin: 0 auto;
    padding: 1.15rem;
    border: 1px solid rgba(30, 73, 81, 0.13);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 70px rgba(9, 33, 47, 0.22), 0 2px 8px rgba(9, 33, 47, 0.08);
    backdrop-filter: blur(22px);
}

.cookie-banner-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #e7f6f2, #d9f0eb);
    color: #2c8677;
}

.cookie-banner-mark .material-symbols-outlined {
    font-size: 1.45rem;
}

.cookie-banner-check {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.cookie-kicker {
    margin: 0 0 0.2rem;
    color: #318675;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cookie-banner-copy h2,
.cookie-modal h2 {
    color: #173247;
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cookie-banner-copy h2 {
    margin-bottom: 0.24rem;
    font-size: 1.15rem;
}

.cookie-banner-copy > p:last-child {
    max-width: 68ch;
    color: #5e6f79;
    font-size: 0.75rem;
    line-height: 1.6;
}

.cookie-banner-copy a,
.cookie-modal a {
    color: #267b6d;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(38, 123, 109, 0.3);
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.68rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn:focus-visible,
.cookie-modal-close:focus-visible,
.cookie-switch input:focus-visible + span,
.cookie-settings-link:focus-visible {
    outline: 3px solid rgba(56, 149, 133, 0.28);
    outline-offset: 2px;
}

.cookie-btn-primary {
    background: #2f8f7e;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(47, 143, 126, 0.2);
}

.cookie-btn-primary:hover {
    background: #277a6c;
}

.cookie-btn-reject {
    background: #24495b;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(36, 73, 91, 0.16);
}

.cookie-btn-reject:hover {
    background: #193d50;
}

.cookie-btn-secondary {
    border-color: #c8d8d5;
    background: #f7faf9;
    color: #284c55;
}

.cookie-btn-secondary:hover,
.cookie-btn-quiet:hover {
    border-color: #9dc9c0;
    background: #eff7f5;
    color: #246d61;
}

.cookie-btn-quiet {
    border-color: transparent;
    color: #526771;
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 24, 37, 0.58);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition: opacity 180ms ease;
}

.cookie-modal-backdrop.is-visible {
    opacity: 1;
}

.cookie-modal {
    width: min(100%, 43rem);
    max-height: min(90vh, 48rem);
    overflow: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    background: #ffffff;
    color: #253d4e;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    transform: translateY(14px) scale(0.985);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.cookie-modal-backdrop.is-visible .cookie-modal {
    transform: none;
}

.cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-modal h2 {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.cookie-modal-close {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dce7e5;
    border-radius: 0.8rem;
    color: #536872;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.cookie-modal-close:hover {
    background: #f0f7f5;
    color: #247568;
}

.cookie-modal-close .material-symbols-outlined {
    font-size: 1.15rem;
}

.cookie-modal-intro {
    max-width: 58ch;
    margin-top: 0.7rem;
    color: #657680;
    font-size: 0.8rem;
    line-height: 1.65;
}

.cookie-category-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.45rem;
}

.cookie-category {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e9e7;
    border-radius: 1rem;
    background: #fbfdfc;
}

.cookie-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    background: #edf7f4;
    color: #338575;
}

.cookie-category-icon .material-symbols-outlined {
    font-size: 1.15rem;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cookie-category-title h3 {
    color: #234052;
    font-size: 0.88rem;
    font-weight: 750;
}

.cookie-category-title span {
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: #edf4f2;
    color: #668078;
    font-size: 0.56rem;
    font-weight: 750;
    text-transform: uppercase;
}

.cookie-category-copy p {
    margin-top: 0.3rem;
    color: #6b7b84;
    font-size: 0.72rem;
    line-height: 1.55;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.7rem;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch span {
    position: relative;
    display: block;
    width: 2.7rem;
    flex: 0 0 2.7rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #cbd7d5;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    transition: transform var(--transition-fast);
}

.cookie-switch input:checked + span {
    background: #32907f;
}

.cookie-switch input:checked + span::after {
    transform: translateX(1.2rem);
}

.cookie-switch-locked span {
    cursor: not-allowed;
    opacity: 0.68;
}

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
}

.cookie-modal-footer > a {
    font-size: 0.72rem;
}

.cookie-modal-footer > div {
    display: flex;
    gap: 0.45rem;
}

.cookie-settings-link {
    color: inherit;
    font-size: inherit;
    transition: color var(--transition-fast);
}

.cookie-settings-link:hover {
    color: #ffffff;
}

.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .cookie-banner-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cookie-banner-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        right: 0.55rem;
        bottom: 0.55rem;
        left: 0.55rem;
    }

    .cookie-banner-inner {
        display: block;
        padding: 1rem;
        border-radius: 1.1rem;
    }

    .cookie-banner-mark {
        width: 2.65rem;
        height: 2.65rem;
        margin-bottom: 0.75rem;
    }

    .cookie-banner-copy > p:last-child {
        font-size: 0.72rem;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 0.9rem;
    }

    .cookie-banner-actions [data-cookie-reject] {
        grid-column: 1;
        grid-row: 1;
    }

    .cookie-banner-actions [data-cookie-accept] {
        grid-column: 2;
        grid-row: 1;
    }

    .cookie-banner-actions [data-cookie-customize] {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .cookie-btn {
        white-space: normal;
    }

    .cookie-modal-backdrop {
        place-items: end center;
        padding: 0;
    }

    .cookie-modal {
        width: 100%;
        max-height: 92vh;
        padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
        border-radius: 1.35rem 1.35rem 0 0;
        transform: translateY(100%);
    }

    .cookie-category {
        grid-template-columns: minmax(0, 1fr) 2.7rem;
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .cookie-category-icon {
        display: none;
    }

    .cookie-category-copy {
        grid-column: 1;
    }

    .cookie-switch {
        grid-column: 2;
    }

    .cookie-category-copy p {
        font-size: 0.68rem;
    }

    .cookie-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-modal-footer > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal-backdrop,
    .cookie-modal {
        transition: none;
    }
}

@media print {
    .cookie-banner,
    .cookie-modal-backdrop {
        display: none !important;
    }
}

/* --- Legal pages --- */
.legal-page {
    background: #f3f7f6;
    color: #203146;
}

.legal-page main {
    overflow: clip;
}

.legal-reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.legal-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #5bd0bc, #8de1d2);
    box-shadow: 0 0 18px rgba(91, 208, 188, 0.72);
    transition: width 80ms linear;
}

.legal-hero {
    position: relative;
    isolation: isolate;
    padding: 10.5rem 0 5.5rem;
    background:
        radial-gradient(circle at 80% 5%, rgba(79, 190, 171, 0.25), transparent 32rem),
        radial-gradient(circle at 10% 90%, rgba(65, 132, 166, 0.18), transparent 28rem),
        linear-gradient(145deg, #0c2236, #152e42 55%, #173a49);
    color: #ffffff;
}

.legal-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 8rem;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, #000);
}

.legal-hero-inner {
    max-width: 74rem;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 2.2rem;
    color: rgba(255,255,255,.68);
    font-size: 0.8rem;
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.legal-back:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

.legal-back .material-symbols-outlined {
    font-size: 1rem;
}

.legal-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.15rem;
    color: #79d6c6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-eyebrow > span {
    width: 1.7rem;
    height: 1px;
    background: currentColor;
}

.legal-hero h1 {
    max-width: 900px;
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.legal-hero-lead {
    max-width: 720px;
    margin-top: 1.3rem;
    color: rgba(255,255,255,.7);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
    margin-top: 1.8rem;
    color: rgba(255,255,255,.62);
    font-size: 0.78rem;
}

.legal-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.legal-meta .material-symbols-outlined {
    color: #72cebe;
    font-size: 1rem;
}

.legal-policy-switcher {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 2.4rem;
    padding: 0.38rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1rem;
    background: rgba(255,255,255,.065);
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
    backdrop-filter: blur(18px);
}

.legal-policy-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.8rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.72rem;
    color: rgba(255,255,255,.65);
    font-size: 0.76rem;
    font-weight: 600;
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.legal-policy-switcher a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.legal-policy-switcher a[aria-current="page"] {
    color: #123447;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.legal-policy-switcher .material-symbols-outlined {
    font-size: 1.05rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5.25rem);
    align-items: start;
    max-width: 74rem;
    padding-top: 4.5rem;
    padding-bottom: 7rem;
}

.legal-sidebar {
    position: sticky;
    top: 7rem;
}

.legal-toc-panel {
    padding: 1.25rem 0 1.25rem 1.2rem;
    border-left: 1px solid #d8e3e1;
}

.legal-toc-title {
    margin-bottom: 0.85rem;
    color: #1c3548;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-toc {
    display: flex;
    flex-direction: column;
    max-height: min(55vh, 34rem);
    overflow: auto;
    scrollbar-width: thin;
}

.legal-toc a {
    position: relative;
    padding: 0.38rem 0;
    color: #70808c;
    font-size: 0.75rem;
    line-height: 1.45;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.legal-toc a::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: -1.25rem;
    width: 2px;
    height: 0;
    border-radius: 2px;
    background: var(--clr-primary);
    transition: height var(--transition-fast);
}

.legal-toc a:hover,
.legal-toc a.is-active {
    color: #1e4b56;
    transform: translateX(3px);
}

.legal-toc a.is-active::before {
    height: 1.05rem;
}

.legal-toc a.legal-toc-sub {
    padding-left: 0.75rem;
    font-size: 0.7rem;
}

.legal-print-button {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    margin-top: 1.25rem;
    color: #407064;
    font-size: 0.72rem;
    font-weight: 700;
}

.legal-print-button:hover {
    color: var(--clr-primary);
}

.legal-print-button .material-symbols-outlined {
    font-size: 1rem;
}

.legal-toc-toggle {
    display: none;
}

.legal-article {
    min-width: 0;
    padding: clamp(1.5rem, 4.5vw, 4.5rem);
    border: 1px solid rgba(26, 64, 71, 0.09);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.93);
    box-shadow: 0 25px 80px rgba(22, 52, 61, 0.08);
}

.legal-intro {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.7rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid #dce8e6;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f4faf8, #f8fbfc);
}

.legal-intro:empty {
    display: none;
}

.legal-intro p {
    margin: 0 !important;
    color: #49606c !important;
}

.legal-section {
    scroll-margin-top: 7.5rem;
    padding: 0 0 3.2rem;
    margin-bottom: 3.2rem;
    border-bottom: 1px solid #e5eceb;
}

.legal-section:last-of-type {
    border-bottom: 0;
}

.legal-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.45rem;
}

.legal-heading-row h2 {
    max-width: 700px;
    color: #183246;
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.legal-heading-row h3 {
    color: #21445a;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 700;
}

.legal-heading-row-sub {
    margin-top: 2.3rem;
    margin-bottom: 1rem;
}

.legal-subsection {
    scroll-margin-top: 7.5rem;
}

.legal-anchor-copy {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #dce6e4;
    border-radius: 0.65rem;
    color: #8b9c9c;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.legal-heading-row:hover .legal-anchor-copy,
.legal-anchor-copy:focus-visible {
    opacity: 1;
    transform: none;
}

.legal-anchor-copy:hover {
    border-color: #93c9bf;
    color: var(--clr-primary);
}

.legal-anchor-copy .material-symbols-outlined {
    font-size: 1rem;
}

.legal-article p {
    max-width: 74ch;
    margin: 0 0 1.15rem;
    color: #4c5f6c;
    font-size: 0.94rem;
    line-height: 1.88;
}

.legal-article p a,
.legal-note-block a {
    color: #267c6e;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(38,124,110,.3);
    text-underline-offset: 3px;
}

.legal-label {
    display: inline-flex;
    margin: 1.65rem 0 0.7rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: #eaf5f2;
    color: #267567;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.legal-list {
    display: grid;
    gap: 0.72rem;
    max-width: 74ch;
    margin: 0.8rem 0 1.5rem;
}

.legal-list li {
    position: relative;
    padding-left: 1.4rem;
    color: #4c5f6c;
    font-size: 0.92rem;
    line-height: 1.72;
}

.legal-list li::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #55ad9d;
    box-shadow: 0 0 0 4px #eaf5f2;
}

.legal-list-cards {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    max-width: none;
}

.legal-list-cards li {
    min-height: 4.2rem;
    padding: 1rem 1rem 1rem 2.3rem;
    border: 1px solid #e1ebe9;
    border-radius: 0.9rem;
    background: #fbfdfd;
}

.legal-list-cards li::before {
    top: 1.42rem;
    left: 1rem;
}

.legal-list-cards strong,
.legal-list-cards span {
    display: block;
}

.legal-list-cards strong {
    color: #24485a;
    margin-bottom: 0.25rem;
}

.legal-note-block {
    display: grid;
    gap: 0.55rem;
    max-width: 74ch;
    margin: 1rem 0 1.6rem;
    padding: 1.25rem 1.4rem;
    border-left: 3px solid #57aa9a;
    border-radius: 0 0.9rem 0.9rem 0;
    background: #f3f8f7;
    color: #465e69;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.7;
}

.legal-help-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #18364a, #1a4c54);
    color: #ffffff;
}

.legal-help-card > .material-symbols-outlined {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.8rem;
    background: rgba(255,255,255,.1);
    color: #7cdbca;
}

.legal-help-card h2 {
    font-size: 1rem;
    font-weight: 700;
}

.legal-help-card p {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 0.76rem;
    line-height: 1.5;
}

.legal-help-card > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.7rem;
    background: #ffffff;
    color: #173b49;
    font-size: 0.72rem;
    font-weight: 700;
}

.legal-help-card > a .material-symbols-outlined {
    font-size: 0.95rem;
}

.legal-back-to-top {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: #153448;
    color: #ffffff;
    box-shadow: 0 14px 35px rgba(14,41,57,.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.legal-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.legal-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 80;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #132f42;
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.legal-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 1.3rem;
        padding-top: 2rem;
    }

    .legal-sidebar {
        position: sticky;
        top: 5.4rem;
        z-index: 20;
    }

    .legal-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.9rem 1rem;
        border: 1px solid #dce6e4;
        border-radius: 0.9rem;
        background: rgba(255,255,255,.96);
        color: #244556;
        box-shadow: 0 10px 30px rgba(20,53,62,.08);
        font-size: 0.78rem;
        font-weight: 700;
        backdrop-filter: blur(14px);
    }

    .legal-toc-toggle > span:first-child {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .legal-toc-toggle .material-symbols-outlined {
        font-size: 1.05rem;
        transition: transform var(--transition-fast);
    }

    .legal-toc-toggle[aria-expanded="true"] > .material-symbols-outlined {
        transform: rotate(180deg);
    }

    .legal-toc-panel {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 1rem;
        border: 1px solid transparent;
        border-radius: 0.9rem;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(20,53,62,.14);
        opacity: 0;
        transform: translateY(-5px);
        transition: max-height var(--transition-normal), opacity var(--transition-fast), transform var(--transition-fast), padding var(--transition-normal), border-color var(--transition-normal);
    }

    .legal-toc-panel.is-open {
        max-height: min(65vh, 34rem);
        padding: 1rem;
        border-color: #dce6e4;
        opacity: 1;
        transform: none;
    }

    .legal-toc-title {
        display: none;
    }

    .legal-toc {
        max-height: min(48vh, 28rem);
    }

    .legal-toc a::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding: 8.5rem 0 3.7rem;
    }

    .legal-hero .container,
    .legal-layout {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .legal-back {
        margin-bottom: 1.5rem;
    }

    .legal-policy-switcher {
        display: grid;
        width: 100%;
    }

    .legal-policy-switcher a {
        padding-inline: 0.45rem;
        font-size: 0.66rem;
    }

    .legal-policy-switcher .material-symbols-outlined {
        display: none;
    }

    .legal-article {
        padding: 1.45rem 1.2rem;
        border-radius: 1.1rem;
    }

    .legal-section {
        padding-bottom: 2.35rem;
        margin-bottom: 2.35rem;
    }

    .legal-heading-row {
        margin-bottom: 1.1rem;
    }

    .legal-anchor-copy {
        opacity: 1;
        transform: none;
    }

    .legal-list-cards {
        grid-template-columns: 1fr;
    }

    .legal-help-card {
        grid-template-columns: auto 1fr;
    }

    .legal-help-card > a {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media print {
    .legal-page {
        background: #ffffff;
    }

    .legal-page .navbar,
    .legal-page .mobile-nav,
    .legal-policy-switcher,
    .legal-sidebar,
    .legal-reading-progress,
    .legal-anchor-copy,
    .legal-back-to-top,
    .legal-toast,
    .legal-help-card,
    .legal-page .footer,
    .legal-back {
        display: none !important;
    }

    .legal-hero {
        padding: 1rem 0 2rem;
        background: #ffffff;
        color: #122d40;
    }

    .legal-hero::after,
    .legal-eyebrow {
        display: none;
    }

    .legal-hero-lead,
    .legal-meta {
        color: #50636e;
    }

    .legal-layout {
        display: block;
        max-width: none;
        padding: 0;
    }

    .legal-article {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .legal-section {
        break-inside: auto;
    }

    .legal-heading-row h2,
    .legal-heading-row h3 {
        break-after: avoid;
    }
}
