/* danadresse.dk landing v4 — Editorial Scandinavian magazine
 * Distinct from competitor (orange-only Inter SaaS): we use serif-italic display +
 * asymmetric grid + constellation background + Scandi-cream + coral+blue duotone.
 * Розробник: LynBro ApS · lynbro.dk
 */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Newsreader:opsz,ital,wght@6..72,0,400;6..72,0,500;6..72,0,600;6..72,1,400;6..72,1,500;6..72,1,600&family=JetBrains+Mono:wght@400;500&display=swap');
@import './tokens.css';

/* ============================================================ */
/* RESET & FOUNDATIONS                                          */
/* ============================================================ */

* { box-sizing: border-box; }
*, *::before, *::after { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;

    /* Editorial: paper-grain noise overlay */
    background-image:
        radial-gradient(ellipse 90% 50% at 80% 0%, var(--accent-blue-soft) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 100%, var(--accent-coral-soft) 0%, transparent 55%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    mix-blend-mode: multiply;
}

main, .nav, .footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ============================================================ */
/* NAV                                                          */
/* ============================================================ */

.nav-v4 {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    background: rgba(250, 247, 242, 0.78);
    border-bottom: 1px solid rgba(229, 224, 213, 0.5);
}
.nav-v4__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex; align-items: center; gap: 40px;
}
.nav-v4__brand { display: flex; align-items: center; gap: 12px; }
.nav-v4__brand img { height: 30px; }
.nav-v4__links {
    display: flex; gap: 28px;
    font-size: 14px; font-weight: 400;
    color: var(--fg-muted);
    margin-left: auto;
}
@media (max-width: 880px) { .nav-v4__links { display: none; } }
.nav-v4__links a { transition: color 180ms; }
.nav-v4__links a:hover { color: var(--fg); }
.nav-v4__cta { display: flex; gap: 10px; align-items: center; }

.btn-v4 {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font: 500 14px var(--font-sans);
    letter-spacing: 0.003em;
    transition: all 180ms var(--ease-out);
    line-height: 1;
    white-space: nowrap;
}
.btn-v4--primary {
    background: var(--brand-ink);
    color: var(--brand-paper);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.12);
}
.btn-v4--primary:hover {
    background: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-blue-glow);
}
.btn-v4--ghost {
    color: var(--fg);
    border: 1px solid var(--border);
    background: transparent;
}
.btn-v4--ghost:hover { border-color: var(--brand-ink); background: rgba(255,254,251,0.6); }
.btn-v4--lg { padding: 16px 28px; font-size: 16px; }
.btn-v4--coral {
    background: var(--accent-coral);
    color: white;
    box-shadow: 0 6px 18px var(--accent-coral-glow);
}
.btn-v4--coral:hover {
    background: #ff5555;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px var(--accent-coral-glow);
}

/* ============================================================ */
/* SHARED                                                       */
/* ============================================================ */

.container-v4 {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}
.kicker-v4 {
    display: inline-block;
    font: 500 12px/1 var(--font-sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-coral);
    margin-bottom: 20px;
}
.title-v4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: var(--fg);
}
.title-v4 em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-blue);
}
.lead-v4 {
    font-size: 19px;
    line-height: 1.55;
    color: var(--fg-muted);
    max-width: 580px;
}

/* ============================================================ */
/* HERO                                                         */
/* ============================================================ */

.hero-v4 {
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero-v4__pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    font-size: 13px; color: var(--fg-muted);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.hero-v4__pill-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-coral);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 11px/1 var(--font-mono);
    box-shadow: 0 0 0 4px var(--accent-coral-soft);
}
.hero-v4__pill strong { color: var(--fg); font-weight: 500; }
.hero-v4__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 28px;
    max-width: 900px;
}
.hero-v4__title em {
    font-style: italic;
    background: linear-gradient(110deg, var(--accent-blue) 0%, var(--accent-coral) 80%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    padding-right: 0.04em;
}
.hero-v4__sub {
    font-size: 20px;
    line-height: 1.55;
    color: var(--fg-muted);
    max-width: 580px;
    margin-bottom: 40px;
}
.hero-v4__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-v4__trust {
    display: flex; gap: 28px; flex-wrap: wrap;
    font-size: 13px; color: var(--fg-muted);
    align-items: center;
}
.hero-v4__trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-v4__trust-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-coral);
}

