/* =========================================================
   MarketPOS — marketing site
   Direction: "control room for market day".
   The product's own stall-allocation heatmap is the visual
   system: a mint -> amber -> coral heat ramp on a deep navy
   canvas, stall codes as the structural marker, monospace
   for anything that is a figure or an identifier.
   ========================================================= */

:root {
    /* canvas */
    --void: #070C16;
    --panel: #0D1524;
    --panel-2: #121C2E;
    --line: rgba(146, 172, 214, 0.16);
    --line-soft: rgba(146, 172, 214, 0.09);

    /* ink */
    --chalk: #E9F0FB;
    --mute: #8DA0BE;
    --dim: #63748F;

    /* heat ramp — the signature */
    --mint: #34E5A1;
    --amber: #FFB833;
    --coral: #FF6B57;
    --iris: #7C8CFF;

    --heat: linear-gradient(90deg, var(--mint) 0%, var(--amber) 52%, var(--coral) 100%);

    /* type */
    --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --body: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    /* rhythm */
    --gutter: 28px;
    --radius: 18px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

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

/* ambient field — two soft heat pools, fixed, very low opacity */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(58rem 40rem at 78% -8%, rgba(52, 229, 161, 0.10), transparent 62%),
        radial-gradient(48rem 36rem at 8% 22%, rgba(124, 140, 255, 0.10), transparent 60%),
        radial-gradient(40rem 30rem at 92% 74%, rgba(255, 107, 87, 0.07), transparent 62%);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: #16120A; }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { margin: 0; }

.lede {
    color: var(--mute);
    font-size: 1.06rem;
    line-height: 1.65;
    max-width: 58ch;
    text-wrap: pretty;
}

.heat-text {
    background: var(--heat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Structural marker: stall codes ---------- */
.stallcode {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 18px;
}

.stallcode::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--mint);
    box-shadow: 0 0 0 3px rgba(52, 229, 161, 0.16);
}

.stallcode.hot::before { background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 87, 0.16); }
.stallcode.warm::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 184, 51, 0.16); }
.stallcode.cool::before { background: var(--iris); box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.16); }

/* ---------- Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 12, 22, 0.72);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
    color: var(--chalk);
    flex-shrink: 0;
}

.nav-logo img {
    height: 32px;
    width: 32px;
    border-radius: 9px;
    background: #fff;
    padding: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 30px;
}

.nav-links > a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mute);
    transition: color 0.18s ease;
}

.nav-links > a:hover { color: var(--chalk); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-toggle-checkbox { display: none; }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.nav-burger span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--chalk);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-links-cta-row { display: none; }

@media (max-width: 960px) {
    .nav { position: relative; }
    .nav-actions { display: none; }
    .nav-burger { display: flex; }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: calc(var(--gutter) * -1);
        right: calc(var(--gutter) * -1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        padding: 0 var(--gutter);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
    }

    .nav-links > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--line-soft);
        font-size: 1rem;
    }

    .nav-links-cta-row {
        display: flex;
        gap: 12px;
        padding: 20px 0 26px;
    }

    .nav-links-cta-row .btn { flex: 1; text-align: center; }

    .nav-toggle-checkbox:checked ~ .nav-links {
        max-height: 560px;
        opacity: 1;
    }

    .nav-toggle-checkbox:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-toggle-checkbox:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle-checkbox:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--chalk);
    color: #070C16;
    box-shadow: 0 0 0 0 rgba(52, 229, 161, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 10px 34px -12px rgba(233, 240, 251, 0.6);
}

.btn-ghost {
    background: rgba(146, 172, 214, 0.06);
    border-color: var(--line);
    color: var(--chalk);
}

.btn-ghost:hover {
    border-color: rgba(52, 229, 161, 0.5);
    color: var(--mint);
}

.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Sections ---------- */
.section {
    padding: clamp(72px, 9vw, 124px) 0;
}

.section-tight { padding: clamp(48px, 6vw, 72px) 0; }

.rule {
    height: 1px;
    background: var(--line-soft);
    border: 0;
    margin: 0;
}

.section-head {
    max-width: 660px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.center .stallcode { justify-content: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.section-head h2 { margin-bottom: 16px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(36px, 5vw, 68px);
    align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero .lede { font-size: 1.14rem; margin-bottom: 34px; }

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
}

.hero-note span { display: inline-flex; align-items: center; gap: 7px; }

.hero-note span::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--mint);
}

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

