#frontpage {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    text-align: center;
}

/* ============================================================
   Section divider (rød linje med tittel-overlay)
   Bruksmønster:
       <h2 class="section-divider"><span>Slik fungerer det</span></h2>
   ============================================================ */
.section-divider {
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #b02626;
    line-height: 0.1em;
    margin: 40px 0 30px;
    font-weight: 600;
    font-size: 1.6rem;
    color: #b02626;
}
.section-divider > span {
    background: #fff;
    padding: 0 14px 0 0;
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
    background: #f3f4f6;
    padding: 70px 30px 60px;
    text-align: left;
    /* Break out of #frontpage's max-width 900px to fill the full viewport.
       box-sizing keeps the horizontal padding INSIDE the 100vw width so the
       section is exactly viewport-wide (no horizontal overflow on mobile). */
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* #frontpage no longer has top padding, so no negative margin needed */
}
#hero > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#hero h1 {
    font-size: 2.5rem;
    color: #111;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 6px;
    letter-spacing: -0.01em;
}
#hero .hero-lead {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.65;
    margin: 0 auto 26px;
    padding-top: 20px;
    border-top: 2px solid #b02626;
}
#hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

/* ============================================================
   3-stegs prosess
   ============================================================ */
#steps {
    padding: 70px 20px 60px;
    background: #f8fafc;             /* lett gr&aring; panel (byttet plass med #tagline) */
    margin: 0 -20px;                 /* strekker seg ut til kanten av #frontpage */
}
.steps-header {
    text-align: center;
    margin-bottom: 50px;
}
.steps-header h2 {
    color: #111;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.steps-header p {
    color: #666;
    font-size: 1.05rem;
    margin: 0;
}
.steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}
.step {
    padding: 0;
    background: transparent;
}
.step-number {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #b02626;
    line-height: 0.1em;
    margin: 10px 0 28px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #222;
}
.step-number > span {
    background: #f8fafc;          /* match the grey #steps panel so the line is masked cleanly */
    padding: 0 18px;
}
.step h3 {
    color: #222;
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}
.step h3 small {
    color: #888;
    font-weight: normal;
    font-size: 0.85rem;
}
.step p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   Tagline: 30 dager – bilde til venstre, r&oslash;d boks som overlapper
   Inspirert av Schlichtungs lg:grid-cols-12 med image col 1-4 + box col 3-12
   ============================================================ */
#tagline {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;                  /* hvit/innrammet (byttet plass med #steps) */
}
.tagline-card {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    align-items: center;
}
@media (min-width: 900px) {
    .tagline-card {
        grid-template-columns: 380px 1fr;
        gap: 0;
    }
}
.tagline-image {
    position: relative;
    z-index: 2;
}
.tagline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    aspect-ratio: 4 / 5;
    display: block;
}
.tagline-content {
    background: #b02626;
    color: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    z-index: 1;
    text-align: left;
}
@media (min-width: 900px) {
    .tagline-content {
        padding: 60px 50px 60px 100px;
        margin-left: -60px;          /* overlapper bildet */
    }
}
.tagline-content {
    position: relative;
    overflow: hidden;             /* klipper "ghost-30" og evt. patterns */
}
.tagline-content h2 {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
.tagline-content p {
    font-size: 1.1rem;
    margin: 0 0 22px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
}

/* Eyebrow-tekst over h2 – liten, versaler, glissen sperring */
.tagline-eyebrow {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Ghost-30 – kjempestor halvgjennomsiktig "30" i bakgrunnen */
.tagline-ghost-30 {
    position: absolute;
    top: -40px;
    right: -30px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 18rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

/* Feature-liste med rød-på-hvit checkmark */
.tagline-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    position: relative;
    z-index: 2;
}
.tagline-features li {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tagline-features li .fa {
    width: 22px;
    height: 22px;
    background: #fff;
    color: #b02626;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    cursor: default;
}

/* Pris-tag p&aring; bildet – liten skj&oslash;v hvit boks med skygge */
.tagline-image {
    position: relative;
    z-index: 2;
}
.tagline-price-tag {
    position: absolute;
    bottom: 20px;
    right: -16px;
    background: #fff;
    border-radius: 6px;
    padding: 14px 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    transform: rotate(-3deg);
    text-align: center;
    line-height: 1.1;
    z-index: 3;
}
.tagline-price-tag small {
    display: block;
    color: #888;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
}
.tagline-price-tag strong {
    color: #b02626;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: Helvetica, Arial, sans-serif;
}
.tagline-price-tag span {
    color: #b02626;
    font-size: 1rem;
    font-weight: 700;
    margin-left: -2px;            /* trekker ",-" helt inntil "499" */
}

/* Light outline-variant of .button – brukes inni m&oslash;rk r&oslash;d boks */
.button_outline_light {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.button_outline_light:hover {
    background-color: #fff;
    color: #b02626;
    border-color: #fff;
}

/* ============================================================
   Egenskaper
   ============================================================ */
#features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 50px 20px 20px 20px;
}
.feature {
    flex: 1 1 220px;
    max-width: 260px;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    background-color: rgba(0, 0, 0, 0.007);
}
.feature .fa {
    font-size: 2rem;
    color: #b02626;
    margin-bottom: 12px;
    cursor: default;
}
.feature h3 {
    color: #111;
    text-decoration: none;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.feature p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================================
   FAQ – native HTML5 <details>/<summary> accordion
   ============================================================ */
#faq {
    padding: 20px 20px 50px;
    text-align: left;
    max-width: 760px;
    margin: 0 auto;
}
#faq details {
    border-bottom: 2px solid #b02626;
    padding: 14px 0 18px;
}
#faq summary {
    cursor: pointer;
    font-weight: 500;
    color: #222;
    font-size: 1.1rem;
    list-style: none;
    position: relative;
    padding-right: 40px;
    user-select: none;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::before {
    content: '+';
    color: #b02626;
    font-size: 1.6rem;
    font-weight: 400;
    margin-right: 14px;
    display: inline-block;
    width: 16px;
    line-height: 1;
}
#faq details[open] summary::before {
    content: '−';
}
#faq details p {
    margin: 14px 0 0 30px;
    color: #555;
    line-height: 1.55;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
    #hero {
        padding: 50px 24px 40px;
    }
    #hero h1 {
        font-size: 1.9rem;
    }
    #hero .hero-lead {
        font-size: 1rem;
    }
    .steps-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .step:nth-child(2) .step-number,
    .step:nth-child(2) h3,
    .step:nth-child(2) p {
        text-align: left;
    }
    #features {
        flex-direction: column;
        align-items: center;
    }
    .feature {
        /* Stacked: give every box the same width (instead of shrinking to its own
           content, which made them uneven). */
        flex: none;
        width: 100%;
        max-width: 360px;
        box-sizing: border-box;
    }
    /* On mobile the card was too narrow because of nested padding (#frontpage +
       #tagline + .tagline-card). Drop the section/card horizontal padding so the
       image and the red box use the full width; the red box keeps its own padding. */
    #tagline {
        padding: 40px 0;
    }
    .tagline-card {
        padding: 0;
    }
    .tagline-content {
        padding: 32px 24px;
    }
    .tagline-price-tag {
        right: 8px;          /* keep the price tag inside the screen edge */
        bottom: 12px;
    }
    .tagline-card h2 {
        font-size: 1.4rem;
    }
    /* Portrait 4/5 is too tall on a full-width phone; use a shorter banner crop. */
    .tagline-image img {
        aspect-ratio: 3 / 2;
    }
}
