/* ═══════════════════════════════════════════════════════════════════════════
   Digivise Flow, the public homepage (public/pages/home.html)

   The site looks like the work it supports. Paper, ink, one electric accent;
   crop marks around the screens; mono annotations, the way a plan labels a
   socket. Every screen on the page is a real screen of the app.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --paper:     #fbfaf7;
    --paper-2:   #f4f2ec;
    --card:      #ffffff;
    --ink:       #0e1116;
    --ink-2:     #4b5262;
    --ink-3:     #8a909c;
    --line:      #e6e3dc;
    --line-2:    #d6d2c8;
    --volt:      #2f5bff;
    --volt-ink:  #1d3fd6;
    --volt-soft: #e9eeff;
    --lox:       #6fb52c;
    --lox-ink:   #3f7a12;
    --lox-soft:  #eef7e4;
    --ui:        #006fff;
    --ui-soft:   #e6f0ff;
    --night:     #0b0f17;
    --night-2:   #121826;

    --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
    --shadow-frame: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -20px rgba(14,17,22,.25), 0 12px 24px -12px rgba(14,17,22,.18);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font: 600 .95rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .18s ease, background .18s, box-shadow .18s, border-color .18s;
}
.btn svg { width: 18px; height: 18px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(14,17,22,.45); }
.btn-ink:hover { transform: translateY(-1px); background: #1d2330; }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { background: var(--card); border-color: var(--ink-3); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef2ff; transform: translateY(-1px); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 .8rem/1 var(--display); letter-spacing: -.02em; }
.brand-name { font: 700 1rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-act .btn { height: 40px; padding: 0 16px; font-size: .88rem; border-radius: 10px; }
.nav-login { padding: 8px 12px; color: var(--ink-2); font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
.nav-burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav[data-open] .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open] .nav-burger span:nth-child(2) { opacity: 0; }
.nav[data-open] .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-sheet { display: none; }
.nav[data-open] { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line); }
.nav[data-open] .nav-sheet {
    display: flex; flex-direction: column;
    height: calc(100dvh - 66px - env(safe-area-inset-top, 0px));
    padding: 6px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
}
.nav-sheet-links { display: flex; flex-direction: column; }
.nav-sheet-links a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
    font: 650 1.15rem/1.2 var(--display); letter-spacing: -.01em; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.nav-sheet-links a::after { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); }
.nav-sheet-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.nav-sheet-foot .btn { width: 100%; height: 52px; }
html.nav-locked, html.nav-locked body { overflow: hidden; }

/* Folds by content (site.js), never by a guessed width. */
.nav-in.is-compact .nav-links, .nav-in.is-compact .nav-act { display: none; }
.nav-in.is-compact .nav-burger { display: block; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--volt-ink); margin-bottom: 18px; }
.kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.sec-head.center .kicker::after { content: ''; width: 18px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 750; }
.h2 em { font-style: normal; color: var(--ink-3); }
.lede { margin-top: 18px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); line-height: 1.6; }

/* ── A screen in a frame, with crop marks ────────────────────────────────── */
.frame { position: relative; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-frame); outline: 1px solid rgba(14,17,22,.08); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f3f2ee; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d6ce; }
.frame-bar b { flex: 1; min-width: 0; text-align: center; margin-right: 33px; font: 500 .72rem/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; }
.marks { position: relative; }
/* The marks sit outside the frame, so a marked frame clips its children instead of itself. */
.frame.marks { overflow: visible; }
.frame.marks > :first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.frame.marks > :last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.marks::before, .marks::after {
    content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
    border-color: var(--ink-3); border-style: solid; opacity: .55;
}
.marks::before { top: -14px; left: -14px; border-width: 1px 0 0 1px; }
.marks::after { bottom: -14px; right: -14px; border-width: 0 1px 1px 0; }

/* An annotation: a mono label on a leader line, pointing into a screen. */
.note {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
    font: 600 .72rem/1.2 var(--mono); letter-spacing: .02em; color: var(--ink); white-space: nowrap;
}
.note span { padding: 7px 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(14,17,22,.3); }
.note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgba(47,91,255,.18); flex: 0 0 auto; }
.note.r { flex-direction: row-reverse; }
.note .lead { width: 36px; height: 1px; background: var(--ink-3); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: calc(66px + clamp(48px, 8vw, 96px)) 0 clamp(72px, 9vw, 130px); overflow: hidden; }
.hero-grid-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
    opacity: .55;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
            mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-top { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); font-size: .85rem; color: var(--ink-2); }