/* ---------- Hero showcase: crossfades through the key features ----------
   Every slide sits in the same grid cell, so the stage is as tall as the
   tallest slide and nothing jumps as they swap.                          */
.hero-stage {
    display: grid;
    /* inactive slides are still laid out, so the widest of them must not be
       able to push the stage past its column */
    min-width: 0;
}

.hero-slide {
    grid-area: 1 / 1;
    min-width: 0;
    /* centred, so shorter slides sit in the middle of the stage instead of
       leaving all the slack below them */
    align-self: center;
    opacity: 0;
    visibility: hidden;
    /* a plain crossfade — no travel, so the two slides sit still and swap */
    transition: opacity 0.5s ease,
                visibility 0s linear 0.5s;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease,
                visibility 0s;
    pointer-events: auto;
}

/* before the script runs, show the first slide so it is never blank */
.hero-stage:not([data-ready]) .hero-slide:first-child {
    opacity: 1;
    visibility: visible;
}

/* without the script the tabs cannot switch anything, so don't offer them */
.hero-stage:not([data-ready]) ~ .hero-tabs { display: none; }

.hero-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tab {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 4px 11px;
    background: none;
    border: 0;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--dim);
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease;
}

.hero-tab:hover { color: var(--mute); }
.hero-tab[aria-selected="true"] { color: var(--chalk); }

/* the tab's top rule doubles as the dwell timer for the visible slide.
   A real element, not a pseudo-element, so it can be frozen mid-run. */
.hero-tab-progress {
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mint);
    pointer-events: none;
}

@media (max-width: 520px) {
    .hero-tab { flex: 1 1 44%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-tab-progress { transition: none !important; }
}

/* ---------- Signature: the floor-plan heatmap ---------- */
.floorplan {
    background: linear-gradient(168deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
    min-width: 0;
}

.floorplan-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
    min-width: 0;
}

.floorplan-title {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
}

.floorplan-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--dim);
}

/* the bar wraps rather than squashing the ramp, so it stays readable */
.floorplan-legend {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* a real width, not just a flex-basis — the ramp is an empty span, so a
   basis alone contributes nothing to the legend's intrinsic width and the
   ramp ends up overflowing it */
.legend-ramp {
    width: 74px;
    flex: 0 0 auto;
    height: 6px;
    border-radius: 3px;
    background: var(--heat);
}

/* in a narrow column there is no room for title and legend side by side */
@media (max-width: 560px) {
    .floorplan-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.stall-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
}

.stall {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    border: 1px solid var(--line-soft);
    background: rgba(146, 172, 214, 0.05);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 5px 6px;
    font-family: var(--mono);
    font-size: 0.54rem;
    color: var(--dim);
    overflow: hidden;
    animation: stall-heat 9s ease-in-out infinite;
}

/* aisle: an empty cell so the grid reads as a real floor plan */
.stall.aisle {
    background: transparent;
    border-color: transparent;
    animation: none;
}

.stall.vacant {
    animation: none;
    border-style: dashed;
    border-color: rgba(146, 172, 214, 0.22);
}

/* stalls the caption names by number are pinned, so the label stays true */
.stall.pin-hot {
    animation: none;
    background: rgba(255, 107, 87, 0.28);
    border-color: rgba(255, 107, 87, 0.6);
    color: var(--chalk);
}

.stall.pin-cold {
    animation: none;
    background: rgba(52, 229, 161, 0.10);
    border-color: rgba(52, 229, 161, 0.3);
}

@keyframes stall-heat {
    0%, 100% { background: rgba(52, 229, 161, 0.10); border-color: rgba(52, 229, 161, 0.28); }
    35%      { background: rgba(255, 184, 51, 0.16); border-color: rgba(255, 184, 51, 0.38); }
    65%      { background: rgba(255, 107, 87, 0.22); border-color: rgba(255, 107, 87, 0.45); }
}

/* stagger so the floor lights up like a real market day */
.stall:nth-child(6n+1) { animation-delay: -0.0s; }
.stall:nth-child(6n+2) { animation-delay: -1.4s; }
.stall:nth-child(6n+3) { animation-delay: -2.9s; }
.stall:nth-child(6n+4) { animation-delay: -4.3s; }
.stall:nth-child(6n+5) { animation-delay: -5.8s; }
.stall:nth-child(6n+6) { animation-delay: -7.2s; }
.stall:nth-child(7n+3) { animation-duration: 11s; }
.stall:nth-child(5n+2) { animation-duration: 7.5s; }

.floorplan-foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    min-width: 0;
}

