/*
 * Vorian Theme — pages.css
 * Page-specific styles for Product, Enterprise, News, Onboarding templates.
 * Loaded conditionally via wp_enqueue_scripts.
 */

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
/* Tab image-only view */
.v-fin-img {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.mc-tab-img {
    width: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

@media (max-width: 768px) {
    /* Image tabs */
    .v-fin-img {
        min-height: unset;
    }
    .mc-tab-img {
        height: auto;
        object-fit: contain;
        object-position: top center;
    }

    /* CCI */
    .v-cci {
        padding: 20px 16px;
    }
    .graph {
        position: relative;
        width: 100%;
        height: 280px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .graph::-webkit-scrollbar {
        display: none;
    }
    .graph svg {
        position: absolute;
        min-width: 700px;
        width: 700px;
        height: 100%;
    }
    .graph::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,.85));
        pointer-events: none;
        border-radius: 0 16px 16px 0;
    }
}

@media (max-width: 480px) {
    .graph {
        height: 240px;
    }
}

/* Module carousel */
.module-stage { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 12px; }
.module-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.mtab {
	padding: 10px 20px; border-radius: 999px;
	background: rgba(10, 10, 10, .04); font-size: 13px; color: #3a3a3a;
	cursor: pointer; transition: all .25s; border: 1px solid transparent;
	min-height: 44px; font-family: inherit;
}
.mtab:hover { background: rgba(10, 10, 10, .08); }
.mtab.active { background: #0a0a0a; color: #fff; }

.module-card {
	position: relative; border-radius: 22px; background: #fff;
	border: 1px solid rgba(10, 10, 10, .06);
	box-shadow: 0 30px 60px -20px rgba(10, 10, 10, .25), 0 80px 120px -40px rgba(139, 92, 246, .18);
	overflow: hidden; animation: float 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .module-card { animation: none; } }

.mc-bar {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fbfaf8;
}
.mc-bar .tl { display: flex; gap: 6px; }
.mc-bar .tl span { width: 10px; height: 10px; border-radius: 50%; }
.mc-bar .tl span:nth-child(1) { background: #f6c9c0; }
.mc-bar .tl span:nth-child(2) { background: #f5e3b3; }
.mc-bar .tl span:nth-child(3) { background: #c7e7c7; }
.mc-bar .url {
	margin-left: 8px; background: #eeece7; border-radius: 8px;
	font-size: 12px; color: #7a7a7a; padding: 6px 12px;
	font-family: 'JetBrains Mono', monospace;
}
.mc-view { display: none; }
.mc-view.active { display: block; }

/* Finance view (mc-view) */
.v-fin { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 478px; }
.v-fin .lf { padding: 26px 30px; border-right: 1px solid var(--line-2); }
.v-fin .rt { padding: 26px 28px; background: #fbfaf7; }
.v-fin h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.v-fin .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.v-fin .chart { height: 180px; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.v-fin .chart .h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.v-fin .chart .h .m { display: flex; gap: 12px; color: var(--muted); }
.v-fin .chart .h .m span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.v-fin .chart .h .m .rev::before { background: var(--violet); }
.v-fin .chart .h .m .exp::before { background: var(--amber); }
.v-fin .chart svg { flex: 1; width: 100%; }
.v-fin .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }

.module-card .kpi { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fff; }
.module-card .kpi .l { font-size: 10.5px; letter-spacing: .1em; color: #9a9a9a; text-transform: uppercase; font-weight: 600; }
.module-card .kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.module-card .kpi .v.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.module-card .kpi .d { font-size: 11px; margin-top: 3px; font-weight: 500; }
.module-card .kpi .d.up { color: #168b4f; }
.module-card .kpi .d.dn { color: #c44c3e; }

.v-fin .tx { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.v-fin .tx h4 { margin: 0; padding: 10px 14px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; color: #2a2a2a; }
.v-fin .tx h4 em { font-style: normal; color: var(--muted); font-weight: 400; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.v-fin .tx-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 14px; font-size: 12.5px; align-items: center; border-top: 1px solid var(--line-2); }
.v-fin .tx-row:first-of-type { border-top: none; }
.v-fin .tx-row .t { color: #2a2a2a; }
.v-fin .tx-row .cat { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #f2ede4; color: #8a7a52; font-weight: 500; letter-spacing: .04em; }
.v-fin .tx-row .amt { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; }
.v-fin .rt h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }

.decision { border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; background: #fff; margin-bottom: 10px; position: relative; overflow: hidden; }
.decision::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--grad); }
.decision .t { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.decision .n { font-size: 13px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; }
.decision .d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.decision .who { margin-top: 8px; font-size: 11px; color: #3a3a3a; display: flex; gap: 6px; align-items: center; }
.decision .who .av { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 600; }

/* Ops view */
.v-ops { display: grid; grid-template-columns: 1fr 1fr; min-height: 478px; }
.v-ops .lf { padding: 26px 30px; border-right: 1px solid var(--line-2); }
.v-ops .rt { padding: 26px 28px; background: #fbfaf7; }
.v-ops h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.v-ops .sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.v-ops .kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kanban .col { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 10px; }
.kanban .col h5 { margin: 0 0 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #6a6a6a; display: flex; justify-content: space-between; }
.kanban .col h5 em { font-style: normal; background: #fff; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; color: #3a3a3a; }

.ticket { background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: 10px; margin-bottom: 7px; font-size: 11.5px; }
.ticket .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--muted); letter-spacing: .06em; }
.ticket .t { margin-top: 3px; font-weight: 500; color: #1a1a1a; line-height: 1.3; }
.ticket .m { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ticket .av { width: 16px; height: 16px; border-radius: 50%; font-size: 9px; color: #fff; display: grid; place-items: center; font-weight: 600; }
.ticket .av.a { background: #8b5cf6; }
.ticket .av.b { background: #f59e0b; }
.ticket .av.c { background: #d946ef; }
.ticket .av.d { background: #168b4f; }
.ticket .pri { font-size: 9px; padding: 1px 6px; border-radius: 999px; letter-spacing: .04em; font-weight: 600; }
.ticket .pri.hi { background: #fde2de; color: #a63328; }
.ticket .pri.md { background: #e7edfb; color: #3c5a9a; }
.ticket .pri.lo { background: #e8f2eb; color: #3d7050; }

.v-ops .okrs { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 12px 14px; }
.v-ops .okrs h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; }
.v-ops .okrs h4 em { font-style: normal; font-weight: 400; color: var(--muted); }
.okr { margin-top: 10px; }
.okr:first-of-type { margin-top: 0; }
.okr .top { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.okr .top .lbl { color: #2a2a2a; font-weight: 500; }
.okr .top .pct { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); }
.okr .bar { height: 6px; background: #f0ede6; border-radius: 999px; overflow: hidden; }
.okr .bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

.v-ops .rt h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 9px 12px; }
.person .av { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.person .n { font-size: 12.5px; font-weight: 500; }
.person .r { font-size: 11px; color: var(--muted); }
.person .s { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: #e8f2eb; color: #3d7050; font-weight: 500; }
.person .s.a { background: #fde2de; color: #a63328; }

/* CCI view */
.v-cci { min-height: 478px; position: relative; padding: 32px 30px; background: radial-gradient(50% 60% at 50% 50%, rgba(139, 92, 246, .08), transparent 70%); }
.v-cci h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.v-cci .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.graph { position: relative; height: 380px; border: 1px dashed rgba(10, 10, 10, .08); border-radius: 16px; background: #fff; overflow: hidden; }
.graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; padding: 8px 13px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; font-size: 11.5px; box-shadow: 0 4px 12px rgba(10, 10, 10, .05); white-space: nowrap; }
.node .k { font-size: 9px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.node .t { font-weight: 500; color: #1a1a1a; }
.node.decision { background: #0a0a0a; color: #fff; border-color: #0a0a0a; padding: 8px 13px; margin-bottom: 0; }
.node.decision::before { display: none; }
.node.decision .k { color: rgba(255, 255, 255, .5); }
.node.decision .t { color: #fff; }
.node.outcome { background: linear-gradient(135deg, #faf5ff, #fff7ed); border-color: rgba(139, 92, 246, .2); }

/* Pillars */
.pil-head { text-align: center; margin-bottom: 64px; }
.pil-head .section-sub { margin: 16px auto 0; }
.pil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
	background: #fff; border: 1px solid var(--line); border-radius: 22px;
	padding: 34px 32px 36px; display: flex; flex-direction: column; gap: 16px;
	position: relative; overflow: hidden;
	transition: transform .35s, box-shadow .35s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10, 10, 10, .2); }
.pillar .bloom { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(60px); opacity: .25; top: -80px; right: -80px; pointer-events: none; }
.pillar.fin .bloom { background: radial-gradient(circle, var(--magenta), transparent 65%); }
.pillar.ops .bloom { background: radial-gradient(circle, var(--violet), transparent 65%); }
.pillar.cci .bloom { background: radial-gradient(circle, var(--amber), transparent 65%); }
.pillar .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; }
.pillar h3 { margin: 0; font-size: 26px; letter-spacing: -.025em; font-weight: 600; line-height: 1.1; }
.pillar h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.pillar p { margin: 0; font-size: 14.5px; color: #3a3a3a; line-height: 1.55; max-width: 32ch; }
.pillar ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 9px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.pillar li { font-size: 13px; color: #2a2a2a; display: flex; align-items: flex-start; gap: 10px; }
.pillar li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); margin-top: 7px; flex-shrink: 0; }

/* Deep dive */
.dd { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.dd.rev { grid-template-columns: 1.3fr 1fr; }
.dd-text .mini { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.dd-text h2 { margin: 0 0 16px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.dd-text h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.dd-text p { font-size: 16px; color: #3a3a3a; line-height: 1.55; margin: 0 0 22px; }
.dd-text ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.dd-text li { font-size: 13.5px; color: #2a2a2a; display: flex; align-items: flex-start; gap: 10px; }
.dd-text li::before { content: "+"; color: var(--violet); font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.2; flex-shrink: 0; font-weight: 500; }
.dd-mock { background: #fbfaf8; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(10, 10, 10, .18); }
.mock-inner { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; }

/* Close-mock */
.close-mock h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.close-mock h4 .s { font-size: 10px; padding: 3px 10px; border-radius: 999px; background: #e8f2eb; color: #3d7050; font-weight: 500; letter-spacing: .06em; }
.close-steps { display: flex; flex-direction: column; gap: 4px; }
.close-step { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.close-step:last-child { border-bottom: none; }
.close-step .cb { width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px; display: grid; place-items: center; }
.close-step.done .cb { background: var(--ink); border-color: var(--ink); }
.close-step.done .cb::after { content: ""; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-1px); }
.close-step .t { font-weight: 500; }
.close-step.done .t { color: #6a6a6a; text-decoration: line-through; }
.close-step .tm { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); }
.close-step.active { background: linear-gradient(90deg, rgba(139, 92, 246, .06), transparent); }
.close-step.active .cb { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }

/* Load-mock (ops) */
.load-mock h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.load-mock h4 em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.load-row { display: grid; grid-template-columns: 120px 1fr 50px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.load-row:first-of-type { border-top: none; }
.load-row .nm { display: flex; align-items: center; gap: 10px; }
.load-row .av { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 600; }
.load-row .bar { height: 8px; background: #f0ede6; border-radius: 999px; overflow: hidden; position: relative; }
.load-row .bar span { display: block; height: 100%; border-radius: 999px; }
.load-row .bar.a span { background: var(--violet); }
.load-row .bar.b span { background: var(--amber); }
.load-row .bar.c span { background: var(--magenta); }
.load-row .bar.over span { background: linear-gradient(90deg, #d946ef, #f59e0b); }
.load-row .pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-align: right; }
.load-rec {
	margin-top: 14px; padding: 12px 14px; border-radius: 10px;
	background: linear-gradient(90deg, rgba(139, 92, 246, .08), rgba(245, 158, 11, .04));
	border: 1px solid rgba(139, 92, 246, .12);
	font-size: 12.5px; color: #2a2a2a; display: flex; gap: 10px; align-items: center;
}
.load-rec .d { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* Command palette */
.palette-wrap { max-width: 780px; margin: 56px auto 0; }
.palette {
	background: rgba(14, 14, 16, .9); backdrop-filter: blur(16px);
	border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden;
	box-shadow: 0 40px 100px -20px rgba(139, 92, 246, .35), 0 0 120px -30px rgba(245, 158, 11, .18);
	position: relative;
}
.palette::before {
	content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px;
	background: var(--grad-soft);
	-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none; opacity: .5;
}
.pal-input { padding: 18px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pal-input .ic { color: rgba(255, 255, 255, .5); font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.pal-input input { background: transparent; border: none; color: #fff; font-size: 17px; font-family: inherit; width: 100%; outline: none; letter-spacing: -.01em; }
.pal-input input::placeholder { color: rgba(255, 255, 255, .4); }
.pal-input .caret { width: 2px; height: 18px; background: var(--violet); animation: pal-blink 1.1s steps(1) infinite; }
@keyframes pal-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pal-input .caret { animation: none; } }
.pal-input kbd, .pal-item kbd { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255, 255, 255, .7); }
.pal-section { padding: 10px 22px 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .4); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.pal-item { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 14px; align-items: center; padding: 11px 22px; font-size: 14px; cursor: pointer; transition: background .18s; }
.pal-item:hover, .pal-item.sel { background: rgba(255, 255, 255, .04); }
.pal-item.sel { background: linear-gradient(90deg, rgba(139, 92, 246, .12), rgba(245, 158, 11, .04)); }
.pal-item .ic { width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.pal-item.sel .ic { background: var(--grad); }
.pal-item .t { color: #fff; font-weight: 450; }
.pal-item .sub { color: rgba(255, 255, 255, .45); font-size: 12px; }
.pal-foot { display: flex; justify-content: space-between; padding: 10px 22px; font-size: 11px; color: rgba(255, 255, 255, .4); font-family: 'JetBrains Mono', monospace; border-top: 1px solid rgba(255, 255, 255, .06); }

/* Workflow */
.wf-head { max-width: 780px; margin-bottom: 56px; }
.wf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wf-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.wf-card .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted-2); letter-spacing: .14em; }
.wf-card h4 { margin: 0; font-size: 17px; letter-spacing: -.015em; font-weight: 600; line-height: 1.25; }
.wf-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Integrations */
.int-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.int-head .section-sub { margin: 16px auto 0; }
.int-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; max-width: 1100px; margin: 0 auto; }
.int-cell { aspect-ratio: 1; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; transition: background .25s; }
.int-cell:hover { background: #fbfaf7; }
.int-cell .mark { width: 40px; height: 40px; border-radius: 10px; background: #f4f2ed; border: 1px solid var(--line); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: #2a2a2a; letter-spacing: -.02em; }
.int-cell .n { font-size: 12px; color: #3a3a3a; font-weight: 500; }
.int-cell.accent .mark { background: var(--grad); color: #fff; border-color: transparent; }
.int-foot { text-align: center; margin-top: 36px; }
.int-foot p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }

/* Comparison table */
.cmp-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.cmp-table { max-width: 920px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.cmp-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.cmp-row:first-child { border-top: none; background: #fbfaf7; }
.cmp-row > div { padding: 16px 20px; }
.cmp-row .lbl { color: #2a2a2a; font-weight: 500; }
.cmp-row .h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.cmp-row .h.vor { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; letter-spacing: -.01em; text-transform: none; font-family: Inter, system-ui, sans-serif; font-size: 14px; }
.cmp-row .cell { text-align: center; color: #3a3a3a; }
.cmp-row .cell.y { color: #168b4f; font-weight: 600; }
.cmp-row .cell.n { color: #c44c3e; }
.cmp-row .cell.p { color: #b88b2a; }
.cmp-row .cell.vor { background: #fbfaf7; font-weight: 600; color: #0a0a0a; }

/* Security */
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.sec-head .section-sub { margin: 16px auto 0; color: rgba(255, 255, 255, .55); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 48px; }
.sec-card { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; transition: background .3s, transform .3s; }
.sec-card:hover { background: rgba(255, 255, 255, .05); transform: translateY(-4px); }
.sec-card .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); display: grid; place-items: center; }
.sec-card .ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sec-card h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.sec-card p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .55); line-height: 1.55; }
.sec-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.sec-badge { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .7); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; }

.ent-hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(10, 10, 10, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
}


.metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(10, 10, 10, .06); border: 1px solid rgba(10, 10, 10, .06);
    border-radius: 18px; overflow: hidden; max-width: 1100px; margin: 0 auto;
}
.metric { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.metric .n { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .d { font-size: 13px; color: #3a3a3a; line-height: 1.45; max-width: 22ch; }
.metric .s { font-size: 10.5px; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; font-family: 'JetBrains Mono', monospace; margin-top: auto; }


.ind-head { margin-bottom: 48px; }
.ind-head .section-sub { margin-top: 16px; }
.ind-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ind-tab {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 13.5px; color: #3a3a3a; cursor: pointer; transition: all .25s;
    min-height: 44px; font-family: inherit;
}
.ind-tab:hover { border-color: rgba(10, 10, 10, .28); color: #0a0a0a; }
.ind-tab.active { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.ind-tab .ic { width: 20px; height: 20px; border-radius: 6px; background: rgba(10, 10, 10, .06); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: #2a2a2a; }
.ind-tab.active .ic { background: rgba(255, 255, 255, .14); color: #fff; }


.ind-stage { background: #fbfaf8; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px -40px rgba(10, 10, 10, .2); }
.ind-view { display: none; }
.ind-view.active { display: block; }
.ind-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.ind-text h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.028em; font-weight: 700; line-height: 1.08; }
.ind-text h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.ind-text .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: 'JetBrains Mono', monospace; margin-bottom: 10px; }
.ind-text p { margin: 14px 0 22px; font-size: 15px; color: #3a3a3a; line-height: 1.55; max-width: 40ch; }
.ind-before { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ind-before .ba { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.ind-before .ba .t { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.ind-before .ba .v { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-top: 4px; line-height: 1; }
.ind-before .ba.before .v { color: #1a1a1a; }
.ind-before .ba.after .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ind-before .ba .d { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ind-text ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ind-text li { font-size: 13.5px; color: #1a1a1a; display: flex; gap: 10px; align-items: flex-start; }
.ind-text li::before { content: "+"; color: var(--violet); font-family: 'JetBrains Mono', monospace; font-weight: 600; line-height: 1.25; flex-shrink: 0; }


.ind-mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 460px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.mock-top .t { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.mock-top .t em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 8px; font-family: 'JetBrains Mono', monospace; }
.mock-top .dot-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #168b4f; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.mock-top .dot-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1db565; box-shadow: 0 0 0 3px rgba(29, 181, 101, .18); animation: ind-blink 1.8s ease-in-out infinite; }
@keyframes ind-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mock-top .dot-live::before { animation: none; } }


/* Cafe outlets */
.outlets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.outlet { aspect-ratio: 1; border-radius: 7px; background: #f4f2ed; border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; font-size: 9px; color: #6a6a6a; font-family: 'JetBrains Mono', monospace; cursor: default; transition: transform .2s; }
.outlet:hover { transform: scale(1.08); z-index: 2; }
.outlet .id { font-weight: 600; color: #3a3a3a; letter-spacing: .04em; }
.outlet .v { font-size: 10px; font-weight: 600; color: #1a1a1a; font-family: Inter, sans-serif; }
.outlet.hot { background: linear-gradient(135deg, rgba(217, 70, 239, .18), rgba(245, 158, 11, .18)); border-color: rgba(245, 158, 11, .35); }
.outlet.hot .v { color: #a63328; }
.outlet.warm { background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(217, 70, 239, .12)); border-color: rgba(139, 92, 246, .3); }
.outlet.alert { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.outlet.alert .id { color: rgba(255, 255, 255, .55); }
.outlet.alert .v { color: #fff; }
.outlet.cold { opacity: .6; }


.cafe-alerts { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 12px; background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; font-size: 12.5px; align-items: center; }
.alert-row .tag { font-size: 9.5px; padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; font-family: 'JetBrains Mono', monospace; }
.alert-row .tag.r { background: #fde2de; color: #a63328; }
.alert-row .tag.a { background: #fff1d6; color: #a0712a; }
.alert-row .tag.g { background: #e8f2eb; color: #3d7050; }
.alert-row .msg { color: #1a1a1a; }
.alert-row .t { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); }


/* Manufacturer */
.factory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.station { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.station .n { font-size: 10.5px; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.station .t { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.station .s { font-size: 10.5px; color: var(--muted); margin-top: auto; }
.station .bar { height: 4px; background: #ece9e2; border-radius: 999px; overflow: hidden; }
.station .bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.station.warn { background: linear-gradient(135deg, #fff7ed, #fef2f2); border-color: rgba(245, 158, 11, .35); }
.station.warn .s { color: #a0712a; font-weight: 500; }
.station.stop { background: #0a0a0a; border-color: #0a0a0a; }
.station.stop .n { color: rgba(255, 255, 255, .5); }
.station.stop .t { color: #fff; }
.station.stop .s { color: #f87171; font-weight: 500; }
.mfg-sig { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.sigcard { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; }
.sigcard .l { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.sigcard .v { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; line-height: 1; }
.sigcard .v.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sigcard .d { font-size: 10.5px; margin-top: 2px; font-weight: 500; }
.sigcard .d.up { color: #168b4f; }
.sigcard .d.dn { color: #c44c3e; }


/* Retail */
.retail-head { display: flex; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.tag-btn { font-size: 10.5px; padding: 4px 10px; border-radius: 999px; background: #f4f2ed; color: #3a3a3a; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.tag-btn.sel { background: #0a0a0a; color: #fff; }
.region { display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.region:first-of-type { border-top: none; }
.region .r { color: #1a1a1a; font-weight: 500; }
.region .bar { height: 8px; background: #ece9e2; border-radius: 999px; overflow: hidden; position: relative; }
.region .bar span { display: block; height: 100%; border-radius: 999px; }
.region .bar.a span { background: var(--violet); }
.region .bar.b span { background: var(--amber); }
.region .bar.c span { background: var(--magenta); }
.region .bar.d span { background: linear-gradient(90deg, #8b5cf6, #f59e0b); }
.region .v { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #1a1a1a; font-weight: 600; min-width: 90px; text-align: right; }
.retail-foot { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: linear-gradient(90deg, rgba(139, 92, 246, .08), rgba(245, 158, 11, .04)); border: 1px solid rgba(139, 92, 246, .12); display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #1a1a1a; }
.retail-foot .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }


/* Healthcare — scoped under .ind-mock to avoid colliding with homepage hero card */
.ind-mock .hc-row {
    display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px;
    align-items: center; padding: 10px 12px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: #fbfaf7; font-size: 12.5px; margin-bottom: 6px;
}
.ind-mock .hc-row .bd { width: 32px; height: 32px; border-radius: 8px; background: #f4f2ed; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #3a3a3a; }
.ind-mock .hc-row .n { font-weight: 500; color: #1a1a1a; }
.ind-mock .hc-row .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ind-mock .hc-row .sla { font-size: 10px; padding: 3px 8px; border-radius: 999px; font-weight: 600; letter-spacing: .04em; font-family: 'JetBrains Mono', monospace; }
.ind-mock .hc-row .sla.g { background: #e8f2eb; color: #3d7050; }
.ind-mock .hc-row .sla.a { background: #fff1d6; color: #a0712a; }
.ind-mock .hc-row .sla.r { background: #fde2de; color: #a63328; }
.ind-mock .hc-row .t { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }


/* Logistics */
.lg-map { height: 240px; background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 12px; position: relative; overflow: hidden; }
.lg-map svg { width: 100%; height: 100%; display: block; }
.lg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-item { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.lg-item .nm { display: flex; align-items: center; gap: 8px; }
.lg-item .nm .d { width: 8px; height: 8px; border-radius: 50%; }
.lg-item .nm .d.v { background: var(--violet); }
.lg-item .nm .d.a { background: var(--amber); }
.lg-item .nm .d.m { background: var(--magenta); }
.lg-item .v { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; }


/* ============================================================
   INDUSTRIES — RESPONSIVE
   ============================================================ */


/* Tablet — 991px */
@media (max-width: 991px) {
    .ind-head {
        text-align: center;
    }

    .ind-tabs {
        gap: 6px;
        justify-content: center;
    }

    .ind-tab {
        font-size: 12px;
        padding: 8px 14px;
    }

    .ind-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ind-mock {
        order: -1;
    }

    .ind-text h3 {
        font-size: clamp(22px, 3.5vw, 32px);
    }

    .ind-text p {
        font-size: clamp(14px, 1.8vw, 16px);
    }

    .ind-text .lbl {
        font-size: clamp(11px, 1.2vw, 13px);
    }

    .ind-text li {
        font-size: clamp(13px, 1.5vw, 15px);
    }

    /* Fix: use full selector chain to match base specificity */
    .ind-before .ba .t { font-size: clamp(10px, 1.2vw, 12px); }
    .ind-before .ba .v { font-size: clamp(20px, 3vw, 28px); }
    .ind-before .ba .d { font-size: clamp(11px, 1.3vw, 13px); }

    /* Outlet grid */
    #outlets {
        grid-template-columns: repeat(8, 1fr);
    }

    /* Factory stations */
    .factory {
        grid-template-columns: repeat(3, 1fr);
    }

    .station .n  { font-size: 11px; }
    .station .t  { font-size: 12px; }
    .station .s  { font-size: 11px; }

    /* Logistics map */
    .lg-map svg {
        height: 180px;
    }

    /* Mock top bar — fix: scope to .mock-top for specificity */
    .mock-top { font-size: clamp(11px, 1.3vw, 13px); }
    .mock-top .dot-live { font-size: 11px; }

    /* Alert rows — fix: full chain for .alert-row .tag */
    .alert-row { font-size: clamp(11px, 1.3vw, 13px); }
    .alert-row .tag { font-size: 9px; }

    /* Retail */
    .region .r { font-size: clamp(11px, 1.3vw, 13px); }
    .region .v { font-size: clamp(12px, 1.4vw, 14px); }

    /* Healthcare — fix: must use .ind-mock scope to override base */
    .ind-mock .hc-row .n   { font-size: clamp(12px, 1.4vw, 14px); }
    .ind-mock .hc-row .sub { font-size: clamp(10px, 1.2vw, 12px); }
    .ind-mock .hc-row .sla { font-size: clamp(10px, 1.2vw, 12px); }

    /* Logistics list */
    .lg-item      { font-size: clamp(11px, 1.3vw, 13px); }
    .lg-item .nm  { font-size: clamp(11px, 1.3vw, 13px); }
    .lg-item .v   { font-size: clamp(11px, 1.3vw, 13px); }

    /* Sigcards */
    .sigcard .l { font-size: 10px; }
    .sigcard .v { font-size: clamp(16px, 2.2vw, 22px); }
    .sigcard .d { font-size: 11px; }

    /* Retail foot */
    .retail-foot { font-size: clamp(11px, 1.3vw, 13px); }
}


/* Large mobile — 768px */
@media (max-width: 768px) {
    .ind-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 8px;
        gap: 6px;

        /* Visible scroll line */
        scrollbar-width: thin;
        scrollbar-color: rgba(10,10,10,.2) rgba(10,10,10,.06);
    }

    .ind-tabs::-webkit-scrollbar {
        display: block;
        height: 3px;
    }

    .ind-tabs::-webkit-scrollbar-track {
        background: rgba(10,10,10,.06);
        border-radius: 999px;
    }

    .ind-tabs::-webkit-scrollbar-thumb {
        background: rgba(10,10,10,.2);
        border-radius: 999px;
    }

    .ind-tabs::-webkit-scrollbar-thumb:hover {
        background: rgba(10,10,10,.35);
    }

    .ind-tab {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 12px;
        min-height: 40px;
    }

    .ind-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ind-text h3 {
        font-size: clamp(20px, 5vw, 28px);
    }

    .ind-text p {
        font-size: 14px;
        line-height: 1.55;
    }

    .ind-text .lbl {
        font-size: 11px;
    }

    .ind-before {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Fix: full selector chain */
    .ind-before .ba .t { font-size: 10px; }
    .ind-before .ba .v { font-size: 20px; }
    .ind-before .ba .d { font-size: 11px; }

    .ind-text ul {
        gap: 8px;
    }

    .ind-text li {
        font-size: 13px;
    }

    /* Mock top bar */
    .mock-top { font-size: 11px; }
    .mock-top .dot-live { font-size: 10px; padding: 3px 8px; }

    /* Outlet grid */
    #outlets {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }

    /* Alerts */
    .cafe-alerts { gap: 6px; }

    .alert-row {
        font-size: 11px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .alert-row .msg {
        flex: 1;
        min-width: 0;
    }

    .alert-row .t   { font-size: 10px; }
    /* Fix: full chain for .tag */
    .alert-row .tag { font-size: 9px; padding: 2px 6px; }

    /* Factory */
    .factory {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .station .n { font-size: 10px; }
    .station .t { font-size: 12px; }
    .station .s { font-size: 10px; }

    .mfg-sig {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .sigcard .l { font-size: 9px; }
    .sigcard .v { font-size: 16px; }
    .sigcard .d { font-size: 10px; }

    /* Retail */
    .retail-head { flex-wrap: wrap; gap: 6px; }
    .tag-btn      { font-size: 11px; padding: 4px 10px; }

    .region       { font-size: 12px; gap: 8px; }
    .region .r    { font-size: 11px; }
    .region .v    { font-size: 12px; }

    /* Healthcare — fix: .ind-mock scope required */
    .ind-mock .hc-row       { font-size: 12px; gap: 8px; flex-wrap: wrap; }
    .ind-mock .hc-row .n    { font-size: 12px; }
    .ind-mock .hc-row .sub  { font-size: 11px; }
    .ind-mock .hc-row .sla  { font-size: 10px; padding: 2px 8px; }
    .ind-mock .hc-row .bd   { font-size: 10px; min-width: 28px; height: 28px; }
    .ind-mock .hc-row .t    { font-size: 10px; }

    /* Logistics */
    .lg-map { border-radius: 10px; }
    .lg-map svg   { height: 160px; }

    .lg-item      { font-size: 12px; padding: 8px 10px; }
    .lg-item .nm  { gap: 6px; font-size: 11.5px; }
    .lg-item .v   { font-size: 11px; }

    /* Retail foot / CCI note */
    .retail-foot  { font-size: 12px; padding: 10px 12px; gap: 8px; }
}


/* Small mobile — 480px */
@media (max-width: 480px) {
    .ind-tab {
        font-size: 11px;
        padding: 7px 10px;
    }

    .ind-tab .ic {
        display: none;
    }

    .ind-text h3 {
        font-size: clamp(18px, 6vw, 24px);
    }

    .ind-text p {
        font-size: 13px;
    }

    .ind-text .lbl {
        font-size: 10px;
    }

    .ind-text li {
        font-size: 12px;
    }

    .ind-before {
        grid-template-columns: 1fr 1fr;
    }

    /* Fix: full selector chain */
    .ind-before .ba .t { font-size: 9px; }
    .ind-before .ba .v { font-size: 18px; }
    .ind-before .ba .d { font-size: 10px; }

    /* Mock */
    .mock-top { font-size: 10px; }

    /* Outlet grid */
    #outlets {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Alerts */
    .alert-row    { font-size: 10px; }
    .alert-row .t { font-size: 9px; }

    /* Factory */
    .factory {
        grid-template-columns: repeat(2, 1fr);
    }

    .station .n { font-size: 9px; }
    .station .t { font-size: 11px; }
    .station .s { font-size: 9px; }

    .mfg-sig {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .sigcard .l { font-size: 8px; }
    .sigcard .v { font-size: 14px; }
    .sigcard .d { font-size: 9px; }

    /* Retail */
    .tag-btn   { font-size: 10px; padding: 3px 8px; }
    .region .r { font-size: 10px; min-width: 100px; }
    .region .v { font-size: 11px; }

    /* Healthcare — fix: .ind-mock scope required */
    .ind-mock .hc-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 4px 8px;
    }

    .ind-mock .hc-row .bd {
        grid-row: 1 / 3;
        align-self: center;
    }

    .ind-mock .hc-row .n    { font-size: 11px; }
    .ind-mock .hc-row .sub  { font-size: 10px; }
    .ind-mock .hc-row .sla  { font-size: 9px; }
    .ind-mock .hc-row .t    { font-size: 9px; }

    /* Logistics */
    .lg-map svg { height: 130px; }
    .lg-list    { gap: 5px; }
    .lg-item    { font-size: 11px; padding: 7px 9px; }
    .lg-item .nm { font-size: 11px; }
    .lg-item .v  { font-size: 10px; }

    /* Retail foot */
    .retail-foot { font-size: 11px; }
}


/* Extra small mobile — 360px */
@media (max-width: 360px) {
    /* Tabs — icon always hidden, tightest padding */
    .ind-tab {
        font-size: 10px;
        padding: 6px 8px;
        min-height: 36px;
        gap: 6px;
    }

    .ind-tab .ic {
        display: none;
    }

    /* Stage */
    .ind-stage {
        padding: 16px;
        border-radius: 18px;
    }

    /* Text block */
    .ind-text h3 {
        font-size: clamp(16px, 7vw, 20px);
    }

    .ind-text p {
        font-size: 12px;
        line-height: 1.5;
    }

    .ind-text .lbl {
        font-size: 9px;
    }

    .ind-text li {
        font-size: 11px;
        gap: 7px;
    }

    /* Before/After cards — stack to full width on 360 */
    .ind-before {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ind-before .ba .t { font-size: 8px; }
    .ind-before .ba .v { font-size: 16px; }
    .ind-before .ba .d { font-size: 10px; }

    /* Mock */
    .ind-mock {
        padding: 14px;
        gap: 10px;
        border-radius: 14px;
        min-height: unset;
    }

    .mock-top { font-size: 9px; }
    .mock-top .dot-live { font-size: 9px; }

    /* Outlet grid — fewer columns */
    .outlets,
    #outlets {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    /* Alerts */
    .alert-row    { font-size: 9px; gap: 5px; padding: 8px 10px; }
    .alert-row .t { font-size: 8px; }
    .alert-row .tag { font-size: 8px; padding: 2px 5px; }

    /* Factory */
    .factory {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .station { padding: 9px; }
    .station .n { font-size: 8px; }
    .station .t { font-size: 10px; }
    .station .s { font-size: 8px; }

    /* Sig cards — 2-col on 360 */
    .mfg-sig {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .sigcard { padding: 9px 10px; }
    .sigcard .l { font-size: 7px; }
    .sigcard .v { font-size: 13px; }
    .sigcard .d { font-size: 8px; }

    /* Retail */
    .region {
        grid-template-columns: 80px 1fr auto;
        gap: 8px;
    }

    .tag-btn   { font-size: 9px; padding: 3px 7px; }
    .region .r { font-size: 9px; min-width: 80px; }
    .region .v { font-size: 10px; min-width: 70px; }

    /* Healthcare */
    .ind-mock .hc-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 3px 6px;
        padding: 8px 10px;
    }

    .ind-mock .hc-row .bd {
        width: 26px; height: 26px;
        font-size: 9px;
        grid-row: 1 / 3;
    }

    .ind-mock .hc-row .n    { font-size: 10px; }
    .ind-mock .hc-row .sub  { font-size: 9px; }
    .ind-mock .hc-row .sla  { font-size: 8px; padding: 2px 6px; }
    .ind-mock .hc-row .t    { font-size: 8px; }

    /* Logistics */
    .lg-map { height: 160px; border-radius: 8px; }
    .lg-map svg { height: 110px; }
    .lg-list { grid-template-columns: 1fr; gap: 4px; }
    .lg-item { font-size: 10px; padding: 6px 8px; }
    .lg-item .nm { font-size: 10px; gap: 5px; }
    .lg-item .v  { font-size: 9px; }

    /* Retail foot */
    .retail-foot { font-size: 10px; padding: 8px 10px; gap: 6px; }
    .retail-foot .dot { width: 14px; height: 14px; }
}

/* Before / After cards */
.ba-head { text-align: center; margin-bottom: 56px; }
.ba-head .section-sub { margin: 16px auto 0; }
.ba-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; position: relative; }
.ba-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 34px 34px; position: relative; overflow: hidden; }
.ba-card.bad { background: #f4f2ed; }
.ba-card.good {
	color: #fff;
	background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, var(--grad-soft) border-box;
	border: 1.5px solid transparent;
	box-shadow: 0 30px 80px -20px rgba(139, 92, 246, .3);
}
.ba-card h4 { margin: 0 0 18px; font-size: 20px; letter-spacing: -.018em; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ba-card h4 .p { font-size: 10px; padding: 3px 9px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.ba-card.bad h4 .p { background: #fde2de; color: #a63328; }
.ba-card.good h4 .p { background: var(--grad); color: #fff; }
.ba-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ba-card li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: flex-start; font-size: 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(10, 10, 10, .08); }
.ba-card.good li { border-color: rgba(255, 255, 255, .1); color: #fff; }
.ba-card li:last-child { border-bottom: none; padding-bottom: 0; }
.ba-card li .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.ba-card.good li .k { color: rgba(255, 255, 255, .45); }
.ba-card li .txt { color: #1a1a1a; line-height: 1.5; }
.ba-card.good li .txt { color: #fff; }
.ba-card li .metric { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: #c44c3e; white-space: nowrap; }
.ba-card.good li .metric { color: #f59e0b; }

/* How we build it */
.hwb-head { max-width: 760px; }
.hwb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.hwb-card { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; transition: background .3s, transform .3s; }
.hwb-card:hover { background: rgba(255, 255, 255, .05); transform: translateY(-4px); }
.hwb-card .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; color: rgba(255, 255, 255, .4); font-weight: 600; }
.hwb-card h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.018em; color: #fff; line-height: 1.2; }
.hwb-card p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .55); line-height: 1.55; }
.hwb-card .dur { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; color: rgba(255, 255, 255, .45); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; }

/* CCI layers */
.layers-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.layers-text .layers-mini { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: 'JetBrains Mono', monospace; margin-bottom: 10px; }
.layers-p { max-width: 46ch; margin: 18px 0 0; font-size: 16px; color: #3a3a3a; line-height: 1.55; }
.layers-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.layers-list li { font-size: 13.5px; color: #2a2a2a; display: flex; gap: 10px; }
.layers-list li .plus { color: var(--violet); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.layers { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px -40px rgba(10, 10, 10, .2); display: flex; flex-direction: column; gap: 8px; }
.layer { padding: 16px 20px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; border: 1px solid var(--line-2); }
.layer .lbl { font-weight: 500; }
.layer .src { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.layer.l1 { background: #fbfaf7; }
.layer.l2 { background: linear-gradient(135deg, #faf5ff, #fff7ed); border-color: rgba(139, 92, 246, .15); }
.layer.l3 { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.layer.l3 .src { color: rgba(255, 255, 255, .5); }
.layer.l4 { background: linear-gradient(135deg, #fff7ed, #fef2f2); border-color: rgba(245, 158, 11, .25); }
.layer .chip { font-size: 9.5px; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #3a3a3a; }
.layer.l3 .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; }
.layer-bar { display: flex; justify-content: center; font-family: 'JetBrains Mono', monospace; color: var(--muted-2); font-size: 16px; line-height: .5; }

/* Logos + Quote */
.logos-quote-section { display: none; }

.logos-head { text-align: center; margin-bottom: 40px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 1100px; margin: 0 auto; }
.logo-cell { aspect-ratio: 2.4 / 1; background: #fff; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: #3a3a3a; letter-spacing: -.005em; font-weight: 500; }
.logo-cell b { font-weight: 700; letter-spacing: -.015em; color: #0a0a0a; font-family: Inter, sans-serif; font-size: 15px; }

.quote { max-width: 940px; margin: 48px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px 48px; position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: auto -10% -20% -10%; height: 220px; background: radial-gradient(circle at 50% 100%, rgba(139, 92, 246, .14), transparent 65%); pointer-events: none; }
.quote p { position: relative; margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.018em; color: #0a0a0a; text-wrap: balance; font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.quote .who { position: relative; margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #f59e0b); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.quote .who .n { font-weight: 600; font-size: 14px; }
.quote .who .r { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Contact */
/* ── CF7 Enterprise Contact — Layout Fix ── */
/* Reset CF7 wrapper */
.contact-r .wpcf7 { margin: 0; padding: 0; width: 100%; }
/* CF7 injects <p> tags — remove their margin/padding */
.contact-r .wpcf7-form > p { margin: 0; padding: 0; }
/* Main form flex column — mirrors .cf */
.contact-r .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* Two-column row */
.contact-r .wpcf7-form .cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* Labels */
.contact-r .wpcf7-form label {
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Inputs, select, textarea */
.contact-r .wpcf7-form input[type="text"],
.contact-r .wpcf7-form input[type="email"],
.contact-r .wpcf7-form select,
.contact-r .wpcf7-form textarea {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13.5px;
    color: #fff;
    outline: none;
    width: 100%;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
    margin-top: 0;
}
.contact-r .wpcf7-form input[type="text"]::placeholder,
.contact-r .wpcf7-form input[type="email"]::placeholder,
.contact-r .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, .35);
}
.contact-r .wpcf7-form input[type="text"]:focus,
.contact-r .wpcf7-form input[type="email"]:focus,
.contact-r .wpcf7-form select:focus,
.contact-r .wpcf7-form textarea:focus {
    border-color: rgba(139, 92, 246, .5);
    background: rgba(19, 18, 18, .46);
}
/* Select custom arrow */
.contact-r .wpcf7-form select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, .04);
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .5) 50%),
        linear-gradient(-45deg, transparent 50%, rgba(255, 255, 255, .5) 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
}
.contact-r .wpcf7-form select option {
    background: #1a1a1a;
    color: #fff;
}
/* Textarea */
.contact-r .wpcf7-form textarea {
    resize: vertical;
    min-height: 80px;
}
/* Submit button — matches .sbt */
.contact-r .wpcf7-form input[type="submit"] {
    margin-top: 6px;
    background: var(--grad);
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    letter-spacing: -.005em;
    cursor: pointer;
    text-align: center;
    border: none;
    width: 100%;
    transition: transform .25s, filter .25s;
    display: block;
}
.contact-r .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
/* .note text */
.contact-r .wpcf7-form .note {
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    text-align: center;
    margin-top: 4px;
}
/* Validation */
.contact-r .wpcf7-form input.wpcf7-not-valid,
.contact-r .wpcf7-form select.wpcf7-not-valid,
.contact-r .wpcf7-form textarea.wpcf7-not-valid {
    border-color: rgba(217, 70, 239, .55) !important;
}
.contact-r .wpcf7-not-valid-tip {
    display: block;
    font-size: 10.5px;
    color: rgba(217, 70, 239, .85);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .04em;
}
/* Hide CF7 response output & spinner */
.contact-r .wpcf7-response-output { display: none !important; }
.contact-r .wpcf7-spinner { display: none; }

/* ── 1280px — slight padding reduction ── */
@media (max-width: 1280px) {
    .contact {
        padding: 56px 48px;
        gap: 36px;
    }
}

/* ── 1024px — stack layout, text left-aligned ── */
@media (max-width: 1024px) {
    .contact {
        grid-template-columns: 1fr;
        padding: 48px 40px;
        gap: 40px;
        border-radius: 22px;
    }

    .contact-l {
        max-width: 600px;
    }

    .contact h3 {
        font-size: clamp(32px, 5vw, 48px);
        margin: 12px 0 12px;
    }

    .contact p {
        font-size: 15px;
    }

    .eyebrow-pill {
        font-size: 10px;
    }

    /* Form stays full width */
    .contact-r {
        width: 100%;
    }
}

/* ── 768px — single column form fields ── */
@media (max-width: 768px) {
    .contact {
        padding: 40px 28px;
        gap: 32px;
        border-radius: 20px;
    }

    .contact h3 {
        font-size: clamp(28px, 6vw, 40px);
        margin: 10px 0 10px;
    }

    .contact p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* contact-r card */
    .contact-r {
        padding: 24px 20px;
        border-radius: 14px;
    }

    /* cf-row: 2-col → 1-col */
    .contact-r .wpcf7-form .cf-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Form gap */
    .contact-r .wpcf7-form {
        gap: 12px;
    }

    /* Labels */
    .contact-r .wpcf7-form label {
        font-size: 10px;
        letter-spacing: .12em;
    }

    /* Inputs */
    .contact-r .wpcf7-form input[type="text"],
    .contact-r .wpcf7-form input[type="email"],
    .contact-r .wpcf7-form select,
    .contact-r .wpcf7-form textarea {
        font-size: 14px;
        padding: 11px 13px;
    }

    /* Submit */
    .contact-r .wpcf7-form input[type="submit"] {
        font-size: 14px;
        padding: 14px 18px;
        min-height: 50px;
    }

    /* Note */
    .contact-r .wpcf7-form .note {
        font-size: 10.5px;
    }
}

/* ── 480px — mobile optimised ── */
@media (max-width: 480px) {
    .contact {
        padding: 32px 20px;
        gap: 28px;
        border-radius: 16px;
    }

    /* Eyebrow pill */
    .contact .eyebrow-pill.on-dark {
        font-size: 9.5px;
        padding: 5px 11px;
        letter-spacing: .12em;
    }

    /* Heading */
    .contact h3 {
        font-size: clamp(26px, 7.5vw, 36px);
        margin: 10px 0 10px;
        line-height: 1.05;
    }

    /* Body text */
    .contact p {
        font-size: 13.5px;
        line-height: 1.6;
        max-width: 100%;
    }

    /* contact-r card */
    .contact-r {
        padding: 20px 16px;
        border-radius: 14px;
    }

    /* Form gap tighter */
    .contact-r .wpcf7-form {
        gap: 10px;
    }

    /* Labels */
    .contact-r .wpcf7-form label {
        font-size: 9.5px;
        letter-spacing: .10em;
        gap: 5px;
    }

    /* Inputs — 16px prevents iOS Safari zoom */
    .contact-r .wpcf7-form input[type="text"],
    .contact-r .wpcf7-form input[type="email"],
    .contact-r .wpcf7-form select,
    .contact-r .wpcf7-form textarea {
        font-size: 16px;
        padding: 11px 12px;
        border-radius: 9px;
    }

    /* Textarea shorter on small screens */
    .contact-r .wpcf7-form textarea {
        min-height: 90px;
    }

    /* Submit — full width, easy tap */
    .contact-r .wpcf7-form input[type="submit"] {
        font-size: 14px;
        padding: 15px 18px;
        min-height: 52px;
        margin-top: 4px;
    }

    /* Note */
    .contact-r .wpcf7-form .note {
        font-size: 10px;
        line-height: 1.5;
    }

    /* Validation tip */
    .contact-r .wpcf7-not-valid-tip {
        font-size: 10px;
    }

    /* Success state */
    .cf-success {
        padding: 32px 16px;
    }
    .cf-tick {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .cf-ok {
        font-size: 15px;
    }
    .cf-sub {
        font-size: 12px;
    }
}

/* ── 375px — smallest phones (iPhone SE) ── */
@media (max-width: 375px) {
    .contact {
        padding: 28px 16px;
        gap: 24px;
        border-radius: 14px;
    }

    .contact .eyebrow-pill.on-dark {
        font-size: 9px;
        padding: 5px 10px;
    }

    .contact h3 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .contact p {
        font-size: 13px;
    }

    .contact-r {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .contact-r .wpcf7-form input[type="text"],
    .contact-r .wpcf7-form input[type="email"],
    .contact-r .wpcf7-form select,
    .contact-r .wpcf7-form textarea {
        font-size: 11px; 
        padding: 10px 12px;
        border-radius: 8px;
    }

    .contact-r .wpcf7-form input[type="submit"] {
        font-size: 13.5px;
        min-height: 50px;
    }

    .cf-tick {
        font-size: 28px;
    }
    .cf-ok {
        font-size: 14px;
    }
    .cf-sub {
        font-size: 11.5px;
    }
}




.contact { background: #0a0a0a; color: #fff; border-radius: 28px; padding: 64px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1280px; margin: 0 auto; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 40% at 30% 50%, rgba(139, 92, 246, .25), transparent 65%), radial-gradient(35% 35% at 80% 50%, rgba(245, 158, 11, .18), transparent 65%); pointer-events: none; }
.contact-l, .contact-r { position: relative; z-index: 1; }
.contact h3 { margin: 12px 0 14px; font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -.03em; font-weight: 700; line-height: 1.02; color: #fff; }
.contact h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.contact p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .6); line-height: 1.55; }
.contact-r { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 28px; }

.cf { display: flex; flex-direction: column; gap: 12px; }
.cf label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 600; font-family: 'JetBrains Mono', monospace; display: block; margin-bottom: 6px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf input, .cf select, .cf textarea { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 13.5px; color: #fff; outline: none; width: 100%; transition: border-color .2s, background .2s; box-sizing: border-box; }
.cf input::placeholder, .cf textarea::placeholder { color: rgba(255, 255, 255, .35); }
.cf input:focus, .cf select:focus, .cf textarea:focus { border-color: rgba(139, 92, 246, .5); background: rgba(19, 18, 18, 0.459); }
.cf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .5) 50%), linear-gradient(-45deg, transparent 50%, rgba(255, 255, 255, .5) 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.cf textarea { resize: vertical; min-height: 80px; }
.cf .sbt { margin-top: 6px; background: var(--grad); color: #fff; padding: 14px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: -.005em; cursor: pointer; text-align: center; transition: transform .25s, filter .25s; border: none; }
.cf .sbt:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cf .note { font-size: 11px; color: rgba(255, 255, 255, .4); text-align: center; margin-top: 4px; }

.cf-success { padding: 40px 24px; text-align: center; color: #fff; }
.cf-tick { font-size: 40px; margin-bottom: 12px; color: #6ed49a; }
.cf-ok { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.cf-sub { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ============================================================
   NEWS PAGE
   ============================================================ */

.news-hero { padding: 150px 0 60px; }
.masthead { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.masthead-left { max-width: 720px; }
.masthead-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.masthead-date::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 140px; }
.news-hero h1.hero-h { text-align: left; font-size: clamp(52px, 8vw, 128px); margin: 0; max-width: 12ch; }
.masthead-right { font-size: 15px; color: #3a3a3a; max-width: 340px; line-height: 1.6; padding-bottom: 12px; }
.masthead-right strong { color: var(--ink); font-weight: 600; }

.filter-bar { display: flex; align-items: center; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filter-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; padding-right: 10px; margin-right: 6px; border-right: 1px solid var(--line); }
.cat { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #2a2a2a; cursor: pointer; background: transparent; border: 1px solid transparent; transition: all .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-family: inherit; }
.cat:hover { background: rgba(10, 10, 10, .04); }
.cat.active { background: #0a0a0a; color: #fff; }
.cat .count { font-family: 'JetBrains Mono', monospace; font-size: 10px; opacity: .6; }
.cat.active .count { opacity: .8; }

/* Featured */
.feat-wrap { padding: 72px 0 20px; }
.feat { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.feat-visual { position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #1a1530 0%, #0a0a0a 60%); box-shadow: 0 30px 60px -20px rgba(139, 92, 246, .32), 0 60px 120px -40px rgba(10, 10, 10, .45); }
.feat-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 30% 30%, rgba(139, 92, 246, .55), transparent 65%), radial-gradient(40% 50% at 70% 70%, rgba(245, 158, 11, .35), transparent 65%), radial-gradient(35% 45% at 80% 30%, rgba(217, 70, 239, .28), transparent 65%); }
.feat-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 85%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 85%); }
.feat-visual .glyph { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.feat-visual .glyph .ring { width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); position: absolute; animation: spinr 40s linear infinite; }
.feat-visual .glyph .ring:nth-child(2) { width: 45%; border-color: rgba(255, 255, 255, .18); animation-duration: 28s; animation-direction: reverse; }
.feat-visual .glyph .ring:nth-child(3) { width: 30%; border-color: rgba(255, 255, 255, .24); animation-duration: 20s; }
@keyframes spinr { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .feat-visual .glyph .ring { animation: none; } }
.feat-visual .orb { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--grad); filter: blur(2px); z-index: 1; box-shadow: 0 0 80px rgba(139, 92, 246, .6); }
.feat-visual .tag { position: absolute; top: 22px; left: 22px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 500; z-index: 2; font-family: 'JetBrains Mono', monospace; }
.feat-visual .ver { position: absolute; bottom: 22px; right: 22px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255, 255, 255, .5); letter-spacing: .1em; z-index: 2; }

.feat-text .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.feat-text .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.feat-text h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 22px; text-wrap: balance; }
.feat-text h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.feat-text .lede { font-size: 17px; color: #3a3a3a; line-height: 1.6; margin: 0 0 26px; max-width: 52ch; }
.feat-text .by { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.feat-text .by .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; font-size: 13px; display: grid; place-items: center; font-weight: 600; }
.feat-text .by .who { font-size: 13px; }
.feat-text .by .who .n { font-weight: 500; }
.feat-text .by .who .r { color: var(--muted); font-size: 12px; }
.feat-text .read { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #0a0a0a; color: #fff; font-size: 14px; font-weight: 500; transition: all .25s; min-height: 44px; }
.feat-text .read .arr { transition: transform .25s; }

/* Article grid */
.hidden-section {
    display: none;
}

.grid-wrap { padding: 60px 0 120px; }
.grid-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.grid-head h3 { font-size: 28px; letter-spacing: -.02em; font-weight: 600; margin: 0; }
.grid-head .sort { display: flex; gap: 14px; }
.grid-head .sort a { font-size: 13px; color: var(--muted); }
.grid-head .sort a.active { color: var(--ink); font-weight: 500; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.art { display: flex; flex-direction: column; gap: 14px; transition: transform .3s; }
.art:hover { transform: translateY(-3px); }
.art .art-link { display: flex; flex-direction: column; gap: 14px; color: inherit; }
.art .thumb { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line-2); }
.art .thumb::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 90%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 90%); opacity: .6; pointer-events: none; }
.art .thumb .pill { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 500; z-index: 2; font-family: 'JetBrains Mono', monospace; }
.art .thumb .mark { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.art .thumb .mark svg { width: 42%; height: 42%; opacity: .75; }
.art .thumb.v-product { background: linear-gradient(135deg, #1a1232, #0a0a0a); }
.art .thumb.v-product::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 35% 40%, rgba(139, 92, 246, .55), transparent 65%), radial-gradient(40% 50% at 75% 70%, rgba(217, 70, 239, .35), transparent 65%); }
.art .thumb.v-company { background: linear-gradient(135deg, #2a1810, #0a0a0a); }
.art .thumb.v-company::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 40% 35%, rgba(245, 158, 11, .5), transparent 65%), radial-gradient(45% 55% at 80% 75%, rgba(217, 70, 239, .3), transparent 65%); }
.art .thumb.v-eng { background: linear-gradient(135deg, #0f1a1a, #0a0a0a); }
.art .thumb.v-eng::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 60% 40%, rgba(22, 139, 79, .45), transparent 65%), radial-gradient(40% 50% at 25% 70%, rgba(139, 92, 246, .35), transparent 65%); }
.art .thumb.v-press { background: linear-gradient(135deg, #1a1a2e, #0a0a0a); }
.art .thumb.v-press::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 40%, rgba(139, 92, 246, .4), transparent 65%), radial-gradient(45% 55% at 70% 75%, rgba(245, 158, 11, .32), transparent 65%); }
.art .thumb.v-design { background: linear-gradient(135deg, #201221, #0a0a0a); }
.art .thumb.v-design::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 30% 50%, rgba(217, 70, 239, .5), transparent 65%), radial-gradient(40% 50% at 75% 40%, rgba(245, 158, 11, .32), transparent 65%); }
.art .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.art .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.art h4 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.art h4 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.art p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 42ch; }
.art .by { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 12.5px; color: #3a3a3a; }
.art .by .av { width: 24px; height: 24px; border-radius: 50%; font-size: 10px; color: #fff; display: grid; place-items: center; font-weight: 600; }
.art.hide { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 60px; }

/* Changelog */
.cl { padding: 140px 0; }
.cl-grid { display: grid; grid-template-columns: 320px 1fr; gap: 80px; }
.cl-side h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: .96; letter-spacing: -.035em; font-weight: 700; margin: 16px 0 20px; color: #fff; text-wrap: balance; }
.cl-side h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.cl-side p { font-size: 15px; color: rgba(255, 255, 255, .55); line-height: 1.6; margin: 0 0 24px; }
.cl-side a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: 2px; }
.cl-side a:hover { color: #fff; border-color: #fff; }
.cl-list { display: flex; flex-direction: column; gap: 0; position: relative; }
.cl-list::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12) 8%, rgba(255, 255, 255, .12) 92%, transparent); }
.cl-item { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 28px 0 28px 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); position: relative; }
.cl-item::before { content: ""; position: absolute; left: -4px; top: 34px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 4px rgba(255, 255, 255, .1); }
.cl-item:last-child { border-bottom: none; }
.cl-date { display: flex; flex-direction: column; gap: 4px; }
.cl-date .v { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #fff; font-weight: 500; letter-spacing: .04em; }
.cl-date .d { font-size: 12px; color: rgba(255, 255, 255, .45); font-family: 'JetBrains Mono', monospace; letter-spacing: .05em; }
.cl-body .tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cl-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 3px 9px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.cl-tag.new { background: rgba(139, 92, 246, .15); color: #b89cff; border: 1px solid rgba(139, 92, 246, .25); }
.cl-tag.imp { background: rgba(245, 158, 11, .12); color: #f5c060; border: 1px solid rgba(245, 158, 11, .22); }
.cl-tag.fix { background: rgba(22, 139, 79, .15); color: #6ed49a; border: 1px solid rgba(22, 139, 79, .25); }
.cl-tag.sec { background: rgba(217, 70, 239, .12); color: #e69cf2; border: 1px solid rgba(217, 70, 239, .22); }
.cl-body h4 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.cl-body p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .55); line-height: 1.6; max-width: 60ch; }
.cl-body ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cl-body li { font-size: 13px; color: rgba(255, 255, 255, .55); padding-left: 16px; position: relative; line-height: 1.5; }
.cl-body li::before { content: "—"; position: absolute; left: 0; color: rgba(255, 255, 255, .3); }

/* Press */
.press-wrap { padding: 120px 0; border-top: 1px solid var(--line); }
.press-head { text-align: center; margin-bottom: 56px; }
.press-head h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.02em; margin: 14px 0 0; }
.press-head h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 1100px; margin: 0 auto; }
.press-cell { background: #fbfaf8; padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; min-height: 200px; transition: background .25s; }
.press-cell:hover { background: #fff; }
.press-cell .out { font-family: 'Instrument Serif', serif; font-size: 22px; letter-spacing: -.01em; font-weight: 500; }
.press-cell .out em { font-style: italic; }
.press-cell q { display: block; font-size: 14px; color: #2a2a2a; line-height: 1.5; quotes: "\201C" "\201D"; margin: 0; flex: 1; }
.press-cell q::before { content: open-quote; }
.press-cell q::after { content: close-quote; }
.press-cell .foot { display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.press-cell .foot .arr { transition: transform .25s; }
.press-cell:hover .foot .arr { transform: translate(3px, -3px); }

/* Newsletter */
.news-wrap { padding: 120px 0 140px; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.news-bloom { position: absolute; inset: -10%; background: radial-gradient(40% 50% at 50% 50%, rgba(139, 92, 246, .08), transparent 70%), radial-gradient(30% 40% at 70% 40%, rgba(245, 158, 11, .06), transparent 70%); pointer-events: none; }
.news-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.news-inner h3 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 18px 0 16px; text-wrap: balance; }
.news-inner h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.news-inner p { font-size: 16px; color: var(--muted); line-height: 1.55; margin: 0 auto 32px; max-width: 52ch; }
.sub-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 20px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.sub-form:focus-within { border-color: rgba(139, 92, 246, .4); box-shadow: 0 0 0 4px rgba(139, 92, 246, .08); }
.sub-form input { flex: 1; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; padding: 10px 0; }
.sub-form input::placeholder { color: var(--muted-2); }
.sub-form button { background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s; min-height: 40px; }
.sub-form button:hover { background: #000; }
.news-inner .hint { margin-top: 16px; font-size: 12px; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; }

/* Hover image on article card */
.thumb {
    position: relative;
    overflow: hidden;
}
.thumb-hover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.thumb:hover .thumb-hover {
    opacity: 1;
    transform: scale(1);
}
/* Featured post hover image */
.feat-visual {
    position: relative;
    overflow: hidden;
}
.feat-visual:hover .thumb-hover {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   ONBOARDING PAGE — Fullscreen flow with tone-shifting palette
   ============================================================ */

body.is-onboarding {
	overflow: hidden;
	height: 100vh;
	transition: background 1.4s cubic-bezier(.22, 1, .36, 1), color 1.4s ease;
}
body.is-onboarding.tone-1 { background: #f8f7f5; color: #0a0a0a; }
body.is-onboarding.tone-2 { background: #f5f2ed; color: #0a0a0a; }
body.is-onboarding.tone-3 { background: #efebe4; color: #0a0a0a; }
body.is-onboarding.tone-4 { background: #e9e4db; color: #0a0a0a; }
body.is-onboarding.tone-5 { background: #e2dcd0; color: #0a0a0a; }
body.is-onboarding.tone-6 { background: #241f2e; color: #fff; }
body.is-onboarding.tone-7 { background: #0c0a14; color: #fff; }
body.is-onboarding.tone-8 { background: #050408; color: #fff; }

body.is-onboarding.tone-6 ::selection,
body.is-onboarding.tone-7 ::selection,
body.is-onboarding.tone-8 ::selection { background: #fff; color: #0a0a0a; }

.site-main--onboarding { display: contents; }

/* Top chrome */
.chrome-top {
	position: fixed; top: 0; left: 0; right: 0;
	padding: 26px 36px;
	display: flex; align-items: center; justify-content: space-between;
	z-index: 50; gap: 24px; transition: color .8s ease, opacity .5s ease;
}
.chrome-top .wordmark { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: inherit; display: inline-flex; align-items: flex-start; }
.chrome-top .wordmark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); margin-left: 2px; transform: translateY(-10px); }
.progress { display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.progress-track { position: relative; width: 180px; height: 2px; background: rgba(10, 10, 10, .1); border-radius: 999px; overflow: hidden; transition: background .8s ease; }
body.is-onboarding.tone-6 .progress-track,
body.is-onboarding.tone-7 .progress-track,
body.is-onboarding.tone-8 .progress-track { background: rgba(255, 255, 255, .12); }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad); border-radius: 999px; transition: width .7s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 10px rgba(139, 92, 246, .4); }

/* Bottom chrome */
.chrome-bot {
	position: fixed; bottom: 0; left: 0; right: 0;
	padding: 22px 36px 32px;
	display: flex; justify-content: space-between; align-items: center;
	z-index: 50; gap: 24px; pointer-events: none;
}
.chrome-bot > * { pointer-events: auto; }
.back-btn { font-size: 13px; color: inherit; opacity: .45; display: flex; align-items: center; gap: 8px; transition: opacity .25s; min-height: 44px; padding: 0 12px; font-family: inherit; }
.back-btn:hover { opacity: 1; }
.back-btn.hidden { opacity: 0; pointer-events: none; }

.cta {
	background: #c9c7c1; color: #8a8882;
	padding: 15px 30px; border-radius: 999px;
	font-size: 15px; font-weight: 500;
	display: inline-flex; align-items: center; gap: 10px;
	transition: all .4s cubic-bezier(.22, 1, .36, 1);
	pointer-events: none; letter-spacing: -.005em; position: relative;
	min-height: 48px; font-family: inherit;
}
body.is-onboarding.tone-6 .cta,
body.is-onboarding.tone-7 .cta,
body.is-onboarding.tone-8 .cta { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .35); }
.cta.live { background: #0a0a0a; color: #fff; pointer-events: auto; box-shadow: 0 4px 20px rgba(10, 10, 10, .15); cursor: pointer; }
body.is-onboarding.tone-6 .cta.live,
body.is-onboarding.tone-7 .cta.live,
body.is-onboarding.tone-8 .cta.live { background: #fff; color: #0a0a0a; }
.cta.live:hover { box-shadow: 0 10px 30px rgba(139, 92, 246, .25); }
.cta .arr { transition: transform .3s; }
.cta.glow {
	background: #0a0a0a; color: #fff; padding: 18px 38px; font-size: 16px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 3px rgba(139, 92, 246, .3), 0 20px 60px -10px rgba(139, 92, 246, .5), 0 10px 40px -5px rgba(245, 158, 11, .3);
	animation: pulse-glow 2.8s ease-in-out infinite;
}
@keyframes pulse-glow {
	0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 3px rgba(139, 92, 246, .3), 0 20px 60px -10px rgba(139, 92, 246, .5), 0 10px 40px -5px rgba(245, 158, 11, .3); }
	50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 0 5px rgba(139, 92, 246, .45), 0 30px 80px -10px rgba(139, 92, 246, .7), 0 15px 50px -5px rgba(245, 158, 11, .45); }
}
@media (prefers-reduced-motion: reduce) { .cta.glow { animation: none; } }

/* Stage / steps */
.stage { position: relative; width: 100vw; height: 100vh; overflow: hidden; }

.step[data-step="0"] {
    align-items: center;
    overflow-y: hidden;
}
.step {
    position: absolute; inset: 0;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 88px 36px 96px;   /* top = chrome-top height, bottom = chrome-bot height */
    opacity: 0; transform: translateX(40px); pointer-events: none;
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
    scroll-padding-top: 88px;
}
.step.active { opacity: 1; transform: none; pointer-events: auto; }
.step.left   { transform: translateX(-40px); }
.step-inner  { width: 100%; max-width: 980px; margin: 0 auto; padding: 20px 0; }

/* Mesh bg */
.mesh { position: fixed; inset: -10%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.mesh.show { opacity: 1; }
.mesh-soft {
	background: radial-gradient(40% 45% at 50% 45%, rgba(139, 92, 246, .10), transparent 70%),
		radial-gradient(30% 30% at 30% 70%, rgba(217, 70, 239, .08), transparent 70%),
		radial-gradient(35% 40% at 75% 30%, rgba(245, 158, 11, .07), transparent 70%);
	animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .mesh-soft { animation: none; } }

/* Step 0 — welcome */
.s0 { text-align: center; }
.s0 h1 { font-size: clamp(52px, 8vw, 124px); line-height: .9; letter-spacing: -.045em; font-weight: 700; margin: 0 0 28px; text-wrap: balance; max-width: 14ch; margin-inline: auto; }
.s0 h1 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.s0 p { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 auto 40px; line-height: 1.55; text-wrap: pretty; }
body.is-onboarding.tone-6 .s0 p,
body.is-onboarding.tone-7 .s0 p,
body.is-onboarding.tone-8 .s0 p { color: rgba(255, 255, 255, .55); }

/* Headline system (used 1..6) */
.s-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
body.is-onboarding.tone-6 .s-eyebrow,
body.is-onboarding.tone-7 .s-eyebrow,
body.is-onboarding.tone-8 .s-eyebrow { color: rgba(255, 255, 255, .5); }
.s-h { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; text-wrap: balance; max-width: 18ch; }
.s-h em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.s-h .co { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 500; }
.s-sub { font-size: 16px; color: var(--muted); margin: 0 0 48px; max-width: 56ch; line-height: 1.55; }
body.is-onboarding.tone-6 .s-sub,
body.is-onboarding.tone-7 .s-sub,
body.is-onboarding.tone-8 .s-sub { color: rgba(255, 255, 255, .55); }

/* Step 1 — identity ghost */
.s1 { position: relative; }
.ghost {
	position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%);
	font-size: clamp(100px, 18vw, 260px); line-height: 1;
	font-weight: 500; letter-spacing: -.06em;
	text-align: center; pointer-events: none; user-select: none;
	color: rgba(10, 10, 10, .04); white-space: nowrap; overflow: hidden; z-index: 0;
	font-family: 'Instrument Serif', serif; font-style: italic;
	transition: color 1s ease, opacity .6s ease; opacity: 0;
}
.ghost.on { opacity: 1; }
body.is-onboarding.tone-5 .ghost { color: rgba(10, 10, 10, .05); }

.s1-form { position: relative; z-index: 1; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { position: relative; }
.field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field label .optional { color: var(--muted-2); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; margin-left: 6px; }
.field input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 22px; color: inherit; outline: none; letter-spacing: -.015em; transition: border-color .3s; font-family: inherit; }
.field input::placeholder { color: var(--muted-2); font-weight: 300; }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.field input:focus ~ .bar, .field.has-value .bar { transform: scaleX(1); }

.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 14px; margin-top: 14px; scrollbar-width: none; flex-wrap: wrap; }
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex-shrink: 0; padding: 11px 22px; border-radius: 999px;
	background: transparent; border: 1px solid var(--line);
	font-size: 14px; color: #2a2a2a; cursor: pointer;
	transition: all .3s cubic-bezier(.22, 1, .36, 1);
	white-space: nowrap; font-weight: 450; position: relative;
	font-family: inherit;
}
body.is-onboarding.tone-5 .chip { border-color: rgba(10, 10, 10, .12); color: #1a1a1a; }
body.is-onboarding.tone-6 .chip,
body.is-onboarding.tone-7 .chip,
body.is-onboarding.tone-8 .chip { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .15); }
.chip:hover { border-color: rgba(10, 10, 10, .35); transform: translateY(-1px); }
.chip.sel { background: #0a0a0a; color: #fff; border-color: #0a0a0a; box-shadow: 0 0 20px rgba(139, 92, 246, .3); }
.chip.sel::before {
	content: ""; position: absolute; inset: -2px; border-radius: 999px; padding: 2px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none;
}

/* Step 2 — stage cards */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.stage-card {
	background: #fff; border: 1px solid var(--line); border-radius: 20px;
	padding: 32px 30px; cursor: pointer;
	transition: all .4s cubic-bezier(.22, 1, .36, 1);
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 16px; min-height: 180px;
	font-family: inherit; text-align: left; color: inherit;
}
body.is-onboarding.tone-3 .stage-card,
body.is-onboarding.tone-4 .stage-card { background: rgba(255, 255, 255, .7); }
.stage-card:hover { transform: translateY(-3px); border-color: rgba(10, 10, 10, .25); }
.stage-card .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(10, 10, 10, .04); display: grid; place-items: center; transition: all .35s; }
.stage-card .ic svg { width: 18px; height: 18px; stroke: #1a1a1a; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.stage-card h4 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

.stage-card.sel h4 { color: #000000; }
.stage-card.sel p  { color: rgb(0, 0, 0); }
.stage-card .ic i       { color: #1a1a1a; font-size: 18px; }
.stage-card.sel .ic i   { color: #000000; }
.stage-card.sel .ic { background: rgba(255, 255, 255, .08); }
.stage-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.stage-card.sel { background: #0a0a0a; color: #fff; border-color: #0a0a0a; transform: translateY(-3px); box-shadow: 0 20px 60px -20px rgba(139, 92, 246, .45); }
.stage-card.sel::before {
	content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 2px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none;
}
.stage-card.sel .ic { background: rgb(220 220 220); }
.stage-card.sel .ic i { color: #000000; }
.stage-card.sel p { color: rgb(59 59 59); }
.stage-card .check { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: all .35s cubic-bezier(.22, 1, .36, 1); }
.stage-card.sel .check { opacity: 1; transform: scale(1); }
.stage-card .check svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Step 3 — pain chips */
.pain-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pain-chip {
	padding: 14px 24px; border-radius: 999px;
	background: rgba(255, 255, 255, .5); border: 1px solid var(--line);
	font-size: 15px; color: #1a1a1a; cursor: pointer;
	transition: all .35s cubic-bezier(.22, 1, .36, 1);
	position: relative; font-weight: 450; min-height: 44px; font-family: inherit;
}
body.is-onboarding.tone-4 .pain-chip,
body.is-onboarding.tone-5 .pain-chip { background: rgba(255, 255, 255, .55); border-color: rgba(10, 10, 10, .1); color: #4e4545; }
.pain-chip:hover { transform: translateY(-2px); border-color: rgba(10, 10, 10, .3); }
.pain-chip.sel { background: var(--grad); color: #fff; border-color: #0a0a0a; box-shadow: 0 0 0 1px #0a0a0a, 0 0 0 2px #8b5cf6, 0 15px 40px -15px rgba(139, 92, 246, .5); }
.pain-counter { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; margin-top: 8px; }
.pain-counter strong { color: var(--ink); font-weight: 600; }

/* Step 4 — team */
.team-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.team-card {
	background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: 18px;
	padding: 28px 20px; text-align: center; cursor: pointer;
	transition: all .4s cubic-bezier(.22, 1, .36, 1);
	position: relative; display: flex; flex-direction: column; gap: 12px; align-items: center;
	min-height: 150px; justify-content: center; font-family: inherit; color: inherit;
}
body.is-onboarding.tone-5 .team-card { background: rgba(255, 255, 255, .5); border-color: rgba(10, 10, 10, .1); }
.team-card:hover { transform: translateY(-3px); border-color: rgba(10, 10, 10, .3); }
.team-card .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 10, 10, .05); display: grid; place-items: center; transition: all .35s; }
.team-card .ic svg { width: 16px; height: 16px; stroke: #1a1a1a; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.team-card .n { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: #000000; }
.team-card.sel { background: #0a0a0a; color: #fff; border-color: #0a0a0a; box-shadow: 0 15px 40px -15px rgba(139, 92, 246, .5); }
.team-card.sel::before {
	content: ""; position: absolute; inset: -2px; border-radius: 20px; padding: 2px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none;
}
.team-card.sel .ic { background: rgb(255 255 255 / 39%); }
.team-card.sel .ic svg { stroke: #000000; }

/* Step 5 — plans */
/* ── Hide Pro plan card & seat config ── */
.plan.pro,
#seatConfig {
    display: none !important;
}
/* ── Center Free plan card ── */
#planGrid {
    grid-template-columns: 1fr !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.plan-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: stretch; }
.plan {
	background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: 24px;
	padding: 32px 32px 36px; cursor: pointer;
	transition: all .4s cubic-bezier(.22, 1, .36, 1);
	position: relative; display: flex; flex-direction: column; gap: 14px;
	font-family: inherit; text-align: left; color: inherit;
}
body.is-onboarding.tone-5 .plan,
body.is-onboarding.tone-6 .plan { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); color: #fff; }
.plan.sel { transform: translateY(-2px); }
.plan .nm { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
body.is-onboarding.tone-6 .plan .nm { color: rgba(255, 255, 255, .55); }
.plan .prc { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.plan .prc .amt { font-size: 48px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.plan .prc .u { font-size: 14px; color: var(--muted); }
body.is-onboarding.tone-6 .plan .prc .u { color: rgba(255, 255, 255, .55); }
.plan .desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
body.is-onboarding.tone-6 .plan .desc { color: rgba(255, 255, 255, .6); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: 13.5px; display: flex; align-items: flex-start; gap: 10px; color: #2a2a2a; }
body.is-onboarding.tone-6 .plan li { color: rgba(255, 255, 255, .75); }
.plan li::before { content: "✓"; color: var(--violet); font-weight: 700; flex-shrink: 0; }
.plan.pro {
	background: #0a0a0a; color: #fff; border-color: #0a0a0a;
	box-shadow: 0 30px 80px -20px rgba(139, 92, 246, .35);
}
.plan.pro::before {
	content: ""; position: absolute; inset: -2px; border-radius: 26px; padding: 2px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none; opacity: .7; transition: opacity .35s;
}
.plan.pro.sel::before { opacity: 1; }
.plan.pro .nm { color: rgba(255, 255, 255, .6); }
.plan.pro .desc { color: rgba(255, 255, 255, .6); }
.plan.pro li { color: rgba(255, 255, 255, .8); }
.plan .badge {
	position: absolute; top: -12px; right: 26px;
	padding: 5px 14px; border-radius: 999px;
	background: var(--grad); color: #fff;
	font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
	font-family: 'JetBrains Mono', monospace;
}
.plan .ring { position: absolute; top: 28px; right: 28px; width: 22px; height: 22px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 50%; transition: all .3s; }
.plan.free .ring { border-color: rgba(10, 10, 10, .2); }
.plan.sel .ring { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }

/* Seat config */
.seat-config {
	margin-top: 22px; padding: 0 26px;
	border-radius: 18px; background: rgba(255, 255, 255, .04);
	border: 0 solid rgba(255, 255, 255, .08);
	transition: all .5s cubic-bezier(.22, 1, .36, 1);
	max-height: 0; overflow: hidden; opacity: 0;
}
.seat-config.show { max-height: 360px; opacity: 1; padding: 24px 26px; border-width: 1px; }
body.is-onboarding.tone-5 .seat-config { background: rgba(10, 10, 10, .03); border-color: rgba(10, 10, 10, .08); }
body.is-onboarding.tone-6 .seat-config { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .06); }
.seat-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.seat-label .l { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; }
body.is-onboarding.tone-6 .seat-label .l { color: rgba(255, 255, 255, .5); }
.seat-label .v { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; }
.seat-track { position: relative; height: 8px; background: rgba(10, 10, 10, .08); border-radius: 999px; cursor: pointer; margin: 14px 0 18px; touch-action: none; }
body.is-onboarding.tone-6 .seat-track { background: rgba(255, 255, 255, .1); }
.seat-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 999px; box-shadow: 0 0 12px rgba(139, 92, 246, .45); transition: width .15s ease; }
.seat-thumb { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(139, 92, 246, .15), 0 4px 14px rgba(10, 10, 10, .2); cursor: grab; transition: box-shadow .2s, transform .15s ease; }
.seat-thumb:active { cursor: grabbing; box-shadow: 0 0 0 10px rgba(139, 92, 246, .2), 0 6px 18px rgba(10, 10, 10, .25); }
.seat-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.seat-price .big { font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.seat-price .per { font-size: 14px; color: var(--muted); }
body.is-onboarding.tone-6 .seat-price .per { color: rgba(255, 255, 255, .55); }
.seat-formula { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
body.is-onboarding.tone-6 .seat-formula { color: rgba(255, 255, 255, .4); }
.seat-note { font-size: 12px; color: var(--muted-2); margin-top: 14px; font-style: italic; }

/* Step 6 — profile + transition flash */
.transition-flash { position: fixed; inset: 0; background: #0c0a14; display: grid; place-items: center; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.transition-flash.show { opacity: 1; pointer-events: auto; }
.transition-flash .flash-name { font-size: clamp(48px, 10vw, 140px); font-weight: 700; letter-spacing: -.04em; color: #fff; text-align: center; padding: 0 24px; transform: scale(.94); opacity: 0; transition: all 1s cubic-bezier(.22, 1, .36, 1); }
.transition-flash .flash-name em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.transition-flash.show .flash-name { transform: scale(1); opacity: 1; }
.transition-flash .flash-sub { position: absolute; bottom: 18%; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .4); opacity: 0; transition: opacity .8s ease .4s; }
.transition-flash.show .flash-sub { opacity: 1; }

.profile-grid { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.source-eyebrow { margin-top: 8px; margin-bottom: 10px; }
.checkbox {
	display: flex; align-items: center; gap: 14px;
	padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px;
	cursor: pointer; margin-top: 10px; transition: all .3s;
	background: rgba(255, 255, 255, .5);
	font-family: inherit; text-align: left; color: inherit; width: 100%;
}
body.is-onboarding.tone-6 .checkbox { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.checkbox:hover { border-color: rgba(10, 10, 10, .3); }
body.is-onboarding.tone-6 .checkbox:hover { border-color: rgba(255, 255, 255, .3); }
.checkbox .box { width: 22px; height: 22px; border: 1.5px solid rgba(10, 10, 10, .25); border-radius: 6px; display: grid; place-items: center; transition: all .3s; flex-shrink: 0; position: relative; }
body.is-onboarding.tone-6 .checkbox .box { border-color: rgba(255, 255, 255, .25); }
.checkbox .box svg { width: 12px; height: 12px; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .45s ease; }
.checkbox.on .box { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.checkbox.on .box svg { stroke-dashoffset: 0; }
.checkbox .lbl { font-size: 14.5px; color: #1a1a1a; line-height: 1.4; }
body.is-onboarding.tone-6 .checkbox .lbl { color: rgba(255, 255, 255, .9); }

/* Step 7 — revelation */
.reveal-mesh {
	position: fixed; inset: -20%; z-index: 0; pointer-events: none;
	background: radial-gradient(45% 50% at 50% 40%, rgba(139, 92, 246, .35), transparent 65%),
		radial-gradient(40% 45% at 65% 60%, rgba(245, 158, 11, .3), transparent 65%),
		radial-gradient(35% 40% at 30% 65%, rgba(217, 70, 239, .28), transparent 65%);
	opacity: 0; transition: opacity 1.6s ease; filter: blur(4px);
}
.step[data-step="7"].active .reveal-mesh { opacity: 1; }
.reveal-mesh::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
	-webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
}

.s7 { text-align: center; position: relative; z-index: 1; max-width: 1100px; }
.s7 .pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; font-family: 'JetBrains Mono', monospace; margin-bottom: 30px; box-shadow: 0 10px 30px -5px rgba(139, 92, 246, .5); }
.s7 h1 { font-size: clamp(44px, 6.8vw, 96px); line-height: .94; letter-spacing: -.04em; font-weight: 700; margin: 0 auto 22px; color: #fff; max-width: 22ch; text-wrap: balance; }
.s7 h1 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s7 h1 .hi { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s7-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px auto 44px; max-width: 960px; }
.s7-card {
	background: rgba(255, 255, 255, .04); backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
	padding: 30px 28px 32px; text-align: left; position: relative; overflow: hidden;
	opacity: 0; transform: translateY(20px);
	transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}
.step[data-step="7"].active .s7-card { opacity: 1; transform: none; }
.step[data-step="7"].active .s7-card:nth-child(1) { transition-delay: .5s; }
.step[data-step="7"].active .s7-card:nth-child(2) { transition-delay: .7s; }
.step[data-step="7"].active .s7-card:nth-child(3) { transition-delay: .9s; }
.s7-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(139, 92, 246, .06), transparent 60%); pointer-events: none; }
.s7-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 24px -6px rgba(139, 92, 246, .6); }
.s7-card h4 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: #fff; line-height: 1.25; }
.s7-card p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); line-height: 1.55; }
.s7-prep { font-size: 14px; color: rgba(255, 255, 255, .55); margin: 0 0 26px; display: inline-flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 1s ease 1.2s; }
.step[data-step="7"].active .s7-prep { opacity: 1; }
.s7-prep .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); animation: prep-pulse 1.8s ease-in-out infinite; }
@keyframes prep-pulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .s7-prep .dot { animation: none; } }
.s7-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translateY(10px); transition: all 1s cubic-bezier(.22, 1, .36, 1) 1.3s; }
.step[data-step="7"].active .s7-cta-wrap { opacity: 1; transform: none; }
.s7-fine { font-size: 11px; color: rgba(255, 255, 255, .35); letter-spacing: .06em; font-family: 'JetBrains Mono', monospace; }

body.is-onboarding.hide-chrome .chrome-top,
body.is-onboarding.hide-chrome .chrome-bot { opacity: 0; pointer-events: none; transition: opacity .5s ease; }

/* ============================================================
   PAGES — RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .dd { grid-template-columns: 1fr; gap: 40px; }
    .dd.rev { grid-template-columns: 1fr; }
    .dd.rev .dd-text { order: -1; }
    .wf-grid { grid-template-columns: repeat(2, 1fr); }
    .hwb-grid { grid-template-columns: repeat(2, 1fr); }
    .ind-grid { grid-template-columns: 1fr; }
    .layers-wrap { grid-template-columns: 1fr; gap: 40px; }
    .contact { grid-template-columns: 1fr; padding: 44px 32px; }
    .cl-grid { grid-template-columns: 1fr; gap: 40px; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .dd-text ul { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .pil-grid { grid-template-columns: 1fr; }
    .int-grid { grid-template-columns: repeat(3, 1fr); }
    .sec-grid { grid-template-columns: 1fr; }
    .feat { grid-template-columns: 1fr; }
    .press-grid { grid-template-columns: repeat(2, 1fr); }
    .logos { grid-template-columns: repeat(3, 1fr); }
    .plan-grid { grid-template-columns: 1fr; }
    .ba-split { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .team-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .art-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .factory { grid-template-columns: repeat(3, 1fr); }
    .outlets { grid-template-columns: repeat(4, 1fr); }
    .int-grid { grid-template-columns: repeat(2, 1fr); }
    .wf-grid { grid-template-columns: 1fr; }
    .hwb-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .press-grid { grid-template-columns: 1fr; }
    .step { padding: 68px 16px 84px !important; }
}

@media (max-width: 768px) {
    .cmp-table { font-size: 12px; }
    .cmp-row { grid-template-columns: 1fr; gap: 0; }
    .cmp-row > div { padding: 10px 16px; text-align: left !important; border-bottom: 1px solid var(--line-2); }
    .cmp-row .h { font-size: 10px; padding: 8px 16px; }
    .contact { padding: 36px 24px; }
    .cf-row { grid-template-columns: 1fr; }
    .masthead { gap: 24px; }
    .news-hero h1.hero-h { font-size: clamp(40px, 14vw, 72px); }
    .cl { padding: 88px 0; }
    .cl-item { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 24px 18px; }
    .press-wrap { padding: 88px 0; }
    .news-wrap { padding: 88px 0 96px; }
    .feat-wrap { padding: 48px 0 16px; }
    .grid-wrap { padding: 40px 0 88px; }

    /* Onboarding — mobile chrome */
    .chrome-top { padding: 16px 20px; }
    .chrome-bot { padding: 16px 20px 20px; }
    .progress-track { width: 100px; }

    /* step padding = chrome-top height (56px) + breathing room */
    .step { padding: 72px 20px 88px; }
    .step-inner { padding: 20px 0; }

    .s7-cards { grid-template-columns: 1fr; }

    /* Onboarding step text sizing */
    .s0 h1 { font-size: clamp(44px, 10vw, 80px); }
    .s-h { font-size: clamp(30px, 6vw, 48px); }
    .s-sub { font-size: 15px; }
    .s-eyebrow { font-size: 10px; }

    /* Stage cards */
    .stage-card { padding: 22px 20px; min-height: 160px; }
    .stage-card h4 { font-size: 18px; }
    .stage-card p { font-size: 13px; }

    /* Pain chips */
    .pain-chip { font-size: 13px; padding: 11px 18px; }

    /* Team cards */
    .team-card { padding: 22px 14px; min-height: 130px; }
    .team-card .n { font-size: 15px; }

    /* Plan */
    .plan .prc .amt { font-size: 38px; }
    .plan li { font-size: 13px; }

    /* Step 7 */
    .s7 h1 { font-size: clamp(34px, 7vw, 60px); }
    .s7-card { padding: 22px 20px 24px; }
    .s7-card h4 { font-size: 16px; }
    .s7-card p { font-size: 13px; }
    .s7-fine { font-size: 10px; }
}

/* Small mobile — 390px */
@media (max-width: 390px) {
    .chrome-top { padding: 12px 16px; }
    .chrome-bot { padding: 12px 16px 16px; }
    .progress-track { width: 80px; }

    /* step padding matches tighter chrome heights */
    .step { padding: 60px 14px 76px !important; }
    .step-inner { padding: 16px 0; }

    .s0 h1 { font-size: clamp(36px, 11vw, 56px); }
    .s-h { font-size: clamp(26px, 7.5vw, 36px); }
    .s-sub { font-size: 14px; margin-bottom: 32px; }

    .cta { padding: 13px 22px; font-size: 14px; }

    /* Stage cards — single column already, tighten padding */
    .stage-card { padding: 18px 16px; gap: 12px; }
    .stage-card h4 { font-size: 17px; }

    /* Pain chips */
    .pain-chip { font-size: 12px; padding: 10px 14px; }

    /* Team cards */
    .team-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .team-card { padding: 18px 10px; min-height: 110px; }
    .team-card .n { font-size: 14px; }

    /* Plan */
    .plan { padding: 24px 20px 28px; }
    .plan .prc .amt { font-size: 32px; }
    .plan li { font-size: 12px; }

    /* Step 7 */
    .s7 h1 { font-size: clamp(28px, 8vw, 44px); }
    .s7-card { padding: 18px 16px 20px; }
    .s7-card h4 { font-size: 15px; }
    .s7-card p { font-size: 12px; }

    /* Chips */
    .chip { font-size: 13px; padding: 9px 16px; }
}