.hero-eyebrow b { white-space: nowrap; flex: 0 0 auto; padding: 4px 10px; border-radius: 99px; background: var(--volt-soft); color: var(--volt-ink); font: 600 .7rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin-top: 26px; font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.hero h1 .soft { color: var(--ink-3); }
.hero-sub { max-width: 680px; margin: 26px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; justify-content: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; color: var(--ink-3); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lox); }

/* The stage: three real screens, layered, tilted back a little; scroll lays them flat. */
.stage { position: relative; margin: clamp(56px, 8vw, 88px) auto 0; max-width: 1120px; }
/* Flat on purpose: a 3D-transformed layer is rasterised at reduced resolution
   and scaled, which turned the screens soft. Depth comes from the shadows. */
.stage-tilt { position: relative; }
.stage-main { position: relative; z-index: 1; }
.stage-card { position: absolute; z-index: 2; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 30px 60px -18px rgba(14,17,22,.4); outline: 1px solid rgba(14,17,22,.08); }
.stage-card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.stage-card.c-3d { left: -5%; bottom: -10%; width: 34%; aspect-ratio: 16 / 10; }
.stage-card.c-doc { right: -4%; top: 10%; width: 27%; aspect-ratio: 3 / 4; }
.stage-chip {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    background: var(--card); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(14,17,22,.35); outline: 1px solid rgba(14,17,22,.06);
}
.stage-chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.stage-chip .ic svg { width: 18px; height: 18px; }
.stage-chip small { display: block; font: 600 .66rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.stage-chip b { display: block; font-size: .9rem; margin-top: 2px; }
.stage-chip.k-sign { right: 2%; bottom: 6%; }
.stage-chip.k-sign .ic { background: #e4f6ea; color: #15803d; }
.stage-chip.k-kring { left: 4%; top: 10%; }
.stage-chip.k-kring .ic { background: var(--volt-soft); color: var(--volt-ink); }

/* ── Proof strip ─────────────────────────────────────────────────────────── */
.proof { border-block: 1px solid var(--line); background: var(--card); }
.proof-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof-in > div { padding: 26px 22px; border-left: 1px solid var(--line); }
.proof-in > div:first-child { border-left: 0; }
.proof b { display: block; font: 750 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -.03em; }
.proof span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .86rem; line-height: 1.4; }

/* ── The job, step by step (sticky screen) ──────────────────────────────── */
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.job-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.job-step { position: relative; padding: 0 0 0 64px; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.job-step:last-child { min-height: 50vh; }
.job-step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    font: 600 .8rem/1 var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); background: var(--paper);
    transition: color .3s, border-color .3s, background .3s;
}
.job-step::after { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: -1; }
.job-step.is-on::before { color: #fff; background: var(--ink); border-color: var(--ink); }
.job-step .mono { color: var(--ink-3); }
.job-step h3 { margin-top: 10px; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 750; transition: color .3s; }
.job-step p { margin-top: 12px; color: var(--ink-2); font-size: 1.02rem; }
.job-step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { padding: 5px 10px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 550; color: var(--ink-2); }
.job-step:not(.is-on) h3, .job-step:not(.is-on) p { color: var(--ink-3); }
.job-step .job-shot { display: none; }
.job-screen { position: sticky; top: calc(66px + 6vh); height: calc(88vh - 66px); display: flex; align-items: center; }
.job-screen .frame { width: 100%; }
.job-screen .shots { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
.job-screen .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.015); transition: opacity .5s ease, transform .8s ease; }
.job-screen .shots img.is-on { opacity: 1; transform: none; }

/* ── Six trades ──────────────────────────────────────────────────────────── */
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
.trades { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.trade-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 90px; }
.trade {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-align: left;
    border: 1px solid transparent; background: transparent; font: inherit; color: var(--ink-2); cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.trade i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 4px; background: var(--tc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 18%, transparent); }
