/* ==========================================================================
   MilePro — site.css
   Marketing site redesign. Single blue family, Space Grotesk / Inter / mono.
   Signature: the "kørebog ledger" — route line, pins, AI classification chips.
   NOTE: class names read by /js/main.js are kept verbatim (mobile menu, FAQ,
   pricing toggle, calculator). Do not rename them.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
    --ink-950: #071726;
    --ink-900: #0A2540;
    --ink-850: #0E2E4C;
    --ink-800: #123A5C;
    --ink-700: #1B5384;

    --accent: #2196F3;
    --accent-600: #1976D2;
    --accent-700: #1565C0;
    --accent-300: #64B5F6;
    --teal: #26A69A;

    --paper: #FFFFFF;
    --paper-2: #F4F8FC;
    --paper-3: #E9F1F9;
    --line: #DBE6F1;
    --line-dark: rgba(255, 255, 255, 0.10);

    --ink-text: #0F1E2E;
    --muted: #566677;
    --on-dark: #EAF2FB;
    --on-dark-muted: rgba(213, 228, 244, 0.68);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 4px 16px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 12px 40px rgba(10, 37, 64, 0.12);
    --shadow-lg: 0 30px 80px rgba(7, 23, 38, 0.30);

    --container: 1200px;
    --pad: clamp(1.25rem, 4vw, 2rem);
    --section-y: clamp(4.5rem, 9vw, 8rem);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink-text);
    background: var(--paper);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* ---- Typography helpers -------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    /* accent-600 on the tinted section background was 4.31:1 — below the 4.5:1 WCAG AA
       floor for this size. accent-700 measures 5.38:1 on tint, 5.75:1 on white. */
    color: var(--accent-700);
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
.on-dark .eyebrow, .sec-dark .eyebrow { color: var(--accent-300); }