/* Animated number marquee */
.hero-v4__stats {
    position: absolute;
    top: 50%; right: -50px;
    transform: translateY(-50%) rotate(2deg);
    display: grid; gap: 32px;
    pointer-events: none;
    opacity: 0.65;
}
@media (max-width: 1200px) { .hero-v4__stats { display: none; } }
.hero-v4__stat-card {
    background: var(--bg-elevated);
    padding: 20px 28px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: center;
    transform: rotate(-2deg);
}
.hero-v4__stat-num {
    font: 500 32px/1 var(--font-display);
    letter-spacing: -0.025em;
    color: var(--fg);
    display: block;
}
.hero-v4__stat-num em { color: var(--accent-blue); font-style: italic; }
.hero-v4__stat-label { font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================ */
/* INTEGRATIONS STRIP                                           */
/* ============================================================ */

.integrations-v4 {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-elevated);
}
.integrations-v4__inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
}
.integrations-v4__label {
    font: 500 12px var(--font-sans);
    color: var(--fg-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.integrations-v4__list { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.integration-pill {
    font: 500 14px var(--font-sans);
    color: var(--fg);
    opacity: 0.65;
    transition: opacity 200ms;
    display: inline-flex; align-items: center; gap: 8px;
}
.integration-pill:hover { opacity: 1; }
.integration-pill svg { width: 18px; height: 18px; }

/* ============================================================ */
/* SECTIONS                                                     */
/* ============================================================ */

.section-v4 { padding: 120px 0; position: relative; }
.section-v4__head { max-width: 720px; margin-bottom: 64px; }
.section-v4__head--center { margin: 0 auto 64px; text-align: center; }
.section-v4__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 18px;
}
.section-v4__title em {
    font-style: italic;
    color: var(--accent-blue);
}

/* ============================================================ */
/* CODE TABS                                                    */
/* ============================================================ */

.code-section { background: linear-gradient(180deg, transparent 0%, var(--bg-subtle) 50%, transparent 100%); }

.tabs-v4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}
@media (max-width: 900px) { .tabs-v4 { grid-template-columns: 1fr; gap: 24px; } }

.tabs-v4__bar {
    grid-column: 1 / -1;
    display: flex; gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 8px;
}
.tabs-v4__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font: 500 14px var(--font-sans);
    color: var(--fg-muted);
    transition: all 180ms;
    background: transparent;
}
.tabs-v4__btn:hover { color: var(--fg); background: var(--bg-elevated); }
.tabs-v4__btn.is-active {
    color: var(--fg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.tabs-v4__btn svg { width: 18px; height: 18px; }
.tabs-v4__btn.is-active svg { color: var(--accent-coral); }

.tabs-v4__pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    grid-column: 1 / -1;
}
.tabs-v4__pane.is-active { display: grid; }
@media (max-width: 900px) { .tabs-v4__pane.is-active { grid-template-columns: 1fr; } }

.tab-v4__feature {
    padding: 16px 0;
}
.tab-v4__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-coral-soft);
    color: var(--accent-coral);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.tab-v4__title {
    font: 500 28px/1.15 var(--font-display);
    letter-spacing: -0.03em;
    color: var(--fg);
    margin-bottom: 14px;
    max-width: 380px;
}
.tab-v4__title em { font-style: italic; color: var(--accent-blue); }
.tab-v4__desc {
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 420px;
}
.tab-v4__bullets { list-style: none; padding: 0; display: grid; gap: 8px; }
.tab-v4__bullets li {
    font-size: 14px;
    color: var(--fg);
    padding-left: 18px;
    position: relative;
}
.tab-v4__bullets li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px;
    background: var(--accent-coral);
    border-radius: 50%;
}
.tab-v4__link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 24px;
    color: var(--accent-blue);
    font: 500 14px var(--font-sans);
    border-bottom: 1px solid var(--accent-blue-soft);
    padding-bottom: 2px;
    transition: border-color 180ms;
}
.tab-v4__link:hover { border-color: var(--accent-blue); }

.tab-v4__code-stack { display: grid; gap: 12px; }
.code-card {
    background: var(--brand-ink);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(10, 22, 40, 0.18);
}
.code-card__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #B7C0CC;
    font: 500 12px var(--font-mono);
    letter-spacing: 0.04em;
}
.code-card__lang { color: var(--accent-coral); font-weight: 500; }
.code-card__body {
    padding: 20px 22px;
    color: #E8EDF5;
    font: 400 13.5px/1.7 var(--font-mono);
    overflow-x: auto;
}
.tok-k { color: #8FB6FF; }       /* keyword */
.tok-s { color: #4FD1A8; }       /* string */
.tok-c { color: #6B7794; font-style: italic; } /* comment */
.tok-n { color: #F5B860; }       /* number */
.tok-p { color: #B7C0CC; }       /* punct */
.tok-f { color: #C5A9FF; }       /* function */

/* ============================================================ */
/* PRICING                                                      */
/* ============================================================ */

.pricing-v4__toggle {
    display: inline-flex; gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 8px;
}
.pricing-v4__toggle button {
    padding: 8px 24px;
    border-radius: 999px;
    font: 500 14px var(--font-sans);
    color: var(--fg-muted);
    transition: all 200ms;
}
.pricing-v4__toggle button.is-active {
    background: var(--brand-ink);
    color: white;
}
.pricing-v4__hint {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent-coral);
    font: 500 13px var(--font-sans);
    margin-bottom: 48px;
}

.pricing-v4__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 1100px) { .pricing-v4__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-v4__grid { grid-template-columns: 1fr; } }

.plan-v4 {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 26px;
    display: flex; flex-direction: column; gap: 18px;
    position: relative;
    transition: all 280ms var(--ease-out);
}
.plan-v4:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.10);
}
.plan-v4--featured {
    background: var(--brand-ink);
    color: var(--brand-paper);
    border-color: var(--brand-ink);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.20);
    transform: translateY(-8px);
}
.plan-v4--featured:hover { transform: translateY(-12px); }
.plan-v4__badge {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent-coral);
    color: white;
    font: 500 11px var(--font-sans);
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 6px 16px var(--accent-coral-glow);
}
.plan-v4__name {
    font: 500 20px var(--font-display);
    letter-spacing: -0.02em;
}
.plan-v4__desc {
    font-size: 13.5px;
    color: var(--fg-muted);
    line-height: 1.5;
    min-height: 38px;
}
.plan-v4--featured .plan-v4__desc { color: rgba(255,255,255,0.65); }

