/* ==========================================================================
   Karlarth marketing site — custom styles layered over Tailwind CDN.
   Tailwind handles layout/spacing utilities; this file owns the brand
   components: navigation, product mockups, bento visuals, tabs and modal.
   ========================================================================== */

:root {
    --ink: #272757;
    --mist: #F7F6FB;
    --brand: #505081;
    --brand-dark: #44436F;
    --brand-soft: #F2F2F8;
    --line: #E5E2EF;
    --muted: #6A6784;
    --shadow-sm: 0 1px 2px rgba(39,39,87, .06);
    --shadow-md: 0 12px 30px -18px rgba(39,39,87, .28);
    --shadow-lg: 0 30px 80px -35px rgba(39,39,87, .38);
}

[hidden] { display: none !important; }

::selection { background: #D2D2E4; color: var(--ink); }

:focus-visible {
    outline: 3px solid #9C9CC0;
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .65rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: .6rem;
    font-size: .85rem;
    font-weight: 600;
    transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    background: rgba(247,246,251, 0);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: rgba(229,226,239, .9);
    box-shadow: 0 8px 30px -24px rgba(39,39,87, .5);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    background: #fff;
    border: 1px solid #E7E5F1;
    border-radius: .7rem;
    box-shadow: 0 10px 24px -14px rgba(39,39,87, .45);
    transition: transform .2s ease;
}
.brand-mark img { display: block; width: 64px; height: 32px; object-fit: contain; }
a:hover .brand-mark { transform: translateY(-1px) rotate(-1.5deg); }

.nav-link {
    padding: .5rem .85rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 600;
    color: #4C4966;
    transition: color .18s ease, background-color .18s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(39,39,87, .05); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--brand-soft); }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: .8rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.menu-toggle:hover { border-color: #CECBE0; }
.menu-toggle-icon { display: inline-flex; }
.menu-toggle-icon.hidden { display: none; }

/* The hamburger is mobile-only; site.css loads after tailwind.css, so its
   display rule would otherwise beat Tailwind's xl:hidden. */
@media (min-width: 1280px) {
    .menu-toggle { display: none; }
}

.mobile-menu {
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(39,39,87, .35);
    animation: sheetIn .22s ease both;
}
.mobile-link {
    display: block;
    padding: .8rem .25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #37345A;
    border-bottom: 1px solid #F1F0F7;
}
.mobile-link:hover { color: var(--brand-dark); }
.mobile-link[aria-current="page"] { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.005em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-lg { padding: .9rem 1.4rem; font-size: .95rem; }

.btn-primary {
    background: linear-gradient(180deg, #505081, #3C3B69);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -14px rgba(80,80,129, .8);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #4A4979, #3A3965);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 34px -14px rgba(80,80,129, .85);
}
/* Lift the primary CTA where it sits on deep indigo surfaces. */
.hero-navy .btn-primary,
.bg-ink .btn-primary,
.has-navy-hero .site-header:not(.is-scrolled) .btn-primary {
    background: linear-gradient(180deg, #5E5E90, #46456F);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 16px 34px -18px rgba(15, 14, 71, .9);
}
.hero-navy .btn-primary:hover,
.bg-ink .btn-primary:hover,
.has-navy-hero .site-header:not(.is-scrolled) .btn-primary:hover {
    background: linear-gradient(180deg, #6A6A9C, #4C4B77);
}

.btn-secondary {
    background: #fff;
    color: #232046;
    border-color: #DFDDED;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #C7C4DA; background: #FDFCFF; transform: translateY(-1px); }

.btn-ghost { color: #37345A; }
.btn-ghost:hover { background: rgba(39,39,87, .05); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 26px -16px rgba(39,39,87, .8); }
.btn-dark:hover { background: #1C1B4D; transform: translateY(-1px); }

.btn-on-dark {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }

.play-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   Hero background
   -------------------------------------------------------------------------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(70px);
    opacity: .55;
}
.hero-orb-a {
    width: 520px; height: 520px; right: -140px; top: -160px;
    background: radial-gradient(circle at 35% 35%, #D2D2E4, rgba(210,210,228, 0) 70%);
}
.hero-orb-b {
    width: 420px; height: 420px; left: -160px; top: 220px;
    background: radial-gradient(circle at 50% 50%, #DEDEEC, rgba(222,222,236, 0) 70%);
    opacity: .5;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(39,39,87, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(39,39,87, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Navy homepage hero
   -------------------------------------------------------------------------- */
.hero-navy {
    background:
        radial-gradient(120% 95% at 85% -10%, rgba(80,80,129, .38), transparent 62%),
        radial-gradient(80% 65% at 5% 105%, rgba(80,80,129, .16), transparent 60%),
        linear-gradient(165deg, #0F0E47 0%, #272757 55%, #0F0E47 100%);
    color: #E5E2EF;
}
.hero-navy .hero-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 25%, transparent 78%);
}
.hero-navy .hero-orb-a {
    opacity: .6;
    background: radial-gradient(circle at 35% 35%, rgba(156,156,192, .5), rgba(156,156,192, 0) 70%);
}
.hero-navy .hero-orb-b {
    opacity: .5;
    background: radial-gradient(circle at 50% 50%, rgba(80,80,129, .45), rgba(80,80,129, 0) 70%);
}
.hero-navy .hero-glow {
    background: radial-gradient(60% 60% at 60% 40%, rgba(134,134,172, .45), transparent 70%);
}
.hero-navy .badge-pill-dark { color: #DEDEEC; }
.hero-navy .float-chip { border-color: rgba(255, 255, 255, .55); }
.hero-navy .hero-feature-rail {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-navy .hero-feature-rail-label { color: #B9B9D3; }
.hero-navy .hero-feature {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #E5E2EF;
}
.hero-navy .hero-feature:hover { border-color: rgba(185,185,211, .6); }
.hero-navy .hero-feature-icon { background: rgba(134,134,172, .18); color: #D2D2E4; }

/* Header sits on the navy hero until the page is scrolled */
.has-navy-hero .site-header:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(15,14,71, .72), rgba(15,14,71, .28) 70%, rgba(15,14,71, 0));
    border-bottom-color: transparent;
}
.has-navy-hero .site-header:not(.is-scrolled) .brand-name { color: #fff; }
.has-navy-hero .site-header:not(.is-scrolled) .brand-sub { color: #9995B0; }
.has-navy-hero .site-header:not(.is-scrolled) .nav-link { color: #CECBE0; }
.has-navy-hero .site-header:not(.is-scrolled) .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.has-navy-hero .site-header:not(.is-scrolled) .nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.has-navy-hero .site-header:not(.is-scrolled) .btn-ghost { color: #E5E2EF; }
.has-navy-hero .site-header:not(.is-scrolled) .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.has-navy-hero .site-header:not(.is-scrolled) .mobile-menu .btn-ghost { color: #37345A; }
.has-navy-hero .site-header:not(.is-scrolled) .mobile-menu .btn-ghost:hover { background: rgba(39,39,87, .05); }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .85rem .45rem .7rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid #DEDEEC;
    box-shadow: var(--shadow-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #272757;
}
.badge-pill-dark {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #D2D2E4;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(80,80,129, .16);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.mini-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9995B0;
}

/* --------------------------------------------------------------------------
   Hero browser mockup
   -------------------------------------------------------------------------- */
.hero-glow {
    position: absolute;
    inset: 8% -10% -6% -6%;
    background: radial-gradient(60% 60% at 60% 40%, rgba(80,80,129, .22), transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.mockup {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid #E6E3EF;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(39,39,87, .45), 0 2px 6px rgba(39,39,87, .05);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .8rem;
    background: #FBFAFE;
    border-bottom: 1px solid #EFEDF5;
}
.mockup-dots { display: inline-flex; gap: 4px; }
.mockup-dots span { width: 7px; height: 7px; border-radius: 9999px; background: #E5E2EF; }
.mockup-dots span:first-child { background: #FCA5A5; }
.mockup-dots span:nth-child(2) { background: #FDE68A; }
.mockup-dots span:last-child { background: #86EFAC; }

.mockup-url {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-inline: auto;
    padding: .2rem .7rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #EEECF4;
    font-size: 10px;
    font-weight: 600;
    color: #9995B0;
}
.lock-dot { width: 5px; height: 5px; border-radius: 9999px; background: var(--brand); }

.mockup-live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #3A3965;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(80,80,129, .18);
    animation: pulseDot 2s ease-in-out infinite;
}

.mockup-switch {
    display: flex;
    gap: 4px;
    margin: 10px 12px 0;
    padding: 4px;
    border-radius: 12px;
    background: #F1F0F7;
    border: 1px solid #EAE8F3;
}
.mockup-switch-btn {
    flex: 1;
    padding: .45rem .5rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 10.5px;
    font-weight: 700;
    color: #6A6784;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mockup-switch-btn:hover { color: var(--ink); }
.mockup-switch-btn.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(39,39,87, .08);
}

.mockup-body { padding: 10px 12px 12px; min-height: 392px; }
.mockup-panel { animation: fadeUp .35s ease both; }

.mockup-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 9px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .55rem;
    border-radius: 9999px;
    border: 1px solid #EBE8F3;
    background: #fff;
    font-size: 9.5px;
    font-weight: 600;
    color: #4C4966;
    white-space: nowrap;
}
.chip-dark { background: var(--ink); border-color: var(--ink); color: #F7F6FB; }
.chip-ok { background: #F2F2F8; border-color: #D2D2E4; color: #3A3965; }
.chip-soft { background: #F1F0F7; border-color: #E8E6F2; color: #6A6784; }

/* POS products + cart */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.product-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px;
    border-radius: 10px;
    border: 1px solid #EEEBF5;
    background: #fff;
    box-shadow: 0 1px 0 rgba(39,39,87, .02);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { border-color: #D2D2E4; transform: translateY(-1px); box-shadow: 0 8px 16px -12px rgba(39,39,87, .35); }
.product-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
}
.tile-a { background: #F2F2F8; color: #3A3965; }
.tile-b { background: #F2F2F8; color: #3E3D6D; }
.tile-c { background: #FFF7ED; color: #C2410C; }
.tile-d { background: #F5F3FF; color: #6D28D9; }
.tile-e { background: #FDF2F8; color: #BE185D; }
.tile-f { background: #F3F2FA; color: #3E3D6D; }

.product-name { font-size: 9.5px; font-weight: 700; color: #232046; line-height: 1.25; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 8.5px; color: #9995B0; }
.product-meta .price { font-weight: 800; color: var(--ink); font-size: 9px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.cart-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    border-radius: 12px;
    background: #F7F6FB;
    border: 1px solid #EEEBF5;
}
.cart-head { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; font-weight: 800; color: #232046; }
.cart-lines { display: flex; flex-direction: column; gap: 5px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9.5px; color: #4C4966; }
.cart-line em { font-style: normal; color: #9995B0; }
.cart-line b { font-weight: 700; color: #232046; }
.cart-line-muted b { color: #B45309; }
.cart-totals { border-top: 1px dashed #DFDDED; padding-top: 7px; font-size: 9.5px; color: #6A6784; }
.cart-totals div { display: flex; align-items: center; justify-content: space-between; }
.cart-total { margin-top: 4px; font-size: 10.5px; color: var(--ink); }
.cart-total b { font-size: 11.5px; font-weight: 800; }
.pay-row { display: flex; gap: 4px; }
.pay-chip {
    flex: 1;
    text-align: center;
    padding: .3rem .2rem;
    border-radius: 7px;
    border: 1px solid #E5E2EF;
    background: #fff;
    font-size: 8.5px;
    font-weight: 700;
    color: #6A6784;
}
.pay-chip.is-active { background: #F2F2F8; border-color: #D2D2E4; color: #3A3965; }
.charge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem;
    border-radius: 9px;
    background: linear-gradient(180deg, #505081, #44436F);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    box-shadow: 0 8px 16px -10px rgba(80,80,129, .9);
}

.mockup-foot {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #F1F0F7;
    font-size: 8.5px;
    color: #9995B0;
}

/* Manager view */
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 10px;
    background: #F7F6FB;
    border: 1px solid #EEEBF5;
}
.mini-kpi span { font-size: 8.5px; font-weight: 700; color: #9995B0; text-transform: uppercase; letter-spacing: .06em; }
.mini-kpi b { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.mini-kpi em { font-style: normal; font-size: 8.5px; font-weight: 700; }
.up { color: #3A3965; }
.warn { color: #B45309; }

.stock-table {
    margin-top: 7px;
    border: 1px solid #EEEBF5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.stock-row {
    display: grid;
    grid-template-columns: 1.5fr .55fr .65fr 1fr;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: 9px;
    color: #37345A;
    border-top: 1px solid #F5F4FA;
}
.stock-row:first-child { border-top: 0; }
.stock-head {
    background: #F7F6FB;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9995B0;
}
.stock-name em { font-style: normal; font-size: 8px; color: #9995B0; }
.stock-bar { height: 5px; border-radius: 9999px; background: #EDEBF4; overflow: hidden; }
.stock-bar i { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #8686AC, #505081); }
.stock-bar.is-low i { background: linear-gradient(90deg, #FBBF24, #F59E0B); }

.sync-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sync-branch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .25rem .5rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #EEEBF5;
    font-size: 8.5px;
    font-weight: 600;
    color: #4C4966;
}
.dot { width: 5px; height: 5px; border-radius: 9999px; }
.dot.ok { background: var(--brand); box-shadow: 0 0 0 3px rgba(80,80,129, .14); }
.dot.pending { background: #F59E0B; animation: pulseDot 1.6s ease-in-out infinite; }

.alert-card {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    padding: 7px 8px;
    border-radius: 10px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}
.alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #FEF3C7;
    color: #B45309;
    flex: none;
}
.alert-card b { font-size: 9px; color: #92400E; }
.alert-card p { font-size: 8.5px; color: #A16207; line-height: 1.3; }
.alert-action {
    margin-left: auto;
    padding: .25rem .5rem;
    border-radius: 6px;
    background: #B45309;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

/* Floating chips */
.float-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #E6E3EF;
    box-shadow: 0 18px 40px -22px rgba(39,39,87, .45);
    font-size: 10.5px;
    font-weight: 700;
    color: #37345A;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: float 7s ease-in-out infinite;
}
.float-chip-a { left: -14px; bottom: -16px; }
.float-chip-b { right: 14px; top: -18px; animation-delay: -2.5s; }
.float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: #F2F2F8;
    color: #3A3965;
}

/* --------------------------------------------------------------------------
   Social proof
   -------------------------------------------------------------------------- */
.metric { display: inline-flex; align-items: baseline; gap: .5rem; }
.metric-value {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--ink);
}
.metric-label { font-size: 11px; font-weight: 600; color: #9995B0; text-transform: uppercase; letter-spacing: .1em; }

.client-logo {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9995B0;
    opacity: .8;
    transition: color .2s ease, opacity .2s ease;
}
.client-logo::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: .55rem;
    border-radius: 2px;
    background: currentColor;
    opacity: .5;
    transform: rotate(45deg);
}
.client-logo:hover { color: #4C4966; opacity: 1; }

/* --------------------------------------------------------------------------
   Bento features
   -------------------------------------------------------------------------- */
.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: #D2D2E4;
    box-shadow: 0 30px 60px -40px rgba(39,39,87, .5);
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(180deg, #F4F2FA, #EDEBF7);
    border: 1px solid #D5D5E6;
    color: #3A3965;
    flex: none;
}

.point-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border-radius: 9999px;
    background: #F7F6FB;
    border: 1px solid #EBE8F3;
    font-size: 10.5px;
    font-weight: 600;
    color: #4C4966;
}

/* Sync visual */
.sync-visual {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    background: #F7F6FB;
    border: 1px solid #EEEBF5;
}
.branch-card {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #EBE8F3;
    box-shadow: var(--shadow-sm);
    flex: 1;
}
.branch-card b { display: block; font-size: 10.5px; color: var(--ink); }
.branch-card small { display: block; font-size: 9px; color: #9995B0; }
.branch-card.is-dest { border-color: #D2D2E4; background: #F8F7FD; }
.branch-dot { width: 7px; height: 7px; border-radius: 9999px; background: #CECBE0; flex: none; }
.branch-dot.is-brand { background: var(--brand); box-shadow: 0 0 0 4px rgba(80,80,129, .15); }
.sync-rail { position: relative; display: flex; align-items: center; gap: 4px; width: 54px; flex: none; }
.sync-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--brand); }
.sync-line {
    flex: 1;
    height: 2px;
    background-image: linear-gradient(90deg, #505081 55%, transparent 0);
    background-size: 8px 2px;
    animation: dash 1.1s linear infinite;
}
.sync-arrow { color: #44436F; }
.sync-stamp {
    position: absolute;
    right: 12px;
    bottom: -10px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 9999px;
    background: #F2F2F8;
    border: 1px solid #D2D2E4;
    font-size: 9px;
    font-weight: 700;
    color: #3A3965;
}

/* Offline visual */
.offline-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    background: #F7F6FB;
    border: 1px solid #EEEBF5;
}
.barcode {
    display: flex;
    align-items: stretch;
    height: 44px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #EBE8F3;
    overflow: hidden;
}
.barcode span {
    flex: 1;
    background-image: repeating-linear-gradient(90deg, #272757 0 2px, transparent 2px 5px, #272757 5px 8px, transparent 8px 12px);
    opacity: .82;
}

/* Alert mock */
.alert-mock {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 12px;
    border-radius: 14px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}
.alert-mock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #FEF3C7;
    color: #B45309;
    flex: none;
}
.alert-mock-body b { font-size: 11.5px; color: #92400E; }
.alert-mock-body p { margin-top: 2px; font-size: 9.5px; color: #A16207; }
.alert-mock-actions { display: flex; gap: 5px; margin-top: 7px; }
.mini-btn {
    padding: .25rem .55rem;
    border-radius: 6px;
    background: #B45309;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
}
.mini-btn.ghost { background: transparent; color: #A16207; border: 1px solid #FCD34D; }

/* Analytics visual */
.analytics-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 14px;
    border-radius: 16px;
    background: #F7F6FB;
    border: 1px solid #EEEBF5;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: #9995B0; }
.chart-head b { font-size: 12px; color: var(--ink); }
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 84px;
    padding-top: 4px;
}
.chart-bar {
    flex: 1;
    min-height: 6px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #D5D5E6, #D2D2E4);
    transition: filter .2s ease;
}
.chart-bar.is-peak { background: linear-gradient(180deg, #8686AC, #505081); box-shadow: 0 10px 20px -12px rgba(80,80,129, .9); }
.top-skus { display: flex; flex-direction: column; gap: 4px; padding-top: 7px; border-top: 1px dashed #E5E2EF; }
.top-skus div { display: flex; align-items: center; gap: .4rem; font-size: 9px; color: #6A6784; }
.top-skus span { color: #9995B0; }
.top-skus b { margin-left: auto; color: #232046; font-size: 9.5px; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps-wrap { display: grid; gap: 18px; position: relative; }
@media (min-width: 768px) {
    .steps-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .steps-wrap::before {
        content: "";
        position: absolute;
        top: 46px;
        left: 6%;
        right: 6%;
        height: 1px;
        background-image: linear-gradient(90deg, #CECBE0 50%, transparent 0);
        background-size: 10px 1px;
        z-index: 0;
    }
}
.step-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: #D2D2E4; box-shadow: 0 28px 60px -42px rgba(39,39,87, .5); }
.step-number {
    position: absolute;
    top: 22px;
    right: 22px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #CECBE0;
}
.step-meta {
    margin-top: 18px;
    padding: .3rem .6rem;
    border-radius: 9999px;
    background: #F7F6FB;
    border: 1px solid #EBE8F3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #6A6784;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Industry tabs
   -------------------------------------------------------------------------- */
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: .83rem;
    font-weight: 700;
    color: #4C4966;
    box-shadow: var(--shadow-sm);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.tab-btn:hover { transform: translateY(-1px); border-color: #C7C4DA; color: var(--ink); }
.tab-btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 14px 26px -18px rgba(39,39,87, .8);
}
.tab-btn.is-active svg { color: #9C9CC0; }

.industry-panel.is-active { animation: fadeUp .35s ease both; }

.check-item { display: flex; align-items: flex-start; gap: .65rem; font-size: .875rem; color: #37345A; line-height: 1.5; }
.check-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 9999px;
    background: #F2F2F8;
    border: 1px solid #D2D2E4;
    color: #3A3965;
    flex: none;
}

.solution-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: radial-gradient(120% 120% at 100% 0%, #1F1E4F 0%, #272757 55%);
    border: 1px solid #232046;
    box-shadow: 0 30px 60px -35px rgba(39,39,87, .8);
}
.solution-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.solution-preview-head b { display: block; margin-top: 2px; font-size: 13px; color: #F7F6FB; }
.preview-eyebrow { font-size: 8.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6A6784; }
.solution-preview .chip-ok { background: rgba(80,80,129, .12); border-color: rgba(80,80,129, .3); color: #9C9CC0; }

.preview-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.preview-kpi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
}
.preview-kpi span { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6A6784; }
.preview-kpi b { font-size: 12.5px; color: #F7F6FB; }
.preview-kpi em { font-style: normal; font-size: 8.5px; font-weight: 700; }
.solution-preview .up { color: #9C9CC0; }
.solution-preview .warn { color: #FCD34D; }

.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 66px;
    padding: 8px 9px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
}
.preview-chart span {
    flex: 1;
    min-height: 5px;
    border-radius: 4px 4px 2px 2px;
    background: rgba(80,80,129, .35);
}
.preview-chart span.is-peak { background: #505081; box-shadow: 0 8px 18px -10px rgba(80,80,129, .9); }

.preview-rows { display: flex; flex-direction: column; }
.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 2px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.preview-row:first-child { border-top: 0; }
.preview-row-main b { display: block; font-size: 10.5px; color: #E5E2EF; }
.preview-row-main span { font-size: 8.5px; color: #6A6784; }
.preview-row-main .mono { color: #9995B0; }
.status-pill {
    padding: .22rem .5rem;
    border-radius: 9999px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}
.status-ok { background: rgba(80,80,129, .14); color: #9C9CC0; border: 1px solid rgba(80,80,129, .28); }
.status-warn { background: rgba(245, 158, 11, .14); color: #FCD34D; border: 1px solid rgba(245, 158, 11, .3); }
.status-danger { background: rgba(239, 68, 68, .14); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, .3); }

/* --------------------------------------------------------------------------
   Hardware
   -------------------------------------------------------------------------- */
.hardware-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hardware-card:hover { transform: translateY(-4px); border-color: #D2D2E4; box-shadow: 0 28px 60px -42px rgba(39,39,87, .5); }
.hardware-art {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 104px;
    margin-bottom: 18px;
    border-radius: 16px;
    background:
        radial-gradient(80% 100% at 50% 0%, #F2F2F8, transparent 70%),
        linear-gradient(180deg, #F7F6FB, #F1F0F7);
    border: 1px solid #EEEBF5;
    color: #3E3D6D;
    overflow: hidden;
}
.hardware-art svg { position: relative; z-index: 1; }
.hardware-ring {
    position: absolute;
    width: 118px;
    height: 118px;
    border-radius: 9999px;
    border: 1px dashed #CCCBE1;
    animation: spinSlow 24s linear infinite;
}
.hardware-tag {
    margin-top: 14px;
    padding: .3rem .6rem;
    border-radius: 9999px;
    background: #F7F6FB;
    border: 1px solid #EBE8F3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #4C4966;
}
.integration-chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem .7rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #E5E2EF;
    font-size: 11.5px;
    font-weight: 600;
    color: #37345A;
    transition: border-color .18s ease, transform .18s ease;
}
.integration-chip:hover { border-color: #D2D2E4; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-glow {
    position: absolute;
    left: 50%;
    bottom: -240px;
    width: 680px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(80,80,129, .45), transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}
.cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 20%, transparent 75%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-heading { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9995B0; }
.footer-link { font-size: .83rem; font-weight: 500; color: #4C4966; transition: color .18s ease; }
.footer-link:hover { color: var(--brand-dark); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    border-radius: 9999px;
    background: #F2F2F8;
    border: 1px solid #D2D2E4;
    font-size: 11.5px;
    font-weight: 700;
    color: #3A3965;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(80,80,129, .18);
    animation: pulseDot 2.2s ease-in-out infinite;
}
.status-meta {
    padding-left: .55rem;
    border-left: 1px solid #D2D2E4;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #44436F;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(39,39,87, .55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn .2s ease both;
}
.modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 50px 120px -30px rgba(39,39,87, .6);
    animation: modalIn .26s cubic-bezier(.2, .8, .2, 1) both;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: 1px solid #E5E2EF;
    background: #fff;
    color: #6A6784;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.modal-close:hover { background: #F7F6FB; color: var(--ink); border-color: #CECBE0; }
.modal-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: 9999px;
    background: #F2F2F8;
    border: 1px solid #D2D2E4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3A3965;
}

.form-field label {
    display: block;
    margin-bottom: .35rem;
    font-size: 11.5px;
    font-weight: 700;
    color: #37345A;
}
.form-field input {
    width: 100%;
    padding: .7rem .85rem;
    border-radius: 11px;
    border: 1px solid #DEDCEC;
    background: #fff;
    font-size: .875rem;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input::placeholder { color: #BAB7CE; }
.form-field input:focus {
    outline: none;
    border-color: #8686AC;
    box-shadow: 0 0 0 4px rgba(80,80,129, .14);
}
.form-field.has-error input { border-color: #F87171; box-shadow: 0 0 0 4px rgba(239, 68, 68, .1); }
.field-error { margin-top: .3rem; font-size: 11px; font-weight: 600; color: #DC2626; min-height: 0; }
.field-error:empty { display: none; }
.form-error { padding: .55rem .7rem; border-radius: 9px; background: #FEF2F2; border: 1px solid #FECACA; }
.form-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}
#lead-submit.is-loading { opacity: .85; cursor: progress; }

.success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 9999px;
    background: #F2F2F8;
    border: 1px solid #D2D2E4;
    color: #3A3965;
    box-shadow: 0 16px 30px -18px rgba(80,80,129, .8);
}

/* --------------------------------------------------------------------------
   Real screenshots (product tour)
   -------------------------------------------------------------------------- */
.tour-section {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    background: linear-gradient(165deg, #0F0E47 0%, #272757 52%, #0F0E47 100%);
}
@media (min-width: 768px) {
    .tour-section { padding: 7rem 0; }
}
.tour-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 85% 75% at 15% 0%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 15% 0%, #000 20%, transparent 72%);
    pointer-events: none;
}
.section-eyebrow-dark { color: #9C9CC0; }

.shot-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shot-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: #CECBE0;
    font-size: .83rem;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.shot-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-1px); }
.shot-tab.is-active {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .9);
}
.shot-tab.is-active svg { color: #3A3965; }

.shot-panel { margin-top: 30px; }
.shot-panel.is-active { animation: fadeUp .35s ease both; }
.shot-step {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: #6A6784;
}
.tour-check { display: flex; align-items: center; gap: .5rem; }
.tour-check svg { color: #8686AC; flex: none; }

.shot-frame {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.shot-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .8rem;
    background: #FBFAFE;
    border-bottom: 1px solid #EFEDF5;
}
.shot-dots { display: inline-flex; gap: 4px; }
.shot-dots i { width: 7px; height: 7px; border-radius: 9999px; background: #E5E2EF; }
.shot-dots i:first-child { background: #FCA5A5; }
.shot-dots i:nth-child(2) { background: #FDE68A; }
.shot-dots i:last-child { background: #86EFAC; }
.shot-url {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-inline: auto;
    padding: .2rem .7rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #EEECF4;
    font-size: 10px;
    font-weight: 600;
    color: #9995B0;
}
.shot-live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #3A3965;
}
.shot-frame img { display: block; width: 100%; height: auto; background: #F1F0F7; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] { border-color: #D2D2E4; background: #FDFCFF; }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    font-size: .9rem;
    font-weight: 700;
    color: #232046;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    background: #F1F0F7;
    color: #6A6784;
    flex: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-item[open] .faq-toggle { transform: rotate(180deg); background: #F2F2F8; color: #3A3965; }
.faq-answer { padding: 0 1.15rem 1.1rem; font-size: .86rem; line-height: 1.65; color: #4C4966; max-width: 62ch; }

.faq-contact {
    padding: 20px;
    border-radius: 18px;
    background: #F7F6FB;
    border: 1px solid var(--line);
}
.faq-contact-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .9rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #E5E2EF;
    font-size: .83rem;
    font-weight: 700;
    color: #37345A;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.faq-contact-link:hover { border-color: #D2D2E4; color: #3A3965; transform: translateY(-1px); }
.faq-contact-link.is-wa { background: #F2F2F8; border-color: #D2D2E4; color: #3A3965; }

/* --------------------------------------------------------------------------
   Footer contact + WhatsApp float
   -------------------------------------------------------------------------- */
.footer-logo { display: block; width: 128px; height: auto; }
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .83rem;
    font-weight: 600;
    color: #37345A;
    transition: color .18s ease;
}
.footer-contact-link:hover { color: var(--brand-dark); }
.footer-contact-link svg { color: #6A6784; flex: none; transition: color .18s ease; }
.footer-contact-link:hover svg { color: var(--brand-dark); }
.footer-contact-link.is-wa,
.footer-contact-link.is-wa svg { color: #3A3965; }

.cta-contact {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .9);
    transition: color .18s ease;
}
.cta-contact:hover { color: #D2D2E4; }
.cta-contact svg { color: #8686AC; }

.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .72rem;
    border-radius: 9999px;
    background: #25D366;
    color: #fff;
    box-shadow: 0 18px 36px -16px rgba(37, 211, 102, .85), 0 8px 18px -10px rgba(39,39,87, .45);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 22px 40px -16px rgba(37, 211, 102, .95); }
.wa-float-label { display: none; padding-right: .4rem; font-size: .8rem; font-weight: 800; white-space: nowrap; }
@media (min-width: 768px) {
    .wa-float { right: 22px; bottom: 22px; }
    .wa-float-label { display: inline; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-delay-1 { animation-delay: .1s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sheetIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(80,80,129, .16); }
    50% { box-shadow: 0 0 0 6px rgba(80,80,129, .05); }
}
@keyframes dash { to { background-position: 8px 0; } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Hero feature rail
   -------------------------------------------------------------------------- */
.hero-feature-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #E6E3EF;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
    .hero-feature-rail { flex-direction: row; align-items: center; gap: 18px; }
}
.hero-feature-rail-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: none;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #3A3965;
}
.hero-feature-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .7rem .38rem .42rem;
    border-radius: 9999px;
    border: 1px solid #EBE8F3;
    background: #fff;
    font-size: 11.5px;
    font-weight: 600;
    color: #37345A;
    transition: border-color .18s ease, transform .18s ease;
}
.hero-feature:hover { border-color: #D2D2E4; transform: translateY(-1px); }
.hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: #F2F2F8;
    color: #44436F;
}

/* Reports view inside the hero mockup */
.mockup-report {
    margin-top: 7px;
    padding: 9px;
    border-radius: 10px;
    background: #F7F6FB;
    border: 1px solid #EEEBF5;
}
.mockup-report .bar-chart { height: 104px; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #E6E3EF;
    background: #fff;
    box-shadow: 0 40px 80px -50px rgba(39,39,87, .45);
}
@media (min-width: 640px) {
    .contact-card { padding: 30px; }
}
.contact-methods { display: grid; gap: 10px; }
@media (min-width: 560px) {
    .contact-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #EBE8F3;
    background: #FCFBFF;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.contact-method:hover {
    border-color: #D2D2E4;
    background: #F7F6FC;
    transform: translateY(-1px);
}
.contact-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #F2F2F8;
    border: 1px solid #DEDEEC;
    color: #44436F;
}
.contact-method-icon.is-wa { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.contact-method b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.contact-method span { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9995B0; }

.contact-location {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 26px;
    background: linear-gradient(160deg, #0F0E47 0%, #272757 58%, #0F0E47 100%);
    color: #fff;
}
.contact-location::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 80% 90% at 90% 10%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 90% 10%, #000 10%, transparent 70%);
    pointer-events: none;
}
.contact-location > * { position: relative; z-index: 1; }
.contact-location .mini-eyebrow { color: #B9B9D3; }
.contact-location h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.contact-location p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: #CECBE0; }
.contact-location a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 16px;
    padding: .55rem .9rem;
    border-radius: 9999px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
}
.contact-location a:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }

.form-field textarea {
    width: 100%;
    min-height: 96px;
    padding: .7rem .85rem;
    border-radius: 11px;
    border: 1px solid #DEDCEC;
    background: #fff;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--ink);
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field textarea::placeholder { color: #BAB7CE; }
.form-field textarea:focus {
    outline: none;
    border-color: #8686AC;
    box-shadow: 0 0 0 4px rgba(80,80,129, .14);
}
.form-field.has-error textarea { border-color: #F87171; box-shadow: 0 0 0 4px rgba(239, 68, 68, .1); }
#contact-submit.is-loading { opacity: .85; cursor: progress; }

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-row .mini-kpi:last-child { display: none; }
    .float-chip-a { left: 4px; bottom: -14px; font-size: 9.5px; }
    .float-chip-b { display: none; }
    .mockup-body { min-height: 0; }
    .stock-row { grid-template-columns: 1.4fr .5fr .6fr .9fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