.section-head { max-width: 620px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.sec-dark .section-head p { color: var(--on-dark-muted); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
    padding: 0.8rem 1.4rem; border-radius: 999px;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* White on --accent was 3.12:1. Stepping the fill one stop down the same blue ramp to
   accent-600 gives 4.60:1 (WCAG AA), with hover moving to accent-700. */
.btn-primary { background: var(--accent-600); color: #fff; box-shadow: 0 8px 24px rgba(25, 118, 210, 0.32); }
.btn-primary:hover { background: var(--accent-700); box-shadow: 0 10px 28px rgba(21, 101, 192, 0.4); }

/* Legacy alias, currently unused by any page. Kept in step with .btn-primary so it cannot
   reintroduce the 3.12:1 white-on-accent contrast failure if something starts using it. */
.btn-gradient { background: var(--accent-600); color: #fff; box-shadow: 0 8px 24px rgba(25, 118, 210, 0.32); }
.btn-gradient:hover { background: var(--accent-700); }

.btn-secondary { background: transparent; color: var(--ink-text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-600); background: var(--paper-2); }
.on-dark .btn-secondary, .sec-dark .btn-secondary,
.hero-home .btn-secondary, .page-hero .btn-secondary, .closing .btn-secondary {
    color: var(--on-dark); border-color: rgba(255,255,255,0.28);
}
.on-dark .btn-secondary:hover, .sec-dark .btn-secondary:hover,
.hero-home .btn-secondary:hover, .page-hero .btn-secondary:hover, .closing .btn-secondary:hover {
    border-color: var(--accent-300); color: #fff; background: rgba(255,255,255,0.06);
}

.btn-ghost { background: transparent; color: inherit; padding-inline: 1rem; }
.btn-ghost:hover { color: var(--accent-300); }

.btn-white { background: #fff; color: var(--ink-900); }
.btn-white:hover { background: var(--paper-3); }

.btn-large { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* ---- Header -------------------------------------------------------------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 23, 40, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line-dark);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.header.scrolled { background: rgba(6, 19, 33, 0.92); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
/* Text wordmark — replaces the icon+wordmark PNG, which turned to muddy line-art when
   inverted to white at small sizes. Crisp at any size; "Pro" carries the accent. */
.logo {
    display: inline-flex; align-items: baseline;
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1;
    color: #fff;
}
.logo span { color: var(--accent-300); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; }
.nav-links a {
    position: relative; display: flex; align-items: center;
    color: var(--on-dark-muted); font-size: 0.94rem; font-weight: 500;
    padding: 0.5rem 0.85rem; border-radius: 8px; transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
    content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
    height: 2px; width: 18px;
    background: var(--accent); border-radius: 2px;
}
@media (min-width: 761px) {
    .nav-cta .btn { padding: 0.55rem 1.15rem; font-size: 0.9rem; }
}
.nav-cta { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav-cta .btn-ghost, .nav-cta .btn-secondary { color: var(--on-dark); border-color: rgba(255,255,255,0.22); }
.nav-cta .btn-ghost:hover { color: var(--accent-300); }

.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; margin-left: auto;
}
.mobile-menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Sections shells ----------------------------------------------------- */
section { position: relative; }
.sec { padding-block: var(--section-y); }
.sec-slim { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.sec-light { background: var(--paper); color: var(--ink-text); }
.sec-tint { background: var(--paper-2); color: var(--ink-text); border-block: 1px solid var(--line); }
.sec-dark {
    background: var(--ink-900); color: var(--on-dark);
    background-image: radial-gradient(120% 90% at 85% -10%, rgba(33,150,243,0.16), transparent 60%);
}
.sec-dark h1, .sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark p { color: var(--on-dark-muted); }

/* ---- Hero (home) --------------------------------------------------------- */
.hero-home {
    position: relative; color: var(--on-dark);
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    background: var(--ink-950);
}
.hero-home::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: url("/images/hero-van-dusk.jpg");
    background-size: cover; background-position: center 40%;
    opacity: 0.5;
}
.hero-home::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(90% 70% at 20% 15%, rgba(10,37,64,0.55), transparent 65%),
        linear-gradient(180deg, rgba(7,23,38,0.55) 0%, rgba(7,23,38,0.82) 55%, var(--ink-950) 100%),
        linear-gradient(90deg, rgba(7,23,38,0.9) 0%, rgba(7,23,38,0.35) 60%, rgba(7,23,38,0.7) 100%);
}
.hero-home .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero-text .eyebrow { color: var(--accent-300); }
.hero-text h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.15rem);
    margin: 1.1rem 0 1.3rem;
    color: #fff;
}
.hero-text h1 .accent { color: var(--accent-300); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--on-dark-muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1rem; }
.hero-note { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-dark-muted); letter-spacing: 0.02em; }
.hero-note svg { width: 15px; height: 15px; color: var(--teal); }

/* animated entrance */
@media (prefers-reduced-motion: no-preference) {
    .hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
    .hero-text .eyebrow { animation-delay: 0.05s; }
    .hero-text h1 { animation-delay: 0.13s; }
    .hero-lead { animation-delay: 0.22s; }
    .hero-actions { animation-delay: 0.3s; }
    .hero-note { animation-delay: 0.38s; }
    .ledger { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---- Signature: kørebog ledger card ------------------------------------- */
.ledger {
    background: rgba(12, 30, 50, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}
.ledger-top { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0.5rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ledger-title { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 0.98rem; }
.ledger-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(38,166,154,0.2); }
.ledger-day { font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-muted); letter-spacing: 0.05em; }

.trip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; padding: 0.85rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.trip:last-child { border-bottom: 0; }
.trip-route-vis { position: relative; width: 14px; align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.trip-route-vis .pin { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid var(--accent-300); }
.trip-route-vis .pin.end { border-color: var(--teal); }
.trip-route-vis .line { flex: 1; width: 2px; background: linear-gradient(var(--accent-300), var(--teal)); opacity: 0.5; margin: 2px 0; border-radius: 2px; }
.trip-info { min-width: 0; }
.trip-info .r { color: #fff; font-weight: 500; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-info .m { font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-dark-muted); margin-top: 2px; }
.chip {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    padding: 0.28rem 0.6rem; border-radius: 999px; letter-spacing: 0.04em; white-space: nowrap;
}
.chip-work { color: var(--accent-300); background: rgba(33,150,243,0.16); border: 1px solid rgba(33,150,243,0.35); }
.chip-private { color: #6fe3d6; background: rgba(38,166,154,0.14); border: 1px solid rgba(38,166,154,0.35); }
.ledger-foot { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0.5rem 0.25rem; margin-top: 0.2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.ledger-foot .lbl { font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-muted); }
.ledger-foot .val { font-family: var(--font-mono); font-weight: 600; color: #fff; }

/* ---- Signature: live fleet card (hero) ----------------------------------- */
.veh { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; padding: 0.8rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.veh:last-of-type { border-bottom: 0; }
.veh-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(33,150,243,0.14); border: 1px solid rgba(33,150,243,0.3); color: var(--accent-300); }
.veh-ico svg { width: 18px; height: 18px; }
.veh-info { min-width: 0; }
.veh-info .r { color: #fff; font-weight: 500; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh-info .m { font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-dark-muted); margin-top: 2px; }
.chip-live { color: #6fe3d6; background: rgba(38,166,154,0.16); border: 1px solid rgba(38,166,154,0.4); }
.chip-idle { color: var(--on-dark-muted); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); }

/* ---- Stat strip ---------------------------------------------------------- */
.stat-strip { background: var(--ink-950); border-top: 1px solid var(--line-dark); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 1.6rem 1rem; text-align: center; border-left: 1px solid var(--line-dark); }
.stat-cell:first-child { border-left: 0; }
.stat-cell .n { font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.stat-cell .n span { color: var(--accent-300); }
.stat-cell .l { font-size: 0.82rem; color: var(--on-dark-muted); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Logo strip ---------------------------------------------------------- */
.logostrip { background: var(--paper); border-bottom: 1px solid var(--line); }
.logostrip .container { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.logostrip .kicker { text-align: center; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem 1rem; align-items: center; }
.logo-row img {
    /* A fixed height fought max-width in narrow grid cells and squashed the wider marks
       (Bygma, Davidsen). Capping both axes instead lets each logo scale down proportionally. */
    height: auto; max-height: 30px; width: auto; max-width: 100%;
    margin-inline: auto; object-fit: contain;
    filter: grayscale(1); opacity: 0.55;
    transition: filter 0.25s, opacity 0.25s;
}
.logo-row a:hover img, .logo-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---- Problem / Solution -------------------------------------------------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.ps-card { border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); }
.ps-card.problem { background: var(--paper-2); border: 1px solid var(--line); }
.ps-card.solution { background: var(--ink-900); color: var(--on-dark); background-image: radial-gradient(120% 100% at 100% 0%, rgba(33,150,243,0.2), transparent 60%); }
.ps-card h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0.9rem 0 1.4rem; }
.ps-card.solution h2 { color: #fff; }
.ps-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ps-card.problem .ps-tag { color: var(--muted); }
.ps-card.solution .ps-tag { color: var(--accent-300); }
.ps-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; font-size: 1rem; }
.ps-card.solution .ps-list li { color: var(--on-dark); }
.ps-list svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.ico-x { color: #c2ccd6; }
.ico-check { color: var(--teal); }

/* ---- Feature grid -------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feat {
    grid-column: span 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius); padding: 1.6rem;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.feat:hover { border-color: rgba(100,181,246,0.4); transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.feat.wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.feat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(33,150,243,0.14); border: 1px solid rgba(33,150,243,0.3); color: var(--accent-300); margin-bottom: 1.1rem; }
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.18rem; color: #fff; margin-bottom: 0.5rem; }
.feat p { font-size: 0.95rem; color: var(--on-dark-muted); }

.feat-demo { background: rgba(7,23,38,0.6); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.9rem; }
.feat-demo .row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.35rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.feat-demo .row:last-child { border-bottom: 0; }
.feat-demo .row span:first-child { font-size: 0.85rem; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- How it works -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.step {
    position: relative; padding: 1.75rem; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.step .num {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
    color: var(--accent-600);
    display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.step .num::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---- Split (image + content) -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media.frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); aspect-ratio: 4 / 3.2; }
.split-media.frame img { height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0.9rem 0 1.2rem; }
.split .lead { font-size: 1.08rem; margin-bottom: 1.5rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.5rem 0; }
.check-list svg { flex: 0 0 auto; width: 21px; height: 21px; color: var(--teal); margin-top: 2px; }
.split .btn { margin-top: 1.5rem; }

/* quote card */
.quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); }
.sec-dark .quote-card { background: rgba(255,255,255,0.04); border-color: var(--line-dark); }
.quote-card .q { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-text); }
.sec-dark .quote-card .q { color: #fff; }
.quote-card .q::before { content: "\201C"; color: var(--accent-300); }
.quote-author { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #fff; font-family: var(--font-display); font-weight: 600; }
.quote-author .name { font-weight: 600; }
.sec-dark .quote-author .name { color: #fff; }
.quote-author .role { font-size: 0.85rem; color: var(--muted); }
.sec-dark .quote-author .role { color: var(--on-dark-muted); }

/* ---- Pricing preview band ------------------------------------------------ */
.pp-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--ink-900); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); background-image: radial-gradient(100% 120% at 100% 0%, rgba(33,150,243,0.18), transparent 55%); }
.pp-card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.7rem 0 0.8rem; }
.pp-card > div > p { color: var(--on-dark-muted); }
.pp-prices { display: flex; gap: 1rem; flex-wrap: wrap; }
.pp-price { flex: 1; min-width: 150px; background: rgba(7,23,38,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.3rem; text-align: center; }
.pp-price.featured { border-color: rgba(33,150,243,0.5); background: rgba(33,150,243,0.1); }
.pp-price .amt { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: #fff; }
.pp-price .per { font-family: var(--font-mono); font-size: 0.8rem; color: var(--on-dark-muted); }
.pp-price .plan { display: block; margin-top: 0.4rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-300); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-wrap { max-width: 800px; margin-inline: auto; display: grid; gap: 0.85rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item.active { border-color: rgba(33,150,243,0.45); box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; background: none; border: 0; }
.faq-chevron { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent-600); transition: transform 0.25s ease; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 340px; }
.faq-answer p { padding: 0 1.35rem 1.3rem; color: var(--muted); }

/* ---- Closing statement --------------------------------------------------- */
.closing { position: relative; overflow: hidden; color: var(--on-dark); text-align: center; background: var(--ink-950); }
.closing::before { content: ""; position: absolute; inset: 0; background-image: url("/images/open-road-dusk.jpg"); background-size: cover; background-position: center; opacity: 0.42; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,23,38,0.75), rgba(7,23,38,0.9)); }
.closing .container { position: relative; z-index: 2; padding-block: clamp(5rem, 11vw, 9rem); max-width: 780px; }
.closing h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.closing h2 .accent { color: var(--accent-300); }
.closing p { color: var(--on-dark-muted); font-size: 1.15rem; margin: 1.3rem auto 2rem; max-width: 52ch; }

/* ---- Simple page hero (interior pages) ---------------------------------- */
.page-hero { position: relative; color: var(--on-dark); overflow: hidden; background: var(--ink-950); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.4; background-size: cover; background-position: center; }
.page-hero.with-road::before { background-image: url("/images/drive-dusk.jpg"); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,23,38,0.72) 0%, rgba(7,23,38,0.9) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 7rem); max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 1rem 0 1.1rem; }
.page-hero .lead { color: var(--on-dark-muted); font-size: 1.2rem; max-width: 44ch; }
.page-hero .hero-actions { margin-top: 1.9rem; }

/* ---- AI feature cards (light) -------------------------------------------- */
.aicard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.aicard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.aicard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(33,150,243,0.35); }
.aicard.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: var(--ink-900); color: var(--on-dark); border-color: var(--line-dark); background-image: radial-gradient(110% 120% at 100% 0%, rgba(33,150,243,0.2), transparent 55%); }
.aicard.feature h3 { color: #fff; }
.aicard.feature p { color: var(--on-dark-muted); }
.ai-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(33,150,243,0.12); border: 1px solid rgba(33,150,243,0.28); color: var(--accent-600); margin-bottom: 1.2rem; }
.aicard.feature .ai-ico { background: rgba(33,150,243,0.18); border-color: rgba(33,150,243,0.4); color: var(--accent-300); }
.ai-ico svg { width: 26px; height: 26px; }
.aicard h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.aicard p { color: var(--muted); }

/* signal list inside AI feature card */
.signal { background: rgba(7,23,38,0.55); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 1rem; }
.signal .row { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.signal .row:last-child { border-bottom: 0; }
.signal .row > span:first-child { color: var(--on-dark); font-size: 0.9rem; }
.signal .bar { width: 90px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.signal .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-300)); border-radius: 3px; }

/* ---- Analyse list (AI page) --------------------------------------------- */
.analyse { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.analyse-list li { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.analyse-list li:last-child { border-bottom: 0; }
.analyse-list .k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-600); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.5rem; }

/* timeline (AI learns) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tl { padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.tl .num { font-family: var(--font-mono); color: var(--accent-300); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; }
.tl h3 { color: #fff; font-size: 1.1rem; margin: 0.8rem 0 0.4rem; }
.tl p { font-size: 0.92rem; color: var(--on-dark-muted); }

/* ---- Pricing page -------------------------------------------------------- */
.pricing-toggle { display: inline-flex; padding: 5px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.pricing-wrap { display: flex; justify-content: center; }
.toggle-option { border: 0; background: none; padding: 0.6rem 1.4rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted); transition: color 0.2s, background 0.2s; }
.toggle-option.active { background: #fff; color: var(--accent-600); box-shadow: var(--shadow-sm); }

.pricing-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.pricing-company.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
.pricing-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 20px 50px rgba(33,150,243,0.18); }
.pricing-card h2 { font-size: 1.35rem; }
.pricing-card .badge { position: absolute; top: -12px; left: 2rem; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.32rem 0.7rem; border-radius: 999px; }
.pricing-card .price { margin: 1rem 0 0.3rem; color: var(--ink-text); font-weight: 500; }
.pricing-card .price .amount { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; }
.price-subtitle { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.5rem; }
.pricing-features { margin: 1.3rem 0 1.6rem; display: grid; gap: 0.65rem; }
.pricing-features li { position: relative; padding-left: 1.7rem; color: var(--ink-text); font-size: 0.96rem; }
.pricing-features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.pricing-features li.coming-soon { color: var(--muted); }
.pricing-features li.coming-soon::after { content: " (kommer snart)"; font-size: 0.78rem; }
.pricing-card .btn { margin-top: auto; }

/* calculator */
.price-calculator { display: grid; gap: 0.6rem; margin: 0.5rem 0 1.2rem; padding: 1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.calculator-row { display: flex; align-items: center; justify-content: space-between; }
.calculator-row label { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--ink-text); }
.calculator-input { display: inline-flex; align-items: center; gap: 0.3rem; }
.calc-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; line-height: 1; color: var(--accent-600); display: grid; place-items: center; transition: border-color 0.15s, background 0.15s; }
.calc-btn:hover { border-color: var(--accent); background: var(--paper-3); }
.calculator-input input { width: 46px; text-align: center; font-family: var(--font-mono); font-size: 0.95rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 8px; -moz-appearance: textfield; }
.calculator-input input::-webkit-outer-spin-button, .calculator-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* hardware */
.hardware-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.hardware-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.hardware-card.featured { border-color: var(--accent); }
.hardware-card .badge { position: absolute; top: -12px; left: 1.75rem; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; }
.hardware-type { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 0.5rem; }
.hardware-card h3 { font-size: 1.35rem; }
.hardware-description { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.hardware-price { margin-bottom: 1rem; color: var(--ink-text); }
.hardware-price .amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; }
.hardware-features { display: grid; gap: 0.55rem; margin-bottom: 1.4rem; }
.hardware-features li { position: relative; padding-left: 1.6rem; font-size: 0.92rem; }
.hardware-features li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.hardware-card .btn { margin-top: auto; }
.hardware-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }

/* ---- Contact page -------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(33,150,243,0.1); border: 1px solid rgba(33,150,243,0.25); color: var(--accent-600); margin-bottom: 1.2rem; }
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.contact-card-link { font-family: var(--font-mono); font-weight: 600; color: var(--accent-600); font-size: 0.95rem; }
a.contact-card-link:hover { text-decoration: underline; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.info-item h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.info-item p, .info-item a { color: var(--ink-text); }
.info-item a:hover { color: var(--accent-600); }

.biz-band { background: var(--ink-900); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; background-image: radial-gradient(90% 130% at 50% -20%, rgba(33,150,243,0.2), transparent 55%); }
.biz-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.biz-band p { color: var(--on-dark-muted); max-width: 55ch; margin: 1rem auto 1.8rem; }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--ink-950); color: var(--on-dark-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .footer-logo { display: inline-block; margin-bottom: 1.1rem; }
/* Original horizontal logo, made white for the dark footer and scaled to fit. Height/inline
   filter are also on the <img> so it stays sized + light even if this stylesheet is stale. */
.footer-brand .footer-logo img { height: 44px; width: auto; }
.footer-brand > p { max-width: 34ch; margin-bottom: 1.4rem; }
.footer-contact { display: grid; gap: 0.7rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.footer-contact-item svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent-300); }
.footer-contact-item a:hover { color: #fff; }
.footer-links h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }

/* ---- Progressive reveal (JS adds .fade-in on load, .visible on scroll) ----
   Robust: content is opacity:1 by default. The optional entrance is a pure CSS
   animation keyed on .fade-in that ALWAYS ends visible, so a missed observer
   can never leave a section blank. */
.fade-in { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .fade-in { animation: fadeUp 0.6s ease backwards; }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-text .hero-lead { max-width: none; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .feat.wide { grid-column: span 2; grid-template-columns: 1fr; }
    .aicard.feature { grid-template-columns: 1fr; }
    .hardware-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .logo-row { grid-template-columns: repeat(4, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    /* Mobile nav — header expands in flow so panels never overlap content */
    .mobile-menu-toggle { display: flex; order: 1; margin-left: auto; }
    .nav { flex-wrap: wrap; height: auto; min-height: 72px; row-gap: 0; column-gap: 0.75rem; }
    .logo { order: 0; }
    .nav-links, .nav-cta {
        order: 2; flex-basis: 100%; width: 100%;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height 0.32s ease, opacity 0.2s ease, padding 0.32s ease;
    }
    .nav-cta { order: 3; }
    .nav-links.active { max-height: 60vh; opacity: 1; padding: 0.4rem 0 0.2rem; }
    .nav-cta.active { max-height: 40vh; opacity: 1; padding: 0.6rem 0 1rem; }
    .nav-links a { padding: 0.9rem 0.25rem; font-size: 1.06rem; border-top: 1px solid var(--line-dark); border-radius: 0; }
    .nav-links a.active::after { display: none; }
    .nav-cta .btn { width: 100%; }
    .nav-cta.active .btn { margin-bottom: 0.55rem; }

    .ps-grid, .split, .analyse, .pp-card { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .feat-grid, .steps, .aicard-grid, .timeline { grid-template-columns: 1fr; }
    .feat.wide { grid-column: span 1; }
    .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-left: 0; }
    .stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-top: 1px solid var(--line-dark); }
    .contact-cards, .hardware-grid, .info-grid { grid-template-columns: 1fr; }
    .pricing-grid, .pricing-company.pricing-grid { grid-template-columns: 1fr; }
    .logo-row { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .hero-actions .btn { width: 100%; }
    .logo-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---- App screenshots: framed phone pairs + UI callout chips -------------- */
.phone-duo { position: relative; padding: 1.5rem 0; }
.phone-duo .duo-front {
    position: relative; z-index: 2; display: block;
    width: min(56%, 292px); height: auto; margin-left: 8%;
    filter: drop-shadow(0 26px 38px rgba(7, 23, 38, 0.30));
}
.phone-duo .duo-back {
    position: absolute; z-index: 1;
    width: min(50%, 260px); height: auto; right: 4%; top: 8%;
    transform: rotate(6deg);
    filter: drop-shadow(0 18px 28px rgba(7, 23, 38, 0.22));
}
.sec-dark .phone-duo .duo-front { filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.5)); }
.sec-dark .phone-duo .duo-back { filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.4)); }

