/* FDE5 Digital - base.css
   Friskere, lysere og mere professionelt tema
*/

:root {
    --bg: #eef3f8;
    --bg-soft: #f7f9fc;
    --navy: #101827;
    --navy-2: #172033;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #d9e2ee;
    --text: #0b1426;
    --muted: #5d6b82;
    --blue: #0ea5ff;
    --blue-2: #2563eb;
    --green: #10b981;
    --red: #ef4444;
    --shadow: 0 18px 55px rgba(16, 24, 39, 0.10);
    --shadow-soft: 0 10px 28px rgba(16, 24, 39, 0.08);
    --radius: 24px;
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 0%, rgba(14,165,255,.16), transparent 34rem),
        radial-gradient(circle at 8% 10%, rgba(37,99,235,.10), transparent 26rem),
        linear-gradient(180deg, #f9fbff 0%, var(--bg) 48%, #f7f9fc 100%);
    line-height: 1.6;
}

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

img { max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 78px;
    padding: 16px clamp(18px, 4vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 24, 39, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 28px rgba(16, 24, 39, .12);
}

.brand {
    display: flex;
    gap: 10px;
    align-items: baseline;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .08em;
}

.brand-main {
    color: var(--blue);
    font-size: 1.28rem;
}

.brand-sub {
    color: #ffffff;
    font-size: .82rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-size: .95rem;
    font-weight: 700;
}

.main-nav a {
    padding: 10px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a.active {
    border-bottom: 2px solid var(--blue);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
}

/* Layout */
.section,
.hero,
.subpage-hero {
    padding-left: clamp(18px, 5vw, 70px);
    padding-right: clamp(18px, 5vw, 70px);
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    padding-top: clamp(60px, 9vw, 125px);
    padding-bottom: clamp(60px, 9vw, 125px);
}

.hero-content,
.subpage-hero-inner,
.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.hero-content {
    margin: 0;
}

.hero h1,
.subpage-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: .98;
    letter-spacing: -0.075em;
    color: var(--text);
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: var(--text);
}

h3 {
    margin-top: 0;
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--text);
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--blue-2);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.lead,
.hero-text,
.large-text,
.subpage-hero p {
    color: var(--muted);
    font-size: clamp(1.08rem, 1.7vw, 1.32rem);
    max-width: 820px;
}

.hero-actions,
.actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 23px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 14px 34px rgba(37,99,235,.20);
}

.btn.secondary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255,255,255,.80);
}

.hero-card,
.card,
.case-item,
.panel,
.side-card,
.product-card,
.product-card-page,
.price-card,
.screenshot,
.about-text,
.coming-soon-card,
.highlight-card {
    background: rgba(255,255,255,.90);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,248,252,.94));
}

.hero-card img {
    display: block;
    width: 100%;
}

.section {
    padding-top: clamp(60px, 8vw, 110px);
    padding-bottom: clamp(60px, 8vw, 110px);
}

.section-inner {
    width: 100%;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 36px;
}

.grid {
    display: grid;
    gap: 18px;
}

.cards {
    grid-template-columns: repeat(4, 1fr);
}

.card,
.case-item,
.panel,
.product-card,
.product-card-page {
    padding: 28px;
}

.card p,
.case-item p,
.panel p,
.product-card p,
.product-card-page p,
.about-text p,
.coming-soon-card p,
.price-card p {
    color: var(--muted);
}

.icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--blue-2);
    background: rgba(14,165,255,.12);
    border: 1px solid rgba(14,165,255,.24);
    font-weight: 900;
    margin-bottom: 22px;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.inline-link {
    color: var(--blue-2);
    font-weight: 900;
}

.highlight-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at 85% 0%, rgba(14,165,255,.12), transparent 24rem),
        rgba(255,255,255,.92);
}

.highlight-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.timeline > div {
    padding: 26px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.timeline span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-2);
    color: white;
    font-weight: 900;
    margin-bottom: 18px;
}

.timeline p { color: var(--muted); }