.fp-stat { min-width: 0; }

.fp-stat .k {
    display: block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 4px;
}

.fp-stat .v {
    font-family: var(--display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================================
   Cards & bento
   ========================================================= */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
    position: relative;
    background: linear-gradient(170deg, rgba(18, 28, 46, 0.9) 0%, rgba(13, 21, 36, 0.9) 100%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.card:hover {
    border-color: var(--line);
    transform: translateY(-3px);
}

.card h3 { margin-bottom: 9px; }

.card p {
    color: var(--mute);
    font-size: 0.94rem;
    line-height: 1.6;
}

.card .mark {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
}

/* the heat tick — a card's accent is a 2px bar, not a coloured icon box */
.card::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 0;
    width: 26px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--mint);
    opacity: 0.7;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.card:hover::after { width: 56px; opacity: 1; }

.card.t-warm::after { background: var(--amber); }
.card.t-hot::after { background: var(--coral); }
.card.t-cool::after { background: var(--iris); }

/* bento spans */
.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-2, .span-3, .span-4 { grid-column: span 1; }
}

@media (max-width: 640px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Spotlights — alternating text / product mock
   ========================================================= */
.spotlight {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

/* flipped: swap the track widths too, so the visual keeps the wider column */
.spotlight.flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.spotlight.flip .spot-copy { order: 2; }
.spotlight.flip .spot-visual { order: 1; }

@media (max-width: 960px) {
    /* .flip must be named here too — it sets its own tracks at a higher
       specificity, so `.spotlight` alone would not win */
    .spotlight,
    .spotlight.flip { grid-template-columns: minmax(0, 1fr); }

    .spotlight.flip .spot-copy,
    .spotlight.flip .spot-visual { order: initial; }
}

.spot-copy h2 { margin-bottom: 16px; }
.spot-copy .lede { margin-bottom: 26px; }

.spot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.spot-list li {
    position: relative;
    padding-left: 20px;
    color: var(--mute);
    font-size: 0.95rem;
    line-height: 1.55;
}

.spot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--mint);
}

.spot-list.warm li::before { background: var(--amber); }
.spot-list.hot li::before { background: var(--coral); }
.spot-list.cool li::before { background: var(--iris); }

.spot-list li strong { color: var(--chalk); font-weight: 600; }

/* ---------- Product mock chrome ---------- */
.mock {
    background: linear-gradient(168deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 40px 90px -46px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    min-width: 0;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(146, 172, 214, 0.04);
}

.mock-bar .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(146, 172, 214, 0.28);
}

.mock-bar .path {
    margin-left: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--dim);
    letter-spacing: 0.04em;
}

.mock-body { padding: 18px; }

.mock-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(7, 12, 22, 0.5);
    font-size: 0.88rem;
    color: var(--chalk);
    margin-bottom: 12px;
}

.mock-field .ico { color: var(--mint); font-size: 0.85rem; }

.mock-field .caret {
    width: 1.5px;
    height: 15px;
    background: var(--mint);
    animation: caret 1.15s steps(1) infinite;
}

@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.mock-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--mute);
    background: rgba(146, 172, 214, 0.05);
    white-space: nowrap;
}

.chip.on {
    border-color: rgba(52, 229, 161, 0.45);
    color: var(--mint);
    background: rgba(52, 229, 161, 0.08);
}

/* result table */
.mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.mock-table th {
    text-align: left;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0 10px 9px;
    border-bottom: 1px solid var(--line-soft);
}

.mock-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--mute);
}

.mock-table tr:last-child td { border-bottom: 0; }
.mock-table .num { font-family: var(--mono); color: var(--chalk); text-align: right; white-space: nowrap; }
.mock-table .who { color: var(--chalk); }

.mock-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--dim);
    letter-spacing: 0.06em;
}

/* ---------- Point-of-sale mock ---------- */
.pos-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.85rem;
    color: var(--mute);
}

.pos-line .item { color: var(--chalk); }

.pos-line .owner {
    display: block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mint);
    margin-top: 3px;
}

