/*
 * larsasub.eu marketing-site (F2). Alle kleuren/typografie komen uit de
 * brand-tokens (brand.css) — dit bestand doet alleen layout en compositie,
 * en is daardoor vanzelf dual-mode.
 */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Prelaunch-banner ────────────────────────────────────────────── */
.prelaunch-banner {
    background: var(--brand-gradient); color: #fff;
    text-align: center; font-size: .85rem; font-weight: 600;
    padding: .45rem 1rem;
}
/* Zelfde balk, andere boodschap: een aanbieding is geen aankondiging, dus
   niet het merkverloop maar de accentkleur die ook op de prijskaart staat. */
.offer-banner { background: var(--danger); }

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--edge);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.lockup { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.lockup:hover { text-decoration: none; }
.lockup .name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink-sub); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
    background: var(--brand-gradient); color: #fff !important;
    padding: .5rem 1.1rem; border-radius: 9px;
    font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.nav-cta:hover { opacity: .92; text-decoration: none; }
.theme-toggle {
    background: var(--surface); border: 1px solid var(--edge); color: var(--ink-sub);
    border-radius: 99px; width: 36px; height: 36px; cursor: pointer; font-size: .95rem;
    flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 5.5rem 0 4.5rem; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.release-badge {
    display: inline-block; margin-bottom: .9rem;
    background: var(--surface); border: 1px solid var(--edge); border-radius: 99px;
    padding: .25rem .8rem; font-size: .8rem; font-weight: 600; color: var(--ink-sub);
}
.release-badge:hover { color: var(--accent); text-decoration: none; border-color: var(--accent); }

.hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08;
    letter-spacing: -.02em; text-wrap: balance; margin-bottom: 1.1rem;
}
.hero h1 .grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero .sub { color: var(--ink-sub); font-size: 1.08rem; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: 10px; border: 0; cursor: pointer;
    font-family: var(--font-display); font-weight: 700; font-size: .97rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-gradient); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--edge); }
.btn-ghost:hover { border-color: var(--accent); }

/* ── Terminal card ───────────────────────────────────────────────── */
.terminal {
    background: var(--surface); border: 1px solid var(--edge); border-radius: 14px;
    overflow: hidden; box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--brand-violet) 45%, transparent);
}
.terminal-bar {
    display: flex; align-items: center; gap: .4rem;
    padding: .6rem .9rem; border-bottom: 1px solid var(--edge);
    color: var(--ink-sub); font-size: .75rem; font-family: var(--font-mono);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--edge); }
.terminal pre {
    padding: 1.1rem 1.2rem; overflow-x: auto;
    font-family: var(--font-mono); font-size: .8rem; line-height: 1.85;
    color: var(--ink);
}
/* Meer regels dan de losse codeblokken elders: 1.85 maakt de hero luchtledig. */
.hero .terminal pre { line-height: 1.6; font-size: .82rem; }
.terminal .p { color: var(--ink-sub); user-select: none; }
.terminal .c { color: var(--ink-sub); }
.terminal .a { color: var(--accent); }
.terminal .ok { color: var(--success); }

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: 4.2rem 0; }
.section-kicker {
    font-family: var(--font-display); font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
    margin-bottom: .6rem;
}
.section-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em;
    line-height: 1.2; text-wrap: balance; margin-bottom: .8rem;
}
.section-sub { color: var(--ink-sub); max-width: 38rem; }
.section-head { margin-bottom: 2.4rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ── "Ships in your app" strip ───────────────────────────────────── */
.ships { border-block: 1px solid var(--edge); background: var(--surface); }
.ships .container { padding-block: 1.7rem; }
.ships-lead { text-align: center; margin-bottom: 1.2rem; }
.ships-lead strong { font-family: var(--font-display); font-size: 1.05rem; }
.ships-lead p { color: var(--ink-sub); font-size: .9rem; max-width: 40rem; margin: .3rem auto 0; }
.ships-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.ships-grid strong {
    display: block; font-family: var(--font-display); line-height: 1.1;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--accent);
}
.ships-grid span { font-size: .82rem; color: var(--ink-sub); }
@media (max-width: 860px) { .ships-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }

/* ── Feature grid ────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
    background: var(--surface); border: 1px solid var(--edge); border-radius: 13px;
    padding: 1.5rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: .45rem; }
.card p { color: var(--ink-sub); font-size: .9rem; }
.card .glyph { color: var(--accent); margin-bottom: .8rem; }
.card .glyph svg { display: block; }

/* ── Product tour (dashboard-screenshots) ────────────────────────── */
.tour-tabs { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tour-tabs button {
    background: var(--surface); border: 1px solid var(--edge); color: var(--ink-sub);
    border-radius: 99px; padding: .45rem 1.1rem; cursor: pointer;
    font-family: var(--font-display); font-weight: 700; font-size: .88rem;
}
.tour-tabs button[aria-selected="true"] { background: var(--brand-gradient); border-color: transparent; color: #fff; }
.tour-frame {
    max-width: 900px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--edge); border-radius: 14px;
    overflow: hidden; box-shadow: 0 24px 70px -30px color-mix(in srgb, var(--brand-violet) 50%, transparent);
}
.tour-frame .shot {
    position: relative; max-height: 480px; overflow: hidden;
    /* Screenshots zijn hoger dan het venster: onderrand zacht uitfaden
       i.p.v. hard afsnijden midden in een rij. */
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.tour-frame img { display: block; width: 100%; height: auto; }
.tour-caption { text-align: center; color: var(--ink-sub); font-size: .85rem; margin-top: 1.1rem; }

/* ── Dial / licensing section ────────────────────────────────────── */
.dial-section { background: var(--surface); border-block: 1px solid var(--edge); }
.dial-wrap { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.dial-steps { list-style: none; display: flex; flex-direction: column; gap: 1.15rem; }
.dial-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.dial-steps .tick {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: .1rem;
    background: var(--brand-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: .78rem; font-weight: 700;
}
.dial-steps strong { font-family: var(--font-display); display: block; }
.dial-steps p { color: var(--ink-sub); font-size: .92rem; }

/* ── Split (code + copy) ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-top: 1.2rem; }
.checklist li { display: flex; gap: .6rem; color: var(--ink-sub); font-size: .94rem; }
.checklist .check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.checklist .miss { color: var(--warn); font-weight: 700; flex-shrink: 0; }

/* ── Pricing ─────────────────────────────────────────────────────── */
/* Flex en geen grid met een vast aantal kolommen: het aantal tiers wordt op
   /admin/products bepaald. Bij drie kaarten liet `repeat(2, …)` de derde als
   wees op een eigen rij achter, en een grid lijnt zo'n restrij links uit —
   flex-wrap centreert hem.

   De breedte is op de container gerekend: 1080px min 2×1,5rem padding = 1032px
   binnenwerk, min twee gaps van 1,2rem = 993px voor drie kaarten. Vandaar 325
   en niet de 340 van hiervoor, want daarmee paste de derde kolom net niet. */
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.price-card {
    background: var(--surface); border: 1px solid var(--edge); border-radius: 15px;
    padding: 1.9rem; display: flex; flex-direction: column; gap: 1rem; position: relative;
    flex: 1 1 270px; max-width: 325px;
}
.price-card.featured { border-color: var(--accent); }
.price-card .flag {
    position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
    background: var(--brand-gradient); color: #fff; border-radius: 99px;
    padding: .15rem .8rem; font-family: var(--font-display); font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.price-card h3 { font-family: var(--font-display); font-size: 1.15rem; }
.price-card .tagline { color: var(--ink-sub); font-size: .9rem; margin-top: -.6rem; }
/* Flex met baseline-uitlijning, want als inline-tekst brak "/ 12 months of
   updates" middenin af — en met line-height 1 op 2,6rem werd die tweede regel
   een gat van een halve kaart. Als flex-item wipt het geheel naar de volgende
   regel in plaats van de zin doormidden te knippen. */
.price-card .amount {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
    font-variant-numeric: tabular-nums; line-height: 1;
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45rem; row-gap: .3rem;
}
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--ink-sub); white-space: nowrap; }
/* De knop naar de onderkant: de bullets verschillen per tier in lengte, en
   knoppen die op drie hoogtes staan lezen als drie losse blokjes. */
.price-card .btn { justify-content: center; margin-top: auto; }
/* Doorgestreepte prijs naast de kortingsprijs. Kleiner en gedempt: hij is
   het referentiepunt, niet het bedrag dat je betaalt. */
.price-card .amount .was {
    font-size: 1.4rem; font-weight: 600; color: var(--ink-sub);
    text-decoration: line-through; margin-right: .35rem;
}
.price-card .flag-offer { background: var(--danger); }
.price-note { text-align: center; color: var(--ink-sub); font-size: .85rem; margin-top: 1.2rem; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { max-width: 44rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--edge); padding: 1rem 0; }
.faq summary { font-family: var(--font-display); font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-sub); font-size: .93rem; margin-top: .6rem; max-width: 40rem; }

/* ── CTA band ────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 5rem 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.6rem; }

/* ── Prose (legal) ───────────────────────────────────────────────── */
.prose { max-width: 44rem; margin: 0 auto; padding: 3.5rem 0 4rem; }
.prose h1 { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.015em; margin-bottom: .4rem; }
.prose .updated { color: var(--ink-sub); font-size: .85rem; margin-bottom: 2rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-sub); font-size: .96rem; }
.prose p + p { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: .6rem 0; display: flex; flex-direction: column; gap: .35rem; }
.prose strong { color: var(--ink); }

/* ── Docs ────────────────────────────────────────────────────────── */
.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; padding-bottom: 4rem; align-items: start; }
.docs-side { position: sticky; top: 88px; }
.docs-side h4 {
    font-family: var(--font-display); font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; color: var(--ink-sub);
    margin: 1.4rem 0 .5rem;
}
.docs-side h4:first-child { margin-top: 0; }
.docs-side ul { list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.docs-side a {
    display: block; padding: .35rem .6rem; border-radius: 7px;
    color: var(--ink-sub); font-size: .92rem;
}
.docs-side a:hover { color: var(--ink); text-decoration: none; background: var(--surface); }
.docs-side a.active { color: var(--accent); background: var(--surface); font-weight: 600; }

.docs-article { max-width: 46rem; }
.docs-article .docs-version { color: var(--ink-sub); font-size: .85rem; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--edge); }
.docs-article h1 { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.015em; margin-bottom: 1rem; }
.docs-article h2 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.01em; margin: 2.4rem 0 .8rem; padding-top: .5rem; }
.docs-article h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 1.8rem 0 .6rem; }
.docs-article h4 { font-family: var(--font-display); font-size: .95rem; margin: 1.4rem 0 .5rem; }
.docs-article p, .docs-article li { color: var(--ink-sub); font-size: .96rem; }
.docs-article p { margin-bottom: .8rem; }
.docs-article ul, .docs-article ol { padding-left: 1.4rem; margin: .6rem 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.docs-article strong { color: var(--ink); }
.docs-article hr { border: 0; border-top: 1px solid var(--edge); margin: 2.2rem 0; }
.docs-article blockquote {
    border-left: 3px solid var(--accent); background: var(--surface);
    border-radius: 0 9px 9px 0; padding: .8rem 1.1rem; margin: 1rem 0;
}
.docs-article blockquote p { margin-bottom: 0; }
.docs-article blockquote p + p { margin-top: .6rem; }
.docs-article code {
    font-family: var(--font-mono); font-size: .84em;
    background: var(--surface-2); border: 1px solid var(--edge);
    border-radius: 5px; padding: .1em .35em; color: var(--ink);
}
.docs-article pre {
    background: var(--surface); border: 1px solid var(--edge); border-radius: 11px;
    padding: 1rem 1.2rem; overflow-x: auto; margin: 1rem 0 1.4rem;
    line-height: 1.7;
}
.docs-article pre code { background: none; border: 0; padding: 0; font-size: .82rem; color: var(--ink); }
.docs-article table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: .9rem; display: block; overflow-x: auto; }
.docs-article th, .docs-article td { border: 1px solid var(--edge); padding: .5rem .8rem; text-align: left; color: var(--ink-sub); }
.docs-article th { background: var(--surface); color: var(--ink); font-family: var(--font-display); font-size: .85rem; }
.docs-article .heading-permalink {
    opacity: 0; margin-left: .35rem; font-size: .8em; text-decoration: none;
}
.docs-article h1:hover .heading-permalink, .docs-article h2:hover .heading-permalink,
.docs-article h3:hover .heading-permalink, .docs-article h4:hover .heading-permalink { opacity: 1; }
.docs-article :is(h1, h2, h3, h4) { scroll-margin-top: 84px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--edge); padding: 2.8rem 0; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-sub); margin-bottom: .7rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { color: var(--ink-sub); font-size: .9rem; }
.footer-col a:hover { color: var(--ink); }
.footer-meta { color: var(--ink-sub); font-size: .82rem; margin-top: 2rem; }
/* Wettelijke identificatie (art. 3:15d BW): moet vindbaar zijn, niet luid. */
.footer-legal { color: var(--ink-sub); font-size: .76rem; margin-top: .35rem; opacity: .85; }
.prose .identification { color: var(--ink-sub); font-size: .88rem; border-left: 2px solid var(--edge); padding-left: .9rem; }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .hero .container, .split, .dial-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .docs-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .docs-side { position: static; }
    .grid-3 { grid-template-columns: 1fr; }
    /* Eén kaart per rij, iets breder dan op desktop: er staat niets naast.
       Met flex-direction en niet met flex-basis: 100%, want flex breekt af op
       de hypothetische maat — dat is flex-basis geknipt door max-width, dus
       380px, en dan passen er op 860px alsnog twee naast elkaar.

       In een kolom gaat de hoofdas staan: flex-basis en flex-grow uit de
       basisregel slaan dan op de hóógte, vandaar flex:0 0 auto, en het
       horizontaal centreren gaat van justify-content naar align-items. */
    .pricing-grid { flex-direction: column; align-items: center; }
    .price-card { flex: 0 0 auto; width: 100%; max-width: 380px; }
    /* Mobiel: secundaire links naar de footer; Pricing/Docs blijven staan. */
    .nav-links a.nav-secondary { display: none; }
    .nav-links { gap: .9rem; }
    .hero { padding: 3.2rem 0 3rem; }
    section { padding: 3rem 0; }
    .dial-wrap > svg, .dial-hero { margin: 0 auto; }
}
