@font-face {
    font-family: 'Urbanist';
    src: url('urbanist-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('urbanist-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('urbanist-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('urbanist-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Farger som matcher MedMalin-logoen (rosa til lys oransje) */
    --primary: #e08a9e;
    --primary-dark: #c97084;
    --primary-soft: #fad8df;
    --primary-rgb: 224, 138, 158;
    --text-dark: #2d2430;
    --text-muted: #6f6472;
    --bg-cream: #fff9f8;
    --bg-white: #ffffff;
    --card-border: rgba(var(--primary-rgb), 0.16);
    --shadow-soft: 0 16px 50px rgba(45, 36, 48, 0.08);
    --success-bg: #eef8f1;
    --success-text: #256643;
    --error-bg: #fff0f4;
    --error-text: #a23d63;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(255, 253, 252, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}

.nav-logo {
    width: min(180px, 38vw);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.96rem;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.hero-link:hover,
.footer-links a:hover {
    color: var(--primary);
}

.nav-links .btn {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.28);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid rgba(var(--primary-rgb), 0.25);
}

.btn-large {
    padding: 1rem 2.3rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
    background: var(--bg-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.06;
    font-weight: 400;
    margin-bottom: 1.15rem;
}

.hero p {
    font-size: 1.18rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-link {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-points span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.hero-card-inner {
    background: linear-gradient(145deg, #fff 0%, #fff7f8 100%);
    border-radius: 24px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-card h2 {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
}

.hero-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-card ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.hero-card li::before,
.pricing-features li::before,
.about-panel li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-right: 0.6rem;
}

.section,
.cta {
    padding: 6rem 2rem;
}

.section-light {
    background: linear-gradient(180deg, var(--bg-white) 0%, #fff6f7 100%);
}

.section-alt {
    background: linear-gradient(180deg, #fff7f8 0%, var(--bg-white) 100%);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.section-header.left {
    text-align: left;
    margin: 0 0 1.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.08rem;
}

.card-grid,
.steps,
.pricing-grid {
    display: grid;
    gap: 1.75rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.three-up {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card,
.value-card,
.step,
.pricing-card,
.about-panel {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.info-card,
.value-card {
    padding: 2rem;
}

.info-card h3,
.value-card h3,
.step h3,
.pricing-card h3,
.about-panel h3 {
    margin-bottom: 0.75rem;
    font-size: 1.28rem;
}

.info-card p,
.value-card p,
.step p,
.pricing-subtitle,
.about-copy p,
.about-panel li {
    color: var(--text-muted);
}

.stats {
    padding: 4.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.stats-grid {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
    padding: 2rem;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #f6e4e8 100%);
    color: var(--primary-dark);
    font-weight: 700;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 860px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 2.5rem;
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.price {
    font-size: 2.2rem;
    color: var(--primary);
    margin: 1rem 0 1.25rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 0 0 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.about-panel {
    padding: 2rem;
}

.about-panel ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.cta-box {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--card-border);
    background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
    box-shadow: var(--shadow-soft);
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.08rem;
    margin-bottom: 1.8rem;
}

footer {
    padding: 3rem 2rem;
    background: #2f2632;
    color: rgba(255, 255, 255, 0.75);
}

.footer-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    width: min(170px, 42vw);
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.95rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.footer-links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.alert {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 0.96rem;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    font-weight: 600;
    font-size: 0.96rem;
}

.form-field input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(45, 36, 48, 0.5);
    backdrop-filter: blur(10px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    width: min(640px, 100%);
    max-height: min(90vh, 860px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    box-shadow: 0 24px 80px rgba(45, 36, 48, 0.22);
    padding: 2rem 1.75rem;
    position: relative;
}

.modal-form-wrap {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: linear-gradient(145deg, #fff 0%, #fff7f8 100%);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-close:hover {
    background: #faf4f5;
}

.modal-eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.modal-copy h2,
.modal-status h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.modal-copy p,
.modal-status p {
    color: var(--text-muted);
}

.modal-status {
    text-align: center;
    padding: 1rem 0.5rem 0.5rem;
}

.modal-status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero,
    .section,
    .cta {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero {
        padding-top: 6.5rem;
    }

    .hero-actions,
    .hero-points,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-box,
    .modal-card {
        padding: 1.5rem;
    }
}
