/* Yamaduo — landing-side
   Mobile-first. Maks bredde 1200. Ingen eksterne avhengigheter. */

:root {
    --primary: #1a5f7a;
    --primary-dark: #0f3d50;
    --primary-soft: #e8f0f3;
    --accent: #e6194b;
    --accent-dark: #b8123a;
    --text: #1f2430;
    --text-soft: #5a6473;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --border: #e2e6ec;
    --shadow-sm: 0 1px 2px rgba(15, 25, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 25, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 25, 40, 0.10);
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin-top: 0; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.6rem;
    align-items: center;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta { font-size: 0.95rem !important; padding: 0.6rem 1rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    padding: 4rem 0 3rem;
    background:
        radial-gradient(900px 380px at 90% -10%, rgba(26, 95, 122, 0.10), transparent),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero-lead { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 1.75rem; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.hero-meta span::before { content: "✓ "; color: var(--primary); font-weight: 700; }

.hero-mock {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
}
.hero-mock svg { width: 100%; height: auto; border-radius: 6px; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p { color: var(--text-soft); max-width: 56ch; margin: 0 auto; }

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 0.35rem; }
.feature p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing {
    background: linear-gradient(180deg, var(--bg) 0%, #f1f4f7 100%);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.price-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-md);
}
.price-card.featured::before {
    content: "Mest valgt";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.price-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-amount small { font-size: 0.95rem; font-weight: 500; color: var(--text-soft); }
.price-desc { color: var(--text-soft); margin: 0.75rem 0 1.5rem; font-size: 0.95rem; }
.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}
.price-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.price-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 2rem 1.1rem 0;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.faq-answer { padding: 0 0 1.25rem; color: var(--text-soft); }

/* ---------- Contact CTA ---------- */
.contact-cta {
    background: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    margin: 0 auto;
}
.contact-cta h2 { color: #fff; }
.contact-cta p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.contact-cta a.email-link {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.5);
}
.contact-cta a.email-link:hover { border-bottom-color: #fff; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: #14202c;
    color: #cbd5dc;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: #cbd5dc; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid #243345;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #8aa0b0;
    text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-tag { font-size: 0.9rem; color: #8aa0b0; max-width: 30ch; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 768px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .features { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 5.5rem 0 4.5rem; }
    section { padding: 5rem 0; }
}

/* ---------- Mobile menu ---------- */
@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.25rem;
        gap: 0.4rem;
        display: none;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 0.7rem 0.5rem;
        border-radius: 6px;
    }
    .nav-links a.btn { text-align: center; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===================================================================
   SELSKAPSSIDE — produkter, badges, steps, beta, målgruppe
   =================================================================== */

/* ---------- Eyebrow / hero brand ---------- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
}
.hero-brand {
    background:
        radial-gradient(1000px 420px at 85% -15%, rgba(26, 95, 122, 0.12), transparent),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

/* ---------- Back link (produktsider) ---------- */
.back-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}
.back-link:hover { color: var(--primary); text-decoration: none; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.badge-live { background: #eef8f0; color: #1f7a3d; border: 1px solid #b6ddbf; }
.badge-beta { background: #fff1f4; color: var(--accent-dark); border: 1px solid #f3c0cb; }

/* ---------- Product cards (forside) ---------- */
.product-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}
.product-head .badge { margin-bottom: 0; }
.product-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.product-icon svg { width: 28px; height: 28px; }
.product-icon--malerbrev { background: var(--primary-soft); color: var(--primary); }
.product-icon--kontrakt { background: #fff1f4; color: var(--accent); }
.product-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.product-card > p { color: var(--text-soft); margin-bottom: 1.1rem; }
.product-points {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.product-points li {
    padding-left: 1.5rem; position: relative;
    font-size: 0.95rem; color: var(--text);
}
.product-points li::before {
    content: "✓"; color: var(--primary); font-weight: 700;
    position: absolute; left: 0;
}
.product-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: auto; }

/* ---------- Why section ---------- */
.why { background: linear-gradient(180deg, var(--bg) 0%, #f1f4f7 100%); }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.audience-card h3 { margin-bottom: 0.4rem; color: var(--primary); }
.audience-card p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Light button (på mørk bakgrunn) ---------- */
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef3f6; color: var(--primary-dark); box-shadow: var(--shadow-md); }
.contact-cta .btn-light { margin-left: 0.5rem; }

/* ---------- Steps (Kontraktsagent) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; counter-reset: step; }
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.step-num {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Early access (Kontraktsagent) ---------- */
.early-access { background: linear-gradient(180deg, #f1f4f7 0%, var(--bg) 100%); }
.ea-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}
.ea-text h2 { margin-bottom: 0.6rem; }
.ea-text > p { color: var(--text-soft); }
.ea-points {
    list-style: none; padding: 0; margin: 1.25rem 0 0;
    display: flex; flex-direction: column; gap: 0.55rem;
}
.ea-points li { padding-left: 1.5rem; position: relative; font-size: 0.95rem; }
.ea-points li::before { content: "✓"; color: var(--accent); font-weight: 700; position: absolute; left: 0; }
.ea-form { background: var(--primary-soft); border-radius: var(--radius-lg); padding: 1.75rem; }
.ea-fineprint { font-size: 0.82rem; color: var(--text-soft); margin: 0.85rem 0 0; }
.ea-form.sent { text-align: center; }

/* ---------- Tablet / desktop for new components ---------- */
@media (min-width: 768px) {
    .product-cards { grid-template-columns: repeat(2, 1fr); }
    .audience { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .ea-card { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
