/* Features page · "New in LocoLink" (2026-10-20, Tom: "de mooiste features
   echt mooi toevoegen ... prachtig design clean"). Built by
   tools/v5-builders/features_new_v6.py between FEATURES NEW markers, right
   under the hero. Real screens from the app (light screens on the light
   site, dark screens on the dark site), a bento grid, a short "also new"
   list and the LocoLink Venue banner.
   Builds on styles.css (theme tokens) and v5.css (--v5-*, .v5-h2, .v5-pill, .rv). */

.fn { position: relative; padding: clamp(72px, 9vw, 128px) 0 0; scroll-margin-top: 80px; isolation: isolate; }
.fn::before {
    content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 1100px; pointer-events: none;
    background:
        radial-gradient(38% 30% at 50% 6%, rgba(245, 158, 11, .16), transparent 70%),
        radial-gradient(30% 26% at 12% 30%, rgba(59, 130, 246, .10), transparent 70%),
        radial-gradient(30% 26% at 88% 30%, rgba(139, 92, 246, .10), transparent 70%);
}
.fn-head { max-width: 880px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.fn-head .v5-h2 { margin: 20px 0 16px; }
.fn-head .v5-lead { margin: 0 auto; text-align: center; max-width: 38em; }
.fn-head .v5-pill b { margin-right: 2px; }

/* Theme-matched screens: only the image for the current theme loads (the
   other one is display:none and lazy). */
[data-theme="dark"] .fn .fn-l, [data-theme="light"] .fn .fn-d, .fn .fn-d { display: none; }
[data-theme="dark"] .fn .fn-d { display: block; }

.fn img { display: block; width: 100%; height: auto; }
.fn h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); }
.fn h3 em {
    font-style: normal; color: transparent;
    background: linear-gradient(95deg, var(--v5-amber) 10%, var(--v5-amber-2) 60%, #fde68a);
    -webkit-background-clip: text; background-clip: text;
    padding: 0 .06em .12em .02em; margin: 0 -.06em -.12em -.02em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[data-theme="light"] .fn h3 em { background-image: linear-gradient(95deg, #f59e0b 0%, #f97316 70%); }
.fn p { margin: 0; color: var(--text-secondary); }

/* Small label above a card title: a coloured dot and a word. */
.fn-tag {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--fn-acc, #d97706);
}
.fn-tag::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

/* ---------- Spotlight: the Overview ---------- */
.fn-spot {
    position: relative; overflow: hidden; border-radius: 40px; padding: clamp(30px, 4.4vw, 60px) clamp(22px, 4.4vw, 60px) 0;
    background:
        radial-gradient(70% 60% at 50% 100%, rgba(245, 158, 11, .14), transparent 70%),
        linear-gradient(180deg, var(--bg-card), var(--bg-card));
    border: 1px solid var(--border);
    box-shadow: 0 40px 90px -50px rgba(17, 17, 24, .35);
}
.fn-spot-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(28px, 4vw, 64px); align-items: end; }
.fn-spot h3 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.02; }
.fn-spot p { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fn-chips span {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--text-secondary); background: var(--v5-glass); border: 1px solid var(--border);
}
.fn-chips span::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9.5'/%3E%3C/svg%3E") center / 9px no-repeat, rgba(16, 185, 129, .16);
}
.fn-spot-shot { position: relative; margin: clamp(30px, 4vw, 48px) auto 0; max-width: 1080px; }
.fn-spot-shot .dev-window { border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 80px -20px rgba(17, 17, 24, .35); }
[data-theme="dark"] .fn-spot-shot .dev-window { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -20px rgba(0, 0, 0, .7); }
/* The window rises out of the card: its lower edge is cut by the card. */
.fn-spot-crop { max-height: clamp(260px, 44vw, 600px); overflow: hidden; border-radius: 16px 16px 0 0; }

/* ---------- Bento grid ---------- */
.fn-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(14px, 1.6vw, 20px); }
.fn-card {
    --fn-acc: #d97706;
    position: relative; grid-column: span 6; display: flex; flex-direction: column; height: clamp(500px, 44vw, 580px); overflow: hidden;
    border-radius: 32px; background: var(--bg-card); border: 1px solid var(--border);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}
.fn-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(17, 17, 24, .35); border-color: var(--border-light); }
[data-theme="dark"] .fn-card:hover { box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .8); }
.fn-w7 { grid-column: span 7; } .fn-w5 { grid-column: span 5; } .fn-w4 { grid-column: span 4; } .fn-w12 { grid-column: 1 / -1; }
.fn-copy { position: relative; z-index: 2; padding: clamp(26px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px) 0; }
.fn-card h3 { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.08; margin-bottom: 10px; }
.fn-card p { font-size: 15.5px; line-height: 1.55; max-width: 31em; }