.plan-v4__price {
    display: flex; align-items: baseline; gap: 6px;
    margin: 8px 0 12px;
}
.plan-v4__price-num {
    font: 500 44px/1 var(--font-display);
    letter-spacing: -0.04em;
}
.plan-v4__price-per {
    font-size: 13px;
    color: var(--fg-muted);
}
.plan-v4--featured .plan-v4__price-per { color: rgba(255,255,255,0.55); }
.plan-v4__price-old {
    color: var(--fg-muted);
    font-size: 13px;
    text-decoration: line-through;
}

.plan-v4__features { list-style: none; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan-v4__features li {
    font-size: 14px;
    padding-left: 26px;
    position: relative;
    color: var(--fg);
    line-height: 1.4;
}
.plan-v4--featured .plan-v4__features li { color: rgba(255,255,255,0.92); }
.plan-v4__features li::before {
    content: "";
    position: absolute; left: 0; top: 1px;
    width: 18px; height: 18px;
    background: var(--accent-coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' stroke='%23FF6B6B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
    border-radius: 50%;
}
.plan-v4--featured .plan-v4__features li::before {
    background-color: rgba(255, 107, 107, 0.20);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' stroke='%23FF8888' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.plan-v4__cta { margin-top: 8px; width: 100%; justify-content: center; }
.plan-v4--featured .plan-v4__cta {
    background: white; color: var(--brand-ink);
}
.plan-v4--featured .plan-v4__cta:hover { background: var(--accent-coral); color: white; }
.plan-v4__details {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--fg-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.plan-v4--featured .plan-v4__details {
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.10);
}

/* ============================================================ */
/* FAQ                                                          */
/* ============================================================ */

.faq-v4 { max-width: 760px; margin: 0 auto; }
.faq-v4__item {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.faq-v4__item summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    padding: 20px 0;
    font: 500 19px var(--font-display);
    letter-spacing: -0.02em;
    color: var(--fg);
}
.faq-v4__item summary::-webkit-details-marker { display: none; }
.faq-v4__chev {
    width: 28px; height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--fg-muted);
    transition: transform 280ms, color 200ms, background 200ms;
}
.faq-v4__item[open] .faq-v4__chev {
    transform: rotate(180deg);
    background: var(--accent-coral-soft);
    color: var(--accent-coral);
}
.faq-v4__item p {
    color: var(--fg-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 640px;
}
.faq-v4__item p code {
    background: var(--bg-subtle);
    padding: 2px 6px; border-radius: 4px;
    font: 500 12.5px var(--font-mono);
    color: var(--accent-blue);
}

/* ============================================================ */
/* CTA з constellation background                               */
/* ============================================================ */

.cta-v4 {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.cta-v4__bg {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0.4;
}
.cta-v4__inner {
    text-align: center;
    position: relative; z-index: 2;
}
.cta-v4__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.0;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 16px;
}
.cta-v4__title em { font-style: italic; color: var(--accent-coral); }
.cta-v4__lead {
    font-size: 18px;
    color: var(--fg-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto; margin-right: auto;
    line-height: 1.55;
}
.cta-v4__buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-v4__trust {
    display: inline-flex; gap: 24px; flex-wrap: wrap; justify-content: center;
    margin-top: 24px;
    font-size: 13px; color: var(--fg-muted);
}
.cta-v4__trust span {
    display: inline-flex; align-items: center; gap: 6px;
}
.cta-v4__trust span::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-coral);
}

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */

.footer-v4 {
    border-top: 1px solid var(--border);
    padding: 56px 0 40px;
    background: var(--bg-elevated);
}
.footer-v4__inner {
    display: grid; grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-v4__inner { grid-template-columns: 1fr 1fr; } }
.footer-v4__brand { display: flex; flex-direction: column; gap: 16px; }
.footer-v4__brand img { height: 28px; align-self: flex-start; }
.footer-v4__brand p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; max-width: 280px; }
.footer-v4__col h4 {
    font: 500 12px var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg);
    margin-bottom: 16px;
}
.footer-v4__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-v4__col a {
    font-size: 13.5px; color: var(--fg-muted);
    transition: color 180ms;
}
.footer-v4__col a:hover { color: var(--fg); }
.footer-v4__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; color: var(--fg-muted);
    flex-wrap: wrap; gap: 16px;
}

/* ============================================================ */
/* Animations: reveal on scroll                                 */
/* ============================================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