.pos-line .amt { font-family: var(--mono); color: var(--chalk); }

.pos-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    margin-top: 4px;
}

.pos-total .k {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
}

.pos-total .v {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- AI mock ---------- */
.ai-card {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: rgba(124, 140, 255, 0.07);
    border: 1px solid rgba(124, 140, 255, 0.24);
    margin-bottom: 14px;
}

.ai-card:last-child { margin-bottom: 0; }

.ai-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--iris);
    margin-bottom: 11px;
}

.ai-head .pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--iris);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 140, 255, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(124, 140, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 140, 255, 0); }
}

.ai-card p { font-size: 0.9rem; line-height: 1.62; color: var(--chalk); }

.ai-card .figures {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.ai-note {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
    font-size: 0.82rem;
    color: var(--mute);
    line-height: 1.55;
}

/* ---------- Helpdesk thread mock ---------- */
.ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.ticket-head h4 { font-size: 0.98rem; }

.ticket-head .ref {
    font-family: var(--mono);
    font-size: 0.64rem;
    color: var(--dim);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 5px;
}

.status {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.status.open { background: rgba(255, 184, 51, 0.12); color: var(--amber); border: 1px solid rgba(255, 184, 51, 0.32); }
.status.prog { background: rgba(124, 140, 255, 0.12); color: var(--iris); border: 1px solid rgba(124, 140, 255, 0.32); }
.status.done { background: rgba(52, 229, 161, 0.12); color: var(--mint); border: 1px solid rgba(52, 229, 161, 0.32); }

.thread { display: grid; gap: 12px; }

.msg {
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    background: rgba(146, 172, 214, 0.05);
    border: 1px solid var(--line-soft);
    font-size: 0.88rem;
    color: var(--mute);
    line-height: 1.55;
}

.msg.reply {
    background: rgba(52, 229, 161, 0.06);
    border-color: rgba(52, 229, 161, 0.22);
    margin-left: 24px;
}

.msg .from {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 7px;
}

.msg.reply .from { color: var(--mint); }

.escalate {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 107, 87, 0.4);
    background: rgba(255, 107, 87, 0.05);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--coral);
}

/* =========================================================
   Cycle rail (how it works)
   ========================================================= */
.rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.rail-step {
    position: relative;
    padding: 26px 22px 26px 0;
    border-right: 1px solid var(--line-soft);
}

.rail-step:last-child { border-right: 0; }

.rail-step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--heat);
    background-size: 500% 100%;
    animation: rail-fill 12s linear infinite;
}

.rail-step:nth-child(1)::before { animation-delay: 0s; }
.rail-step:nth-child(2)::before { animation-delay: 2.4s; }
.rail-step:nth-child(3)::before { animation-delay: 4.8s; }
.rail-step:nth-child(4)::before { animation-delay: 7.2s; }
.rail-step:nth-child(5)::before { animation-delay: 9.6s; }

@keyframes rail-fill {
    0%   { width: 0; opacity: 0; }
    3%   { width: 0; opacity: 1; }
    18%  { width: 100%; opacity: 1; }
    82%  { width: 100%; opacity: 0.28; }
    100% { width: 100%; opacity: 0; }
}

.rail-step .n {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--dim);
    margin-bottom: 14px;
}

.rail-step h4 { margin-bottom: 8px; }

.rail-step p {
    font-size: 0.9rem;
    color: var(--mute);
    line-height: 1.58;
}

@media (max-width: 1000px) {
    .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rail-step { padding-right: 18px; border-bottom: 1px solid var(--line-soft); }
    .rail-step:nth-child(2n) { border-right: 0; }
}

@media (max-width: 620px) {
    .rail { grid-template-columns: 1fr; }
    .rail-step { border-right: 0; padding-right: 0; }
    .rail-step:last-child { border-bottom: 0; }
}

/* =========================================================
   Roles
   ========================================================= */
.role-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 28px;
    background: linear-gradient(170deg, rgba(18, 28, 46, 0.85) 0%, rgba(13, 21, 36, 0.85) 100%);
}

.role-card .role-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 16px;
    border: 1px solid rgba(52, 229, 161, 0.32);
    color: var(--mint);
    background: rgba(52, 229, 161, 0.07);
}

.role-card.warm .role-tag { border-color: rgba(255, 184, 51, 0.32); color: var(--amber); background: rgba(255, 184, 51, 0.07); }
.role-card.cool .role-tag { border-color: rgba(124, 140, 255, 0.32); color: var(--iris); background: rgba(124, 140, 255, 0.07); }

.role-card h3 { margin-bottom: 16px; }

.role-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.role-card li {
    position: relative;
    padding-left: 18px;
    color: var(--mute);
    font-size: 0.92rem;
    line-height: 1.5;
}

.role-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.5;
}

/* =========================================================
   Integrations strip
   ========================================================= */
.integrations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.integration {
    padding: 24px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.integration:nth-child(3n) { border-right: 0; }
.integration:nth-last-child(-n+3) { border-bottom: 0; }

.integration .k {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 9px;
}

.integration h4 { margin-bottom: 6px; }

.integration p { font-size: 0.88rem; color: var(--mute); line-height: 1.55; }

@media (max-width: 900px) {
    .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .integration { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .integration:nth-child(3n) { border-right: 1px solid var(--line-soft); }
    .integration:nth-child(2n) { border-right: 0; }
    .integration:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
    .integration:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
    .integrations { grid-template-columns: 1fr; }
    .integration { border-right: 0 !important; }
}

/* =========================================================
   Pricing
   ========================================================= */
.price-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 32px;
    background: linear-gradient(170deg, rgba(18, 28, 46, 0.9) 0%, rgba(13, 21, 36, 0.9) 100%);
}

.price-card.featured {
    border-color: rgba(52, 229, 161, 0.4);
    box-shadow: 0 0 0 1px rgba(52, 229, 161, 0.12), 0 30px 70px -40px rgba(52, 229, 161, 0.4);
}

.price-card .plan {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 14px;
}

.price-card.enterprise .plan { color: var(--iris); }

.price-card h3 { font-size: 1.5rem; margin-bottom: 10px; }

.price-card > p { color: var(--mute); font-size: 0.95rem; margin-bottom: 26px; }

.price-lines {
    display: grid;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 24px;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price-line .amt {
    font-family: var(--display);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-line .per { color: var(--mute); font-size: 0.92rem; }

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 10px;
    flex: 1;
}

.price-card li {
    position: relative;
    padding-left: 22px;
    color: var(--mute);
    font-size: 0.92rem;
    line-height: 1.5;
}

.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 6px;
    border-left: 1.5px solid var(--mint);
    border-bottom: 1.5px solid var(--mint);
    transform: rotate(-45deg);
}

.price-card.enterprise li::before { border-color: var(--iris); }

/* =========================================================
   CTA + contact form
   ========================================================= */
.cta {
    position: relative;
    border-radius: 26px;
    padding: clamp(38px, 5vw, 64px);
    border: 1px solid var(--line);
    background:
        radial-gradient(38rem 22rem at 12% 0%, rgba(52, 229, 161, 0.14), transparent 62%),
        radial-gradient(34rem 22rem at 88% 100%, rgba(255, 107, 87, 0.12), transparent 62%),
        linear-gradient(170deg, var(--panel-2) 0%, var(--panel) 100%);
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--heat);
}

.cta-head { max-width: 620px; margin-bottom: 34px; }
.cta-head h2 { margin-bottom: 14px; }

.contact-form { max-width: 760px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
}

.form-field input {
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(7, 12, 22, 0.6);
    color: var(--chalk);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input::placeholder { color: var(--dim); }

.form-field input:hover { border-color: rgba(146, 172, 214, 0.3); }

.form-field input:focus {
    outline: none;
    border-color: var(--mint);
    background: rgba(7, 12, 22, 0.9);
}

/* Field-level validation, raised by wwwroot/js/contact.js - the form is novalidate so we own the presentation. */
.form-field.is-invalid input,
.form-field.is-invalid input:hover,
.form-field.is-invalid input:focus { border-color: var(--coral); }

.field-error {
    font-size: 0.82rem;
    color: var(--coral);
}

.contact-form-message {
    min-height: 1.4em;
    margin: 16px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mute);
}

.contact-form-message.error { color: var(--coral); }

#contact-form-submit { margin-top: 20px; }

.contact-form-success {
    max-width: 520px;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(52, 229, 161, 0.35);
    background: rgba(52, 229, 161, 0.07);
}