/* The screen: bleeds off the right and bottom edge, rounded on the top left. */
.fn-shot { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; padding: 28px 0 0 clamp(24px, 2.6vw, 36px); }
.fn-shot img {
    border-radius: 14px 0 0 0; border: 1px solid var(--border); border-right: 0; border-bottom: 0;
    box-shadow: 0 -10px 40px -18px rgba(17, 17, 24, .28); transition: transform .6s cubic-bezier(.22, 1, .36, 1);
    transform-origin: 0 0;
    /* Always reach the card's bottom edge: a shorter screen is cut on the
       right, a taller one at the bottom. */
    height: 100%; min-height: 100%; object-fit: cover; object-position: left top;
}
.fn-card:hover .fn-shot img { transform: scale(1.025); }
/* Centred: rounded on top, cut off at the bottom. */
.fn-shot.is-center { padding: 28px clamp(24px, 2.6vw, 36px) 0; }
.fn-shot.is-center img { border-radius: 14px 14px 0 0; border-right: 1px solid var(--border); transform-origin: 50% 100%; object-position: center top; }

/* Accents per card. */
.fn-c-tables { --fn-acc: #2563eb; }
.fn-c-wiring { --fn-acc: #059669; }
.fn-c-import { --fn-acc: #7c3aed; }
.fn-c-logic { --fn-acc: #db2777; }
.fn-c-print { --fn-acc: #0891b2; }
.fn-c-search { --fn-acc: #2563eb; }
.fn-c-plates { --fn-acc: #d97706; }
[data-theme="dark"] .fn-c-tables, [data-theme="dark"] .fn-c-search { --fn-acc: #60a5fa; }
[data-theme="dark"] .fn-c-wiring { --fn-acc: #34d399; }
[data-theme="dark"] .fn-c-import { --fn-acc: #a78bfa; }
[data-theme="dark"] .fn-c-logic { --fn-acc: #f472b6; }
[data-theme="dark"] .fn-c-print { --fn-acc: #22d3ee; }
[data-theme="dark"] .fn-c-plates { --fn-acc: #fbbf24; }

/* The cab: always the night cab, on a dark card. */
.fn-c-cab {
    --fn-acc: #fbbf24;
    background: radial-gradient(80% 70% at 30% 100%, rgba(245, 158, 11, .22), transparent 70%), linear-gradient(160deg, #161826, #0b0c14);
    border-color: rgba(255, 255, 255, .06);
}
.fn-c-cab h3 { color: #f5f5fa; }
.fn-c-cab p { color: #a3a3b6; }
.fn-c-cab .fn-shot img { border-color: rgba(255, 255, 255, .08); box-shadow: 0 -10px 50px -16px rgba(0, 0, 0, .7); }
.fn-c-cab .fn-l { display: none !important; }
.fn-c-cab .fn-d { display: block !important; }

/* Tafels: the plan split in three, then the middle board taken out. */
.fn-tables-stack .fn-frame-b { position: absolute; top: 28px; left: clamp(24px, 2.6vw, 36px); width: calc(100% - clamp(24px, 2.6vw, 36px)); height: calc(100% - 28px); min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
    .fn-tables-stack .fn-frame-b { animation: fn-swap 7s ease-in-out infinite; }
}
.fn-tables-stack .fn-frame-b { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fn-tables-stack .fn-frame-b { opacity: 1; } }
@keyframes fn-swap { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* 3D: a full-bleed real render with the text over it. */
.fn-c-3d { height: clamp(400px, 44vw, 580px); border: 0; background: #0b0c14; }
.fn-c-3d .fn-3d-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.fn-c-3d:hover .fn-3d-img { transform: scale(1.03); }
.fn-c-3d::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(6, 8, 14, .78) 0%, rgba(6, 8, 14, .45) 38%, rgba(6, 8, 14, 0) 64%),
                linear-gradient(0deg, rgba(6, 8, 14, .45), rgba(6, 8, 14, 0) 40%);
}
.fn-c-3d .fn-copy { margin-top: auto; padding-bottom: clamp(26px, 3vw, 44px); max-width: 560px; }
.fn-c-3d .fn-tag { --fn-acc: #fbbf24; }
.fn-c-3d h3 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); }
.fn-c-3d p { color: rgba(255, 255, 255, .82); font-size: 16.5px; }
.fn-3d-note {
    position: absolute; z-index: 2; right: 20px; bottom: 20px; padding: 7px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .9); background: rgba(10, 12, 20, .5);
    border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Switching: the four sources as small chips. */
.fn-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fn-sources span {
    padding: 5px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--text-primary);
    background: color-mix(in srgb, var(--fn-acc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--fn-acc) 26%, transparent);
}

/* Search: the keys as keycaps. */
.fn kbd {
    display: inline-block; min-width: 1.6em; padding: 1px 6px; margin: 0 1px; border-radius: 6px; text-align: center;
    font: 700 .82em/1.5 ui-monospace, "SF Mono", Consolas, monospace; color: var(--text-primary);
    background: var(--bg-elevated); border: 1px solid var(--border-light); box-shadow: 0 2px 0 var(--border-light);
}

/* ---------- Also new ---------- */
.fn-also { margin-top: clamp(48px, 6vw, 80px); }
.fn .fn-also-h { margin: 0 0 22px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.fn-also-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fn-also-item {
    display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-radius: 22px;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.fn-also-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fn-also-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; color: #d97706; background: rgba(245, 158, 11, .13); }
.fn-also-item:nth-child(4n+2) .fn-also-ic { color: #2563eb; background: rgba(59, 130, 246, .13); }
.fn-also-item:nth-child(4n+3) .fn-also-ic { color: #059669; background: rgba(16, 185, 129, .13); }
.fn-also-item:nth-child(4n+4) .fn-also-ic { color: #7c3aed; background: rgba(139, 92, 246, .13); }
.fn-also-ic svg { width: 21px; height: 21px; }
.fn-also-item div { display: flex; flex-direction: column; gap: 5px; }
.fn-also-item strong { font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--text-primary); }
.fn-also-item span { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

/* ---------- LocoLink Venue ---------- */
.fn-venue {
    position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
    margin-top: clamp(20px, 2.4vw, 28px); padding: clamp(30px, 4vw, 56px); border-radius: 36px; overflow: hidden;
    text-decoration: none; color: #f5f5fa; isolation: isolate;
    background: radial-gradient(60% 80% at 100% 0%, rgba(245, 158, 11, .20), transparent 70%),
                radial-gradient(50% 70% at 0% 100%, rgba(59, 130, 246, .18), transparent 70%), #0b0f1c;
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.fn-venue:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -38px rgba(11, 15, 28, .8); }
.fn-venue-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.fn-venue-brand img { width: 40px; height: 40px; border-radius: 10px; }
.fn-venue h3 { color: #fff; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; margin-bottom: 14px; }
.fn-venue p { color: #b6b9cc; font-size: 16px; line-height: 1.6; }
.fn-venue-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 800; color: #fbbf24; }
.fn-venue-link svg { width: 17px; height: 17px; transition: transform .2s ease; }
.fn-venue:hover .fn-venue-link svg { transform: translateX(4px); }
.fn-tv { position: relative; padding: 10px; border-radius: 18px; background: linear-gradient(#20222e, #12131b); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.fn-tv img { border-radius: 9px; }
.fn-tv::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22%; height: 14px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: linear-gradient(#1b1d27, #0f1017); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
    .fn-w7, .fn-w5, .fn-card { grid-column: span 6; }
    .fn-w4 { grid-column: span 6; }
    .fn-w4:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .fn-also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .fn-spot-copy { grid-template-columns: 1fr; }
    .fn-card, .fn-w7, .fn-w5, .fn-w4 { grid-column: 1 / -1; height: auto; }
    .fn-shot { flex: none; max-height: min(78vw, 420px); }
    .fn-shot img { height: auto; min-height: 0; }
    .fn-tables-stack .fn-frame-b { height: auto; }
    .fn-venue { grid-template-columns: 1fr; }
    .fn-c-3d { height: auto; min-height: 460px; }
    .fn-c-3d::after { background: linear-gradient(0deg, rgba(6, 8, 14, .85) 0%, rgba(6, 8, 14, .5) 45%, rgba(6, 8, 14, 0) 75%); }
}
@media (max-width: 560px) {
    .fn-spot { border-radius: 28px; }
    .fn-card { border-radius: 26px; }
    .fn-also-grid { grid-template-columns: 1fr; gap: 10px; }
    .fn-also-item { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; }
    .fn-also-item .fn-also-ic { flex: none; margin: 0; }
    .fn-venue { border-radius: 28px; }
    .fn-3d-note { display: none; }
}

/* The "New" jump link in the hero. */
.v5-jump a.fn-jump { display: inline-flex; align-items: center; gap: 8px; border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .12); }
.v5-jump a.fn-jump::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 0 0 3px rgba(245, 158, 11, .22); }