.cta {
    margin: clamp(35px, 5vw, 70px);
    padding: clamp(34px, 6vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(14,165,255,.16), transparent 24rem),
        linear-gradient(135deg, #ffffff, #eef6ff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta p { color: var(--muted); }

.site-footer {
    padding: 30px clamp(18px, 5vw, 70px);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #cbd5e1;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer strong {
    color: #ffffff;
}

.site-footer p {
    margin: 4px 0 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.footer-contact a {
    color: var(--blue);
    font-weight: 900;
}

/* Subpages */
.subpage-hero {
    padding-top: clamp(70px, 9vw, 130px);
    padding-bottom: clamp(40px, 6vw, 80px);
}

.subpage-hero-inner {
    margin: 0;
}

.about-layout {
    padding: 0 clamp(18px, 5vw, 70px) clamp(70px, 8vw, 120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.about-text {
    padding: clamp(30px, 5vw, 60px);
}

.about-text p {
    font-size: 1.08rem;
}

.about-text blockquote {
    margin: 34px 0;
    padding: 24px;
    border-left: 4px solid var(--blue-2);
    background: #edf6ff;
    border-radius: 16px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
}

.about-cta {
    margin-top: 38px;
    padding: 30px;
    border-radius: 22px;
    border: 1px solid rgba(14,165,255,.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(14,165,255,.12), transparent 20rem),
        #f8fbff;
}

.side-card {
    position: sticky;
    top: 110px;
    padding: 26px;
}

.side-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.side-card li { margin: 10px 0; }

/* Products */
.product-grid-page {
    padding: 0 clamp(18px, 5vw, 70px) clamp(70px, 8vw, 120px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card-page {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.badge-ready,
.badge-soon {
    align-self: flex-start;
    margin-bottom: auto;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 900;
}

.badge-ready {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-soon {
    background: #eef2f7;
    color: #64748b;
    border: 1px solid #d6dee8;
}

/* Product page */
.product-hero {
    min-height: auto;
    padding-top: clamp(65px, 8vw, 120px);
    padding-bottom: clamp(45px, 7vw, 90px);
}

.trust-row {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 800;
    color: #1e3a8a;
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.15);
}

.screens {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
}

.screenshot {
    margin: 0;
    padding: 14px;
}

.screenshot.big {
    grid-row: span 2;
}

.screenshot img {
    display: block;
    width: 100%;
    border-radius: 18px;
}

.screenshot figcaption {
    padding: 14px 8px 4px;
    color: var(--muted);
    font-weight: 900;
}

.pricing-wrap {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 22px;
    align-items: center;
}

.price-card {
    padding: clamp(30px, 5vw, 54px);
}

.price span {
    display: block;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 1;
    letter-spacing: -.07em;
    font-weight: 900;
}

.price small {
    color: var(--muted);
    font-weight: 900;
}

.price-card ul {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.price-card li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.coming-soon-card {
    margin: 0 clamp(18px, 5vw, 70px) clamp(70px, 8vw, 120px);
    max-width: 900px;
    padding: clamp(30px, 5vw, 54px);
}

/* Responsive */
@media (max-width: 1080px) {
    .hero,
    .product-hero,
    .about-layout,
    .pricing-wrap {
        grid-template-columns: 1fr;
    }

    .cards,
    .timeline,
    .product-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card {
        max-width: 760px;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        background: rgba(16,24,39,.98);
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 18px;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 14px;
        border-bottom: 0;
    }

    .cards,
    .case-list,
    .timeline,
    .product-grid-page,
    .screens {
        grid-template-columns: 1fr;
    }

    .screenshot.big {
        grid-row: auto;
    }

    .cta,
    .site-footer,
    .highlight-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        text-align: left;
    }

    .highlight-actions {
        width: 100%;
    }

    .highlight-actions .btn {
        width: 100%;
    }

    h1,
    .hero h1,
    .subpage-hero h1 {
        font-size: clamp(2.6rem, 14vw, 4.4rem);
    }
}