.ui-chip {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #fff; color: var(--ink-900);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(7, 23, 38, 0.14);
    white-space: nowrap;
}
.ui-chip svg { width: 14px; height: 14px; color: var(--teal); }
.chip-1 { top: 11%; left: 0; color: var(--accent); }
.chip-2 { bottom: 16%; left: 3%; }
.chip-3 { top: 40%; right: 0; }

/* AI page: timeline + result phone */
.tl-wrap { display: grid; grid-template-columns: 1fr minmax(230px, 300px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tl-wrap .timeline { grid-template-columns: repeat(2, 1fr); }
.tl-phone img {
    display: block; width: 100%; max-width: 300px; height: auto; margin-inline: auto;
    filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
    .tl-wrap { grid-template-columns: 1fr; }
    .tl-phone img { max-width: 250px; }
}
@media (max-width: 760px) {
    .phone-duo { max-width: 420px; margin-inline: auto; }
    .ui-chip { font-size: 0.66rem; padding: 0.38rem 0.7rem; }
}

/* ==========================================================================
   Blog — listing + article content on the shared design system.
   Robustness contract: every inline SVG in the blog HTML carries explicit
   width/height attributes so icons hold their size even when this stylesheet
   is stale or missing (HTML ships no-cache; site.css may be cached up to 1h
   after a deploy). Keep that invariant when adding blog markup.
   ========================================================================== */

/* ---- Listing ------------------------------------------------------------- */
.blog-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    max-width: 980px; margin-inline: auto;
}
.blog-card {
    display: flex; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    padding: clamp(1.6rem, 2.6vw, 2.1rem);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-300); }