.contact-form-success h3 { margin-bottom: 8px; }
.contact-form-success p { color: var(--mute); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-item {
    border-bottom: 1px solid var(--line-soft);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question h4 { transition: color 0.2s ease; }
.faq-item:hover .faq-question h4 { color: var(--mint); }

.faq-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--mute);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::before { width: 13px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 13px; transition: transform 0.22s ease; }

.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scale(0); }
.faq-item[open] .faq-icon::before { background: var(--mint); }

.faq-answer {
    color: var(--mute);
    font-size: 0.95rem;
    line-height: 1.65;
    padding-bottom: 24px;
    max-width: 66ch;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 56px 0 40px;
    color: var(--mute);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    margin-bottom: 44px;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.footer-brand p {
    color: var(--mute);
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 34ch;
}

.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    color: var(--mute);
    transition: color 0.18s ease;
}

.footer-col a:hover { color: var(--mint); }

.footer-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.84rem;
    color: var(--dim);
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-powered span {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-powered img { height: 34px; width: auto; opacity: 0.75; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .reveal { opacity: 1; transform: none; }

    .rail-step::before { width: 100%; opacity: 1; }

    .stall { background: rgba(255, 184, 51, 0.12); border-color: rgba(255, 184, 51, 0.3); }
}

/* =========================================================
   Apps
   ========================================================= */
.apps-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.apps-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: rgba(124, 140, 255, 0.05);
    color: var(--mute);
    font-size: 0.9rem;
    line-height: 1.6;
}

.apps-note > span:first-child {
    color: var(--iris);
    font-size: 1.05rem;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .apps-ctas .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Wide features menu
   The features list is long enough that a single dropdown
   column would scroll; it is grouped by the job each feature
   does, in the same order the product's own sidebar uses.
   ========================================================= */
.nav-links > .has-mega {
    position: static;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mute);
    cursor: pointer;
    transition: color 0.18s ease;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--body);
}

.mega-trigger:hover,
.has-mega:hover .mega-trigger,
.has-mega:focus-within .mega-trigger { color: var(--chalk); }

.mega-trigger::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.has-mega:hover .mega-trigger::after,
.has-mega:focus-within .mega-trigger::after { transform: translateY(1px) rotate(225deg); }

.mega {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    /* Opaque rather than translucent: the hero sits directly behind the panel and read through it. */
    background: var(--panel);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mega-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 28px 32px;
    padding: 34px 0 30px;
}

.mega-col h4 {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 12px;
}

.mega-col a {
    display: block;
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--mute);
    transition: color 0.16s ease, background 0.16s ease;
}

.mega-col a:hover,
.mega-col a:focus-visible {
    color: var(--chalk);
    background: rgba(146, 172, 214, 0.07);
}

.mega-col a span {
    display: block;
    font-size: 0.76rem;
    color: var(--dim);
    line-height: 1.45;
    margin-top: 2px;
}

.mega-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .mega-trigger { display: none; }

    .mega {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .mega .container { padding: 0; }
    .mega-inner { grid-template-columns: 1fr; gap: 18px; padding: 18px 0 4px; }
    .mega-col a { padding: 11px 0; margin-left: 0; border-bottom: 1px solid var(--line-soft); }
    .mega-col a span { display: none; }
    .mega-foot { display: none; }

    .nav-toggle-checkbox:checked ~ .nav-links {
        max-height: min(78vh, 900px);
        overflow-y: auto;
    }
}

/* =========================================================
   Feature page header
   ========================================================= */
.page-hero {
    padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 4.5vw, 56px);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 960px) {
    .page-hero-grid { grid-template-columns: 1fr; }
}

.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 20px; }
.page-hero .lede { font-size: 1.08rem; margin-bottom: 30px; max-width: 60ch; }

.crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 18px;
}

.crumb a { color: var(--mute); }
.crumb a:hover { color: var(--mint); }

/* =========================================================
   Related features
   ========================================================= */
.related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.related a {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: rgba(146, 172, 214, 0.03);
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.related a:hover {
    border-color: rgba(52, 229, 161, 0.34);
    background: rgba(52, 229, 161, 0.05);
    transform: translateY(-2px);
}

.related .k {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 7px;
}

.related strong { display: block; color: var(--chalk); font-weight: 600; margin-bottom: 4px; }
.related p { font-size: 0.85rem; color: var(--mute); line-height: 1.5; }

/* =========================================================
   Feature index cards (home platform grid, /features)
   ========================================================= */
.feature-link-card {
    display: block;
    padding: 22px 22px 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(146, 172, 214, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-link-card:hover {
    border-color: rgba(52, 229, 161, 0.3);
    background: rgba(52, 229, 161, 0.04);
    transform: translateY(-3px);
}

.feature-link-card .mark {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 12px;
}

.feature-link-card h3 { margin-bottom: 8px; }
.feature-link-card p { font-size: 0.9rem; color: var(--mute); line-height: 1.6; }

.feature-link-card .go {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--mint);
}

/* =========================================================
   Small fact strip
   ========================================================= */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.fact {
    background: var(--panel);
    padding: 20px 22px;
}

.fact .k {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 8px;
}

.fact .v { display: block; color: var(--chalk); font-size: 0.95rem; line-height: 1.5; }

/* =========================================================
   Comparison page — vs. cards + the full feature matrix
   ========================================================= */

/* the tick / partial / cross marker used throughout the comparison page */
.yn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: none;
}

.yn-yes {
    background: rgba(52, 229, 161, 0.14);
}

.yn-yes::before {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--mint);
    border-bottom: 1.5px solid var(--mint);
    transform: rotate(-45deg) translate(1px, -1px);
}

.yn-partial {
    background: rgba(255, 184, 51, 0.14);
}

.yn-partial::before {
    content: "";
    width: 9px;
    height: 1.5px;
    background: var(--amber);
}

.yn-no {
    background: rgba(99, 116, 143, 0.14);
}

.yn-no::before {
    content: "";
    width: 8px;
    height: 8px;
    background:
        linear-gradient(45deg, transparent 45%, var(--dim) 45%, var(--dim) 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, var(--dim) 45%, var(--dim) 55%, transparent 55%);
}

/* per-competitor "MarketPOS vs X" cards */
.vs-card {
    display: block;
    background: linear-gradient(170deg, rgba(18, 28, 46, 0.9) 0%, rgba(13, 21, 36, 0.9) 100%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.vs-card:hover {
    border-color: rgba(52, 229, 161, 0.3);
    transform: translateY(-3px);
}

.vs-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.vs-card-head h3 { font-size: 1.08rem; }

.vs-card p.category {
    color: var(--mute);
    font-size: 0.86rem;
    margin-bottom: 16px;
}

.vs-card .go {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.84rem;
    color: var(--mint);
}

.vs-rows { border-top: 1px solid var(--line-soft); }

.vs-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.86rem;
}

.vs-row .feat { color: var(--chalk); }

.vs-row .col-head {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}

/* the full matrix — MarketPOS is always column one and stays pinned while the rest scrolls */
.matrix-scroll {
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
}

table.matrix {
    border-collapse: collapse;
    width: 100%;
    min-width: 1120px;
}

table.matrix th, table.matrix td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}

table.matrix thead th a:hover { color: var(--mint); }

table.matrix thead th {
    position: sticky;
    top: 0;
    background: var(--panel);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    font-weight: 500;
    z-index: 1;
    border-bottom: 1px solid var(--line);
}

table.matrix td.feat, table.matrix th.feat {
    text-align: left;
    white-space: normal;
    max-width: 220px;
    color: var(--chalk);
    font-size: 0.88rem;
}

table.matrix tbody tr:hover td { background: rgba(146, 172, 214, 0.04); }

/* MarketPOS's own column — always the first data column, always the one that looks like the answer */
table.matrix .col-us {
    background: rgba(52, 229, 161, 0.07);
}

table.matrix thead .col-us {
    background: rgba(52, 229, 161, 0.14);
    color: var(--mint);
}

table.matrix td.feat {
    position: sticky;
    left: 0;
    background: var(--panel);
    z-index: 1;
    border-right: 1px solid var(--line-soft);
}

table.matrix th.feat {
    position: sticky;
    left: 0;
    z-index: 3;
    border-right: 1px solid var(--line-soft);
}

.matrix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 18px;
    font-size: 0.84rem;
    color: var(--mute);
}

.matrix-legend span { display: inline-flex; align-items: center; gap: 8px; }

.matrix-caveat {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 68ch;
}

.matrix-caveat + .matrix-caveat {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.matrix-caveat a {
    color: var(--mint);
    text-decoration: underline;
    text-underline-offset: 2px;
}
