/* CiDiSi Analytics: site styles (redesign).
   Brand colors are fixed: navy surfaces + gold accent, with the logo's
   orange / blue / cyan / purple used only for the mascot and charts. */

:root {
    --bg: #07111f;
    --bg-raised: #0a2540;
    --card: #101c2e;
    --card-hover: #13233a;
    --border: #263852;
    --line: #1f2f46;
    --text: #e8eef7;
    --text-soft: #c8d4e3;
    --muted: #8fa1b8;
    --accent: #f2a900;
    --accent-soft: #ffcc4d;
    --on-accent: #07111f;

    --logo-orange: #f58a1f;
    --logo-blue: #1565c0;
    --logo-cyan: #22d3ee;
    --logo-purple: #7b3fa0;

    --radius: 14px;
    --radius-sm: 8px;
    --wrap: 1160px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-soft); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 300;
    background: var(--accent); color: var(--on-accent);
    padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute !important; 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: 8px;
    min-height: 48px; padding: 12px 22px;
    border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px rgba(242, 169, 0, .25); }
.btn-primary:hover { background: var(--accent-soft); box-shadow: 0 10px 30px rgba(242, 169, 0, .35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7, 17, 31, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 0 6px rgba(242, 169, 0, .45)); transition: filter .3s; }
.brand:hover img { filter: drop-shadow(0 0 12px rgba(242, 169, 0, .9)); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-name span { color: var(--muted); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 15px;
    padding: 10px 14px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-soft); background: rgba(242, 169, 0, .08); }
.site-nav .btn { margin-left: 8px; color: var(--on-accent); }
.site-nav .btn:hover { color: var(--on-accent); background: var(--accent-soft); }
.site-nav .btn[aria-current="page"] { color: var(--on-accent); background: var(--accent); }