.blog-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.blog-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; width: 100%; margin-bottom: 1.1rem; }
.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent-700); background: var(--paper-3);
    padding: 0.35rem 0.7rem; border-radius: 999px;
}
.blog-card-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }
.blog-card h2 { font-size: 1.32rem; line-height: 1.22; margin: 0 0 0.7rem; }
.blog-card h2 a { color: var(--ink-text); transition: color 0.15s ease; }
.blog-card:hover h2 a { color: var(--accent-700); }
.blog-card-body > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.5rem; }
.blog-card-link {
    margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--accent-600);
}
.blog-card-link svg { width: 17px; height: 17px; transition: transform 0.18s ease; }
.blog-card:hover .blog-card-link svg { transform: translateX(4px); }

/* Featured (newest) post — the site's dark solution-card language (.aicard.feature). */
.blog-card.featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.9rem, 3.4vw, 2.75rem);
    background: var(--ink-900); color: var(--on-dark); border-color: var(--line-dark);
    background-image: radial-gradient(110% 130% at 100% 0%, rgba(33, 150, 243, 0.2), transparent 55%);
}
.blog-card.featured h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.blog-card.featured h2 a { color: #fff; }
.blog-card.featured:hover h2 a { color: var(--accent-300); }
.blog-card.featured .blog-card-body > p { color: var(--on-dark-muted); }
.blog-card.featured .blog-tag { color: var(--accent-300); background: rgba(33, 150, 243, 0.14); border: 1px solid rgba(33, 150, 243, 0.32); }
.blog-card.featured .blog-card-meta { color: var(--on-dark-muted); }
.blog-card.featured .blog-card-link { color: var(--accent-300); }
.blog-card-art { display: grid; place-items: center; }
.blog-card-art svg { width: 100%; max-width: 250px; height: auto; }

/* ---- Article ------------------------------------------------------------- */
/* Post hero: back-link doubles as the section eyebrow, meta line under the lead. */
.post-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent-300); transition: color 0.15s ease;
}
.post-back:hover { color: #fff; }
.post-back svg { width: 14px; height: 14px; }
.page-hero .post-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--on-dark-muted); letter-spacing: 0.04em; margin-top: 1.4rem; }

