/* =========================
   AppFavoritter Landing Page
   File: style.css
========================= */

:root {
    --primary: #1457ff;
    --primary-dark: #0b35b8;
    --secondary: #ff6b00;
    --dark: #071227;
    --text: #111827;
    --muted: #667085;
    --light: #f5f8ff;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --container: 1180px;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    max-width: 100%;
}

.section {
    padding: 64px 0;
}

.section-light {
    background:
        radial-gradient(circle at top left, rgba(20, 87, 255, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.intro-grid h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--dark);
    margin-top: 10px;
}

.section-heading p,
.intro-grid p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
}

.eyebrow,
.feature-label {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 25px;
    letter-spacing: -0.04em;
    color: var(--dark);
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 10px 24px rgba(20, 87, 255, 0.25);
    font-size: 18px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #344054;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Header actions and language switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.flag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 22px;
    border-radius: 5px;
    opacity: 0.55;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.flag-link:hover,
.flag-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.flag {
    width: 24px;
    height: 16px;
    display: block;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

/* Denmark */
.flag-dk {
    background:
        linear-gradient(to right, transparent 0 30%, #ffffff 30% 40%, transparent 40% 100%),
        linear-gradient(to bottom, transparent 0 42%, #ffffff 42% 58%, transparent 58% 100%),
        #c60c30;
}

/* United Kingdom - simplified */
.flag-gb {
    background:
        linear-gradient(35deg, transparent 0 42%, #ffffff 42% 48%, #c8102e 48% 54%, #ffffff 54% 60%, transparent 60% 100%),
        linear-gradient(-35deg, transparent 0 42%, #ffffff 42% 48%, #c8102e 48% 54%, #ffffff 54% 60%, transparent 60% 100%),
        linear-gradient(to right, transparent 0 42%, #ffffff 42% 58%, transparent 58% 100%),
        linear-gradient(to bottom, transparent 0 36%, #ffffff 36% 64%, transparent 64% 100%),
        linear-gradient(to right, transparent 0 45%, #c8102e 45% 55%, transparent 55% 100%),
        linear-gradient(to bottom, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
        #012169;
}

/* Germany */
.flag-de {
    background:
        linear-gradient(to bottom,
            #000000 0 33.33%,
            #dd0000 33.33% 66.66%,
            #ffce00 66.66% 100%
        );
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 13px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(20, 87, 255, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: rgba(20, 87, 255, 0.25);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 44px;
    background:
        radial-gradient(circle at 80% 18%, rgba(20, 87, 255, 0.10), transparent 34%),
        radial-gradient(circle at 18% 20%, rgba(255, 107, 0, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 34px;
}

.hero-content h1 {
    font-size: clamp(36px, 4.6vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: var(--dark);
    margin-top: 8px;
    max-width: 520px;
}

.hero-text {
    margin-top: 16px;
    max-width: 560px;
    font-size: 16.5px;
    color: #475467;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-points span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    width: 100%;
    max-width: 500px;
    max-height: 420px;
    height: auto;
    border-radius: 24px;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
    background: #f5f8ff;
}

/* Trust bar */
.trust-bar {
    padding: 22px 0;
    background: #ffffff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    background: var(--white);
}

.trust-grid div {
    padding: 10px 16px;
    border-right: 1px solid var(--border);
}

.trust-grid div:last-child {
    border-right: 0;
}

.trust-grid strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
}

.trust-grid span {
    color: var(--muted);
    font-size: 13px;
}

/* Intro */
.intro-section {
    padding: 58px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 46px;
    align-items: start;
}

.intro-grid p + p {
    margin-top: 16px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(20, 87, 255, 0.08);
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: var(--dark);
    font-size: 20px;
    letter-spacing: -0.02em;
}

.feature-card p {
    margin-top: 10px;
    color: var(--muted);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    padding: 26px 22px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.step-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 900;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 19px;
    line-height: 1.2;
    color: var(--dark);
}

.step-card p {
    margin-top: 10px;
    color: var(--muted);
}

/* Customer showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.showcase-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.showcase-image {
    background: #f5f8ff;
    padding: 20px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 20px;
}

.showcase-content {
    padding: 22px;
}

.showcase-content h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 8px;
}

.showcase-content p {
    color: var(--muted);
}

/* Dealer large features */
.dealer-section {
    background: #ffffff;
}

.large-feature-list {
    display: grid;
    gap: 34px;
}

.large-feature {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.large-feature.reverse {
    grid-template-columns: 1fr 0.8fr;
}

.large-feature.reverse .large-feature-text {
    order: 2;
}

.large-feature.reverse .large-feature-image {
    order: 1;
}

.large-feature-text h3 {
    margin-top: 8px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--dark);
}

.large-feature-text p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
    max-width: 520px;
}

.large-feature-image {
    background: #f5f8ff;
    border-radius: 24px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 520px;
    overflow: hidden;
}

.large-feature-image img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
}

/* Extra gallery */
.two-column-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-card img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    background: #f5f8ff;
    padding: 18px;
}

.gallery-card div {
    padding: 24px;
}

.gallery-card h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 8px;
}

.gallery-card p {
    color: var(--muted);
    font-size: 16.5px;
}

/* Industries */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.industry-card {
    padding: 20px;
    text-align: center;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    font-weight: 900;
    color: var(--dark);
}

/* Pricing */
.pricing-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 87, 255, 0.10), transparent 34%),
        #ffffff;
}

.pricing-card {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 26px;
    padding: 28px;
    border: 1px solid rgba(20, 87, 255, 0.15);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.pricing-content {
    padding: 10px;
}

.pricing-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 87, 255, 0.08);
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
}

.pricing-content h3 {
    margin-top: 18px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--dark);
}

.pricing-content p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 16.5px;
}

.pricing-content ul {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 18px;
    list-style: none;
}

.pricing-content li {
    color: #344054;
    font-weight: 700;
}

.pricing-content li::before {
    content: "✓";
    color: #12b76a;
    font-weight: 900;
    margin-right: 8px;
}

.pricing-box {
    padding: 26px;
    border-radius: 24px;
    background: #071227;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.pricing-box span {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
    margin-top: 8px;
}

.pricing-box strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* CTA */
.cta-section {
    padding: 60px 0;
    background: #ffffff;
}

.cta-box {
    padding: 40px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 50%, rgba(20, 87, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid rgba(20, 87, 255, 0.12);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-box h2 {
    max-width: 760px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--dark);
    margin-top: 8px;
}

.cta-box p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 17px;
}

/* Footer */
.site-footer {
    background: #071227;
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}

.footer-brand {
    color: var(--white);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.68);
    margin-top: 12px;
}

.site-footer h4 {
    margin-bottom: 14px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 9px;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

/* Extra pages: customer signup and dealer login */
.page-hero {
    min-height: calc(100vh - 74px);
    padding: 80px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(20, 87, 255, 0.12), transparent 34%),
        radial-gradient(circle at 16% 20%, rgba(255, 107, 0, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    display: flex;
    align-items: center;
}

.page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.page-grid h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: var(--dark);
    margin-top: 10px;
}

.page-grid p {
    margin-top: 18px;
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 32px;
    display: grid;
    gap: 18px;
}

.form-card label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
    font-size: 14px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #f9fbff;
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    color: var(--dark);
    outline: none;
}

.form-card input:focus,
.form-card textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 87, 255, 0.10);
}

