/* ==========================================================================
   diaCRM landing — styles
   Palette and typefaces are brand-fixed: cream / orange / brown / ink,
   Coolvetica for headings, Geist for text.
   ========================================================================== */

@font-face {
    font-family: "TTCommons";
    src: local("TT Commons Light"), local("TTCommons-Light"),
        url("../fonts/TTCommons/TTCommons-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTCommons";
    src: local("TT Commons Regular"), local("TTCommons-Regular"),
        url("../fonts/TTCommons/TTCommons-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTCommons";
    src: local("TT Commons Medium"), local("TTCommons-Medium"),
        url("../fonts/TTCommons/TTCommons-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTCommons";
    src: local("TT Commons DemiBold"), local("TTCommons-DemiBold"),
        url("../fonts/TTCommons/TTCommons-DemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTCommons";
    src: local("TT Commons Bold"), local("TTCommons-Bold"),
        url("../fonts/TTCommons/TTCommons-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BebasNeuePro";
    src: local("BebasNeuePro Bold"), local("BebasNeuePro"),
        url("../fonts/BebasNeuePro/BebasNeuePro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Coolvetica";
    src: url("../fonts/coolvetica/Coolvetica Rg.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/Geist/Geist-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
    --cream: #fff8e8;
    --orange: #ee5622;
    --brown: #96310f;
    --ink: #111111;
    --muted: #6f625d;
    --surface: #ffffff;

    --line: rgba(150, 49, 15, 0.14);
    --line-soft: rgba(150, 49, 15, 0.08);
    --orange-soft: rgba(238, 86, 34, 0.12);
    --orange-mid: rgba(238, 86, 34, 0.28);
    --cream-deep: #fbefd6;

    --shadow-sm: 0 1px 2px rgba(150, 49, 15, 0.06), 0 6px 18px rgba(150, 49, 15, 0.06);
    --shadow-md: 0 2px 4px rgba(150, 49, 15, 0.06), 0 18px 40px rgba(150, 49, 15, 0.12);
    --shadow-lg: 0 4px 10px rgba(150, 49, 15, 0.08), 0 40px 80px -20px rgba(150, 49, 15, 0.28);
    --shadow-orange: 0 12px 30px -8px rgba(238, 86, 34, 0.55);

    --font-heading: "Coolvetica", "Arial Narrow", Arial, sans-serif;
    --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;

    --container: 1240px;
    --gutter: clamp(18px, 4vw, 40px);
    --header-h: 72px;
    --radius: 20px;
    --radius-sm: 12px;

    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --text-body: clamp(16px, 0.4vw + 15px, 18px);
    --text-lead: clamp(18px, 0.6vw + 15px, 21px);
    --text-h1: clamp(52px, 6.9vw, 96px);
    --text-h2: clamp(38px, 4.6vw, 64px);
    --text-h3: clamp(24px, 1.6vw, 30px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--cream);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.55;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

main {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dl,
dd {
    margin: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

h1,
h2 {
    line-height: 0.94;
    text-transform: uppercase;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
    line-height: 1.1;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

::selection {
    color: #fff;
    background: var(--orange);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    padding-inline: var(--gutter);
    margin-inline: auto;
}

.section {
    padding-block: clamp(72px, 9vw, 120px);
    scroll-margin-top: var(--header-h);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section-head {
    display: grid;
    gap: 18px;
    max-width: 780px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.section-head .eyebrow {
    justify-self: center;
}

.section-head p:not(.eyebrow) {
    max-width: 620px;
    margin-inline: auto;
    color: var(--muted);
    font-size: var(--text-lead);
    line-height: 1.5;
}

.section-head.align-left {
    max-width: none;
    margin: 0;
    text-align: left;
}

.section-head.align-left .eyebrow {
    justify-self: start;
}

.section-head.align-left p:not(.eyebrow) {
    margin-inline: 0;
}

.crm-label {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 280ms var(--ease);
}

.button:hover .button-arrow,
.button:focus-visible .button-arrow {
    transform: translateX(4px);
}

.button-primary {
    color: #fff;
    background: var(--orange);
    box-shadow: var(--shadow-orange);
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(238, 86, 34, 0.65);
}

.button-primary:active {
    transform: translateY(0);
}

.button-ghost {
    color: var(--ink);
    border-color: var(--line);
    background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: var(--orange);
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button-small {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line-soft);
    background: rgba(255, 248, 232, 0.82);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 10px 30px -18px rgba(150, 49, 15, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    width: 112px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > a:not(.nav-cta) {
    padding: 10px 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: background 180ms ease, color 180ms ease;
}

.site-nav > a:not(.nav-cta):hover,
.site-nav > a:not(.nav-cta):focus-visible {
    color: var(--brown);
    background: var(--orange-soft);
}

.site-nav .nav-cta {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle-line {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 220ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
    background: var(--cream);
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 85% 15%, rgba(238, 86, 34, 0.22), transparent 70%),
        radial-gradient(40% 40% at 10% 90%, rgba(238, 86, 34, 0.1), transparent 70%),
        linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 72px,
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 72px 100%;
    mask-image: linear-gradient(180deg, #000 60%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
    padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-copy {
    display: grid;
    gap: 26px;
    min-width: 0;
}

.hero-title {
    max-width: 12ch;
    color: var(--ink);
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.hero-title .line > span {
    display: block;
}

.hero-title .line:first-child > span {
    color: var(--orange);
}

.hero-text {
    max-width: 560px;
    color: var(--muted);
    font-size: var(--text-lead);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px;
    padding-top: 10px;
}

.hero-stats > div {
    display: grid;
    gap: 2px;
    padding-left: 16px;
    border-left: 2px solid var(--orange-mid);
}

.hero-stats dt {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-stats dd {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Hero load sequence */

.hero-in {
    opacity: 0;
    transform: translateY(28px);
    animation: heroIn 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

.hero-title .line > .hero-in {
    transform: translateY(110%);
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Hero scene: CRM window */

.hero-scene {
    position: relative;
    min-width: 0;
    perspective: 1600px;
}

.crm-window {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: rotateY(calc(var(--tilt-x, 0deg) - 3deg)) rotateX(calc(var(--tilt-y, 0deg) + 1.5deg));
    transform-style: preserve-3d;
    transition: transform 400ms var(--ease);
    will-change: transform;
}

.crm-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
}

.crm-dots {
    display: flex;
    gap: 6px;
}

.crm-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cream-deep);
}

.crm-dots i:first-child {
    background: var(--orange);
}

.crm-url {
    flex: 1;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    background: var(--cream);
}

.crm-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brown);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(238, 86, 34, 0.5);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(238, 86, 34, 0.55);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(238, 86, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(238, 86, 34, 0);
    }
}

.crm-body {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
}

.crm-side {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 20px 14px;
    color: #fff;
    background: var(--orange);
}

.crm-side-logo {
    width: 84px;
    margin-bottom: 18px;
}

.crm-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    opacity: 0.78;
}

.crm-nav i {
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    opacity: 0.8;
}

.crm-nav.is-active {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
}

.crm-main {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.crm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.crm-head strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.crm-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--brown);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
}

.crm-chip.is-accent {
    color: #fff;
    border-color: var(--orange);
    background: var(--orange);
}

.crm-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.crm-kpi {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
}

.crm-kpi span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.crm-kpi strong {
    font-family: var(--font-heading);
    font-size: 30px;
    white-space: nowrap;
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.crm-kpi small {
    color: var(--muted);
    font-size: 11px;
}

.crm-kpi.is-accent {
    color: #fff;
    border-color: var(--orange);
    background: var(--orange);
}

.crm-kpi.is-accent span,
.crm-kpi.is-accent small {
    color: rgba(255, 255, 255, 0.8);
}

.crm-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 112px;
    padding: 12px 12px 22px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background:
        repeating-linear-gradient(180deg, var(--line-soft) 0 1px, transparent 1px 22px),
        #fff;
}

.crm-chart span {
    position: relative;
    flex: 1;
    height: var(--h, 40%);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--orange), rgba(238, 86, 34, 0.45));
    transform-origin: bottom;
    animation: barRise 900ms var(--ease-out) both;
    animation-delay: calc(700ms + var(--n, 0) * 60ms);
}

.crm-chart span:nth-child(1) { --n: 0; }
.crm-chart span:nth-child(2) { --n: 1; }
.crm-chart span:nth-child(3) { --n: 2; }
.crm-chart span:nth-child(4) { --n: 3; opacity: 1; }
.crm-chart span:nth-child(5) { --n: 4; }
.crm-chart span:nth-child(6) { --n: 5; }
.crm-chart span:nth-child(7) { --n: 6; }

.crm-chart span:not(:nth-child(4)) {
    opacity: 0.55;
}

.crm-chart span i {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
}

@keyframes barRise {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.crm-table {
    display: grid;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.crm-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    font-size: 12.5px;
    border-top: 1px solid var(--line-soft);
}

.crm-row:first-child {
    border-top: 0;
}

.crm-id {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.crm-client {
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.crm-sum {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.crm-status {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.crm-status[data-state="paid"] {
    color: var(--brown);
    background: var(--orange-soft);
}

.crm-status[data-state="shipped"] {
    color: #fff;
    background: var(--ink);
}

.crm-status[data-state="new"] {
    color: #fff;
    background: var(--orange);
}

.crm-status[data-state="pending"] {
    color: var(--muted);
    border: 1px solid var(--line);
}

/* Floating notifications */

.floater {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-md);
    animation: floaterDrift 6s ease-in-out infinite;
}

.floater i {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--orange-soft);
    position: relative;
}

.floater i::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: var(--orange);
}

.floater strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
}

.floater span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.floater-order {
    top: -18px;
    right: 6%;
    animation-delay: 0s;
}

.floater-payment {
    left: -28px;
    top: 46%;
    animation-delay: -2s;
}

.floater-shipping {
    right: 10%;
    bottom: -22px;
    animation-delay: -4s;
}

.floater-payment i {
    background: var(--ink);
}

.floater-payment i::after {
    background: #fff;
}

@keyframes floaterDrift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

/* Hero ticker */

.hero-ticker {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.hero-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 30px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ticker-item i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

@keyframes marquee {
    to {
        transform: translateX(-33.3333%);
    }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is present)
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 800ms ease, transform 800ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Benefits — bento
   -------------------------------------------------------------------------- */

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.bento-card {
    position: relative;
    grid-column: span 12;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 200ms ease;
}

.bento-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange-soft), transparent 70%);
    opacity: 0;
    transition: opacity 320ms ease, transform 500ms var(--ease);
    transform: scale(0.6);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-mid);
    box-shadow: var(--shadow-md);
}

.bento-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.bento-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--orange);
    border-radius: 14px;
    background: var(--orange-soft);
    transition: background 200ms ease, color 200ms ease, transform 320ms var(--ease);
}

.bento-icon svg {
    width: 24px;
    height: 24px;
}

.bento-card:hover .bento-icon {
    color: #fff;
    background: var(--orange);
    transform: rotate(-6deg) scale(1.05);
}

.bento-card p {
    color: var(--muted);
    line-height: 1.5;
}

.bento-card.is-large {
    min-height: 280px;
    padding: 32px;
}

.bento-card.is-large h3 {
    font-size: clamp(30px, 3vw, 42px);
}

.bento-card.is-large p {
    max-width: 420px;
    font-size: var(--text-lead);
}

.bento-card.is-large:first-child {
    color: #fff;
    border-color: var(--orange);
    background: var(--orange);
    background-image:
        radial-gradient(70% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
        radial-gradient(40% 40% at 0% 100%, rgba(150, 49, 15, 0.45), transparent 70%);
}

.bento-card.is-large:first-child p {
    color: rgba(255, 255, 255, 0.86);
}

.bento-card.is-large:first-child .bento-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.bento-card.is-large:first-child:hover .bento-icon {
    color: var(--orange);
    background: #fff;
}

.bento-card.is-large:first-child::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
}

/* --------------------------------------------------------------------------
   Features — sticky rail
   -------------------------------------------------------------------------- */

.features {
    background: linear-gradient(180deg, var(--cream), #fff 40%, var(--cream));
}

.features-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.features-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.console {
    display: grid;
    gap: 20px;
    padding: 24px;
    color: #fff;
    border-radius: var(--radius);
    background: var(--ink);
    background-image: radial-gradient(60% 50% at 100% 0%, rgba(238, 86, 34, 0.35), transparent 70%);
    box-shadow: var(--shadow-lg);
}

.console-head {
    display: grid;
    gap: 8px;
}

.console-head .crm-live {
    color: rgba(255, 255, 255, 0.7);
}

.console-head strong {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.console-flow {
    display: grid;
    gap: 6px;
}

.console-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 320ms ease, transform 320ms var(--ease);
}

.console-node span {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-size: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 320ms ease, color 320ms ease;
}

.console-node p {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color 320ms ease;
}

.console-node::after {
    content: "";
    position: absolute;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 320ms ease, transform 320ms var(--ease);
}

.console-node.is-active {
    background: rgba(238, 86, 34, 0.16);
    transform: translateX(4px);
}

.console-node.is-active span {
    color: #fff;
    background: var(--orange);
}

.console-node.is-active p {
    color: #fff;
}

.console-node.is-active::after {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s ease-out infinite;
}

.console-foot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.console-foot span {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.console-foot strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.features-list {
    display: grid;
}

.feature-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    transition: padding-left 320ms var(--ease);
}

.feature-card:last-child {
    border-bottom: 1px solid var(--line);
}

.feature-index {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1;
    color: var(--line);
    transition: color 320ms ease;
    padding-top: 4px;
}

.feature-card h3 {
    margin-bottom: 8px;
    transition: color 320ms ease;
}

.feature-card p {
    color: var(--muted);
    max-width: 520px;
}

.feature-card.is-current .feature-index,
.feature-card:hover .feature-index {
    color: var(--orange);
}

.feature-card.is-current {
    padding-left: 8px;
}

/* --------------------------------------------------------------------------
   Integrations — marquee
   -------------------------------------------------------------------------- */

.integrations {
    overflow: hidden;
    padding-bottom: clamp(60px, 8vw, 110px);
}

.integrations-head {
    display: grid;
    gap: 24px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.integrations-head > div {
    display: grid;
    gap: 16px;
}

.integrations-head > p {
    max-width: 480px;
    color: var(--muted);
    font-size: var(--text-lead);
    line-height: 1.5;
}

.marquee {
    overflow: hidden;
    padding: 8px 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    padding-right: 14px;
    animation: marquee 34s linear infinite;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
    animation-duration: 40s;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid var(--orange);
    border-radius: 999px;
    background: var(--orange);
    transition: transform 280ms var(--ease);
}

.marquee-item.is-outline {
    color: var(--brown);
    border-color: var(--line);
    background: transparent;
}

.marquee-item:hover {
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Split layouts (marketing / loyalty)
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.split-copy {
    display: grid;
    gap: 32px;
}

.icon-list {
    display: grid;
    gap: 14px;
}

.icon-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.icon-list-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--orange);
    border-radius: 12px;
    background: var(--orange-soft);
}

.icon-list-icon svg {
    width: 22px;
    height: 22px;
}

.icon-list p {
    font-weight: 500;
    line-height: 1.4;
}

/* Campaign card */

.campaign {
    display: grid;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.campaign-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.campaign-head strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.campaign-chat {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    background: var(--cream);
}

.bubble {
    position: relative;
    max-width: 82%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 500ms ease, transform 600ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 420ms + 200ms);
}

.is-visible .bubble {
    opacity: 1;
    transform: none;
}

.bubble-channel {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
}

.bubble.is-out {
    justify-self: end;
    color: #fff;
    background: var(--orange);
    border-bottom-right-radius: 4px;
}

.bubble.is-in {
    justify-self: start;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-bottom-left-radius: 4px;
}

.bubble.is-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
    max-width: none;
    padding: 8px 14px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--ink);
    border-radius: 999px;
}

.bubble.is-event i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.campaign-foot,
.loyalty-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.campaign-foot > div,
.loyalty-stats > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
}

.campaign-foot span,
.loyalty-stats span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.campaign-foot strong,
.loyalty-stats strong {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Loyalty card */

.loyalty-card {
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
    box-shadow: var(--shadow-lg);
}

.loyalty-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.loyalty-head strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.loyalty-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 6px var(--orange-soft);
}

.loyalty-tier {
    padding: 8px 14px;
    color: var(--brown);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--orange-mid);
    border-radius: 999px;
    background: var(--orange-soft);
}

.loyalty-balance strong {
    display: block;
    margin: 6px 0 2px;
    font-family: var(--font-heading);
    font-size: clamp(56px, 6vw, 80px);
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.loyalty-balance small {
    color: var(--orange);
    font-size: 14px;
    font-weight: 500;
}

.loyalty-progress {
    display: grid;
    gap: 10px;
}

.loyalty-progress > div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.loyalty-progress > div span {
    color: var(--muted);
}

.loyalty-progress > div strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.progress-track {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: var(--orange-soft);
    overflow: hidden;
}

.progress-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brown), var(--orange));
    transition: width 1400ms var(--ease-out) 300ms;
}

.is-visible .progress-track i {
    width: var(--value, 0%);
}

.check-list {
    display: grid;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.check-list li > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    color: #fff;
    border-radius: 50%;
    background: var(--orange);
}

.check-list svg {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   Access — dark band
   -------------------------------------------------------------------------- */

.access {
    position: relative;
    overflow: hidden;
    color: var(--cream);
    background: var(--ink);
}

.access::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(50% 60% at 0% 100%, rgba(238, 86, 34, 0.28), transparent 70%),
        radial-gradient(40% 50% at 100% 0%, rgba(238, 86, 34, 0.14), transparent 70%);
}

.access-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.access .section-head p:not(.eyebrow) {
    color: rgba(255, 248, 232, 0.72);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.role-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 24px;
    border: 1px solid rgba(255, 248, 232, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 248, 232, 0.04);
    transition: transform 320ms var(--ease), border-color 200ms ease, background 200ms ease;
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    background: rgba(238, 86, 34, 0.1);
}

.role-tag {
    justify-self: start;
    padding: 5px 10px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(238, 86, 34, 0.5);
    border-radius: 999px;
}

.role-card strong {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.role-scope {
    color: rgba(255, 248, 232, 0.7);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   CTA + form
   -------------------------------------------------------------------------- */

.cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--orange);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 70% at 100% 100%, rgba(150, 49, 15, 0.55), transparent 70%),
        radial-gradient(40% 40% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 70%);
}

.cta-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.cta-copy {
    display: grid;
    gap: 20px;
}

.cta-logo {
    width: 160px;
    margin-bottom: 8px;
}

.cta .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.cta-copy > p:not(.eyebrow) {
    max-width: 480px;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--text-lead);
    line-height: 1.5;
}

.cta-points {
    display: grid;
    gap: 10px;
    padding-top: 6px;
}

.cta-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.cta-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.lead-form {
    display: grid;
    gap: 16px;
    padding: clamp(24px, 3vw, 36px);
    color: var(--ink);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 40px 90px -30px rgba(150, 49, 15, 0.6);
}

.form-alert {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
}

.form-alert.success {
    color: var(--brown);
    background: var(--orange-soft);
}

.form-alert.error {
    color: var(--brown);
    border: 1px solid var(--orange-mid);
    background: var(--cream);
}

.field {
    position: relative;
    display: grid;
    gap: 6px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 24px 16px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field label {
    position: absolute;
    top: 18px;
    left: 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 200ms var(--ease), color 200ms ease;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-10px) scale(0.75);
    color: var(--brown);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 4px var(--orange-soft);
}

.field [aria-invalid="true"] {
    border-color: var(--orange);
    background: #fff;
}

.field-error,
.field-hint {
    font-size: 13px;
}

.field-error {
    color: var(--brown);
    font-weight: 500;
}

.field-hint {
    color: var(--muted);
}

.cta .button-primary {
    background: var(--ink);
    box-shadow: 0 12px 30px -8px rgba(17, 17, 17, 0.5);
}

.cta .button-primary:hover,
.cta .button-primary:focus-visible {
    box-shadow: 0 18px 36px -10px rgba(17, 17, 17, 0.6);
}

.form-submit {
    width: 100%;
    margin-top: 4px;
}

.form-note {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 48px 0 40px;
    border-top: 1px solid var(--line);
    background: var(--cream);
}

.footer-layout {
    display: grid;
    gap: 28px;
}

.footer-brand {
    display: grid;
    gap: 12px;
}

.footer-brand img {
    width: 112px;
}

.footer-brand p {
    max-width: 280px;
    color: var(--muted);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 15px;
    font-weight: 500;
}

.footer-nav a {
    position: relative;
    padding: 4px 0;
}

.footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 280ms var(--ease);
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
    transform: scaleX(1);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.footer-top {
    color: var(--brown);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
    .bento-card {
        grid-column: span 6;
    }

    .footer-layout {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .footer-meta {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .bento-card {
        grid-column: span 3;
    }

    .bento-card.is-large {
        grid-column: span 6;
    }

    .features-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .integrations-head {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: end;
    }

    .split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .split-reverse > .loyalty-card {
        order: -1;
    }

    .access-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .cta-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .footer-layout {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
    }

    .footer-meta {
        grid-column: auto;
        justify-content: flex-end;
    }
}

@media (min-width: 1040px) {
    .hero-grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    }

    .hero-scene {
        padding: 24px 28px 28px 32px;
    }
}

@media (max-width: 1039px) {
    .hero-title {
        max-width: none;
    }

    .hero-scene {
        max-width: 720px;
        margin: 0 auto;
        padding: 12px 24px 28px;
    }

    .crm-window {
        transform: none;
    }
}

@media (max-width: 899px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: grid;
        gap: 4px;
        padding: 12px var(--gutter) 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 248, 232, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 30px 50px -20px rgba(150, 49, 15, 0.35);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 280ms var(--ease), opacity 220ms ease, visibility 0s linear 280ms;
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: transform 280ms var(--ease), opacity 220ms ease, visibility 0s;
    }

    .site-header.is-scrolled,
    .site-header.nav-open-header {
        background: rgba(255, 248, 232, 0.96);
    }

    .site-nav > a:not(.nav-cta) {
        padding: 14px 12px;
        font-size: 17px;
    }

    .site-nav .nav-cta {
        margin: 8px 0 0;
        justify-content: center;
    }

    .features-rail {
        position: static;
    }

    .role-card strong {
        font-size: 28px;
    }
}

@media (max-width: 639px) {
    :root {
        --header-h: 64px;
    }

    .hero-scene {
        padding: 8px 0 0;
    }

    .floater {
        display: none;
    }

    .crm-body {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .crm-side {
        padding: 16px 10px;
    }

    .crm-side-logo {
        display: none;
    }

    .crm-nav {
        justify-content: center;
        padding: 8px 0;
        font-size: 0;
    }

    .crm-nav i {
        width: 16px;
        height: 16px;
    }

    .crm-main {
        padding: 14px;
    }

    .crm-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .crm-kpi {
        padding: 10px;
    }

    .crm-kpi span {
        font-size: 10px;
        letter-spacing: 0.02em;
    }

    .crm-kpi strong {
        font-size: 22px;
    }

    .crm-kpi small {
        display: none;
    }

    .crm-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .crm-id,
    .crm-sum {
        display: none;
    }

    .hero-stats dd {
        font-size: 32px;
    }

    .button {
        width: 100%;
    }

    .site-nav .button {
        width: auto;
    }

    .role-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .campaign-foot,
    .loyalty-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .campaign-foot > div:last-child,
    .loyalty-stats > div:last-child {
        grid-column: 1 / -1;
    }

    .bubble {
        max-width: 92%;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .hero-in,
    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .bubble {
        opacity: 1;
        transform: none;
    }

    .progress-track i {
        width: var(--value, 0%);
    }

    .crm-window {
        transform: none;
    }

    .ticker-track,
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }
}