.blog-content {
    max-width: 72ch; margin-inline: auto;
    padding-inline: var(--pad);
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    color: var(--ink-text); font-size: 1.09rem; line-height: 1.75;
}
.blog-content > p { margin-bottom: 1.4rem; }
.blog-content h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2.6rem 0 1rem; }
.blog-content h3 { font-size: 1.26rem; margin: 2rem 0 0.75rem; }
.blog-content a { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.blog-content strong { color: var(--ink-900); }
.blog-content ul, .blog-content ol { margin: 0 0 1.4rem 1.25rem; padding: 0; }
.blog-content li { margin-bottom: 0.55rem; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }

/* ---- Callout boxes -------------------------------------------------------
   Two semantic families, aligned with the table glyphs:
   positive = teal (.pro-box, .time-saved), negative = red (.mistake-box,
   .con-box). Informational = blue (.solution-box, .highlight-box).
   All text colours ≥ 4.5:1 on their box backgrounds. */
.mistake-box, .solution-box, .tip-box, .pro-box, .con-box, .verdict-box, .highlight-box {
    border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0;
}
.mistake-box > :last-child, .solution-box > :last-child, .tip-box > :last-child,
.pro-box > :last-child, .con-box > :last-child, .verdict-box > :last-child,
.highlight-box > :last-child { margin-bottom: 0; }

.mistake-box { background: #FFF4F3; border: 1px solid #F6D4CF; border-left: 4px solid #C1352F; }
/* Each mistake is a top-level article section (h2), but sized as a box heading —
   overrides the larger .blog-content h2 rhythm (this block is appended later). */
.mistake-box h2 { margin: 0 0 0.5rem; color: #A5322E; font-size: 1.12rem; }
.mistake-box p { font-style: italic; }

.solution-box { background: #EEF6FF; border: 1px solid var(--paper-3); border-left: 4px solid var(--accent-600); }
.solution-box strong { color: var(--accent-700); }

.highlight-box { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--accent-600); }

.tip-box { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
/* Each tip is a top-level article section (h2); box-heading sizing overrides .blog-content h2. */
.tip-box h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.6rem; font-size: 1.15rem; color: var(--ink-text); }
.tip-number {
    flex: 0 0 auto; display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-600); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.time-saved {
    display: inline-flex; align-items: center;
    margin: 1.1rem 0 0;
    font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
    color: #0B5F55; background: #EDF7F4; border: 1px solid #CDEDE4;
    border-radius: 999px; padding: 0.42rem 0.9rem;
}

.pro-box { background: #F0FAF7; border: 1px solid #CDEDE4; border-left: 4px solid var(--teal); }
.pro-box h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: #0E7C6F; }
.con-box { background: #FFF4F3; border: 1px solid #F6D4CF; border-left: 4px solid #C1352F; }
.con-box h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: #A5322E; }

.verdict-box {
    background: var(--ink-900); color: var(--on-dark); text-align: center;
    background-image: radial-gradient(130% 120% at 50% 0%, rgba(33, 150, 243, 0.22), transparent 60%);
    padding: 1.9rem;
}
.verdict-box h3 { color: #fff; margin: 0 0 0.5rem; }
.verdict-box p { color: var(--on-dark); }

/* ---- Comparison table ----------------------------------------------------
   Wrapped in .table-scroll so a wide table scrolls inside its own container
   instead of forcing horizontal page scroll on small viewports. */
.table-scroll { overflow-x: auto; margin: 1.75rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll .comparison-table { margin: 0; }
.comparison-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin: 1.75rem 0; font-size: 1rem;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.comparison-table th, .comparison-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.comparison-table th { background: var(--paper-2); font-family: var(--font-display); font-weight: 600; color: var(--ink-900); }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:nth-child(even) td { background: var(--paper-2); }
/* Functional glyphs — darkened past 4.5:1 on white so meaning does not rely on a
   marginal-contrast colour (teal #26A69A was only 3.0:1). */
.check { color: #0E7C6F; font-weight: 700; }
.cross { color: #C1352F; font-weight: 700; }

/* ---- Blog responsive ------------------------------------------------------ */
@media (max-width: 900px) {
    .blog-card.featured { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card-art { display: none; }
}
@media (max-width: 620px) {
    .comparison-table { font-size: 0.9rem; }
    .comparison-table th, .comparison-table td { padding: 0.65rem 0.7rem; }
}