.login-card {
    max-width: 480px;
    width: 100%;
    justify-self: center;
}

.login-note {
    font-size: 15px !important;
    color: #667085;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 1050px) {
    .hero-grid,
    .intro-grid,
    .large-feature,
    .large-feature.reverse,
    .page-grid {
        grid-template-columns: 1fr;
    }

    .large-feature.reverse .large-feature-text,
    .large-feature.reverse .large-feature-image {
        order: initial;
    }

    .features-grid,
    .steps-grid,
    .showcase-grid,
    .two-column-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card {
        grid-template-columns: 1fr;
    }

    .hero-main-image {
        max-width: 100%;
    }

    .large-feature-image {
        max-height: none;
    }

    .large-feature-image img {
        max-height: 440px;
    }
}

@media (max-width: 820px) {
    .nav {
        height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .brand {
        font-size: 22px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .header-actions .btn {
        flex: 1;
        min-width: 145px;
        font-size: 13px;
        padding: 0 12px;
    }

    .language-switcher {
        gap: 7px;
        flex-shrink: 0;
    }

    .flag-link {
        width: 28px;
        height: 21px;
    }

    .flag {
        width: 23px;
        height: 15px;
    }

    .hero {
        padding: 42px 0 38px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-main-image {
        max-width: 100%;
        max-height: none;
    }

    .trust-grid,
    .features-grid,
    .steps-grid,
    .showcase-grid,
    .two-column-gallery,
    .industry-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .trust-grid div:last-child {
        border-bottom: 0;
    }

    .pricing-content ul {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-box .btn {
        width: 100%;
    }

    .section {
        padding: 58px 0;
    }

    .large-feature {
        padding: 20px;
        gap: 22px;
    }

    .showcase-image {
        min-height: auto;
    }

    .showcase-image img,
    .large-feature-image img,
    .gallery-card img {
        max-height: none;
        height: auto;
    }

    .page-hero {
        padding: 56px 0;
    }

    .page-grid {
        gap: 32px;
    }

    .form-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-text {
        font-size: 16px;
    }

    .header-actions .btn {
        min-width: 100%;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        margin-bottom: 4px;
    }

    .pricing-card {
        padding: 18px;
    }

    .pricing-box strong {
        font-size: 30px;
    }

    .cta-box {
        padding: 28px;
    }

    .showcase-content,
    .gallery-card div {
        padding: 20px;
    }

    .showcase-card,
    .gallery-card,
    .large-feature {
        border-radius: 22px;
    }
}