.trade b { display: block; font: 650 1rem/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.trade small { display: block; margin-top: 3px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.trade:hover { background: var(--card); border-color: var(--line); }
.trade.is-on { background: var(--card); border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--tc) 60%, transparent), inset 3px 0 0 var(--tc); }
.trade-shots { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
.trade-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .45s ease; }
.trade-shots img.is-on { opacity: 1; }
.trade-shots img:not(.is-on), .td-shots img:not(.is-on), .ui-shots img:not(.is-on), .job-screen .shots img:not(.is-on) { pointer-events: none; }
.trade-info { margin-top: 22px; }
.trade-info[hidden] { display: none; }
.trade-info p { color: var(--ink-2); max-width: 760px; }
.trade-info p b { color: var(--ink); }
.trade-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* Each line type drawn as a short stroke in its own colour, dashed where the plan dashes it. */
.trade-lines span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 550; color: var(--ink-2); }
.trade-lines span::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--lc); }
.trade-lines span.d::before { background: repeating-linear-gradient(90deg, var(--lc) 0 5px, transparent 5px 8px); }

.together { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.together .dive-list li svg { color: var(--volt); }
.together-media .stack { position: relative; }
.together-media .stack .frame + .frame { position: absolute; width: 30%; right: -5%; bottom: -16%; }

/* ── UniFi: six steps of a design ─────────────────────────────────────── */
.tint-ui { background: linear-gradient(180deg, var(--ui-soft), var(--paper) 65%); }
.ui-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 6px; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.ui-tab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-radius: 11px; background: transparent; font: 600 .9rem/1 var(--body); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.ui-tab .mono { color: var(--ink-3); font-size: .68rem; }
.ui-tab:hover { background: var(--paper-2); color: var(--ink); }
.ui-tab.is-on { background: var(--ui); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,111,255,.7); }
.ui-tab.is-on .mono { color: rgba(255,255,255,.7); }
.ui-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ui-text > div[hidden] { display: none; }
.ui-text h3 { font-size: 1.55rem; font-weight: 750; }
.ui-text p { margin-top: 12px; color: var(--ink-2); }
.ui-text ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ui-text li { display: flex; gap: 10px; align-items: baseline; font-size: .94rem; }
.ui-text li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ui); transform: translateY(-2px); }
.ui-shots { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
.ui-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .45s ease; }
.ui-shots img.is-on { opacity: 1; }
.night-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; margin-top: 48px; }
.night-points b { color: #fff; }

/* One plan to draw, a plan per trade to print */
.per-trade { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.per-trade-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--volt-soft); color: var(--volt-ink); }
.per-trade-ic svg { width: 22px; height: 22px; }
.per-trade-text b { display: block; font: 700 1.08rem/1.3 var(--display); letter-spacing: -.01em; }
.per-trade-text p { margin-top: 6px; color: var(--ink-2); font-size: .93rem; }
/* Six sheets fanned out, one per trade colour. */
.per-trade-sheets { position: relative; width: 132px; height: 64px; }
.per-trade-sheets i { position: absolute; top: 8px; width: 44px; height: 52px; border-radius: 5px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 6px 14px -8px rgba(14,17,22,.35); }
.per-trade-sheets i::after { content: ''; position: absolute; left: 7px; right: 7px; top: 12px; height: 3px; border-radius: 2px; background: var(--tc); box-shadow: 0 9px 0 var(--tc), 0 18px 0 color-mix(in srgb, var(--tc) 55%, #fff); }
.per-trade-sheets i:nth-child(1) { left: 0; transform: rotate(-8deg); }
.per-trade-sheets i:nth-child(2) { left: 17px; transform: rotate(-5deg); }
.per-trade-sheets i:nth-child(3) { left: 34px; transform: rotate(-2deg); }
.per-trade-sheets i:nth-child(4) { left: 51px; transform: rotate(1deg); }
.per-trade-sheets i:nth-child(5) { left: 68px; transform: rotate(4deg); }
.per-trade-sheets i:nth-child(6) { left: 85px; transform: rotate(7deg); }
@media (max-width: 640px) {
    .per-trade { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
    .per-trade-ic { width: 40px; height: 40px; }
    .per-trade-sheets { justify-self: center; }
}

/* ── Deep dives ──────────────────────────────────────────────────────────── */
.dive { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dive.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dive.flip .dive-text { order: 2; }
.dive-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.dive-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.dive-list li svg { width: 22px; height: 22px; margin-top: 1px; }
.dive-list b { display: block; font-weight: 650; }
.dive-list span { color: var(--ink-2); font-size: .94rem; }
.dive-media { position: relative; }
.dive-media .stack { position: relative; }
.dive-media .stack .frame + .frame { position: absolute; width: 52%; right: -4%; bottom: -12%; }
.dive-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 650; text-decoration: none; }
.dive-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Drawing: the dark band */
.band-night { background: var(--night); color: #f1f5f9; overflow: hidden; }
.band-night .h2 em { color: #6b7588; }
.band-night .lede, .band-night .dive-list span { color: #a3adbf; }
.band-night .kicker { color: #7cb4ff; }
.band-night .frame { outline-color: rgba(255,255,255,.1); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8); }
.band-night .frame-bar { background: #161d2c; border-color: rgba(255,255,255,.06); }
.band-night .frame-bar i { background: #2a3346; }
.band-night .frame-bar b { color: #6b7588; }
.band-night .marks::before, .band-night .marks::after { border-color: #6b7588; }
.band-night .dive-list li svg { color: #7cb4ff; }
.band-night .tag { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #c9d1de; }
.night-grid { position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(50% 40% at 70% 40%, rgba(124,180,255,.14), transparent 70%),
        linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px) 0 0 / 32px 32px;
    -webkit-mask-image: radial-gradient(110% 80% at 50% 40%, #000 40%, transparent 100%);
            mask-image: radial-gradient(110% 80% at 50% 40%, #000 40%, transparent 100%);
}
.td-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 40px 0 18px; }
.td-tab { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #a3adbf; font: 600 .86rem/1 var(--body); cursor: pointer; white-space: nowrap; }
.td-tab:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.td-tab.is-on { background: #fff; color: var(--night); border-color: #fff; }
.td-shots { position: relative; aspect-ratio: 16 / 10; background: #f4f5f7; }
.td-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .5s; }
.td-shots img.is-on { opacity: 1; }
.td-cap { margin-top: 18px; min-height: 3.2em; color: #a3adbf; max-width: 760px; }
.td-cap b { color: #fff; }

/* Loxone / UniFi tints */
.tint-lox { background: linear-gradient(180deg, var(--lox-soft), var(--paper) 70%); }
.tint-lox .kicker { color: var(--lox-ink); }
.tint-lox .dive-list li svg { color: var(--lox); }
.tint-lox .dive-link { color: var(--lox-ink); }
.tint-ui .kicker { color: var(--ui); }
.tint-ui .dive-list li svg { color: var(--ui); }
.tint-ui .dive-link { color: var(--ui); }
.tm-note { margin-top: 22px; color: var(--ink-3); font-size: .78rem; }

/* ── The rest of the business: bento ─────────────────────────────────────── */
.biz { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.biz-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.biz-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(14,17,22,.25); border-color: var(--line-2); }
.biz-card.w3 { grid-column: span 3; }
.biz-card.w4 { grid-column: span 4; }
.biz-text { padding: 24px 24px 18px; }
.biz-text .mono { color: var(--ink-3); }
.biz-text h3 { margin-top: 8px; font-size: 1.22rem; font-weight: 700; }
.biz-text p { margin-top: 8px; color: var(--ink-2); font-size: .93rem; }
.biz-shot { flex: 1 0 auto; margin: auto 0 0 24px; border-top-left-radius: 12px; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-bottom: 0; aspect-ratio: 16 / 9; background: var(--paper-2); }
.biz-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.biz-card:hover .biz-shot img { transform: scale(1.03); }

/* ── On site: three phones ─────────────────────────────────────────────── */
.site { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); padding: 20px 0; }
.phone { position: relative; width: 31%; max-width: 230px; aspect-ratio: 390 / 844; border-radius: 34px; padding: 8px; background: #11141a; box-shadow: 0 40px 70px -30px rgba(14,17,22,.55), inset 0 0 0 1.5px #2b303a; }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); border-radius: 99px; background: #11141a; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; background: #fff; }
.phone:nth-child(2) { transform: translateY(-34px); }
.site-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.site-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.site-list li b { color: var(--ink); font-weight: 650; }
.site-list li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); transform: translateY(-2px); }

/* ── Built for Belgium ───────────────────────────────────────────────────── */
.be { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.be > div { padding: 30px 26px; border-left: 1px solid var(--line); }
.be > div:first-child { border-left: 0; }
.be .num { font: 750 2.4rem/1 var(--display); letter-spacing: -.04em; }
.be h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.be p { margin-top: 8px; color: var(--ink-2); font-size: .9rem; }

/* ── Before / after ──────────────────────────────────────────────────────── */
.swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center; }
.swap-col { padding: 28px; border-radius: var(--r-lg); }
.swap-old { background: var(--paper-2); border: 1px dashed var(--line-2); }
.swap-new { background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(14,17,22,.6); }
.swap-col h3 { font-size: 1.1rem; font-weight: 700; }
.swap-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.swap-old li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; }
.swap-old li i { font-style: normal; color: var(--ink-3); font-size: .82rem; white-space: nowrap; }
.swap-new li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: #d7dce6; }
.swap-new li::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(124,180,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cb4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.swap-arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--volt); color: #fff; box-shadow: 0 10px 30px -8px rgba(47,91,255,.6); }
.swap-arrow svg { width: 24px; height: 24px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 650 1.08rem/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.5rem/1 var(--body); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 680px; }

/* ── Final call ──────────────────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--night); color: #fff; padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px); text-align: center; }
.final .night-grid { opacity: 1; }
.final h2 { position: relative; font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; }
.final p { position: relative; margin: 18px auto 0; max-width: 560px; color: #a3adbf; font-size: 1.08rem; }
.final .hero-cta { position: relative; }
.final .btn-line { color: #fff; border-color: rgba(255,255,255,.25); }
.final .btn-line:hover { background: rgba(255,255,255,.06); }

footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--ink-3); font-size: .86rem; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lb { width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #f4f5f7; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.lb::backdrop { background: rgba(8,10,14,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb img { width: 100%; height: auto; max-height: 94vh; object-fit: contain; }
.lb button { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(14,17,22,.8); color: #fff; font-size: 1.4rem; cursor: pointer; }
[data-zoom] { cursor: zoom-in; }

/* ── Reveal ──────────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }


/* ── Nav extras: early-access badge, language switch ─────────────────── */
.nav-badge { padding: 4px 9px; border-radius: 99px; background: #fff4d6; color: #8a5a00; font: 600 .64rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.lang-switch button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); font: 600 .74rem/1 var(--mono); letter-spacing: .04em; cursor: pointer; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--ink); color: #fff; }
.lang-switch--sheet { display: flex; width: 100%; margin-bottom: 6px; }
.lang-switch--sheet button { flex: 1; height: 44px; font: 600 .92rem/1 var(--body); letter-spacing: 0; }
.nav-in.is-tight .nav-links a { padding: 8px 8px; }
.nav-in.is-tight { gap: 18px; }
.nav-in.is-nobadge .nav-badge { display: none; }
.nav-in.is-tight .nav-act { gap: 6px; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan--featured { background: var(--night); color: #fff; border-color: var(--night); box-shadow: 0 30px 60px -30px rgba(14,17,22,.6); }
.plan-flag { position: absolute; top: -12px; left: 28px; padding: 5px 10px; border-radius: 99px; background: var(--volt); color: #fff; font: 600 .66rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.plan-name { font-size: 1.15rem; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.price-currency { font: 600 1.2rem/1 var(--display); color: var(--ink-2); }
.plan--featured .price-currency, .plan--featured .price-period { color: #a3adbf; }
.price-amount { font: 800 3rem/1 var(--display); letter-spacing: -.04em; }
.price-period { color: var(--ink-3); font-size: .9rem; }
.plan-desc { margin-top: 12px; color: var(--ink-2); font-size: .92rem; }
.plan--featured .plan-desc { color: #a3adbf; }
.plan-list { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .92rem; }
.plan--featured .plan-list { border-color: rgba(255,255,255,.12); }
.plan-list li { display: flex; gap: 10px; align-items: baseline; }
.plan-list li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--lox); transform: translateY(-1px); }
.plan-list li.no { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(138,144,156,.5); }
.plan-list li.no::before { background: var(--line-2); }
.plan-cta { margin-top: auto; width: 100%; }
.plans-note { margin-top: 22px; text-align: center; color: var(--ink-3); font-size: .85rem; }

/* ── First-visit language choice ──────────────────────────────────────── */
.lang-welcome { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(8,10,14,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang-welcome-card { width: min(420px, 100%); padding: 30px 28px 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 40px 100px rgba(0,0,0,.35); text-align: center; animation: lw-in .25s ease both; }
@keyframes lw-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.lang-welcome-card h2 { font-size: 1.4rem; font-weight: 750; }
.lang-welcome-card > p { margin-top: 8px; color: var(--ink-2); font-size: .94rem; }
.lang-welcome-opts { display: grid; gap: 8px; margin-top: 20px; }
.lang-welcome-opts button { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; cursor: pointer; text-align: left; }
.lang-welcome-opts button:hover, .lang-welcome-opts button.active { border-color: var(--ink); background: var(--card); }
.lang-welcome-opts b { font-weight: 650; }
.lang-welcome-opts small { color: var(--ink-3); font-size: .8rem; }
.lang-welcome-note { margin-top: 16px !important; color: var(--ink-3) !important; font-size: .8rem !important; }

/* ── Smaller screens ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .proof-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .proof-in > div:nth-child(4) { border-left: 0; }
    .proof-in > div:nth-child(n+4) { border-top: 1px solid var(--line); }
    .be { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .be > div:nth-child(3) { border-left: 0; }
    .be > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .biz-card, .biz-card.w3, .biz-card.w4 { grid-column: span 3; }
    .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 900px) {
    /* The job: no sticky screen, each step carries its own. */
    .job { grid-template-columns: minmax(0, 1fr); }
    .job-screen { display: none; }
    .job-step { min-height: 0; padding: 0 0 48px 56px; }
    .job-step::before { top: 0; transform: none; width: 40px; height: 40px; }
    .job-step::after { left: 20px; }
    .job-step .job-shot { display: block; margin-top: 22px; }
    .job-step h3, .job-step p { color: inherit !important; }
    .job-step p { color: var(--ink-2) !important; }
    .dive, .dive.flip { grid-template-columns: minmax(0, 1fr); }
    .dive.flip .dive-text { order: 0; }
    .dive-media .stack .frame + .frame { position: relative; width: 70%; right: auto; bottom: auto; margin: -18% 0 0 auto; }
    .swap { grid-template-columns: minmax(0, 1fr); }
    .site { grid-template-columns: minmax(0, 1fr); }
    .trades { grid-template-columns: minmax(0, 1fr); }
    /* No sideways scrolling on a phone: the tabs become a grid that fits. */
    .trade-list { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .trade { padding: 12px; min-width: 0; border-color: var(--line); background: var(--card); }
    .trade b { white-space: normal; }
    .together { grid-template-columns: minmax(0, 1fr); }
    .together-media .stack .frame + .frame { position: relative; width: 58%; right: auto; bottom: auto; margin: -14% 0 0 auto; }
    .ui-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ui-tab { justify-content: center; min-width: 0; padding: 12px 6px; white-space: normal; text-align: center; line-height: 1.2; }
    .ui-body { grid-template-columns: minmax(0, 1fr); }
    .ui-media { order: -1; }
    .swap-arrow { margin: 0 auto; transform: rotate(90deg); }
}
@media (max-width: 640px) {
    .hide-sm { display: none; }
    .hero-eyebrow { font-size: .8rem; }
    .hero-trust { gap: 8px 16px; }
    .stage-card.c-doc { display: none; }
    .stage-card.c-3d { width: 46%; left: -2%; bottom: -14%; }
    .stage-chip { padding: 8px 12px 8px 8px; gap: 8px; }
    .stage-chip .ic { width: 28px; height: 28px; }
    .stage-chip b { font-size: .78rem; }
    .stage-chip.k-kring { display: none; }
    .proof-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proof-in > div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 4px; }
    .proof-in > div:nth-child(-n+2) { border-top: 0; }
    .proof-in > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
    .proof-in > div:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 4px; }
    .be { grid-template-columns: 1fr; }
    .be > div { border-left: 0 !important; border-top: 1px solid var(--line); }
    .be > div:first-child { border-top: 0; }
    .biz-card, .biz-card.w3, .biz-card.w4 { grid-column: 1 / -1; }
    .note { display: none; }
    .hero-cta .btn { width: 100%; }
    .td-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-tab { height: auto; min-height: 44px; padding: 10px 8px; white-space: normal; line-height: 1.2; }
    .trade-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui-tab .mono { display: none; }
}
@media (max-width: 420px) { .hero-eyebrow-trades { display: none; } .hero-eyebrow { padding-right: 6px; } }

/* On a phone a full app screen is too small to read: the tabbed screens go
   square and centre on the drawing, and a tap opens the screen full size, to
   swipe around in. */
@media (max-width: 640px) {
    .trade-shots, .td-shots, .ui-shots { aspect-ratio: 1 / 1; }
    .trade-shots img, .td-shots img, .ui-shots img { object-position: 50% 45%; }
    .lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .lb img { width: auto; height: 100%; max-width: none; max-height: none; }
    .lb img.is-tall { width: 100%; height: auto; }
    .lb button { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rv { opacity: 1; transform: none; transition: none; }
    .job-screen .shots img, .td-shots img, .biz-shot img { transition: none; }
}
section[id] { scroll-margin-top: 66px; }

.anchor-alias { position: absolute; top: 0; scroll-margin-top: 66px; }