.nav-toggle {
    display: none;
    width: 48px; height: 48px; border-radius: 12px;
    background: transparent; border: 1px solid var(--border); color: var(--text);
    cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: currentColor; margin: auto;
    border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px 16px 20px;
        background: rgba(7, 17, 31, .98);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 12px; font-size: 17px; }
    .site-nav .btn { margin: 8px 0 0; }
    .brand-name span { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, #0b1a2e 50%, var(--bg) 100%); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 18px; }
.kicker {
    display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px;
}
.hl { color: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 .hl { display: inline-block; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--text-soft); max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.hero-chart { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.hero-chart .grid line { stroke: var(--line); stroke-width: 1; }
.hero-chart .trend {
    fill: none; stroke: url(#g-trend); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 1600; stroke-dashoffset: 1600;
    animation: draw 2.4s .3s var(--ease) forwards;
}
.hero-chart .node { fill: var(--bg); stroke: #3b4f86; stroke-width: 3; opacity: 0; animation: pop .4s var(--ease) forwards; }
.hero-chart .arrow { fill: url(#g-gold); opacity: 0; animation: pop .5s 2.4s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- Mascot (Iris) ---------- */
.mascot-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.mascot {
    background: none; border: 0; padding: 0; cursor: pointer;
    width: min(400px, 100%); aspect-ratio: 200 / 170;
    -webkit-tap-highlight-color: transparent;
}
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.mascot:focus-visible { outline-offset: 8px; border-radius: 24px; }
.mascot .bob { animation: bob 5s ease-in-out infinite; transform-box: view-box; transform-origin: center; }
.mascot .iris { transition: transform .12s linear; }
.mascot .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .12s ease-in; }
.mascot.is-blinking .lid { transform: scaleY(1); }
.mascot.is-squint .lid { transform: scaleY(.42); transition-duration: .2s; }
.mascot.is-wide .iris-scale { transform: scale(1.12); }
.mascot .iris-scale { transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.mascot .bar { transform-box: fill-box; transform-origin: 50% 100%; }
.mascot.is-poked .bar { animation: bars .6s var(--ease); }
.mascot.is-poked .bar:nth-of-type(2) { animation-delay: .06s; }
.mascot.is-poked .bar:nth-of-type(3) { animation-delay: .12s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bars { 0% { transform: scaleY(1); } 35% { transform: scaleY(1.35); } 70% { transform: scaleY(.9); } 100% { transform: scaleY(1); } }

.bubble {
    position: relative; margin-top: 10px;
    max-width: 340px; min-height: 3.4em;
    background: var(--card); border: 1px solid var(--border); border-radius: 18px;
    padding: 14px 18px; color: var(--text); font-size: 16px; text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.bubble::before {
    content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px;
    background: var(--card); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}
.bubble.is-new { animation: bubble-in .35s var(--ease); }
@keyframes bubble-in { from { transform: translateY(6px) scale(.97); opacity: .3; } to { transform: none; opacity: 1; } }
.poke-hint { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: .06em; text-transform: uppercase; }

/* Docked mini mascot (appears after the hero scrolls away) */
.dock {
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    transform: translateY(140%); transition: transform .45s var(--ease);
    pointer-events: none;
}
.dock.is-visible { transform: none; }
.dock.is-visible .dock-btn { pointer-events: auto; }
.dock-btn {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    padding: 8px; cursor: pointer;
}
.dock-btn .mascot { width: 100%; pointer-events: none; }
.dock-bubble {
    max-width: min(300px, calc(100vw - 32px));
    background: var(--card); border: 1px solid var(--border); border-radius: 16px 16px 4px 16px;
    padding: 12px 16px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.dock-bubble.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Pick your path ---------- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path {
    text-align: left; font: inherit; color: var(--text);
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 20px; cursor: pointer; text-decoration: none;
    display: flex; flex-direction: column; gap: 10px; min-height: 100%;
    transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.path:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--card-hover); }
.path[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(160deg, rgba(242, 169, 0, .12), var(--card) 60%); }
.path-emoji { font-size: 30px; line-height: 1; }
.path strong { font-size: 18px; line-height: 1.3; }
.path span { color: var(--muted); font-size: 15px; }
.path .go { margin-top: auto; color: var(--accent-soft); font-weight: 700; font-size: 15px; }

/* ---------- CiDiSi stage colors (from the logo) ---------- */
[data-stage="c"], [data-key="c"] { --stage: #22d3ee; }
[data-stage="d"], [data-key="d"] { --stage: #b47cf0; }
[data-stage="s"], [data-key="s"] { --stage: #f58a1f; }
[data-stage="a"], [data-key="i"] { --stage: #f2a900; }

/* ---------- Who I help ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
    font: inherit; font-weight: 700; font-size: 15px; color: var(--text-soft);
    background: var(--card); border: 1px solid var(--border); border-radius: 999px;
    padding: 10px 18px; min-height: 46px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.biz[hidden] { display: none; }
.biz-intro { font-size: 19px; color: var(--text); max-width: 760px; margin-bottom: 22px; }
.uses { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.use {
    background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--stage);
    border-radius: var(--radius); padding: 18px;
}
.use p { margin: 0; color: var(--text-soft); font-size: 16px; }
.badge {
    display: inline-block; margin-bottom: 10px;
    font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--stage);
}
.biz-cta { font-weight: 700; text-decoration: none; }
.biz-cta:hover { text-decoration: underline; }
.biz-other { margin-top: 28px; color: var(--muted); }

/* ---------- The CiDiSi method (demo) ---------- */
.stages { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.stage {
    width: 100%; font: inherit; color: var(--muted); cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 14px; min-height: 60px; position: relative; overflow: hidden;
    transition: border-color .3s, color .3s, background .3s;
}
.stage::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
    background: var(--stage); transition: width .5s var(--ease);
}
.stage-badge {
    flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    font-family: var(--mono); font-weight: 800; font-size: 15px;
    border: 2px solid var(--border); color: var(--muted); transition: all .3s;
}
.stage-name { font-weight: 700; font-size: 16px; }
.stage:hover { border-color: var(--stage); color: var(--text); }
.stage.is-current { color: var(--text); border-color: var(--stage); background: var(--card-hover); }
.stage.is-current .stage-badge, .stage.is-done .stage-badge { border-color: var(--stage); color: var(--stage); }
.stage.is-done { color: var(--text-soft); }
.stage.is-done::after, .stage.is-current::after { width: 100%; }
.stage.is-done .stage-badge { background: var(--stage); color: var(--on-accent); }

.method { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.method > *, .demo > *, .guide > *, .hero-grid > * { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { font-weight: 700; font-size: 15px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }

.sheet-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.sheet { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.sheet th { text-align: left; background: #0c1828; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 0; border-bottom: 1px solid var(--line); transition: background .4s, color .4s; }
.sheet td > span, .sheet td > button { display: block; padding: 10px 12px; white-space: pre; min-height: 40px; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .num { text-align: right; }
.sheet .cps-col { display: none; }
.sheet.show-cps .cps-col { display: table-cell; }
.cell-btn {
    width: 100%; font: inherit; color: inherit; text-align: inherit; cursor: pointer;
    background: transparent; border: 0; border-radius: 0;
}
.cell-btn.messy { color: #ffd27a; background: rgba(242, 169, 0, .08); text-decoration: underline wavy rgba(242, 169, 0, .7); text-underline-offset: 4px; }
.cell-btn.messy:hover { background: rgba(242, 169, 0, .18); }
.sheet td.fixed { background: rgba(34, 211, 238, .12); color: #9eeefb; }
.sheet .err { color: #ff8a8a; font-weight: 700; }
.sheet tr.hunt td { cursor: pointer; }
.sheet tr.hunt:hover td { background: rgba(180, 124, 240, .1); }
.sheet tr.nope td { animation: nope .4s; }
.sheet tr.found td { background: rgba(255, 99, 99, .14); color: #ffb0b0; }
.sheet tr.gone { display: none; }
@keyframes nope { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.row-btn { width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
.sheet-total { margin: 12px 0 0; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.sheet-total b { color: var(--text); }

.method-side h3 { font-size: 24px; color: var(--stage, var(--text)); }
.method-side > p { color: var(--text-soft); font-size: 16px; }
.stage-status { font-family: var(--mono); font-size: 14px; color: var(--text) !important; }
.findings { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.findings li { font-size: 15px; color: var(--text-soft); background: #0c1828; border-left: 3px solid #ff7a7a; border-radius: 6px; padding: 10px 12px; animation: bubble-in .35s var(--ease); }
.findings li b { color: var(--text); }
.method-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.method-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.method-actions .btn[hidden] { display: none; }

.insight { margin-bottom: 16px; }
.insight .insight-big { font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 12px; }
.insight-big .hl { color: var(--accent-soft); }
.insight p { color: var(--text-soft); font-size: 15px; }
.insight .before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.insight .before-after div { background: #0c1828; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; color: var(--muted); }
.insight .before-after b { display: block; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.insight .before-after .bad b { color: #ff9c9c; text-decoration: line-through; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #0c1828; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.kpi small { display: block; color: var(--muted); font-size: 13px; }
.kpi b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.metric-toggle { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.metric-toggle button {
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
    background: transparent; color: var(--text-soft); border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 14px; min-height: 40px;
}
.metric-toggle button:hover { border-color: var(--accent); color: var(--text); }
.metric-toggle button[aria-pressed="true"] { background: rgba(242, 169, 0, .14); border-color: var(--accent); color: var(--accent-soft); }

.chart-title { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.bar-row .label { color: var(--text-soft); white-space: nowrap; }
.bar-track { position: relative; height: 28px; }
.bar-fill {
    height: 100%; width: 0; background: #3d5a85; border-radius: 0 4px 4px 0;
    transition: width .8s var(--ease), background .4s;
}
.bar-row.is-top .bar-fill { background: var(--accent); }
.bar-row.is-top .label { color: var(--accent-soft); font-weight: 700; }
.bar-val {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-family: var(--mono); font-size: 13px; color: var(--text); padding-left: 8px; white-space: nowrap;
    transition: left .8s var(--ease);
}

/* ---------- Cost calculator ---------- */
.calc {
    display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
    border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px, 5vw, 48px);
    background: radial-gradient(500px 260px at 0% 0%, rgba(34, 211, 238, .08), transparent 70%), var(--card);
}
.calc > * { min-width: 0; }
.calc-copy p { color: var(--text-soft); font-size: 17px; }
.calc-form { display: grid; gap: 10px; }
.calc-form label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--text-soft); font-size: 15px; }
.calc-form output { font-family: var(--mono); color: var(--accent-soft); font-weight: 700; white-space: nowrap; }
.calc-form input[type="range"] { width: 100%; accent-color: var(--accent); margin: 0 0 14px; height: 28px; cursor: pointer; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.calc-results div { background: #0c1828; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.calc-results b { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.calc-results small { color: var(--muted); font-size: 13px; }

/* ---------- Guides ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
    font: inherit; font-weight: 700; font-size: 16px; color: var(--text-soft);
    background: var(--card); border: 1px solid var(--border); border-radius: 999px;
    padding: 12px 20px; min-height: 48px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.guide { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.guide[hidden] { display: none; }
.guide-side { position: sticky; top: 96px; }
.guide-side h3 { font-size: 26px; }
.guide-side p { color: var(--text-soft); font-size: 16px; }
.need { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 6px; font-size: 15px; color: var(--text-soft); }
.need li::before { content: "▸ "; color: var(--accent); }

.progress { margin-bottom: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.progress-track { height: 10px; border-radius: 999px; background: #0c1828; border: 1px solid var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--logo-orange), var(--accent), var(--accent-soft)); transition: width .5s var(--ease); }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 18px; }
.step-num {
    position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-family: var(--mono);
    background: var(--bg); border: 2px solid var(--border); color: var(--muted);
    transition: all .3s var(--ease);
}
.step.is-done .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color .3s; }
.step.is-done .step-card { border-color: rgba(242, 169, 0, .45); }
.step-card h4 { margin: 0 0 6px; font-size: 18px; }
.step-card p { margin: 0 0 12px; color: var(--text-soft); font-size: 16px; }
.step-card .heads-up { font-size: 14px; color: var(--muted); border-left: 3px solid var(--logo-cyan); padding-left: 10px; margin-bottom: 12px; }
.check {
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
    color: var(--text-soft); background: transparent; border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 8px;
}
.check:hover { border-color: var(--accent); color: var(--text); }
.check[aria-pressed="true"] { background: rgba(242, 169, 0, .12); border-color: var(--accent); color: var(--accent-soft); }

.diy-or-hire {
    margin-top: 10px; border-radius: var(--radius); padding: 26px;
    background: linear-gradient(135deg, rgba(242, 169, 0, .16), rgba(123, 63, 160, .14) 60%, rgba(34, 211, 238, .08));
    border: 1px solid rgba(242, 169, 0, .45);
    display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.diy-or-hire h4 { font-size: 22px; margin: 0 0 4px; }
.diy-or-hire p { margin: 0; color: var(--text-soft); }
.price { color: var(--accent-soft); font-weight: 800; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column;
    transition: transform .3s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-6px); border-color: var(--accent); }
.service::after {
    content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 169, 0, .14), transparent 70%);
    pointer-events: none;
}
.service .icon { width: 52px; height: 52px; margin-bottom: 18px; }
.service h3 { font-size: 24px; }
.service p { color: var(--text-soft); }
.service ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; font-size: 15px; color: var(--text-soft); }
.service li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.service-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.from { font-size: 15px; color: var(--muted); }
.from b { color: var(--accent-soft); font-size: 20px; }
.services-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15px; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: how; }
.how li { list-style: none; counter-increment: how; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(16, 28, 46, .5); }
.how li::before { content: "0" counter(how); display: block; font-family: var(--mono); font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.how h3 { font-size: 20px; }
.how p { color: var(--text-soft); margin: 0; font-size: 16px; }
ol.how { padding: 0; margin: 0; }

/* ---------- Coming soon strip ---------- */
.soon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.soon-card {
    border: 1px dashed var(--border); border-radius: var(--radius); padding: 20px;
    color: var(--text-soft); background: rgba(16, 28, 46, .4);
}
.soon-card .tag { display: inline-block; margin-bottom: 10px; color: var(--accent-soft); border-color: rgba(242, 169, 0, .4); }
.soon-card strong { display: block; color: var(--text); margin-bottom: 4px; }
.soon-card span { font-size: 15px; }

/* ---------- Dashboards page ---------- */
.page-hero .mascot { width: min(300px, 100%); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filters .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.project[hidden] { display: none; }
.project {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .3s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-4px); border-color: var(--accent); }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.project h3 { font-size: 21px; margin-bottom: 8px; }
.project p { color: var(--text-soft); font-size: 16px; }
.answers { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--text-soft); }
.answers li::before { content: "? "; color: var(--logo-cyan); font-weight: 800; font-family: var(--mono); }
.built-with { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.built-with span { font-size: 12px; font-family: var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

/* Wireframe "blueprint" previews: deliberately unfinished-looking */
.preview {
    position: relative; height: 170px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
    background:
        linear-gradient(rgba(38, 56, 82, .35) 1px, transparent 1px) 0 0 / 100% 20px,
        linear-gradient(90deg, rgba(38, 56, 82, .35) 1px, transparent 1px) 0 0 / 20px 100%,
        #0c1828;
    border-bottom: 1px solid var(--line);
}
.preview i, .preview .sk-donut, .preview .sk-button {
    background: linear-gradient(90deg, rgba(242, 169, 0, .14) 0%, rgba(242, 169, 0, .3) 50%, rgba(242, 169, 0, .14) 100%) 0 0 / 200% 100%;
    animation: shimmer 2.4s linear infinite;
    border-radius: 4px;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-kpis i { height: 30px; display: block; }
.sk-bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; }
.sk-bars i { flex: 1; height: var(--h); display: block; border-radius: 4px 4px 0 0; }
.sk-line { flex: 1; }
.sk-line svg { width: 100%; height: 100%; }
.sk-line path { fill: none; stroke: rgba(242, 169, 0, .55); stroke-width: 3; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; }
.sk-donut { width: 76px; height: 76px; border-radius: 50%; align-self: center; -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); }
.sk-rows, .sk-doc { display: grid; gap: 8px; }
.sk-rows i, .sk-doc i { height: 16px; display: block; }
.sk-rows i:nth-child(2n) { width: 85%; }
.sk-doc { width: 60%; }
.sk-doc i:first-child { width: 50%; height: 20px; }
.sk-button {
    align-self: flex-start; margin-top: auto; padding: 6px 14px; border-radius: 999px !important;
    font-size: 13px; font-weight: 700; color: var(--accent-soft); border: 1px dashed rgba(242, 169, 0, .6);
}
.sk-files { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sk-files i { width: 34px; height: 44px; display: block; }
.sk-files i.one { width: 52px; height: 64px; }
.sk-files b { color: var(--accent); font-size: 22px; }
.soon-ribbon {
    position: absolute; top: 14px; right: -34px; transform: rotate(35deg);
    background: var(--accent); color: var(--on-accent);
    font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 40px;
}
.preview { overflow: hidden; }
.uses.every { grid-template-columns: repeat(4, 1fr); }

/* ---------- Contact page ---------- */
.contact-section { padding-top: clamp(40px, 6vw, 72px); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact > * { min-width: 0; }
.contact-intro h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.contact-iris { display: flex; align-items: center; gap: 16px; margin: 6px 0 26px; }
.contact-iris .mascot { width: 120px; flex: none; }
.contact-iris .bubble { margin: 0; text-align: left; max-width: 300px; min-height: 0; }
.contact-iris .bubble::before { top: 50%; left: -9px; transform: translateY(-50%) rotate(-45deg); }
.next-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; }
.next-steps li::before {
    content: counter(ns); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 14px;
    border: 2px solid var(--accent); color: var(--accent-soft);
}
.next-steps b { font-size: 17px; }
.next-steps span { color: var(--text-soft); font-size: 15px; }
.price-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-strip div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.price-strip small { display: block; color: var(--muted); font-size: 13px; }
.price-strip b { color: var(--accent-soft); font-size: 17px; }

.contact-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: clamp(20px, 4vw, 34px); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.direct-email { margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 16px; }
.direct-email a { color: var(--accent-soft); font-weight: 700; text-underline-offset: 3px; word-break: break-all; }
.direct-email a:hover { color: var(--accent); }
.project-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: 15px; color: var(--text); }
.project-form input[type="text"], .project-form input[type="email"], .project-form select, .project-form textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--text);
    background: #0c1828; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.project-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.project-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.project-form select option { background: var(--card); color: var(--text); }
.project-form ::placeholder { color: #6b7d95; }
.project-form input:focus, .project-form select:focus, .project-form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 169, 0, .25);
}
.pill-field { border: 0; margin: 0; padding: 0; }
.pill-field legend { padding: 0; margin-bottom: 8px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
    display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--text-soft); font-weight: 700; font-size: 15px; transition: all .2s;
}
.pill:hover span { border-color: var(--accent); color: var(--text); }
.pill input:checked + span { background: rgba(242, 169, 0, .14); border-color: var(--accent); color: var(--accent-soft); }
.pill input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.project-form .btn { width: 100%; margin-top: 4px; }
.form-note { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.flash { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 15px; border: 1px solid; }
.flash.error { background: rgba(242, 169, 0, .1); border-color: rgba(242, 169, 0, .5); color: var(--accent-soft); }
.flash.success { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .5); color: #9eeefb; }

/* ---------- Final CTA ---------- */
.cta {
    text-align: center; border-radius: 24px; padding: clamp(40px, 7vw, 72px) 24px;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(242, 169, 0, .18), transparent 70%),
        radial-gradient(500px 300px at 85% 100%, rgba(34, 211, 238, .12), transparent 70%),
        var(--bg-raised);
    border: 1px solid var(--border);
}
.cta p { color: var(--text-soft); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent-soft); }
.site-footer p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .paths, .soon { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
    .method, .calc, .contact { grid-template-columns: 1fr; }
    .uses, .uses.every { grid-template-columns: repeat(2, 1fr); }
    .guide { grid-template-columns: 1fr; gap: 24px; }
    .guide-side { position: static; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .hero-grid { grid-template-columns: 1fr; gap: 12px; }
    .mascot-stage { order: -1; }
    .mascot { width: min(260px, 70vw); }
    .how { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .price-strip { gap: 6px; }
    .price-strip div { padding: 10px; }
    .price-strip small { font-size: 12px; }
    .price-strip b { font-size: 15px; }
    .contact-iris .mascot { width: 92px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .tab { flex: 1 1 100%; justify-content: center; }
    .diy-or-hire .btn { width: 100%; }
}
@media (max-width: 520px) {
    .paths, .soon { grid-template-columns: 1fr; }
    .panel { padding: 14px; }
    .sheet { font-size: 12px; }
    .sheet th { padding: 8px 6px; }
    .sheet td > span, .sheet td > button { padding: 9px 6px; }
    .uses, .uses.every { grid-template-columns: 1fr; }
    .projects { grid-template-columns: 1fr; }
    .stages { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .stage { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; text-align: center; }
    .stage-name { font-size: 13px; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .calc-results { grid-template-columns: 1fr; }
    .calc-results div { display: flex; align-items: baseline; gap: 10px; }
    .bar-row { grid-template-columns: 76px 1fr; font-size: 13px; }
    .steps::before { left: 17px; }
    .step { grid-template-columns: 36px 1fr; gap: 12px; }
    .step-num { width: 36px; height: 36px; font-size: 14px; }
    .step-card { padding: 16px; }
    .dock-btn { width: 60px; height: 60px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-chart .trend { stroke-dashoffset: 0; }
    .hero-chart .node, .hero-chart .arrow { opacity: 1; }
    .reveal { opacity: 1; transform: none; }
    .btn:hover, .path:hover, .service:hover { transform: none; }
}

@media (forced-colors: active) {
    .bar-fill, .progress-fill { background: CanvasText; }
}

/* ---------- Text pages (privacy) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.prose h2 { font-size: 24px; margin-top: 40px; color: var(--text); }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.prose b { color: var(--text); }
.prose .updated { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.notfound .mascot { width: min(300px, 100%); }
.notfound h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; }
@media (max-width: 760px) {
    .notfound-inner { grid-template-columns: 1fr; text-align: center; }
    .notfound .hero-ctas { justify-content: center; }
}

/* ---------- Language picker ---------- */
.brand { margin-right: auto; }
.site-nav { order: 2; }
.lang { order: 3; position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
    font: inherit; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
    color: var(--text-soft); background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
    transition: border-color .2s, color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-soft); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; min-width: 220px;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.lang-menu[hidden] { display: none; }
.lang-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lang-menu button {
    width: 100%; text-align: left; font: inherit; font-size: 15px; color: var(--text-soft); cursor: pointer;
    background: transparent; border: 0; border-radius: 8px; padding: 10px 12px; min-height: 42px;
    display: flex; justify-content: space-between; align-items: center;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--card-hover); color: var(--text); }
.lang-menu button[aria-current] { color: var(--accent-soft); font-weight: 700; }
.lang-menu button[aria-current]::after { content: "✓"; }
.lang-menu p { margin: 6px 0 0; padding: 10px 12px 4px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--muted); }

.lang-prompt { background: #0c1828; border-bottom: 1px solid var(--line); }
.lang-prompt-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 0; }
.lang-prompt-text { font-size: 16px; color: var(--text); }
.lang-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
    .lang { order: 1; }
    .nav-toggle { order: 2; }
    .header-inner { gap: 8px; }
}

/* Hide Google Translate's own toolbar, tooltips and highlights */
#gt-holder, .skiptranslate > iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt,
.goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }
