/* ==========================================================================
   TayqaTech — design tokens
   Light & airy: white ground, pastel tints that echo the product's own
   dashboard cards, navy kept for type, teal as the one accent that acts.
   ========================================================================== */
/* Plus Jakarta Sans, self-hosted (SIL OFL). The family has no basic Cyrillic,
   so Russian pages fall back to the system font as before. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --color-primary: #0F1E3C;
  --color-primary-light: #1B2E54;
  --color-accent: #1E9E8B;
  --color-accent-dark: #137567;
  --color-accent-soft: #E3F5F1;

  /* neutrals */
  --color-white: #FFFFFF;
  --color-offwhite: #F7F9FC;
  --color-charcoal: #33415C;   /* body copy: softer than ink, darker than gray */
  --color-gray: #64748B;
  --color-border: #E7EBF1;
  --color-border-strong: #D6DCE6;
  --color-danger: #C0392B;
  --color-success: #1E9E8B;

  /* pastel tints — the same family as the product UI */
  --tint-mint: #EEF8F5;
  --tint-sky: #EEF4FF;
  --tint-peach: #FFF4EA;
  --tint-lilac: #F3F0FF;
  --tint-sun: #FFF9E8;
  --color-warm: #D9772B;       /* amber, readable on peach */

  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.8vw, 2.875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.8125rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --section-y: clamp(4.5rem, 2.75rem + 5.5vw, 8rem);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container-max: 1240px;
  --shadow-xs: 0 1px 2px rgba(15, 30, 60, 0.05);
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.04), 0 4px 14px rgba(15, 30, 60, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 30, 60, 0.03), 0 14px 36px rgba(15, 30, 60, 0.08);
  --shadow-lg: 0 4px 8px rgba(15, 30, 60, 0.03), 0 30px 70px -18px rgba(15, 30, 60, 0.22);
  --shadow-accent: 0 8px 22px -6px rgba(30, 158, 139, 0.55);
  --header-height: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(30, 158, 139, 0.2); color: var(--color-primary); }

:focus-visible {
  outline: 3px solid rgba(30, 158, 139, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ==========================================================================
   Header / Nav
   Frosted, borderless at the top of the page; gains a hairline and a soft
   shadow once the page scrolls (.is-scrolled, set in main.js).
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile drawer, and the
   off-screen drawer would then widen the page. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px -12px rgba(15, 30, 60, 0.12);
}
.site-header.is-scrolled::before { background: rgba(255, 255, 255, 0.9); }
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo span { color: var(--color-accent); }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2BC0A8 0%, #1E9E8B 55%, #167A6B 100%);
  box-shadow: 0 6px 14px -6px rgba(30, 158, 139, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.6rem;
}
.logo-mark svg { width: 100%; height: 100%; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-1);
  margin-right: calc(var(--space-1) * -1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a,
.nav-menu-btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-charcoal);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-menu-btn:hover,
.nav-menu-btn:focus-visible {
  color: var(--color-primary);
  background: rgba(15, 30, 60, 0.05);
}
.nav-links a[aria-current="page"],
.nav-menu-btn.is-current {
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

/* Products dropdown: hover/focus on desktop, inline list in the mobile drawer. */
.has-menu { position: relative; }
.nav-menu-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 300px;
  padding: 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s var(--ease), visibility .18s;
}
.nav-sub::before { /* hover bridge across the gap */
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}
.has-menu:hover .nav-sub,
.has-menu:focus-within .nav-sub,
.nav-menu-btn[aria-expanded="true"] + .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.has-menu:hover .nav-menu-btn svg,
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  width: 100%;
}
.nav-sub-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
}
.nav-sub-icon svg { width: 18px; height: 18px; }
.nav-sub a:nth-child(1) .nav-sub-icon { background: var(--tint-sky); color: #3157B8; }
.nav-sub a:nth-child(3) .nav-sub-icon { background: var(--tint-lilac); color: #6244C9; }
.nav-sub strong { display: block; color: var(--color-primary); font-size: var(--fs-small); }
.nav-sub small { display: block; color: var(--color-gray); font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

/* Language switcher, generated by i18n/build.py: a small dropdown in the
   header that reuses the products-menu behavior; a row of chips in the drawer. */
.lang-switch .nav-sub {
  left: auto;
  right: 0;
  min-width: 170px;
  transform: translateY(6px);
}
.lang-switch:hover .nav-sub,
.lang-switch:focus-within .nav-sub,
.lang-switch .nav-menu-btn[aria-expanded="true"] + .nav-sub { transform: translateY(0); }
.lang-switch .nav-sub a {
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-charcoal);
}
.lang-switch .nav-sub a:hover { background: var(--color-offwhite); color: var(--color-primary); }
.lang-switch .nav-sub a small { display: inline; color: var(--color-gray); font-size: var(--fs-xs); }
.lang-switch .nav-sub a[aria-current] { color: var(--color-accent-dark); }

/* Mobile drawer below 1280px; the six-link header with the language switcher
   holds on one row above it in every language. */
@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a, .nav-menu-btn {
    width: 100%;
    padding: 0.95rem 0.5rem;
    border-radius: 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--color-border);
    background: transparent !important;
  }
  .nav-links a[aria-current="page"] { color: var(--color-accent-dark); }
  .nav-menu-btn { justify-content: space-between; pointer-events: none; color: var(--color-gray); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: none; padding-bottom: 0.25rem; }
  .nav-menu-btn svg { display: none; }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 var(--space-1);
    min-width: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .nav-sub a { border-bottom: none; padding: 0.6rem 0.25rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: var(--space-2); margin-top: var(--space-4); }
  .lang-switch .nav-menu-btn { display: none; }
  .lang-switch .nav-sub {
    display: flex;
    justify-content: center;
    gap: var(--space-1);
    min-width: 0;
    padding: 0;
    border-bottom: none;
  }
  .lang-switch .nav-sub a {
    width: auto;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
  }
  .lang-switch .nav-sub a span { display: none; }
  .lang-switch .nav-sub a[aria-current] { border-color: var(--color-accent); background: var(--color-accent-soft); }
}

/* ==========================================================================
   Buttons — pill shaped; primary carries a soft teal glow.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(180deg, #23AE99 0%, #1A9482 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(180deg, #1E9E8B 0%, #157E6F 100%);
  box-shadow: 0 12px 26px -8px rgba(30, 158, 139, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Quiet inline link with an arrow — replaces outlined buttons at section ends. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-accent-dark);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--color-primary); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: var(--space-6) 0; }
.section-alt { background: var(--color-offwhite); }
.section-mint { background: var(--tint-mint); }
.section-dark {
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(30, 158, 139, 0.12), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(98, 68, 201, 0.08), transparent 70%),
    var(--tint-mint);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-5);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-intro {
  margin-top: var(--space-2);
  color: var(--color-gray);
  font-size: 1.125rem;
  line-height: 1.65;
}

h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: var(--color-primary); }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; color: var(--color-primary); text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--color-primary); }
h4 { color: var(--color-primary); }
p { text-wrap: pretty; }

.text-gradient {
  background: linear-gradient(100deg, #1E9E8B 0%, #2C8FD6 55%, #6B5BD8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Hero
   Every hero sits on a soft pastel mesh — three blurred colour fields
   behind a faint grid. No hard bands, no dark blocks.
   ========================================================================== */
.hero {
  padding: clamp(4rem, 2.5rem + 5vw, 7.5rem) 0 clamp(3.5rem, 2rem + 4vw, 6rem);
  background: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42% 55% at 8% 12%, rgba(126, 220, 200, 0.35), transparent 70%),
    radial-gradient(38% 50% at 92% 8%, rgba(160, 190, 255, 0.35), transparent 70%),
    radial-gradient(40% 50% at 70% 95%, rgba(200, 180, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #FBFDFF 0%, #FFFFFF 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 30, 60, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 30, 60, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-dark { color: var(--color-charcoal); }
.hero-content { max-width: 800px; }
.hero h1 { text-wrap: balance; }
.hero .subhead {
  margin-top: var(--space-3);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-gray);
  max-width: 620px;
}
.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
.hero-note { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--color-gray); }
.hero-note a { color: var(--color-accent-dark); font-weight: 600; }
.hero-note a:hover { text-decoration: underline; }

.hero-split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 1fr 1.08fr; gap: var(--space-5); }
}
.hero-split .hero-content { max-width: 600px; }
.hero-visual svg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }

/* Small pill above the headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-charcoal);
}
.hero-badge b {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.75rem;
}

@media (max-width: 479px) { .hero-badge { border-radius: 14px; } }

/* Inner-page heroes: the eyebrow becomes a small pill */
.hero .eyebrow {
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  font-size: 0.75rem;
  margin-bottom: var(--space-3);
}

/* Centered text hero for pages without a product visual */
.hero-center { text-align: center; padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.hero-center .hero-content { max-width: 860px; margin: 0 auto; }
.hero-center .subhead { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }

/* 404 page */
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); }
.not-found-langs { margin-top: var(--space-3); font-size: 0.875rem; color: var(--color-gray); }
.not-found-langs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}
.hero-chips span {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
}

/* Check list under the hero buttons — the old chip row, at a lighter weight */
.hero-checks {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-charcoal);
}
.hero-checks li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-checks svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }

/* ==========================================================================
   Device frames — real product screenshots in a browser and a phone
   ========================================================================== */
.hero-stage {
  position: relative;
  padding: 0 0 14% 13%;
}
@media (min-width: 1400px) { .hero-stage { margin-right: -9%; } }
.hero-stage-solo { padding: var(--space-3) 0 0 0; }

/* Two phones side by side, the second dropped a step */
.phone-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  padding-top: var(--space-3);
}
.phone-hero .device-phone { max-width: 230px; flex: 0 1 46%; }
.phone-hero .device-phone:first-child { transform: rotate(-3deg); }
.phone-hero .device-phone:nth-child(2) { margin-top: 56px; transform: rotate(3deg); }
.phone-hero .float-pill.fp-sync { top: 0; right: 2%; }
.device-browser {
  position: relative;
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid rgba(15, 30, 60, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.device-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #F6F8FB;
  border-bottom: 1px solid var(--color-border);
}
.device-browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E1E6EE;
}
.device-browser-bar i:nth-child(1) { background: #FF8B7E; }
.device-browser-bar i:nth-child(2) { background: #FFCB5C; }
.device-browser-bar i:nth-child(3) { background: #5BD08E; }
.device-browser-bar span {
  margin-left: 12px;
  flex: 1;
  max-width: 260px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 10px;
  line-height: 16px;
  color: var(--color-gray);
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}
.device-browser img { width: 100%; height: auto; }

.device-phone {
  position: relative;
  width: 100%;
  max-width: 220px;
  padding: 7px;
  border-radius: 34px;
  background: #0F1E3C;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.device-phone img { border-radius: 27px; width: 100%; height: auto; }
.hero-stage .device-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  max-width: 170px;
  padding: 5px;
  border-radius: 26px;
  transform: rotate(-4deg);
}
.hero-stage .device-phone img { border-radius: 21px; }

/* Floating status pills around the frames */
.float-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-pill small { display: block; font-size: 0.6875rem; font-weight: 600; color: var(--color-gray); }
.float-pill .fp-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
}
.float-pill .fp-icon svg { width: 16px; height: 16px; }
.float-pill.fp-sync { top: -18px; right: 6%; }
.float-pill.fp-data { bottom: 10%; right: -10px; animation-delay: -3s; }
.float-pill.fp-data .fp-icon { background: var(--tint-lilac); color: #6244C9; }
@media (max-width: 639px) {
  .float-pill { font-size: 0.75rem; padding: 0.45rem 0.7rem; }
  .float-pill .fp-icon { width: 24px; height: 24px; }
  .float-pill.fp-data { display: none; }
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Logo cloud — colour marquee directly under the hero
   ========================================================================== */
.logo-cloud {
  padding: var(--space-5) 0 var(--space-6);
}
.logo-cloud-title {
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gray);
  margin-bottom: var(--space-4);
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  padding-right: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.marquee-group img {
  width: auto;
  max-height: 38px;
  max-width: 150px;
  object-fit: contain;
  mix-blend-mode: multiply; /* drops the white boxes some logo PNGs carry */
}
/* One step per aspect-ratio band, so every mark lands on roughly the same
   optical weight: the wider the logo, the shorter it is allowed to be. */
.marquee-group img.logo-sq    { max-height: 40px; }
.marquee-group img.logo-med   { max-height: 38px; }
.marquee-group img.logo-wide  { max-height: 34px; }
.marquee-group img.logo-xwide { max-height: 28px; }
.marquee-group img.logo-ultra { max-height: 22px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-cloud-link { text-align: center; margin-top: var(--space-4); }

/* ==========================================================================
   Stat tiles
   ========================================================================== */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) 0;
}
@media (min-width: 640px) { .stat-bar { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stat-bar { grid-template-columns: repeat(5, 1fr); } }
.stat-tile {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.stat-number {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  color: var(--color-gray);
}

/* One continuous panel of figures, separated by hairlines rather than boxes */
.stats-panel {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (min-width: 640px) { .stats-panel { grid-template-columns: repeat(5, 1fr); } }
/* Two columns on phones: a fifth figure would sit beside an empty cell */
@media (max-width: 639px) { .stats-panel > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stats-panel > div {
  padding: var(--space-4) var(--space-3);
  text-align: center;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 0 -1px -1px 0;
}
.stats-panel .stat-number { background: linear-gradient(160deg, #0F1E3C 30%, #1E9E8B 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.card-icon svg { width: 24px; height: 24px; }
/* Rotate the pastel family through a grid so icons don't all look alike */
.grid > .card:nth-child(4n+2) .card-icon { background: var(--tint-sky); color: #3157B8; }
.grid > .card:nth-child(4n+3) .card-icon { background: var(--tint-lilac); color: #6244C9; }
.grid > .card:nth-child(4n+4) .card-icon { background: var(--tint-sun); color: #B07A06; }
.card h3 { margin-bottom: var(--space-1); }
.card p { color: var(--color-gray); font-size: var(--fs-small); line-height: 1.6; }

/* Feature trio/quad without card chrome — icon, title, text, breathing room */
.feature-grid {
  display: grid;
  gap: var(--space-5) var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-grid .card-icon { margin-bottom: var(--space-2); }
.feature-grid > div:nth-child(2) .card-icon { background: var(--tint-sky); color: #3157B8; }
.feature-grid > div:nth-child(3) .card-icon { background: var(--tint-lilac); color: #6244C9; }
.feature-grid > div:nth-child(4) .card-icon { background: var(--tint-sun); color: #B07A06; }
.feature-grid h3 { margin-bottom: 0.4rem; }
.feature-grid p { color: var(--color-gray); font-size: var(--fs-small); }

/* ==========================================================================
   Problem section
   A warm peach chapter: the one place the palette turns amber, so pain reads
   as pain — but light, so the page never drops into a dark block.
   ========================================================================== */
.section-problems {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(255, 200, 150, 0.35), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(255, 220, 190, 0.4), transparent 70%),
    var(--tint-peach);
}
.section-problems .eyebrow { color: var(--color-warm); }

/* Where it goes wrong, place by place along the same chain as the hero:
   shop, warehouse, road, office. Each card says what happens there and what
   it costs; an arrow leads from one place to the next. */
.section-problems .section-head { margin-bottom: var(--space-4); }
.pain-flow {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .pain-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pain-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.pain-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 119, 43, 0.12);
  box-shadow: 0 1px 2px rgba(120, 60, 10, 0.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
}
.pain-step:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 30px -12px rgba(120, 60, 10, 0.18); }
@media (min-width: 1024px) {
  .pain-step:not(:last-child)::after { /* arrow to the next place */
    content: "";
    position: absolute;
    z-index: 1;
    top: 2.1rem;
    right: -1.2rem;
    width: 0.9rem;
    height: 0.9rem;
    border-top: 2px solid var(--color-warm);
    border-right: 2px solid var(--color-warm);
    transform: rotate(45deg);
    opacity: 0.6;
  }
}
.pain-place { display: flex; align-items: center; gap: 0.7rem; }
.pain-place p { font-size: 1.0625rem; font-weight: 800; line-height: 1.25; color: var(--color-primary); }
.pain-place small {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-warm);
}
.pain-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(242, 153, 74, 0.14);
  color: var(--color-warm);
}
.pain-icon svg { width: 21px; height: 21px; }
.pain-what,
.pain-cost { font-size: 0.875rem; line-height: 1.5; }
.pain-what { color: var(--color-charcoal); }
.pain-what b,
.pain-cost b {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.pain-cost {
  margin-top: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(242, 153, 74, 0.1);
  font-weight: 600;
  color: #8A3F10;
}
.pain-cost b { color: #B4561A; }
.pain-cost svg { width: 13px; height: 13px; }
/* The pains that sit under every step */
.pain-base {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 820px;
  margin: 1.25rem auto 0;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(217, 119, 43, 0.35);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  color: var(--color-charcoal);
}
.pain-base .pain-icon { width: 36px; height: 36px; border-radius: 10px; }
.pain-base .pain-icon svg { width: 18px; height: 18px; }
.pain-base strong { color: var(--color-primary); }

.card-problem {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 119, 43, 0.14);
}
.card-problem .card-icon { background: rgba(242, 153, 74, 0.14); color: var(--color-warm); }

/* Hand-over line into the solution */
.problem-closing {
  margin: var(--space-5) auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 1rem;
  color: var(--color-charcoal);
}
.problem-closing strong { color: var(--color-primary); }
.problem-closing svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }
.problem-footnote { margin-top: var(--space-2); text-align: center; font-size: 0.75rem; color: var(--color-gray); }

/* Phones: the four places become a swipe row instead of a tall stack. The next card peeks in from the right as the swipe cue, and the
   row bleeds to the screen edges so cards don't look clipped by the gutter. */
@media (max-width: 639px) {
  .pain-flow {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--space-3);
    margin: 0 calc(var(--space-3) * -1);
    padding: 0.25rem var(--space-3) var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pain-flow::-webkit-scrollbar { display: none; }
  .pain-flow > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .pain-step:hover { transform: none; }
  /* Off-screen cards in a swipe row never cross the viewport vertically, so
     they would stay hidden by the scroll reveal; show them outright. */
  .js .pain-flow > .reveal { opacity: 1; transform: none; }
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: var(--space-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-warm);
  }
  .swipe-hint svg { width: 14px; height: 14px; }
}
@media (min-width: 640px) { .swipe-hint { display: none; } }

.card-number {
  font-weight: 800;
  color: var(--color-accent-dark);
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
  display: block;
}

/* ==========================================================================
   Module blocks (detailed feature pages)
   ========================================================================== */
.module-block {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.module-block:first-of-type,
.section-head + .module-block { border-top: none; }
.module-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: start;
}
.module-grid > * { min-width: 0; }
.eyebrow-center { display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .module-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: center; }
  /* Zigzag: every second module puts its visual on the left, so a long
     catalogue reads as a rhythm instead of one repeated row. */
  .module-block:nth-of-type(even) > .module-grid { grid-template-columns: 1.1fr 0.9fr; }
  .module-block:nth-of-type(even) > .module-grid > :first-child { order: 2; }
}
.module-index {
  display: inline-block;
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
}
.module-block h3 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem); letter-spacing: -0.025em; margin: var(--space-2) 0 var(--space-2); }

.submodule {
  margin-top: var(--space-5);
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-accent-soft);
}
@media (min-width: 1024px) { .submodule { padding-left: var(--space-4); } }
.submodule-index {
  font-weight: 700;
  color: var(--color-gray);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.submodule h4 { font-size: 1.125rem; font-weight: 700; margin: var(--space-1) 0 var(--space-2); }
.module-intro { color: var(--color-gray); margin-bottom: var(--space-3); }
.module-note { margin-top: var(--space-2); font-weight: 700; color: var(--color-primary); }
.module-bullets { display: grid; gap: 0.75rem; }
.module-bullets li {
  padding-left: 1.9rem;
  position: relative;
  font-size: var(--fs-small);
}
.module-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137567' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* Phones: modules stack, so the desktop rhythm reads as dead space */
@media (max-width: 639px) {
  .module-block { padding: var(--space-5) 0; }
  .module-grid { gap: var(--space-4); }
  .submodule { margin-top: var(--space-4); }
}

/* Phones: long bullet lists show three items and fold the rest behind a
   toggle (added by main.js). Desktop always shows the full list. */
.bullets-toggle { display: none; }
@media (max-width: 639px) {
  .module-bullets.is-collapsed > li:nth-child(n+4) { display: none; }
  .bullets-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--color-accent-dark);
  }
  .bullets-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
  .bullets-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
}

.example-tags {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.example-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  color: var(--color-charcoal);
}

/* ==========================================================================
   Screenshots & illustrations
   ========================================================================== */
.placeholder-shot {
  min-height: 220px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  color: var(--color-gray);
  font-size: var(--fs-small);
}
.shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}
.shot img { display: block; width: 100%; height: auto; }
.shot-mock {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}
.shot-mock svg { display: block; width: 100%; height: auto; }
.shot-wide { width: 100%; max-width: 560px; margin: 0 auto; } /* width:100% or auto margins size it to content and it overflows the column */
/* Phone screenshots get the same dark bezel as the hero phones */
.shot.shot-phone {
  max-width: 230px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 32px;
  border: none;
  background: #0F1E3C;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.shot.shot-phone img { border-radius: 26px; }
/* flex-start, not stretch: a stretched phone grows a navy chin below its screenshot */
.shot-pair { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--space-3); }
.shot-pair .shot-phone { flex: 0 1 46%; margin: 0; }
.shot-pair .shot-phone:nth-child(2) { margin-top: var(--space-5); }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
.diagram-scroll::-webkit-scrollbar { height: 4px; }
.diagram-scroll::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 4px; }
.diagram-scroll svg { min-width: 640px; }
.diagram-560 svg { min-width: calc(560px - 2px); }
/* The scroll floor is for phones; on desktop the column is wide enough to
   scale the artwork instead of showing a scrollbar. */
@media (min-width: 1024px) {
  .diagram-scroll { overflow-x: hidden; }
  .diagram-scroll svg, .diagram-560 svg { min-width: 0; }
}

/* ==========================================================================
   Two-column visual (platform split)
   ========================================================================== */
.split-visual { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .split-visual { grid-template-columns: 1fr 1fr; } }
.split-visual .split-col { border-radius: var(--radius-lg); padding: var(--space-4); }
.split-visual .split-col:first-child { background: var(--tint-sky); }
.split-visual .split-col:last-child { background: var(--tint-mint); }
.split-visual p { color: var(--color-gray); margin-top: var(--space-1); }
.split-closing {
  text-align: center;
  margin-top: var(--space-5);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
.split-closing span { color: var(--color-accent); margin: 0 0.5rem; }

/* Product pair: two pastel panels, each with its real screenshot */
.product-pair {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .product-pair { grid-template-columns: 1fr 1fr; } }
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.office { background: linear-gradient(180deg, var(--tint-sky) 0%, #fff 75%); }
.product-card.field { background: linear-gradient(180deg, var(--tint-mint) 0%, #fff 75%); }
.product-card-head {
  padding: var(--space-4) var(--space-4) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.product-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.product-badge svg { width: 26px; height: 26px; }
.product-card.office .product-badge { background: linear-gradient(140deg, #4C7BE8, #2C4FB0); box-shadow: 0 10px 20px -8px rgba(49, 87, 184, 0.6); }
.product-card.field .product-badge { background: linear-gradient(140deg, #2BC0A8, #167A6B); box-shadow: 0 10px 20px -8px rgba(30, 158, 139, 0.6); }
.product-card-head h3 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem); letter-spacing: -0.03em; }
.product-card-head p { color: var(--color-gray); font-size: var(--fs-small); margin-top: 0.1rem; }
.product-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.product-card-body > p { color: var(--color-charcoal); }
.product-card-visual {
  margin: 0 calc(var(--space-4) * -1);
  padding: 0 var(--space-4);
  position: relative;
}
.product-card-visual svg { display: block; width: 100%; height: auto; }
.product-card.office .product-card-visual .device-browser { box-shadow: var(--shadow-md); }
.phone-duo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
  height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.phone-duo .device-phone { max-width: 190px; align-self: flex-start; box-shadow: var(--shadow-md); }
.phone-duo .device-phone:nth-child(2) { margin-top: 40px; }
.product-card.office .product-card-visual {
  height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.product-card .btn,
.product-card .link-arrow { align-self: flex-start; margin-top: auto; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip-row span {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  color: var(--color-charcoal);
}

/* The layer both ends draw from — a bridge between the two panels */
.shared-layer {
  margin-top: var(--space-3);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  text-align: center;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(76, 123, 232, 0.08), transparent 70%),
    radial-gradient(60% 120% at 100% 50%, rgba(30, 158, 139, 0.1), transparent 70%),
    var(--color-white);
  border: 1px dashed var(--color-border-strong);
}
.shared-layer-title { font-weight: 800; color: var(--color-primary); font-size: 1.125rem; letter-spacing: -0.02em; }
.shared-layer .chip-row { justify-content: center; margin-top: var(--space-2); }
.shared-layer .chip-row span {
  background: var(--color-white);
  border-color: rgba(30, 158, 139, 0.25);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-xs);
}
.shared-layer .link-arrow { margin-top: var(--space-3); }

.shared-layer-band {
  margin-top: var(--space-3);
  text-align: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: var(--fs-small);
  font-weight: 700;
}

/* ==========================================================================
   Bento — reports + security in one composed block
   ========================================================================== */
.bento {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .bento { grid-template-columns: 1.45fr 1fr; } }
.bento-tile {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
}
.bento-tile h2 { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); }
.bento-tile > p { color: var(--color-gray); max-width: 520px; }
.bento-reports { background: linear-gradient(160deg, var(--tint-lilac) 0%, #fff 60%); padding-bottom: 0; }
.bento-reports .bento-shot {
  margin-top: var(--space-3);
  margin-right: calc(var(--space-4) * -1);
  border-radius: 14px 0 0 0;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-right: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.bento-tile .card-icon { background: #fff; box-shadow: var(--shadow-sm); margin-bottom: var(--space-1); }
.bento-reports .card-icon { color: #6244C9; }
.bento-security { background: linear-gradient(160deg, var(--tint-mint) 0%, #fff 70%); }
.check-list { display: grid; gap: 0.75rem; margin: var(--space-2) 0 var(--space-3); }
.check-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--color-primary); font-size: var(--fs-small); }
.check-list li span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}
.check-list svg { width: 16px; height: 16px; }
.bento-tile .link-arrow { margin-top: auto; }

/* ==========================================================================
   Big stat callout
   ========================================================================== */
.big-stat {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: var(--tint-mint);
  border-radius: var(--radius-xl);
}
.big-stat .number { font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); font-weight: 800; color: var(--color-accent-dark); line-height: 1; letter-spacing: -0.04em; }
.big-stat .label { margin-top: var(--space-2); font-size: 1.0625rem; color: var(--color-primary); }
.big-stat .footnote { margin-top: var(--space-2); font-size: 0.75rem; color: var(--color-gray); }

.stat-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.stat-inline .number { font-size: 2rem; font-weight: 800; color: var(--color-accent-dark); line-height: 1; letter-spacing: -0.03em; }
.stat-inline .label { font-weight: 700; color: var(--color-primary); }
.stat-inline .footnote { font-size: 0.75rem; color: var(--color-gray); width: 100%; text-align: center; }

/* ==========================================================================
   Steps (numbered)
   ========================================================================== */
.steps {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
@media (min-width: 768px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  position: relative;
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--color-gray); font-size: var(--fs-small); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, #2BC0A8, #167A6B);
  box-shadow: 0 8px 16px -6px rgba(30, 158, 139, 0.6);
  color: var(--color-white);
  font-weight: 800;
  font-size: var(--fs-small);
  margin-bottom: var(--space-3);
}
/* Dotted connector behind the three steps on wide screens */
@media (min-width: 768px) {
  .steps-flow::before {
    content: "";
    position: absolute;
    top: calc(var(--space-4) + 20px);
    left: 12%;
    right: 12%;
    border-top: 2px dashed var(--color-border-strong);
    z-index: 0;
  }
  .steps-flow .step { z-index: 1; }
}

/* ==========================================================================
   Logo strip / wall
   ========================================================================== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-tile {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.logo-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.logo-tile img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}
.logo-tile img.logo-sq    { max-height: 44px; }
.logo-tile img.logo-med   { max-height: 42px; }
.logo-tile img.logo-wide  { max-height: 36px; }
.logo-tile img.logo-xwide { max-height: 30px; }
.logo-tile img.logo-ultra { max-height: 24px; }

.logo-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-1) 0;
}
.logo-strip img {
  flex-shrink: 0;
  width: auto;
  max-height: 38px;
  max-width: 140px;
  object-fit: contain;
}
.logo-strip img.logo-sq    { max-height: 40px; }
.logo-strip img.logo-med   { max-height: 38px; }
.logo-strip img.logo-wide  { max-height: 32px; }
.logo-strip img.logo-xwide { max-height: 26px; }
.logo-strip img.logo-ultra { max-height: 21px; }
.logo-more { text-align: center; margin-top: var(--space-3); color: var(--color-gray); font-size: var(--fs-small); }

/* ==========================================================================
   Roles list
   ========================================================================== */
.roles-chip-list { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.roles-chip-list span {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

/* ==========================================================================
   Tech stack footnote badge row
   ========================================================================== */
.stack-line {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-gray);
  padding: 0.6rem var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  display: inline-block;
}

/* ==========================================================================
   CTA band — a floating gradient panel inside a white section
   ========================================================================== */
.cta-band {
  padding: var(--section-y) 0;
  text-align: center;
  background: var(--color-white);
}
.cta-band > .container {
  position: relative;
  width: calc(100% - 2 * var(--space-3));
  max-width: calc(var(--container-max) - 2 * var(--space-3));
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(126, 220, 200, 0.55), transparent 70%),
    radial-gradient(50% 80% at 100% 0%, rgba(160, 190, 255, 0.5), transparent 70%),
    radial-gradient(60% 80% at 50% 120%, rgba(200, 180, 255, 0.45), transparent 70%),
    #F4FAFB;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}
.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.cta-band .cta-sub { margin: var(--space-2) auto 0; max-width: 560px; color: var(--color-charcoal); font-size: 1.125rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band h2 + .btn,
.cta-band .cta-sub + .btn { margin-top: var(--space-4); }
.cta-band .cta-links { margin-top: var(--space-4); }
.cta-paths {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  margin: var(--space-5) 0 var(--space-4);
  text-align: left;
}
@media (min-width: 768px) { .cta-paths { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cta-paths-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; } }
.cta-path {
  display: block;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
}
a.cta-path:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.cta-path h3 { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); }
.cta-path h3 svg { width: 18px; height: 18px; color: var(--color-accent); transition: transform .2s var(--ease); }
a.cta-path:hover h3 svg { transform: translateX(4px); }
.cta-path p { color: var(--color-gray); font-size: var(--fs-small); margin-top: 0.4rem; }
.cta-contact-line {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--color-gray);
}
.cta-contact-line a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 30, 60, 0.2);
}
.cta-contact-line a:hover { text-decoration-color: currentColor; }
.cta-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-offwhite);
  border-top: 1px solid var(--color-border);
  color: var(--color-gray);
  padding: var(--space-6) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
/* Phones: site map in two columns instead of nine stacked rows */
@media (max-width: 767px) {
  .footer-grid > div:nth-child(2) { columns: 2; column-gap: var(--space-3); }
  .footer-grid > div:nth-child(2) .footer-heading { column-span: all; }
}
.footer-brand .logo { color: var(--color-primary); }
.footer-tagline { margin-top: var(--space-2); font-size: var(--fs-small); max-width: 320px; }
/* One line on how TayqaOne, DigiTayqa, TayqaSale and TayqaTech relate */
.footer-note { margin-top: var(--space-1); font-size: var(--fs-xs); line-height: 1.5; color: var(--color-gray); max-width: 340px; }
.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.footer-grid a, .footer-grid address {
  display: block;
  font-size: var(--fs-small);
  font-style: normal;
  padding: 0.3rem 0;
  transition: color .2s ease;
}
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--color-accent-dark); }
/* The logo is a link too; keep the generic footer-link sizing off it */
.footer-grid a.logo { display: inline-flex; font-size: 1.25rem; padding: 0; color: var(--color-primary); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-gray);
  text-align: center;
}
.footer-bottom a { margin-left: var(--space-2); color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--color-primary); }
@media (max-width: 639px) { .footer-bottom span, .footer-bottom a { display: block; margin: 0.25rem 0 0; } }

/* ==========================================================================
   Contact page
   ========================================================================== */
.container-narrow { max-width: 860px; }
.section-tight + section { padding-top: var(--space-5); }

/* ==========================================================================
   About page: numbers band, manifesto, comparison
   ========================================================================== */
.stat-band { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) 0; }
.stat-band-item { flex: 1 1 160px; text-align: center; padding: 0 var(--space-3); }
.stat-band-item + .stat-band-item { border-left: 1px solid rgba(15, 30, 60, 0.08); }
.stat-band .num {
  display: block;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  line-height: 1;
}
.stat-band .lbl { display: block; margin-top: var(--space-1); font-size: var(--fs-small); color: var(--color-gray); }
/* Phones: wrapped figures put dividers at row starts; use a plain 2-up grid */
@media (max-width: 639px) {
  .stat-band { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-2); }
  .stat-band-item { padding: 0; }
  .stat-band-item + .stat-band-item { border-left: none; }
  .stat-band-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.manifesto {
  max-width: 860px;
  margin: 0 auto;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-accent);
}
.manifesto-lead {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1.35;
}
.manifesto-points { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.manifesto-points li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--color-gray); }
.manifesto-points li + li { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.manifesto-points svg { width: 20px; height: 20px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 3px; }

.compare {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.compare-row { display: grid; grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-3); font-size: var(--fs-small); }
.compare-row + .compare-row { border-top: 1px solid var(--color-border); }
.compare-head { display: none; }
.compare-label { font-weight: 700; color: var(--color-primary); font-size: 1rem; }
.compare-b { color: var(--color-primary); font-weight: 600; }
.compare-a { color: var(--color-gray); }
.cell-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 0.15rem;
}
.compare-b .cell-tag { color: var(--color-accent-dark); }
@media (min-width: 900px) {
  .compare-head,
  .compare-row { display: grid; grid-template-columns: 0.8fr 1.1fr 1.1fr; gap: var(--space-3); align-items: start; }
  /* stretch, so the tinted winning column runs unbroken from row to row */
  .compare-row { align-items: stretch; }
  .compare-head {
    padding: var(--space-2) var(--space-3);
    background: var(--color-offwhite);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray);
  }
  .compare-head .col-b { color: var(--color-accent-dark); }
  .cell-tag { display: none; }
  .compare-row .compare-b,
  .compare-head .col-b {
    background: var(--tint-mint);
    margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) calc(var(--space-3) * -1) 0;
    padding: var(--space-3);
  }
  .compare-head .col-b { margin: calc(var(--space-2) * -1) calc(var(--space-3) * -1) calc(var(--space-2) * -1) 0; padding: var(--space-2) var(--space-3); }
}

/* ==========================================================================
   Feature list — compact alternative to a card grid
   ========================================================================== */
.feature-list { display: grid; gap: var(--space-3); }
.feature-item { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature-item + .feature-item { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h3 { font-size: 1.0625rem; margin-bottom: 0.2rem; }
.feature-item p { color: var(--color-gray); font-size: var(--fs-small); }

.chip-groups { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .chip-groups { grid-template-columns: repeat(2, 1fr); } }
.chip-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: var(--space-3);
  box-shadow: var(--shadow-xs);
}
.chip-group h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); display: flex; align-items: center; gap: 0.6rem; }
.chip-group h3 svg { width: 20px; height: 20px; color: var(--color-accent-dark); }

/* ==========================================================================
   Partnership section — support promises + the development cycle
   ========================================================================== */
.section-partnership {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(126, 220, 200, 0.3), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(160, 190, 255, 0.3), transparent 70%),
    var(--tint-mint);
}
.promise-strip {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .promise-strip { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.promise { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) 0; }
.promise + .promise { border-top: 1px solid var(--color-border); }
@media (min-width: 900px) {
  .promise { padding: 0 var(--space-3); }
  .promise + .promise { border-top: none; border-left: 1px solid var(--color-border); }
}
.promise svg { width: 22px; height: 22px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }
.promise h3 { font-size: 1rem; }
.promise p { font-size: var(--fs-small); color: var(--color-gray); margin-top: 0.15rem; }

.cycle { margin-top: var(--space-5); display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 1100px) { .cycle { grid-template-columns: repeat(5, 1fr); gap: var(--space-2); } }
.cycle-step {
  position: relative;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-xs);
}
.cycle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, #2BC0A8, #167A6B);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
}
.cycle-step h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.cycle-step p { font-size: var(--fs-small); color: var(--color-gray); }
.cycle-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--space-3) * -1 + 2px);
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(30, 158, 139, 0.5);
  border-bottom: 2px solid rgba(30, 158, 139, 0.5);
  transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 1100px) {
  .cycle-step:not(:last-child)::after {
    display: block;
    left: auto;
    bottom: auto;
    top: 50%;
    right: -13px;
    transform: translateY(-50%) rotate(-45deg);
  }
}
.cycle-return {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px dashed rgba(30, 158, 139, 0.45);
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: var(--fs-small);
  text-align: center;
}
.cycle-return svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Pricing: package cards, users/support tables, full feature comparison
   Prices are deliberately not published; every card ends in "Təklif alın".
   ========================================================================== */
.section-plans { padding-top: var(--space-5); }
.cumulative-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-5);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--tint-mint);
  color: var(--color-accent-dark);
  font-size: var(--fs-small);
  font-weight: 700;
  text-align: center;
}
.cumulative-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* TayqaSale (mobile) marker, used in cards and the comparison */
.tag-ts {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: #FFF1E2;
  color: #B4561A;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 0.1em;
}
.price-note .tag-ts { margin-left: 0; }

.plan-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 700px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-3) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured {
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 24px 50px -24px rgba(30, 158, 139, 0.45);
  background: linear-gradient(180deg, var(--tint-mint) 0%, #fff 32%);
}
.plan-name { font-size: 1.5rem; letter-spacing: -0.03em; }
.plan-for { margin-top: 0.2rem; color: var(--color-gray); font-size: var(--fs-small); min-height: 2.9em; }
.plan-base {
  align-self: flex-start;
  margin: var(--space-2) 0 var(--space-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-primary);
}
.plan-base-start { background: var(--tint-sky); border-color: transparent; color: #3157B8; }
.plan-list { display: grid; gap: 0.7rem; margin-bottom: var(--space-3); }
.plan-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: var(--fs-small); line-height: 1.45; color: var(--color-charcoal); }
.plan-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15em; color: var(--color-accent); }
.plan-meta {
  margin: auto 0 var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.75rem;
}
.plan-meta dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gray); }
.plan-meta dd { margin: 0.15rem 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--color-primary); }
.plan-card .btn { width: 100%; }

.price-note { margin-top: var(--space-4); text-align: center; color: var(--color-gray); font-size: var(--fs-small); }

/* Full comparison: one sticky package header, collapsible module groups.
   Every row shares one column template so the groups line up with it. */
.cmp {
  --cmp-cols: minmax(0, 1fr) repeat(4, 104px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  overflow: clip; /* clip, not hidden: hidden would break the sticky header */
}
@media (max-width: 639px) { .cmp { --cmp-cols: minmax(0, 1fr) repeat(4, 46px); } }
.cmp-head {
  position: sticky;
  top: var(--header-height);
  z-index: 5;
  display: grid;
  grid-template-columns: var(--cmp-cols);
  align-items: center;
  padding: 0.85rem 0 0.85rem var(--space-3);
  background: var(--color-offwhite);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--color-primary);
}
.cmp-head span:first-child { color: var(--color-gray); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.cmp-head span + span { text-align: center; }
.cmp-head .is-featured { color: var(--color-accent-dark); }
@media (max-width: 639px) {
  .cmp-head { padding-left: var(--space-2); }
  .cmp-head span + span { font-size: 0; }
  .cmp-head span + span::after { content: attr(data-short); font-size: 0.6875rem; }
}

.cmp-group + .cmp-group { border-top: 1px solid var(--color-border); }
.cmp-group summary {
  display: grid;
  grid-template-columns: var(--cmp-cols);
  align-items: center;
  padding: 1rem 0 1rem var(--space-3);
  cursor: pointer;
  list-style: none;
  transition: background .15s ease;
}
.cmp-group summary::-webkit-details-marker { display: none; }
.cmp-group summary:hover { background: #FAFBFD; }
.cmp-group[open] summary { background: var(--color-offwhite); }
.cmp-group-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 0.5rem; font-weight: 700; color: var(--color-primary); }
.cmp-group-name small { flex-basis: 100%; padding-left: 1.6rem; font-size: var(--fs-xs); font-weight: 500; color: var(--color-gray); }
.cmp-chev { width: 18px; height: 18px; color: var(--color-gray); transform: rotate(-90deg); transition: transform .2s var(--ease); flex-shrink: 0; }
.cmp-group[open] .cmp-chev { transform: none; }
.cmp-count {
  justify-self: center;
  min-width: 2rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-offwhite);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-gray);
  text-align: center;
}
.cmp-count.is-featured { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.cmp-group[open] .cmp-count { background: var(--color-white); }
.cmp-group[open] .cmp-count.is-featured { background: var(--color-accent-soft); }

.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp-table tr { display: grid; grid-template-columns: var(--cmp-cols); align-items: center; border-top: 1px solid #F0F2F6; }
.cmp-table tbody tr:hover { background: #FAFBFD; }
.cmp-table th {
  padding: 0.7rem 0.75rem 0.7rem calc(var(--space-3) + 1.6rem);
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.45;
}
.cmp-table td { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.cmp-table .is-featured { background: rgba(30, 158, 139, 0.05); }
.cmp-yes { width: 18px; height: 18px; color: var(--color-accent); }
.cmp-no { color: var(--color-border-strong); font-weight: 700; }
.cmp-text { font-size: var(--fs-xs); font-weight: 700; color: var(--color-accent-dark); }
@media (max-width: 639px) {
  .cmp-group summary { padding-left: var(--space-2); }
  .cmp-group-name small { padding-left: 1.6rem; }
  .cmp-count { min-width: 0; padding: 0.1rem 0.35rem; }
  .cmp-table th { padding-left: var(--space-2); font-size: var(--fs-xs); }
  .cmp-table .tag-ts { display: inline-block; margin: 0.2rem 0 0; }
}
.cmp-actions { margin-top: var(--space-3); text-align: center; }
.cmp-toggle-all { border: none; background: none; cursor: pointer; padding: 0.4rem; }

/* "Included in every package" — a strip, not four more boxes. */
.include-row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .include-row { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.include-item { text-align: center; padding: 0 var(--space-3); }
.include-item + .include-item { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
@media (min-width: 900px) { .include-item + .include-item { border-top: none; border-left: 1px solid var(--color-border); padding-top: 0; } }
.include-item svg { width: 28px; height: 28px; color: var(--color-accent); }
.include-item h3 { font-size: 1.0625rem; margin: var(--space-1) 0 0.2rem; }
.include-item p { color: var(--color-gray); font-size: var(--fs-small); }

/* ==========================================================================
   FAQ (details/summary accordion)
   ========================================================================== */
.faq-list { display: grid; gap: 0.75rem; max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem var(--space-3);
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 var(--space-3) var(--space-3); color: var(--color-gray); font-size: var(--fs-small); }

/* ==========================================================================
   Scroll reveal — only when JS is running and motion is welcome
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: var(--space-3); }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.text-muted { color: var(--color-gray); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Contact page: self-serve trial callout above the Enterprise options */
.trial-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
}
.trial-callout h2 { font-size: var(--fs-h3); margin: 0; }
.trial-callout p { margin-top: 0.35rem; color: var(--color-gray); }
@media (max-width: 479px) { .trial-callout .btn { flex: 1 1 100%; } }

/* ==========================================================================
   Motion & illustrations
   main.js adds .is-in to [data-animate] blocks when they arrive, .is-live to
   [data-live] blocks while they are on screen, and .reduced-motion to <html>
   when the visitor asks for less motion. Loops pause off screen.
   ========================================================================== */
.js [data-live]:not(.is-live),
.js [data-live]:not(.is-live) * { animation-play-state: paused !important; }

/* Hero background drifts slowly; the primary button catches a sheen on hover */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-drift 22s ease-in-out infinite alternate; }
}
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.08); }
}
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Live toasts: one message at a time, cycled by [data-cycle] */
.live-toasts {
  position: absolute;
  bottom: -4%;
  left: 28%;
  z-index: 3;
  width: min(290px, 64%);
  height: 60px;
  pointer-events: none;
}
.live-toast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.live-toast small { display: block; font-size: 0.6875rem; font-weight: 600; color: var(--color-gray); }
.live-toast.is-active,
html:not(.js) .live-toast:first-child { opacity: 1; transform: none; }
.lt-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
}
.lt-icon svg { width: 16px; height: 16px; }
.live-toast:nth-child(2) .lt-icon { background: var(--tint-sun); color: #B7791F; }
.live-toast:nth-child(3) .lt-icon { background: var(--tint-lilac); color: #6244C9; }
.live-toast:nth-child(4) .lt-icon { background: var(--tint-sky); color: #2C4FB0; }
.hero-stage-solo .live-toasts { bottom: -22px; left: 4%; }
.hero-stage .float-pill.fp-data { bottom: 26%; }
@media (max-width: 639px) {
  .live-toasts { width: min(250px, 78%); height: 54px; }
  .live-toast { font-size: 0.75rem; padding: 0.5rem 0.7rem; }
}

/* A glowing packet flies from the phone to the dashboard on every toast */
.sync-packet {
  position: absolute;
  left: 20%;
  top: 60%;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(30, 158, 139, 0.18), 0 0 22px rgba(30, 158, 139, 0.7);
  opacity: 0;
  pointer-events: none;
}
.sync-packet.is-sending { animation: packet-fly 1.3s var(--ease) forwards; }
@keyframes packet-fly {
  0% { left: 20%; top: 60%; opacity: 0; transform: scale(.5); }
  15% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { left: 55%; top: 38%; opacity: 0; transform: scale(1.6); }
}

/* Sync track: labelled packets travel between the two products, office →
   field on the upper lane, field → office on the lower one */
.sync-track {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 680px;
  margin: var(--space-3) auto 0;
}
.st-end {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--color-primary);
}
.st-end svg { width: 15px; height: 15px; color: var(--color-accent); }
.st-line {
  position: relative;
  flex: 1;
  height: 56px;
  container-type: inline-size;
}
.st-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px dashed var(--color-border-strong);
}
.st-packet {
  position: absolute;
  top: calc(50% - 13px);
  left: 0;
  transform: translate(0, -50%);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(30, 158, 139, 0.8);
  opacity: 0;
  animation: st-right 7s linear infinite;
}
.st-packet.to-office {
  top: calc(50% + 13px);
  background: #6B5BD8;
  box-shadow: 0 6px 14px -6px rgba(107, 91, 216, 0.8);
  animation-name: st-left;
}
.st-packet:nth-child(2) { animation-delay: -1.75s; }
.st-packet:nth-child(3) { animation-delay: -3.5s; }
.st-packet:nth-child(4) { animation-delay: -5.25s; }
@keyframes st-right {
  0% { opacity: 0; transform: translate(0, -50%); }
  8%, 92% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(100cqw - 100%), -50%); }
}
@keyframes st-left {
  0% { opacity: 0; transform: translate(calc(100cqw - 100%), -50%); }
  8%, 92% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, -50%); }
}
.reduced-motion .st-packet { opacity: 1; }
.reduced-motion .st-packet:nth-child(2) { left: 45%; }
.reduced-motion .st-packet:nth-child(3) { left: 50%; }
.reduced-motion .st-packet:nth-child(4) { left: 5%; }
/* Homepage shared layer: six packets office → field, four field → office,
   evenly spaced in each lane. The lanes run at different speeds so the
   packets never settle into pairs. */
.shared-layer .sync-track { max-width: 860px; }
.shared-layer .st-packet { animation-duration: 12s; }
.shared-layer .st-packet.to-office { animation-duration: 10s; }
.shared-layer .st-packet:nth-child(1) { animation-delay: 0s; }
.shared-layer .st-packet:nth-child(2) { animation-delay: -2s; }
.shared-layer .st-packet:nth-child(3) { animation-delay: -4s; }
.shared-layer .st-packet:nth-child(4) { animation-delay: -6s; }
.shared-layer .st-packet:nth-child(5) { animation-delay: -8s; }
.shared-layer .st-packet:nth-child(6) { animation-delay: -10s; }
.shared-layer .st-packet:nth-child(7) { animation-delay: -1s; }
.shared-layer .st-packet:nth-child(8) { animation-delay: -3.5s; }
.shared-layer .st-packet:nth-child(9) { animation-delay: -6s; }
.shared-layer .st-packet:nth-child(10) { animation-delay: -8.5s; }
.reduced-motion .shared-layer .st-packet:nth-child(1) { left: 0; }
.reduced-motion .shared-layer .st-packet:nth-child(2) { left: 16%; }
.reduced-motion .shared-layer .st-packet:nth-child(3) { left: 32%; }
.reduced-motion .shared-layer .st-packet:nth-child(4) { left: 48%; }
.reduced-motion .shared-layer .st-packet:nth-child(5) { left: 64%; }
.reduced-motion .shared-layer .st-packet:nth-child(6) { left: 80%; }
.reduced-motion .shared-layer .st-packet:nth-child(7) { left: 8%; }
.reduced-motion .shared-layer .st-packet:nth-child(8) { left: 30%; }
.reduced-motion .shared-layer .st-packet:nth-child(9) { left: 52%; }
.reduced-motion .shared-layer .st-packet:nth-child(10) { left: 74%; }
/* Phones: the line is short, so every other packet sits out; the ones
   left stay evenly spaced */
@media (max-width: 639px) {
  .shared-layer .st-packet:nth-child(2n):nth-child(-n+6),
  .shared-layer .st-packet:nth-child(8),
  .shared-layer .st-packet:nth-child(10) { display: none; }
}
@media (max-width: 479px) {
  .sync-track { gap: 0.5rem; }
  .st-end { padding: 0.4rem 0.6rem; }
  .st-end svg { display: none; }
}

/* Figures count up (main.js); keep their width steady while they do */
.stat-number, .stat-band .num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  /* Steps: the connector draws itself and the numbers pop in turn */
  .js .steps-flow .step-number { opacity: 0; transform: scale(.5); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .js .steps-flow .step:nth-child(2) .step-number { transition-delay: .6s; }
  .js .steps-flow .step:nth-child(3) .step-number { transition-delay: 1.2s; }
  .js .steps-flow.is-in .step-number { opacity: 1; transform: none; }

  /* Pricing: check marks pop in down each card */
  .js .plan-card .plan-list li > svg { transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 70ms + .15s); }
  .js .plan-card.is-in .plan-list li > svg { transform: none; }

  /* Customer wall: tiles settle in one after another */
  .js .logo-grid > * { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
  .js .logo-grid.is-in > * { opacity: 1; transform: none; }
}
@media (min-width: 768px) {
  .steps-flow::after {
    content: "";
    position: absolute;
    top: calc(var(--space-4) + 20px);
    left: 12%;
    right: 12%;
    border-top: 2px solid var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s var(--ease) .2s;
    z-index: 0;
  }
  .steps-flow.is-in::after,
  .reduced-motion .steps-flow::after { transform: scaleX(1); }
}

/* Problem cards: the icon gives a small shake on hover */
.pain-step:hover .pain-icon svg { animation: wiggle .5s var(--ease); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
}

/* Audit feed: rows arrive at the top, like a live log */
.audit-feed { display: grid; gap: 0.5rem; margin-top: var(--space-3); }
.audit-feed li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--color-charcoal);
}
.audit-feed li:nth-child(n+4) { display: none; }
.audit-feed li b { color: var(--color-primary); }
.audit-feed time { margin-left: auto; padding-left: 0.5rem; font-size: 0.6875rem; font-weight: 700; color: var(--color-gray); font-variant-numeric: tabular-nums; }
.audit-feed li.is-new { animation: feed-in .55s var(--ease); }
.audit-feed li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; flex-shrink: 0; }
.audit-feed li.ok::before { background: #22C55E; }
.audit-feed li.warn::before { background: #F59E0B; }
.audit-feed li.lock::before { background: #6B5BD8; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Floating pill that flips between two states (offline → synced) */
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; animation: swap-a 8s infinite; }
.swap > span + span { animation-name: swap-b; opacity: 0; }
@keyframes swap-a { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swap-b { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.fp-offline .pulse { animation: pulse 2s infinite, pulse-swap 8s infinite; }
@keyframes pulse-swap { 0%, 45% { background: #F59E0B; } 50%, 95% { background: #22C55E; } 100% { background: #F59E0B; } }
.reduced-motion .swap > span + span { display: none; }

.float-pill.fp-gps { top: auto; bottom: 14%; left: 0; animation-delay: -2s; }
.float-pill.fp-gps .fp-icon { background: var(--tint-peach); color: var(--color-warm); }
.pin-bounce svg { animation: pin-bounce 1.6s var(--ease) infinite; }
@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(0); }
}

/* Mini KPI card with breathing bars (reports hero) */
.kpi-card {
  position: absolute;
  left: -2%;
  bottom: -30px;
  z-index: 3;
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
  animation-delay: -1.5s;
}
.kpi-card b { font-size: 0.8125rem; color: var(--color-primary); display: flex; align-items: center; gap: 0.35rem; }
.kpi-card b svg { width: 14px; height: 14px; color: #22C55E; }
.kpi-card small { font-size: 0.6875rem; color: var(--color-gray); font-weight: 600; }
.kpi-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.kpi-bars i {
  width: 10px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #2BC0A8, #167A6B);
  transform-origin: bottom;
  animation: bar-breathe 3.2s var(--ease) infinite;
  animation-delay: calc(var(--n) * -0.4s);
}
.kpi-bars i:last-child { background: linear-gradient(180deg, #8B7CF0, #6244C9); }
@keyframes bar-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.72); }
}

/* Trust page: shield beside a live audit feed */
.trust-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 420px);
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
  text-align: left;
}
.trust-shield { position: relative; width: 168px; }
.trust-shield svg { display: block; width: 100%; height: auto; }
.trust-shield .scan { animation: scan 3.6s var(--ease) infinite; }
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(120px); opacity: 0; }
}
.trust-visual .audit-feed { margin-top: 0; }
@media (max-width: 767px) {
  .trust-visual { grid-template-columns: 1fr; justify-items: center; gap: var(--space-3); }
  .trust-shield { width: 120px; }
  .trust-visual .audit-feed { width: 100%; }
}

/* Contact page: engagement cards with small looping illustrations */
.enterprise-head { margin-bottom: var(--space-4); }
.engagement-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .engagement-grid { grid-template-columns: repeat(3, 1fr); } }
.engagement-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.engagement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.engagement-card h3 { margin-top: var(--space-2); }
.engagement-card p { margin-top: 0.35rem; color: var(--color-gray); font-size: var(--fs-small); }
.engagement-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: var(--space-3); }
.engagement-actions .btn { flex: 1 1 0; }
.btn-sm { padding: 0.65rem 1rem; font-size: var(--fs-small); }
.engagement-illo {
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--tint-mint), var(--tint-sky));
  padding: 0.5rem;
}
.engagement-card:nth-child(2) .engagement-illo { background: linear-gradient(160deg, var(--tint-peach), var(--tint-sun)); }
.engagement-card:nth-child(3) .engagement-illo { background: linear-gradient(160deg, var(--tint-lilac), var(--tint-sky)); }
.engagement-illo svg { display: block; width: 100%; height: auto; max-height: 120px; }
.ill-frame, .ill-phone, .ill-node { fill: #fff; stroke: #D6DCE6; stroke-width: 1.5; }
.ill-bar { fill: #F1F4F9; }
.ill-dot.r { fill: #FF8B7E; } .ill-dot.y { fill: #FFCB5C; } .ill-dot.g { fill: #5BD08E; }
.ill-col { fill: #2BC0A8; transform-box: fill-box; transform-origin: bottom; animation: bar-breathe 3s var(--ease) infinite; }
.ill-col.c2 { animation-delay: -.6s; } .ill-col.c3 { animation-delay: -1.2s; }
.ill-col.c4 { fill: #6B5BD8; animation-delay: -1.8s; }
.ill-cursor { fill: #0F1E3C; animation: cursor-move 4s var(--ease) infinite; }
@keyframes cursor-move {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-22px, 6px); }
  50% { transform: translate(-22px, 6px) scale(.9); }
  60% { transform: translate(-22px, 6px); }
}
.ill-screen { fill: #F7F9FC; }
.ill-checks rect { fill: #E3E8F0; }
.ill-checks circle { fill: #D6DCE6; animation: check-on 4.5s var(--ease) infinite; }
.ill-checks .k2 { animation-delay: .6s; } .ill-checks .k3 { animation-delay: 1.2s; }
@keyframes check-on { 0%, 10% { fill: #D6DCE6; } 20%, 80% { fill: #22C55E; } 95%, 100% { fill: #D6DCE6; } }
.ill-route { fill: none; stroke: #D9772B; stroke-width: 2; stroke-dasharray: 5 5; animation: dash 1.2s linear infinite; }
.ill-pin { fill: #D9772B; transform-box: fill-box; transform-origin: center; animation: pin-bounce 1.6s var(--ease) infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.ill-link { stroke: #C9C2F2; stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.ill-node.main { fill: #6B5BD8; stroke: none; }
.ill-api { fill: #fff; font: 800 11px var(--font-sans); }
.ill-packet { fill: #6B5BD8; }

.contact-channels { display: grid; gap: var(--space-2); grid-template-columns: 1fr; margin-top: var(--space-4); }
@media (min-width: 768px) { .contact-channels { grid-template-columns: repeat(3, 1fr); } }
.channel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  color: var(--color-primary);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.channel b { display: block; font-size: var(--fs-small); }
.channel small { display: block; font-size: var(--fs-xs); color: var(--color-gray); font-weight: 600; }
.channel-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
}
.channel-icon svg { width: 18px; height: 18px; }
.channel-wa .channel-icon { background: #E7F8EE; }
.channel-wa .pulse { width: 12px; height: 12px; }
.channels-note { margin-top: var(--space-3); text-align: center; font-size: var(--fs-xs); color: var(--color-gray); }
.channels-note a { color: var(--color-accent-dark); font-weight: 700; }
.reply-promise { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: var(--space-2); font-size: var(--fs-small); font-weight: 700; color: var(--color-accent-dark); }

/* 404: a delivery route that ends at a question mark */
.lost-route { width: min(360px, 100%); margin: 0 auto var(--space-3); }
.lost-route svg { display: block; width: 100%; height: auto; }
.lost-route .road { fill: none; stroke: #D6DCE6; stroke-width: 3; stroke-dasharray: 7 7; animation: dash 1.4s linear infinite; }
.lost-route .grid-line { stroke: rgba(15, 30, 60, 0.06); stroke-width: 1; }
.lost-route .start { fill: #1E9E8B; }
.lost-route .goal { fill: #D9772B; transform-box: fill-box; transform-origin: 50% 100%; animation: pin-bounce 1.6s var(--ease) infinite; }
.lost-route .goal-mark { fill: #fff; font: 800 15px var(--font-sans); }
.lost-route .van { fill: #0F1E3C; }

/* ==========================================================================
   Hero demo — one order through the whole sale, as working markup
   main.js plays it station by station and hands control to the visitor on
   their first click. --pace (set by main.js) scales every duration here. The tabs and the play button below are
   shared with the page demos.
   ========================================================================== */
.demo { container-type: inline-size; }
.demo svg { margin: 0; max-width: none; flex-shrink: 0; }
/* :where() keeps these at element weight so each control's own class sets its size */
:where(.demo) button { font: inherit; cursor: pointer; }
:where(.demo) button:disabled { cursor: default; }
.demo button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Scenario tabs and the pause button */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-2);
  margin-bottom: var(--space-4);
}
.demo-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.demo-tab {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-charcoal);
  transition: background calc(.25s * var(--pace, 1)) ease, color calc(.25s * var(--pace, 1)) ease;
}
.demo-tab svg { width: 16px; height: 16px; }
.demo-tab:hover { background: var(--color-offwhite); color: var(--color-primary); }
.demo-tab[aria-selected="true"] { background: var(--color-primary); color: #fff; }
/* Thin bar that fills while the scenario plays */
.demo-tab i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
}
.demo-tab i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #5BD0B8;
  transform: scaleX(0);
  transform-origin: left;
}
.demo-tab.is-running i { opacity: 1; }
.demo-tab.is-running i::after { animation: demo-progress var(--dur, 6s) linear forwards; }
.demo:not(.is-live) .demo-tab i::after { animation-play-state: paused; }
@keyframes demo-progress { to { transform: scaleX(1); } }

.demo-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-charcoal);
  transition: border-color calc(.25s * var(--pace, 1)) ease, color calc(.25s * var(--pace, 1)) ease;
}
.demo-play:hover { border-color: var(--color-border-strong); color: var(--color-primary); }
.demo-play::before { /* pause bars; a play triangle while paused */
  content: "";
  width: 8px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  box-sizing: border-box;
}
.demo-play-off { display: none; }
.demo.is-paused .demo-play-on { display: none; }
.demo.is-paused .demo-play-off { display: inline; }
.demo.is-paused .demo-play::before {
  width: 9px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.demo.is-paused .demo-play { border-color: var(--color-accent); color: var(--color-accent-dark); }

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gray);
  text-align: center;
}
html:not(.js) .demo-bar,
html:not(.js) .demo-caption { display: none; }

/* Shared dashboard pieces: the module tabs below the hero use these too */
.dp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; }
.dp-kpi {
  padding: 0.65em 0.8em;
  border-radius: 0.8em;
  border: 1px solid rgba(15, 30, 60, 0.06);
  background: var(--tint-sky);
}
.dp-kpi[data-kpi="orders"] { background: var(--tint-mint); }
.dp-kpi[data-kpi="debt"] { background: var(--tint-peach); }
.dp-kpi[data-kpi="cash"] { background: var(--tint-sun); }
.dp-kpi small {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--color-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-kpi b {
  display: block;
  margin-top: 0.15em;
  font-size: 1.15em;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; }
.dp-card {
  min-width: 0;
  padding: 0.7em 0.8em;
  border-radius: 0.9em;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.dp-title {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.45em;
  font-size: 0.8em;
  font-weight: 800;
}
.dp-title small { margin-left: auto; font-weight: 600; color: var(--color-gray); }
.dp-title .pulse { width: 0.6em; height: 0.6em; }

.dp-stock,
.ph-items { margin: 0; padding: 0; list-style: none; }
.dp-stock li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5em;
  align-items: center;
  padding: 0.42em 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.74em;
}
.dp-stock span {
  font-weight: 700;
  color: var(--color-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-stock b { grid-column: 2; grid-row: 1 / 3; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-stock b { grid-row: 1; }
.dp-stock i {
  grid-column: 1 / -1;
  height: 0.5em;
  margin-top: 0.35em;
  border-radius: var(--radius-pill);
  background: var(--color-offwhite);
  overflow: hidden;
}
.dp-stock u {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--color-accent);
  transition: width calc(.9s * var(--pace, 1)) var(--ease);
}
/* The flow: one station at a time under a rail that runs through all four.
   Sized in em off the demo's own width, so the scene scales as one piece. */
.flow { text-align: left; }
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.flow-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gray);
}
html:not(.js) .flow-bar { display: none; }
.flow-stage {
  --at: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  font-size: clamp(10.5px, 2.3cqw, 13px);
  line-height: 1.3;
  color: var(--color-primary);
}

/* Rail: four evenly spaced stops, a line from the first to the last filled
   up to the order's token. Stop k sits at (k + ½) / 4 of the width. */
.flow-rail { position: relative; height: 4.6em; margin-bottom: 0.6em; }
.flow-rail > i { position: absolute; top: 3.6em; }
.flow-line,
.flow-fill {
  left: 12.5%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}
.flow-line { right: 12.5%; background: var(--color-border); }
.flow-fill {
  width: calc(25% * var(--at));
  background: linear-gradient(90deg, var(--color-accent), #2C4FB0);
  transition: width calc(1s * var(--pace, 1)) var(--ease);
}
.flow-dot {
  left: calc(25% * (var(--k) + 0.5));
  width: 1.1em;
  height: 1.1em;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid var(--color-border-strong);
  background: var(--color-white);
  transform: translate(-50%, -50%);
  transition: border-color calc(.4s * var(--pace, 1)) ease, background calc(.4s * var(--pace, 1)) ease;
}
.flow-dot.is-past,
.flow-dot.is-active { border-color: var(--color-accent); }
.flow-dot.is-past { background: var(--color-accent); }
.flow-token {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(25% * (var(--at) + 0.5));
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.75em 0.4em 0.5em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  font-size: 0.85em;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: left calc(1s * var(--pace, 1)) var(--ease), transform calc(1s * var(--pace, 1)) var(--ease), opacity calc(.4s * var(--pace, 1)) ease;
}
.flow-token::after { /* pointer down to the dot */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.38em;
  width: 0.7em;
  height: 0.7em;
  margin-left: -0.35em;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  transform: rotate(45deg);
}
/* At the two ends the token hangs inwards so it stays inside the demo */
.flow-stage[data-at="0"] .flow-token { transform: translateX(-1.6em); }
.flow-stage[data-at="3"] .flow-token { transform: translateX(calc(-100% + 1.6em)); }
.flow-stage[data-at="0"] .flow-token::after { left: 1.6em; }
.flow-stage[data-at="3"] .flow-token::after { left: calc(100% - 1.6em); }
.flow-token small {
  padding: 0.2em 0.55em;
  border-radius: var(--radius-pill);
  background: var(--color-offwhite);
  font-size: 0.82em;
  font-weight: 700;
  color: var(--color-gray);
}
.flow-token [data-state] { display: none; }
.flow-stage[data-state="proposal"] [data-state="0"],
.flow-stage[data-state="confirmed"] [data-state="1"],
.flow-stage[data-state="onway"] [data-state="2"],
.flow-stage[data-state="delivered"] [data-state="3"] { display: inline; }
.flow-stage[data-state="proposal"] .flow-token { color: var(--color-warm); }
.flow-stage[data-state="confirmed"] .flow-token { color: var(--color-accent-dark); }
.flow-stage[data-state="onway"] .flow-token { color: #2C4FB0; }
.flow-stage[data-state="delivered"] .flow-token { color: var(--color-accent-dark); }
.js .flow-stage:not([data-state]) .flow-token,
.flow-stage[data-state=""] .flow-token { opacity: 0; }
html:not(.js) .flow-token { display: none; }

/* Stations share one spot: the active one is in, the ones behind it slide
   out to the left and the ones ahead wait on the right */
.flow-station {
  grid-area: 2 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
  transition: opacity calc(.55s * var(--pace, 1)) var(--ease), transform calc(.55s * var(--pace, 1)) var(--ease), visibility calc(.55s * var(--pace, 1));
}
.js .flow-station:not(.is-active) { opacity: 0; visibility: hidden; transform: translateX(8%); pointer-events: none; }
.js .flow-station.is-past:not(.is-active) { transform: translateX(-8%); }
.flow-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.65em;
  align-items: center;
  font-size: 0.95em;
  font-weight: 800;
}
.flow-head b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--color-offwhite);
  font-size: 0.9em;
  color: var(--color-gray);
  transition: background calc(.4s * var(--pace, 1)) ease, color calc(.4s * var(--pace, 1)) ease, box-shadow calc(.4s * var(--pace, 1)) ease;
}
.flow-head small { font-size: 0.74em; font-weight: 600; color: var(--color-gray); }
.is-active .flow-head b { background: var(--color-accent); color: #fff; box-shadow: 0 0 0 0.3em rgba(30, 158, 139, 0.18); }
.is-past .flow-head b { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.flow .device-phone {
  align-self: center;
  width: 19.5em;
  max-width: 100%;
  padding: 0.45em;
  border-radius: 2.5em;
}
.flow .device-browser { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 30em; align-self: center; }

/* Wait / done wording that follows the order */
.flow-stage .when-ok { display: none; }
.is-confirmed .ph-result .when-wait,
.is-planned .fl-order .when-wait,
.is-arrived .ph-drive .when-wait { display: none; }
.is-confirmed .ph-result .when-ok,
.is-planned .fl-order .when-ok,
.is-arrived .ph-drive .when-ok { display: inline; }

/* The button that moves the order on pulses */
.is-next:not(:disabled) { animation: demo-next 1.6s ease-in-out infinite; }
@keyframes demo-next {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 158, 139, 0.45); }
  50% { box-shadow: 0 0 0 0.5em rgba(30, 158, 139, 0); }
}
@keyframes demo-row-in {
  from { opacity: 0; transform: translateY(-0.6em); }
  to { opacity: 1; transform: none; }
}
@keyframes demo-spin { to { transform: rotate(360deg); } }

/* Office screens */
.fl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: 0.9em 1em 1em;
  background: #FBFCFE;
}
.fl-title { display: flex; align-items: baseline; gap: 0.45em; margin-top: 0.25em; font-size: 0.8em; font-weight: 800; }
.fl-title small { margin-left: auto; font-weight: 600; color: var(--color-gray); }
.fl-ledger,
.fl-package,
.fl-report {
  margin: 0;
  padding: 0.45em 0.75em;
  border-radius: 0.8em;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  list-style: none;
}
.fl-ledger ul { margin: 0; padding: 0; list-style: none; }
/* Stock ledger: available for order and physical quantity side by side */
.fl-ledger-head,
.fl-ledger li {
  display: grid;
  grid-template-columns: 1.8em minmax(0, 1fr) 25% 20%;
  gap: 0.4em;
  align-items: center;
}
.fl-ledger-head { padding: 0.3em 0 0.35em; font-size: 0.6em; line-height: 1.15; }
.fl-ledger-head span { grid-column: span 2; }
.fl-ledger .ph-thumb { width: 1.8em; height: 1.8em; border-radius: 0.45em; }
.fl-ledger-head small { font-weight: 700; text-align: right; color: var(--color-gray); }
.fl-ledger li { padding: 0.5em 0; border-top: 1px solid var(--color-border); font-size: 0.74em; }
.fl-ledger span { font-weight: 700; color: var(--color-charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-ledger b { justify-self: end; padding: 0.05em 0.25em; border-radius: 0.3em; font-weight: 800; font-variant-numeric: tabular-nums; }
.fl-ledger [data-avail] { color: var(--color-accent-dark); }
.fl-ledger b.is-flash { animation: demo-cell 1.6s var(--ease); }
@keyframes demo-cell {
  0%, 35% { background: var(--tint-peach); color: var(--color-warm); }
  100% { background: transparent; }
}
/* Shipping package */
.fl-package { padding: 0.65em 0.75em; }
.fl-truck { margin: -0.2em 0 0.2em; overflow: hidden; }
.fl-truck svg { display: block; width: 100%; height: auto; }
.fl-road { stroke: var(--color-border-strong); stroke-width: 2; stroke-dasharray: 10 8; }
.fl-crate rect { fill: #E9C996; stroke: #C99B5C; stroke-width: 1.5; }
.fl-crate path { stroke: #C99B5C; stroke-width: 1.5; }
.fl-crate.is-alt rect { fill: #D9D2F7; stroke: #A99BE6; }
.fl-crate.is-alt path { stroke: #A99BE6; }
.fl-crate.is-ours rect { fill: #9EE0D2; stroke: var(--color-accent); }
.fl-crate.is-ours path { stroke: var(--color-accent); }
/* Market №12's crates drop in when the order joins the package */
.fl-crate.is-ours {
  opacity: 0;
  transform: translateY(-34px);
  transition: opacity calc(.3s * var(--pace, 1)) ease var(--d, calc(0s * var(--pace, 1))), transform calc(.55s * var(--pace, 1)) cubic-bezier(.3, 1.5, .5, 1) var(--d, calc(0s * var(--pace, 1)));
}
.is-planned .fl-crate.is-ours { opacity: 1; transform: none; }
/* …and the truck pulls away */
.fl-truck-body { transition: transform 1.1s cubic-bezier(.55, 0, .75, .3); }
.is-dispatched .fl-truck-body { transform: translateX(115%); }
.fl-wheel { transform-box: fill-box; transform-origin: center; }
.is-dispatched .fl-wheel { animation: demo-spin .45s linear infinite; }
.fl-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--color-gray);
}
.fl-cap b { font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.fl-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.7em;
  padding-top: 0.6em;
  border-top: 1px dashed var(--color-border-strong);
  font-size: 0.76em;
  font-weight: 800;
}
.fl-order small { display: block; font-size: 0.86em; font-weight: 600; color: var(--color-gray); }
.fl-order em {
  flex-shrink: 0;
  padding: 0.25em 0.65em;
  border-radius: var(--radius-pill);
  background: var(--color-offwhite);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 700;
  color: var(--color-gray);
  transition: background calc(.3s * var(--pace, 1)) ease, color calc(.3s * var(--pace, 1)) ease;
}
.is-planned .fl-order em { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.fl-btn {
  width: 100%;
  height: 2.6em;
  margin-top: auto;
  border: 0;
  border-radius: 0.75em;
  background: #2C4FB0;
  font-size: 0.82em;
  font-weight: 800;
  color: #fff;
  transition: background calc(.25s * var(--pace, 1)) ease;
}
.fl-btn:hover:not(:disabled) { background: #1F3C8F; }
.fl-btn:disabled { background: var(--color-border-strong); color: var(--color-gray); }
.fl-btn.is-done,
.fl-btn.is-done:disabled { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.fl-btn .when-done,
.fl-btn.is-done .when-idle { display: none; }
.fl-btn.is-done .when-done { display: inline; }
/* Reports */
.fl-report { padding: 0.2em 0.75em; }
.fl-report li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em;
  margin: 0 -0.45em;
  padding: 0.55em 0.45em;
  border-radius: 0.5em;
  font-size: 0.76em;
}
.fl-report li + li { border-top: 1px solid var(--color-border); }
.fl-report span { font-weight: 700; color: var(--color-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-report b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fl-delta {
  display: none;
  flex-shrink: 0;
  padding: 0.15em 0.45em;
  border-radius: var(--radius-pill);
  font-size: 0.82em;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.is-reported .fl-delta { display: inline-block; animation: demo-row-in .5s var(--ease); }
.fl-delta.is-up { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.fl-delta.is-down { background: var(--tint-peach); color: var(--color-warm); }
.fl-delta.is-up::before { content: "▲ "; font-size: 0.8em; }
.fl-delta.is-down::before { content: "▼ "; font-size: 0.8em; }
.fl-report b { margin-left: auto; }
.fl-trend {
  position: relative;
  flex: 1;
  min-height: 7em;
  padding: 0;
  border-radius: 0.8em;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  overflow: hidden;
}
.fl-trend svg { display: block; width: 100%; height: 100%; }
.fl-trend-grid { stroke: var(--color-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fl-trend-line { fill: none; stroke: #2C4FB0; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fl-pt {
  position: absolute;
  width: 0.8em;
  height: 0.8em;
  margin: -0.4em 0 0 -0.4em;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  box-sizing: border-box;
}
.fl-pt.is-high { background: var(--color-accent); box-shadow: 0 0 0 0.25em rgba(30, 158, 139, 0.2); }
.fl-pt.is-low { background: var(--color-warm); box-shadow: 0 0 0 0.25em rgba(217, 119, 43, 0.2); }
.fl-pt.is-today { background: #2C4FB0; box-shadow: 0 0 0 0.3em rgba(44, 79, 176, 0.22); }
.fl-pt.is-today { margin-left: -0.75em; }
.is-record .fl-pt.is-high { display: none; }
.is-record .fl-pt.is-today { background: var(--color-accent); box-shadow: 0 0 0 0.35em rgba(30, 158, 139, 0.25); }
.fl-legend { display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; font-size: 0.66em; font-weight: 700; color: var(--color-gray); }
.fl-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.fl-legend span::before { content: ""; width: 0.75em; height: 0.75em; border-radius: 50%; }
.fl-legend .is-high::before { background: var(--color-accent); }
.fl-legend .is-low::before { background: var(--color-warm); }
.fl-legend .is-today::before { background: #2C4FB0; }
.fl-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  margin-top: auto;
  height: 2.6em;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.75em;
  background: var(--color-white);
  font-size: 0.8em;
  font-weight: 800;
  color: var(--color-primary);
  transition: border-color calc(.25s * var(--pace, 1)) ease, color calc(.25s * var(--pace, 1)) ease;
}
.fl-again:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.fl-again svg { width: 1.2em; height: 1.2em; }

/* Salesman: the rules sheet slides up over the order once it is sent */
.ph-sheet {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3em 1.1em 1.2em;
  border-radius: 1.4em 1.4em 0 0;
  background: var(--color-white);
  box-shadow: 0 -0.6em 2em rgba(15, 30, 60, 0.16);
  transform: translateY(105%);
  transition: transform calc(.5s * var(--pace, 1)) var(--ease);
}
.ph-sheet::before { /* grab handle */
  content: "";
  position: absolute;
  top: 0.5em;
  left: 50%;
  width: 2.6em;
  height: 0.28em;
  margin-left: -1.3em;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
}
.is-checking .ph-rules,
.is-confirmed .ph-rules,
.is-delivered .ph-handover { transform: none; }
.ph-sheet-title { margin-bottom: 0.3em; font-size: 0.85em; font-weight: 800; }
.ph-checks { margin: 0; padding: 0; list-style: none; }
.ph-checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.5em 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.78em;
}
.ph-checks span { min-width: 0; font-weight: 700; color: var(--color-charcoal); }
.ph-checks small { display: block; font-size: 0.86em; font-weight: 600; color: var(--color-gray); }
.ph-checks i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  color: transparent;
  transition: background calc(.3s * var(--pace, 1)) ease, border-color calc(.3s * var(--pace, 1)) ease, color calc(.3s * var(--pace, 1)) ease;
}
.ph-checks svg { width: 1em; height: 1em; }
.ph-checks .is-checking i { border-color: var(--color-accent-soft); border-top-color: var(--color-accent); animation: demo-spin .7s linear infinite; }
.ph-checks .is-ok i { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.ph-result {
  margin-top: 0.5em;
  padding: 0.65em 0.75em;
  border-radius: 0.8em;
  background: var(--color-offwhite);
  font-size: 0.74em;
  font-weight: 700;
  color: var(--color-gray);
  transition: background calc(.3s * var(--pace, 1)) ease, color calc(.3s * var(--pace, 1)) ease;
}
.is-confirmed .ph-result { background: var(--color-accent-soft); color: var(--color-accent-dark); }

/* Driver: nothing until the package sets off, then the stop */
.ph-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  padding: 1.5em;
  text-align: center;
}
.ph-idle-icon {
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  border-radius: 50%;
  background: var(--color-offwhite);
  color: var(--color-gray);
}
.ph-idle-icon svg { width: 1.7em; height: 1.7em; }
.ph-idle p { font-size: 0.88em; font-weight: 800; }
.ph-idle small { display: block; margin-top: 0.3em; font-size: 0.82em; font-weight: 600; color: var(--color-gray); }
[data-station="2"] .ph-view,
.is-planned .ph-idle { display: none; }
.is-planned [data-station="2"] .ph-view { display: flex; animation: demo-row-in .6s var(--ease); }
.ph-drive {
  margin: 0 1.1em 0.5em;
  padding: 0.6em 0.7em 0.7em;
  border-radius: 0.8em;
  background: var(--tint-sky);
  font-size: 0.76em;
  font-weight: 700;
  color: #2C4FB0;
  transition: background calc(.3s * var(--pace, 1)) ease, color calc(.3s * var(--pace, 1)) ease;
}
.ph-drive p { display: flex; align-items: center; gap: 0.4em; }
.ph-drive p svg { width: 1.2em; height: 1.2em; }
.ph-map { display: block; width: 100%; height: auto; margin-top: 0.6em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.7); }
.ph-map rect { fill: rgba(44, 79, 176, 0.08); }
.ph-route { fill: none; stroke: rgba(44, 79, 176, 0.25); stroke-width: 4; stroke-dasharray: 2 6; stroke-linecap: round; }
.ph-route-done {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset calc(2.4s * var(--pace, 1)) cubic-bezier(.45, 0, .25, 1);
}
.is-driving .ph-route-done,
.is-arrived .ph-route-done { stroke-dashoffset: 0; }
.ph-depot { fill: var(--color-gray); }
.ph-shop circle { fill: var(--color-warm); }
.ph-shop path { fill: #fff; }
.is-arrived .ph-shop circle { fill: var(--color-accent); }
.ph-van circle,
.ph-van-idle circle { fill: currentColor; }
.ph-van path,
.ph-van-idle path { fill: #fff; }
.ph-van { opacity: 0; }
.is-driving .ph-van,
.is-arrived .ph-van { opacity: 1; }
.is-driving .ph-van-idle,
.is-arrived .ph-van-idle { opacity: 0; }
.is-arrived .ph-drive { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.ph-lines { margin: 0; padding: 0; list-style: none; }
.ph-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.55em 1.1em;
  border-top: 1px solid var(--color-border);
  font-size: 0.78em;
  font-weight: 700;
}
.ph-lines li[hidden] { display: none; }
.ph-lines li { align-items: center; }
.ph-lines li > span:not(.ph-thumb) { flex: 1; min-width: 0; }
.ph-lines .ph-thumb { width: 1.9em; height: 1.9em; border-radius: 0.5em; }
.ph-thumb {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.65em;
  background: var(--tint-sky);
}
.ph-thumb svg { width: 78%; height: 78%; }
[data-sku="juice"] > .ph-thumb { background: var(--tint-sun); }
[data-sku="cookies"] > .ph-thumb { background: var(--tint-peach); }
[data-sku="soda"] > .ph-thumb { background: #FFEFF1; }
.ph-items .ph-name { flex: 1; }

/* Driver: handover, the customer signs and the cash is in */
.ph-hand { display: flex; align-items: center; gap: 0.5em; margin: 0.5em 0 0.7em; }
.ph-hand span {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.8em;
  background: var(--tint-peach);
  color: var(--color-warm);
}
.ph-hand span:last-child { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.ph-hand svg { width: 1.3em; height: 1.3em; }
.ph-hand i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 11px); background-size: 22px 2px; }
.is-delivered .ph-hand i { animation: demo-handover .8s linear infinite; }
@keyframes demo-handover { to { background-position: 22px 0; } }
.ph-sign {
  padding: 0.3em 0.6em 0.45em;
  border-radius: 0.8em;
  border: 1px dashed var(--color-border-strong);
  background: var(--color-offwhite);
}
.ph-sign svg { display: block; width: 100%; height: 3em; }
.ph-sign path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset calc(1.1s * var(--pace, 1)) ease-in-out calc(.35s * var(--pace, 1));
}
.is-delivered .ph-sign path { stroke-dashoffset: 0; }
.ph-sign small { display: block; padding-top: 0.25em; border-top: 1px solid var(--color-border); font-size: 0.66em; font-weight: 600; color: var(--color-gray); }
.ph-paid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.6em;
  padding: 0.6em 0.75em;
  border-radius: 0.8em;
  background: var(--color-accent-soft);
  font-size: 0.78em;
  font-weight: 700;
  color: var(--color-accent-dark);
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity calc(.4s * var(--pace, 1)) ease calc(1.3s * var(--pace, 1)), transform calc(.4s * var(--pace, 1)) var(--ease) calc(1.3s * var(--pace, 1));
}
.ph-paid span { display: inline-flex; align-items: center; gap: 0.4em; }
.ph-paid svg { width: 1.2em; height: 1.2em; }
.ph-paid b { font-size: 1.1em; font-weight: 800; font-variant-numeric: tabular-nums; }
.is-delivered .ph-paid { opacity: 1; transform: none; }
.ph-lines b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Narrow: a larger base size keeps the phone's buttons tappable */
@container (max-width: 460px) {
  .flow-stage { font-size: clamp(11px, 3.4cqw, 13px); }
  .flow-caption { font-size: 0.75rem; }
  .ph-step button { width: 2.4em; height: 2.4em; }
}

/* Phone */
.ph-screen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 18.5;
  border-radius: 2.1em;
  background: var(--color-white);
}
.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 1.5em 0.35em;
  font-size: 0.78em;
  font-weight: 800;
}
.ph-status i { width: 1.6em; height: 0.75em; border-radius: 0.25em; border: 1.5px solid currentColor; }
.ph-screen::before { /* camera notch */
  content: "";
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 4.6em;
  height: 1.15em;
  margin-left: -2.3em;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}
.ph-view { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.ph-head { padding: 0.5em 1.1em 0.7em; font-size: 1.05em; font-weight: 800; }
.ph-head small {
  display: block;
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.ph-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.55em 0.9em;
  border-top: 1px solid var(--color-border);
}
.ph-name { min-width: 0; font-size: 0.82em; font-weight: 700; line-height: 1.25; }
.ph-name small { display: block; font-size: 0.86em; font-weight: 600; color: var(--color-gray); }
.ph-name s { margin-right: 0.3em; color: var(--color-danger); }
.ph-name [data-price-label] { color: #6244C9; font-weight: 800; }
.ph-step {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.15em;
  padding: 0.18em;
  border-radius: var(--radius-pill);
  background: var(--color-offwhite);
}
.ph-step button {
  width: 2.1em;
  height: 2.1em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-dark);
  transition: background calc(.2s * var(--pace, 1)) ease;
}
.ph-step button:hover { background: var(--color-accent-soft); }
.ph-step output { min-width: 1.5em; text-align: center; font-size: 0.9em; font-weight: 800; font-variant-numeric: tabular-nums; }
.ph-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding: 0.7em 1.1em 0.3em;
  border-top: 1px dashed var(--color-border-strong);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--color-gray);
}
.ph-total b { font-size: 1.3em; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.ph-cta {
  margin: 0.45em 1.1em 1.1em;
  height: 3em;
  border: 0;
  border-radius: 0.95em;
  background: var(--color-accent);
  font-size: 0.95em;
  font-weight: 800;
  color: #fff;
  transition: background calc(.25s * var(--pace, 1)) ease;
}
.ph-cta:hover:not(:disabled) { background: var(--color-accent-dark); }
.ph-cta:disabled { background: var(--color-border-strong); color: var(--color-gray); }
.ph-cta.is-done,
.ph-cta.is-done:disabled { background: var(--color-accent-dark); color: #fff; }
.ph-cta .when-done,
.ph-cta.is-done .when-idle { display: none; }
.ph-cta.is-done .when-done { display: inline; }
.ph-label {
  padding: 1em 1.1em 0.45em;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.ph-banner {
  position: absolute;
  z-index: 2;
  top: 2.3em;
  left: 0.6em;
  right: 0.6em;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.6em 0.75em;
  border-radius: 0.9em;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  font-size: 0.74em;
  line-height: 1.25;
  color: #fff;
  opacity: 0;
  transform: translateY(-140%);
  transition: opacity calc(.4s * var(--pace, 1)) var(--ease), transform calc(.5s * var(--pace, 1)) var(--ease);
  pointer-events: none;
}
.ph-banner svg { width: 1.4em; height: 1.4em; color: #B8A6FF; }
.ph-banner strong { display: block; }
.is-banner .ph-banner { opacity: 1; transform: none; }

/* Feedback: a ring where the demo "taps", a flash where the data lands */
.is-tapped { animation: demo-tap .45s var(--ease); }
@keyframes demo-tap {
  0% { box-shadow: 0 0 0 0 rgba(30, 158, 139, 0.55); transform: scale(.92); }
  100% { box-shadow: 0 0 0 0.8em rgba(30, 158, 139, 0); transform: none; }
}
.is-flash { animation: demo-flash 1.3s var(--ease); }
@keyframes demo-flash {
  0%, 30% { box-shadow: 0 0 0 2px var(--color-accent); }
  100% { box-shadow: 0 0 0 2px rgba(30, 158, 139, 0); }
}

/* ==========================================================================
   Page demos. Each one owns the slot between its start and end markers.
   ========================================================================== */

/* ---- demo slot: index (index.html: module tabs) — start ---- */
/* Module tabs (index.html, "Bir platforma, iki uc"). The chips under each
   product are real tabs that swap the visual below them: a screenshot where
   one fits, a small mock in the dashboard style where none does. Without JS
   the buttons stay disabled and read as a plain list of module names. */
.mod-tabs .mod-tab {
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.js .mod-tab:hover { background: var(--color-white); border-color: var(--color-border-strong); color: var(--color-primary); }
.js .mod-tab[aria-selected="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.js .product-card.office .mod-tab[aria-selected="true"] { background: #2C4FB0; border-color: #2C4FB0; }
.js .product-card.field .mod-tab[aria-selected="true"] { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
html:not(.js) .mod-tab {
  min-height: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--color-gray);
}
html:not(.js) .mod-tab:not(:last-child)::after { content: "·"; margin-left: 0.45rem; }

.mod-view[hidden] { display: none; }
.mod-view:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: 14px; }
.mod-view.is-in { animation: mod-view-in .35s var(--ease); }
@keyframes mod-view-in { from { opacity: 0; transform: translateY(8px); } }
/* One crop and fade for the whole visual, whatever frame the panel uses */
.product-card.field .mod-views {
  height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.mod-views .phone-duo { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-top: 2px; }
.mod-views .device-browser { box-shadow: var(--shadow-md); }

/* Mock screens in the dashboard's visual language (.dp-* from the hero) */
.mv {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 1em 1.1em;
  background: #FBFCFE;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--color-primary);
}
.mv .dp-kpi b { font-size: 1.05em; }
.mv .dp-kpi.mv-kpi-warm { background: var(--tint-peach); }
.mv .dp-kpi.mv-kpi-warm b { color: var(--color-warm); }
.mv .dp-kpi.mv-kpi-mint { background: var(--tint-mint); }
.mv .dp-kpi.mv-kpi-sun { background: var(--tint-sun); }
.mv .dp-kpi.mv-kpi-lilac { background: var(--tint-lilac); }
.mv .dp-stock li.is-low u { background: var(--color-warm); }
.mv .dp-stock li.is-low b { color: var(--color-warm); }

.mv-ledger,
.mv-list { margin: 0; padding: 0; list-style: none; }
.mv-ledger li {
  display: flex;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.45em 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.8em;
}
.mv-ledger span { color: var(--color-charcoal); font-weight: 600; }
.mv-ledger b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-ledger .mv-total { border-top: 2px solid var(--color-primary); }
.mv-ledger .mv-total span { color: var(--color-primary); font-weight: 800; }
.mv-ledger .mv-total b { color: var(--color-accent-dark); }

.mv-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75em;
  align-items: center;
  padding: 0.45em 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.8em;
}
.mv-name { font-weight: 700; color: var(--color-charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-sub { grid-row: 2; font-size: 0.88em; font-weight: 600; color: var(--color-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Status as a coloured dot and word, not a pill, so it never looks pressable */
.mv-tag {
  grid-column: 2;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--color-gray);
  white-space: nowrap;
}
.mv-tag::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.mv-tag.is-ok { color: var(--color-accent-dark); }
.mv-tag.is-wait { color: #6244C9; }
.mv-tag.is-warn { color: var(--color-warm); }

/* Phone-sized mock (Sahə aktivləri) */
.device-phone .mv-phone {
  min-height: 380px;
  border-radius: 27px;
  padding: 1.2em 0.9em;
  background: var(--color-white);
  font-size: 0.75rem;
}
.mv-phead { font-size: 1.05em; font-weight: 800; letter-spacing: -0.01em; }
.mv-phead small { display: block; font-size: 0.72em; font-weight: 700; color: var(--color-gray); }
.mv-phone .dp-kpis { gap: 0.45em; }
.mv-phone .mv-list li { font-size: 0.86em; }
.mv-phone .mv-tag { grid-column: 1; grid-row: 3; margin-top: 0.2em; }

/* ---- demo slot: index — end ---- */

/* ·· */

/* ---- demo slot: platforma (platforma.html: rules simulator, price engine, mirror, roles) — start ---- */
/* Rules simulator (platforma.html, #nezaret). The four control rows from the
   old static card are the case picker; under them sit the operation, its
   verdict and a short audit log. A [data-verdict] on a row, the result or a
   log line picks the badge wording and the tint (amber = stopped, teal =
   allowed, the same colours as before). Without JS only the rows show. */
.rd { font-size: var(--fs-xs); line-height: 1.4; color: var(--color-primary); }
.rd-body { display: grid; gap: 0.75rem; padding: var(--space-3); }
.rd-title { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: var(--fs-small); font-weight: 800; }
.rd-hint { margin: -0.35rem 0 0; font-weight: 600; color: var(--color-gray); }
html:not(.js) .rd-hint,
html:not(.js) .rd-panel { display: none; }

.rd [data-verdict] { --rd-tint: rgba(242, 153, 74, 0.12); --rd-chip: rgba(242, 153, 74, 0.25); --rd-ink: #B9660B; }
.rd [data-verdict="allowed"] { --rd-tint: rgba(30, 158, 139, 0.12); --rd-chip: rgba(30, 158, 139, 0.2); --rd-ink: #167A6B; }
.rd-badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--rd-chip);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rd-ink);
  white-space: nowrap;
}
.rd-badge [data-v] { display: none; }
.rd [data-verdict="blocked"] [data-v="blocked"],
.rd [data-verdict="approval"] [data-v="approval"],
.rd [data-verdict="denied"] [data-v="denied"],
.rd [data-verdict="allowed"] [data-v="allowed"] { display: inline; }

.rd-cases { display: grid; gap: 0.5rem; }
.rd-case {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--rd-tint);
  text-align: left;
  color: var(--color-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rd-icon svg { display: block; width: 20px; height: 20px; color: var(--rd-ink); }
.rd-name { font-size: 0.8125rem; font-weight: 700; }
.js .rd-case:hover { border-color: var(--color-border-strong); }
.js .rd-case[aria-selected="true"] { border-color: var(--rd-ink); box-shadow: 0 0 0 1px var(--rd-ink); }
html:not(.js) .rd-case { cursor: default; pointer-events: none; }

.rd-panel { display: grid; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--color-border-strong); }
.rd-work {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-offwhite);
}
.rd-ctx { display: grid; gap: 0.4rem; }
.rd-ctx[hidden],
.rd-reason[hidden] { display: none; }
.rd-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.5rem; margin: 0; font-size: 0.8125rem; font-weight: 800; }
.rd-who small {
  order: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.rd-facts { margin: 0; }
.rd-facts div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--color-border);
}
.rd-facts dt { font-weight: 600; color: var(--color-gray); }
.rd-facts dd {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rd-facts small { font-size: inherit; font-weight: 600; color: var(--color-gray); }
.rd-input dt { font-weight: 800; color: var(--color-primary); }

/* Steppers, shared by both demos */
.rd-step,
.pe-step {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.rd-step button,
.pe-step button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-offwhite);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-dark);
  transition: background .2s ease;
}
.rd-step button:hover:not(:disabled),
.pe-step button:hover:not(:disabled) { background: var(--color-accent-soft); }
.rd-step button:disabled,
.pe-step button:disabled { opacity: 0.35; }
.rd-step output,
.pe-step output {
  min-width: 2.6em;
  padding: 0 0.3rem;
  text-align: center;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.rd-submit {
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #fff;
  transition: background .2s ease;
}
.rd-submit:hover:not(:disabled) { background: var(--color-primary-light); }
.rd-submit:disabled { opacity: 0.75; }
.rd-submit .when-busy,
.rd.is-checking .rd-submit .when-idle { display: none; }
.rd.is-checking .rd-submit .when-busy { display: inline; }

.rd-side { display: grid; align-content: start; gap: 0.6rem; }
.rd-result {
  display: flex;
  align-items: center;
  min-height: 5.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: background .3s ease;
}
.rd-idle,
.rd-checking,
.rd-verdict { display: none; margin: 0; }
.rd-result[data-state="idle"] .rd-idle { display: block; font-weight: 600; color: var(--color-gray); }
.rd-result[data-state="checking"] .rd-checking { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--color-charcoal); }
.rd-result[data-state="done"] { border-color: transparent; background: var(--rd-tint); }
.rd-result[data-state="done"] .rd-verdict { display: grid; justify-items: start; gap: 0.4rem; }
.rd-reason { margin: 0; font-weight: 600; color: var(--color-charcoal); }
.rd-reason b { color: var(--rd-ink); font-variant-numeric: tabular-nums; }
.rd-spin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-accent);
  animation: rd-spin .7s linear infinite;
}
@keyframes rd-spin { to { transform: rotate(360deg); } }

.rd-log { padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-white); }
.rd-log-title {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.rd-log ol { margin: 0; padding: 0; list-style: none; }
.rd-log li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.55rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--color-border);
}
.rd-log li:first-child { border-top: 0; }
.rd-log li.is-new { animation: demo-row-in .7s var(--ease); }
.rd-log time { grid-row: 1 / 3; font-weight: 700; color: var(--color-gray); font-variant-numeric: tabular-nums; }
.rd-log span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rd-log small { grid-column: 2; font-size: 0.6875rem; font-weight: 600; color: var(--color-gray); }
.rd-log .rd-badge { grid-column: 3; grid-row: 1 / 3; padding: 0.15rem 0.5rem; font-size: 0.6875rem; }

@container (min-width: 540px) {
  .rd-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Price engine (platforma.html, #qiymetlendirme). One tab per pricing model
   under the three cards; controls on the left, the calculation on the right
   (stacked when narrow). It needs JS to calculate, so it stays hidden without. */
.pe {
  margin-top: var(--space-5);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-offwhite);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--color-primary);
}
html:not(.js) .pe { display: none; }
.pe-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: var(--space-3);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.pe-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--color-charcoal);
  transition: background .25s ease, color .25s ease;
}
.pe-tab::before {
  content: attr(data-n);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--color-accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent-dark);
}
.pe-tab:hover { background: var(--color-offwhite); color: var(--color-primary); }
.pe-tab[aria-selected="true"] { background: var(--color-primary); color: #fff; }
.pe-tab[aria-selected="true"]::before { background: rgba(255, 255, 255, 0.16); color: #fff; }

.pe-panel { display: grid; gap: var(--space-3); }
.pe-panel[hidden] { display: none; }
.pe-controls { display: grid; align-content: start; gap: var(--space-2); }
.pe-label {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.pe-who { margin: 0; font-weight: 800; }
.pe-who small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--color-gray); }
.pe-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.pe-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pe-opt {
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  color: var(--color-primary);
  transition: border-color .2s ease, background .2s ease;
}
.pe-opt small { display: block; margin-top: 0.15rem; font-size: 0.6875rem; font-weight: 600; color: var(--color-gray); }
.pe-opt:hover { border-color: var(--color-accent); }
.pe-opt[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  color: var(--color-accent-dark);
}
.pe-field-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.pe-field-row .pe-label { margin: 0; }
.pe-action {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #fff;
  transition: background .2s ease;
}
.pe-action:hover { background: var(--color-accent-dark); }

.pe-result {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.pe-cascade { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; counter-reset: tier; }
.pe-cascade li {
  counter-increment: tier;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  transition: background .3s ease, border-color .3s ease, opacity .3s ease;
}
.pe-cascade li::before {
  content: counter(tier);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--color-offwhite);
  font-weight: 800;
  color: var(--color-gray);
}
.pe-cascade span { font-weight: 700; }
.pe-cascade b { font-weight: 800; font-variant-numeric: tabular-nums; }
.pe-cascade em { display: none; grid-column: 2 / -1; font-size: 0.6875rem; font-style: normal; font-weight: 800; color: var(--color-accent-dark); }
.pe-cascade [data-state="applied"] { border-color: var(--color-accent); background: var(--color-accent-soft); }
.pe-cascade [data-state="applied"]::before { background: var(--color-accent); color: #fff; }
.pe-cascade [data-state="applied"] em { display: block; }
.pe-cascade [data-state="skipped"] { opacity: 0.6; }
.pe-cascade [data-state="skipped"] b { text-decoration: line-through; }
.pe-cascade [data-state="empty"] { border-style: dashed; color: var(--color-gray); }
.pe-cascade [data-state="empty"] b { font-weight: 600; }

.pe-total { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.pe-total p { margin: 0; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: var(--tint-sky); }
.pe-total p + p { background: var(--tint-mint); }
.pe-total small { display: block; font-size: 0.6875rem; font-weight: 700; color: var(--color-gray); }
.pe-total b { font-size: 1.125rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pe-total .pe-alt { background: var(--color-offwhite); }
.pe-total .pe-alt b { font-size: 1rem; color: var(--color-gray); }
.pe-note { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--color-gray); }
.pe-note b { color: var(--color-primary); font-variant-numeric: tabular-nums; }

.pe-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.pe-table th { padding: 0 0.4rem 0.4rem; font-size: 0.6875rem; font-weight: 700; text-align: left; color: var(--color-gray); }
.pe-table td { padding: 0.45rem 0.4rem; border-top: 1px solid var(--color-border); font-weight: 600; transition: background .3s ease; }
.pe-table td b { display: block; font-weight: 800; }
.pe-table td small { display: block; font-size: 0.6875rem; color: var(--color-gray); }
.pe-table .is-taken td { background: var(--color-accent-soft); }
.pe-table .is-taken td b { color: var(--color-accent-dark); }
.pe-table .is-last td { background: var(--tint-sun); font-weight: 800; }
.pe-table tr.is-new { animation: demo-row-in .7s var(--ease); }

.pe-order { padding: 0.7rem 0.75rem; border-radius: var(--radius-sm); border: 1px dashed var(--color-border-strong); }
.pe-order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.pe-order-name { flex: 1 1 auto; font-weight: 800; }
.pe-order-calc { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

@container (min-width: 720px) {
  .pe-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}
@container (max-width: 420px) {
  .pe-tab { flex-direction: column; gap: 0.3rem; padding: 0.45rem 0.3rem; }
  .pe-opt { padding: 0.45rem; }
  .pe-result { padding: 0.75rem; }
  .pe-total b { font-size: 1rem; }
}
@media (max-width: 479px) {
  .pe { padding: var(--space-2); border-radius: var(--radius-md); }
  .rd-body { padding: var(--space-2); }
}
/* Mirror (platforma.html hero): the office laptop and the salesman's phone
   showing the same data, with a scene picker under them. Sized in em off the
   demo's width so the scene scales as one piece. */
.mirror { max-width: 1000px; margin: var(--space-5) auto 0; container-type: inline-size; }
.mr-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(5em, 0.6fr) 17em;
  align-items: center;
  font-size: clamp(9px, 1.3cqw, 13px);
  line-height: 1.3;
  color: var(--color-primary);
  text-align: left;
}
.mr-body { padding: 0.9em 1.1em 1.1em; }
.mr-laptop .mr-body { display: flex; flex-direction: column; gap: 0.5em; background: #FBFCFE; }
.mr-title { margin-top: 0.3em; font-size: 0.82em; font-weight: 800; }
.mr-prices,
.mr-orders { margin: 0; padding: 0.25em 0.75em; list-style: none; border-radius: 0.8em; border: 1px solid var(--color-border); background: var(--color-white); }
.mr-prices li,
.mr-orders li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 -0.4em;
  padding: 0.55em 0.4em;
  border-radius: 0.5em;
  font-size: 0.8em;
  font-weight: 700;
}
.mr-prices li + li,
.mr-orders li + li { border-top: 1px solid var(--color-border); }
.mr-prices li > span:not(.ph-thumb),
.mr-orders li > span { flex: 1; min-width: 0; }
.mr-prices b,
.mr-orders b { white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.mr-orders small { display: block; font-size: 0.85em; font-weight: 600; color: var(--color-gray); }
.mr-prices .ph-thumb { width: 2em; height: 2em; border-radius: 0.55em; }
.mr-prices [data-price] { padding: 0.1em 0.25em; border-radius: 0.3em; transition: background .3s ease; }
.is-editing .mr-laptop [data-sku="water"] [data-price] { background: var(--color-accent-soft); box-shadow: inset -2px 0 0 var(--color-accent); }
.mr-order-new { display: none !important; }
.has-order .mr-order-new { display: flex !important; background: var(--color-accent-soft); animation: demo-row-in .6s var(--ease); }
/* The wire between the two, with a packet each way */
.mr-link { position: relative; height: 4em; }
.mr-link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mr-wire { fill: none; stroke: var(--color-border-strong); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.mr-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1em;
  height: 1em;
  margin: -0.5em 0 0 -0.5em;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0.35em rgba(30, 158, 139, 0.18), 0 0 1em rgba(30, 158, 139, 0.6);
  opacity: 0;
}
.mr-dot.to-office { background: #6B5BD8; box-shadow: 0 0 0 0.35em rgba(107, 91, 216, 0.18), 0 0 1em rgba(107, 91, 216, 0.6); }
.mr-dot.to-field.is-going { animation: mr-right .9s var(--ease) forwards; }
.mr-dot.to-office.is-going { animation: mr-left .9s var(--ease) forwards; }
@keyframes mr-right {
  0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}
@keyframes mr-left {
  0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; }
}
.mr-phone.device-phone { width: 17em; max-width: none; padding: 0.45em; border-radius: 2.5em; justify-self: center; }
.mr-phone .ph-screen { aspect-ratio: 9 / 16.5; }
.mr-phone .mr-body { display: flex; flex: 1; flex-direction: column; gap: 0.6em; padding: 0 0 0.2em; }
.mr-phone .ph-head { padding-bottom: 0.2em; }
.mr-phone .mr-prices { margin: 0 0.9em; }
.mr-meta { margin: 0 0.9em; padding: 0; list-style: none; }
.mr-meta li { display: flex; justify-content: space-between; gap: 0.5em; padding: 0.5em 0.2em; font-size: 0.76em; font-weight: 700; color: var(--color-gray); }
.mr-meta li + li { border-top: 1px dashed var(--color-border); }
.mr-meta b { font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.mr-phone .ph-cta { margin-top: auto; }
.mr-offline {
  position: absolute;
  z-index: 2;
  top: 2.3em;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  background: var(--color-danger);
  font-size: 0.72em;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  transform: translate(-50%, -160%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s ease;
}
.mr-offline svg { width: 1.1em; height: 1.1em; }
.is-offline .mr-offline { transform: translate(-50%, 0); opacity: 1; }
.is-offline .mr-phone .ph-screen { background: #F7F7F9; }
.mr-queue {
  display: none;
  margin: 0 0.9em;
  padding: 0.6em 0.8em;
  border-radius: 0.8em;
  background: var(--tint-sun);
  font-size: 0.74em;
  font-weight: 700;
  color: #B7791F;
}
.is-queued .mr-queue { display: block; animation: demo-row-in .5s var(--ease); }
.is-sent .mr-queue { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.mr-queue .when-ok,
.is-sent .mr-queue .when-wait { display: none; }
.is-sent .mr-queue .when-ok { display: inline; }
/* Scene picker */
.mr-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: var(--space-4); }
.mr-scenes button {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 800;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.mr-scenes button:hover { border-color: var(--color-border-strong); background: #fff; }
.mr-scenes b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--color-offwhite);
  font-size: 0.8125rem;
  color: var(--color-gray);
}
.mr-scenes small { font-size: 0.75rem; font-weight: 600; color: var(--color-gray); }
.mr-scenes [aria-selected="true"] { border-color: var(--color-accent); background: #fff; box-shadow: var(--shadow-sm); }
.mr-scenes [aria-selected="true"] b { background: var(--color-accent); color: #fff; }
.mr-scenes i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; }
.mr-scenes .is-running i { animation: demo-progress var(--dur, 5s) linear forwards; }
.mirror:not(.is-live) .mr-scenes i { animation-play-state: paused; }
@container (max-width: 620px) {
  .mr-stage { grid-template-columns: minmax(0, 1fr); justify-items: stretch; font-size: clamp(10px, 3cqw, 13px); }
  .mr-link { height: 3.2em; width: 2em; justify-self: center; }
  .mr-link svg { display: none; }
  .mr-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--color-border-strong); }
  .mr-dot { left: 50%; }
  .mr-dot.to-field.is-going { animation-name: mr-down; }
  .mr-dot.to-office.is-going { animation-name: mr-up; }
  .mr-scenes { grid-template-columns: 1fr; }
}
@keyframes mr-down { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes mr-up { 0% { top: 100%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }

/* Four plain principles, each with a small looping picture. The pictures
   only move while the grid is on screen. */
.ways { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.way {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
}
.way h3 { font-size: 1.0625rem; line-height: 1.3; }
.way p { font-size: 0.9rem; line-height: 1.55; color: var(--color-gray); }
.way-art {
  position: relative;
  height: 7.5rem;
  margin-bottom: 0.3rem;
  border-radius: 12px;
  background: var(--tint-mint);
  overflow: hidden;
}
.ways:not(.is-live) .way-art * { animation-play-state: paused !important; }
/* 1. three screens, one figure, all changing together */
.way-same { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.wa-screen {
  display: grid;
  place-items: center;
  border: 3px solid var(--color-primary);
  border-radius: 8px;
  background: #fff;
}
.wa-screen.is-laptop { width: 5.2rem; height: 3.4rem; border-bottom-width: 7px; }
.wa-screen.is-phone { width: 2.4rem; height: 4.2rem; border-radius: 9px; }
.wa-screen.is-tablet { width: 3.6rem; height: 4.6rem; }
.wa-screen b { font-size: 0.8rem; font-weight: 800; color: var(--color-accent-dark); animation: wa-same 3s ease-in-out infinite; }
.wa-screen.is-phone b { font-size: 0.62rem; }
@keyframes wa-same { 0%, 70%, 100% { transform: none; color: var(--color-accent-dark); } 80% { transform: scale(1.25); color: var(--color-warm); } }
/* 2. one tag, every phone gets it */
.way-once { display: flex; align-items: flex-end; justify-content: center; gap: 0.7rem; padding-bottom: 1rem; background: var(--tint-lilac); }
.wa-tag {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #6244C9;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  transform: translateX(-50%);
  animation: wa-bob 4s ease-in-out infinite;
}
.wa-tag svg { width: 0.85rem; height: 0.85rem; }
@keyframes wa-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }
.wa-phone { position: relative; width: 2.3rem; height: 3.8rem; border: 3px solid var(--color-primary); border-radius: 9px; background: #fff; }
.wa-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border-radius: 50%;
  background: #6244C9;
  transform: scale(0);
  animation: wa-get 4s var(--ease) infinite;
}
.wa-phone:nth-of-type(3)::after { animation-delay: .15s; }
.wa-phone:nth-of-type(4)::after { animation-delay: .3s; }
@keyframes wa-get { 0%, 25% { transform: scale(0); } 35%, 85% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
/* 3. an order grows up to the limit and stops there */
.way-rule { background: var(--tint-peach); }
.wa-bar { position: absolute; left: 1rem; right: 3.4rem; top: 50%; height: 0.8rem; margin-top: -0.4rem; border-radius: var(--radius-pill); background: #fff; overflow: hidden; }
.wa-bar u { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--color-warm); animation: wa-fill 4s var(--ease) infinite; }
@keyframes wa-fill { 0% { width: 0; } 45%, 85% { width: 72%; } 100% { width: 0; } }
.wa-limit {
  position: absolute;
  top: 1.1rem;
  left: calc(1rem + (100% - 4.4rem) * 0.72);
  padding-left: 0.3rem;
  border-left: 2px dashed var(--color-danger);
  height: 4.4rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-danger);
}
.wa-shield {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 50%;
  background: #fff;
  color: var(--color-warm);
  animation: wa-guard 4s var(--ease) infinite;
}
.wa-shield svg { width: 1.1rem; height: 1.1rem; }
@keyframes wa-guard { 0%, 40% { transform: none; box-shadow: none; } 50%, 80% { transform: scale(1.12); box-shadow: 0 0 0 0.35rem rgba(217, 119, 43, 0.2); } 100% { transform: none; } }
/* 4. offline, then the queued change goes up on its own */
.way-offline { background: var(--tint-sky); }
.wa-cloud,
.wa-device {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-top: -1.4rem;
  border-radius: 14px;
  background: #fff;
  color: #2C4FB0;
}
.wa-cloud { left: 1rem; }
.wa-device { right: 1rem; animation: wa-signal 4s step-end infinite; }
.wa-cloud svg,
.wa-device svg { width: 1.3rem; height: 1.3rem; }
@keyframes wa-signal { 0% { color: var(--color-gray); box-shadow: inset 0 0 0 2px var(--color-danger); } 45% { color: #2C4FB0; box-shadow: none; } }
.wa-dot {
  position: absolute;
  top: 50%;
  right: 3.8rem;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  border-radius: 50%;
  background: #2C4FB0;
  animation: wa-up 4s var(--ease) infinite;
}
@keyframes wa-up { 0%, 45% { right: 3.8rem; opacity: 1; } 80% { right: calc(100% - 3.8rem); opacity: 1; } 81%, 100% { right: calc(100% - 3.8rem); opacity: 0; } }

/* Roles: size picker, the team as it looks at that size, and the role
   detail beside it */
.team-sizes {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto var(--space-4);
  padding: 0.3rem;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: var(--color-offwhite);
}
.team-sizes button {
  display: grid;
  padding: 0.55rem 1.2rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  text-align: center;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
.team-sizes b { font-size: 0.9375rem; font-weight: 800; }
.team-sizes small { font-size: 0.75rem; font-weight: 600; color: var(--color-gray); }
.team-sizes [aria-selected="true"] { background: #fff; box-shadow: var(--shadow-sm); color: var(--color-primary); }
.team-sizes [aria-selected="true"] small { color: var(--color-accent-dark); }
.team-body { display: grid; gap: var(--space-3); }
@media (min-width: 960px) { .team-body { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; } }
.team-sum { margin-bottom: 0.8rem; font-size: 0.9375rem; color: var(--color-gray); }
.team-sum b { font-size: 1.35rem; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.team-zone { padding: 0.9rem 1rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.team-zone + .team-zone { margin-top: 0.75rem; }
.team-zone.is-office { background: linear-gradient(180deg, var(--tint-sky), rgba(238, 244, 255, 0.4)); }
.team-zone.is-field { background: linear-gradient(180deg, var(--tint-mint), rgba(238, 248, 245, 0.4)); }
.team-zone-title { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; font-size: 0.8125rem; font-weight: 800; color: var(--color-primary); }
.team-zone-title svg { width: 16px; height: 16px; color: #2C4FB0; }
.is-field .team-zone-title svg { color: var(--color-accent-dark); }
.team-people { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.team-panel.is-in .person { animation: team-pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes team-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.person-avatar { flex-shrink: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #2C4FB0; color: #fff; }
.is-field .person-avatar { background: var(--color-accent); }
.person-avatar svg { width: 1rem; height: 1rem; }
.person-main { display: grid; gap: 0.25rem; }
.person-name { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-gray); }
.person-roles { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.role-chip {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.role-chip:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.role-chip[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.person em { padding: 0.15rem 0.45rem; border-radius: var(--radius-pill); background: var(--color-offwhite); font-size: 0.75rem; font-style: normal; font-weight: 800; color: var(--color-charcoal); font-variant-numeric: tabular-nums; }
.team-detail {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (min-width: 960px) { .team-detail { position: sticky; top: calc(var(--header-height) + var(--space-3)); } }

.team-detail.is-in { animation: team-pop .4s var(--ease); }
.td-avatar { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #2C4FB0; color: #fff; }
.team-detail[data-zone="field"] .td-avatar { background: var(--color-accent); }
.td-avatar svg { width: 1.4rem; height: 1.4rem; }
.td-place { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #2C4FB0; }
.team-detail[data-zone="field"] .td-place { color: var(--color-accent-dark); }
.td-name { font-size: 1.25rem; }
.td-does { font-size: 0.9375rem; line-height: 1.55; color: var(--color-charcoal); }
.td-note { display: flex; gap: 0.45rem; margin-top: 0.4rem; padding-top: 0.7rem; border-top: 1px solid var(--color-border); font-size: 0.8125rem; color: var(--color-gray); }
.td-note svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--color-accent); }
/* Narrow: the detail sits above the team so a tap shows its result in view;
   it stays short there */
@media (max-width: 959px) {
  .team-detail { order: -1; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.75rem; padding: 1rem; }
  .td-avatar { grid-row: span 2; width: 2.6rem; height: 2.6rem; }
  .td-does { grid-column: 1 / -1; }
  .td-note { display: none; }
}
/* ---- demo slot: platforma — end ---- */

/* ·· */

/* ---- demo slot: tayqasale (tayqasale.html: role switcher) — start ---- */
/* Role switcher: the role pills are tabs and the phone beside them shows that
   role's home screen. Tiles open or lock by the role, "today" items swap. */
.sr .section-head { margin-bottom: var(--space-3); }
.sr-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.sr-tabs button {
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent-dark);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sr-tabs button:hover { border-color: var(--color-accent); }
.sr-tabs button[aria-selected="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
html:not(.js) .sr-tabs button { pointer-events: none; }

.sr-visual { display: flex; flex-direction: column; align-items: center; margin-top: var(--space-5); }
@media (min-width: 900px) {
  .sr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--space-6); align-items: center; }
  .sr-visual { margin-top: 0; }
}

.sr-phone.device-phone {
  width: 100%;
  max-width: 320px;
  padding: 0.5em;
  border-radius: 2.6em;
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-primary);
}
.sr-phone .ph-screen { aspect-ratio: auto; min-height: 45em; padding-bottom: 1.8em; border-radius: 2.15em; }
.sr-phone .ph-screen::after { /* home indicator */
  content: "";
  position: absolute;
  bottom: 0.6em;
  left: 50%;
  width: 7em;
  height: 0.3em;
  margin-left: -3.5em;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
}
.sr-phone [hidden] { display: none !important; }
.sr-head { position: relative; padding-right: 4em; }
.sr-head p { margin: 0; }
.sr-bell {
  position: absolute;
  top: 0.45em;
  right: 1.1em;
  width: 2.3em;
  height: 2.3em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-offwhite);
  color: var(--color-charcoal);
}
.sr-bell svg { width: 1.1em; height: 1.1em; }
.sr-bell::after { content: ""; position: absolute; top: 0.45em; right: 0.5em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--color-warm); }
.sr-label { padding-top: 0.7em; }
.sr-label b { color: var(--color-accent-dark); font-variant-numeric: tabular-nums; }

/* Module tiles */
.sr-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35em 0.25em;
  margin: 0;
  padding: 0 0.7em;
  list-style: none;
}
.sr-tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  padding: 0.45em 0.1em 0.4em;
  border: 0;
  border-radius: 0.9em;
  background: transparent;
  color: var(--color-primary);
  transition: background .2s ease;
}
.sr-tile:hover { background: var(--color-offwhite); }
.sr-tile[aria-pressed="true"] { background: var(--color-accent-soft); }
.sr-tile-ic {
  position: relative;
  width: 3em;
  height: 3em;
  display: grid;
  place-items: center;
  border-radius: 0.95em;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
  transition: background .3s ease, color .3s ease;
}
.sr-tile-ic svg { width: 1.4em; height: 1.4em; }
.sr-tile[data-module="wpm"] .sr-tile-ic,
.sr-tile[data-module="wmm"] .sr-tile-ic { background: var(--tint-sky); color: #3157B8; }
.sr-tile[data-module="gps"] .sr-tile-ic,
.sr-tile[data-module="dtm"] .sr-tile-ic { background: var(--tint-lilac); color: #6244C9; }
.sr-tile[data-module="chl"] .sr-tile-ic { background: var(--tint-sun); color: #B07A06; }
.sr-tile[data-module="inv"] .sr-tile-ic { background: var(--tint-peach); color: var(--color-warm); }
.sr-tile-ic .sr-lock {
  position: absolute;
  right: -0.35em;
  bottom: -0.35em;
  width: 1.45em;
  height: 1.45em;
  padding: 0.25em;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.sr-tile-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.72em;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sr-tile.is-locked .sr-tile-ic { background: var(--color-offwhite); color: var(--color-gray); }
.sr-tile.is-locked .sr-tile-ic > svg:first-child { opacity: .4; }
.sr-tile.is-locked .sr-lock { opacity: 1; transform: none; }
.sr-tile.is-locked .sr-tile-name { color: var(--color-gray); font-weight: 600; }
.sr-tile.is-swap .sr-tile-ic { animation: sr-swap .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes sr-swap {
  0% { transform: scale(.7); opacity: .3; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: none; }
}

/* One-line description of the tapped tile */
.sr-desc {
  min-height: 3.4em;
  margin: 0.55em 0.9em 0;
  padding: 0.55em 0.75em;
  border-radius: 0.8em;
  background: var(--color-offwhite);
  font-size: 0.76em;
  line-height: 1.35;
  color: var(--color-charcoal);
}
.sr-desc p { margin: 0; }
.sr-desc [data-desc="none"] { color: var(--color-gray); }
.sr-desc .sr-desc-lock { margin-top: 0.25em; font-weight: 700; color: var(--color-warm); }
html:not(.js) .sr-desc { display: none; }

/* Today */
.sr-today { display: flex; flex-direction: column; gap: 0.45em; margin: 0; padding: 0 0.9em; list-style: none; }
.sr-today li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.6em 0.7em;
  border: 1px solid var(--color-border);
  border-radius: 0.9em;
  background: var(--color-white);
}
.sr-today li > div { flex: 1; min-width: 0; }
.sr-today li.is-enter { animation: sr-row-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes sr-row-in {
  from { opacity: 0; transform: translateY(0.6em); }
  to { opacity: 1; transform: none; }
}
.sr-head p.is-enter { animation: sr-row-in .4s var(--ease) both; }
.sr-ic {
  width: 2.3em;
  height: 2.3em;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.7em;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
}
.sr-ic svg { width: 1.15em; height: 1.15em; }
.sr-ic.is-warn { background: var(--tint-peach); color: var(--color-warm); }
.sr-t { margin: 0; font-size: 0.8em; font-weight: 800; line-height: 1.25; }
.sr-m { margin: 0; font-size: 0.7em; font-weight: 600; line-height: 1.3; color: var(--color-gray); }
.sr-bar { display: block; height: 0.35em; margin-top: 0.4em; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-offwhite); }
.sr-bar i { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: var(--color-accent); }
html:not(.js) .sr-bar { display: none; }
.sr .sr-act {
  flex-shrink: 0;
  min-height: 30px;
  padding: 0 0.95em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  font-size: 0.72em;
  font-weight: 800;
  color: #fff;
  transition: background .2s ease;
}
.sr .sr-act:hover,
.sr .sr-act.is-done { background: var(--color-accent-dark); }
.sr-act .when-done,
.sr-act.is-done .when-idle { display: none; }
.sr-act.is-done .when-done { display: inline; }
html:not(.js) .sr-act { display: none; }
.sr .demo-caption { margin-top: var(--space-3); }

/* Suggested order (SLS · smart suggestions): add a suggestion, it drops into
   the order below with a running total */
.sg { padding: var(--space-3); color: var(--color-primary); }
.sg [hidden] { display: none !important; }
.sg-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem var(--space-1);
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 800;
}
.sg-title small { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--color-gray); }
.sg-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.sg-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-offwhite);
  transition: background .25s ease;
}
.sg-list li.is-added { background: var(--tint-mint); }
.sg-ic {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}
.sg-ic svg { width: 16px; height: 16px; }
.sg-text { flex: 1; min-width: 0; }
.sg-name { margin: 0; font-size: var(--fs-small); font-weight: 700; line-height: 1.3; }
.sg-why { margin: 0; font-size: var(--fs-xs); line-height: 1.35; color: var(--color-gray); }
.sg-qty {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(30, 158, 139, 0.15);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-accent-dark);
}
.sg-list .is-dropped { background: var(--tint-peach); }
.sg-list .is-dropped .sg-ic { background: rgba(217, 119, 43, 0.14); color: var(--color-warm); }
.sg-list .is-dropped .sg-qty { background: rgba(217, 119, 43, 0.18); color: #B9660B; }
.sg-add {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent-dark);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.sg-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sg-add:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.sg-add .sg-check,
.sg-add[aria-pressed="true"] .sg-plus { display: none; }
.sg-add[aria-pressed="true"] .sg-check { display: block; }
.sg-add[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.sg-order { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px dashed var(--color-border-strong); }
.sg-order-head {
  margin: 0 0 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.sg-lines { margin: 0; padding: 0; list-style: none; }
.sg-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}
.sg-lines span { overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sg-lines small { font-size: var(--fs-xs); font-weight: 600; color: var(--color-gray); }
.sg-lines b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sg-lines li.is-new { animation: sr-row-in .45s var(--ease); }
.sg-empty { margin: 0; font-size: var(--fs-xs); color: var(--color-gray); }
.sg-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.6rem 0 0;
  border-radius: 6px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-gray);
}
.sg-total b { font-size: 1.2rem; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.sg .ph-cta.sg-send { width: 100%; height: 44px; margin: 0.75rem 0 0; border-radius: var(--radius-sm); font-size: var(--fs-small); }
html:not(.js) .sg-add,
html:not(.js) .sg-order { display: none; }
@media (max-width: 479px) {
  .sg { padding: var(--space-2); }
  .sg-list li { gap: 0.5rem; padding-left: 0.6rem; }
  .sg-ic { display: none; }
}
/* ---- demo slot: tayqasale — end ---- */

/* ·· */

/* ---- demo slot: hesabatlar (hesabatlar.html: report viewer) — start ---- */
/* Report viewer: five sample reports behind one strip of tabs. Sales and debt
   aging are working charts; the bars are sized by --w / --h, which main.js
   sets per dataset. The defaults below match the figures written in the HTML,
   so without JS the panels simply stack and every chart still reads right. */
.rv-tabs-scroll {
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
}
.rv-tabs { display: flex; width: max-content; margin: 0 auto; }
.rv-tabs .demo-tab { white-space: nowrap; min-height: 36px; }
html:not(.js) .rv-tabs-scroll { display: none; }

.rv-panel {
  margin-top: var(--space-2);
  padding: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.rv-panel[hidden] { display: none; }
.rv-panel:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
html:not(.js) .rv-panel + .rv-panel { margin-top: var(--space-4); }
.rv-panel h3 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem); letter-spacing: -0.025em; margin: var(--space-2) 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv-panel:not([hidden]) { animation: rv-panel-in .45s var(--ease); }
}
@keyframes rv-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* The app window around each chart */
.rv-app { container-type: inline-size; box-shadow: var(--shadow-md); }
.rv-app-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(0.75rem, 3cqw, 1.25rem);
  background: #FBFCFE;
  color: var(--color-primary);
  font-size: var(--fs-small);
  line-height: 1.35;
}
.rv-app b { font-weight: 800; font-variant-numeric: tabular-nums; }
.rv-subtitle { margin: 0; font-size: var(--fs-xs); font-weight: 800; color: var(--color-primary); }
.rv-hint { margin: 0.6rem 0 0; font-size: var(--fs-xs); color: var(--color-gray); }
html:not(.js) .rv-hint,
html:not(.js) .rv-chips { display: none; }

.rv-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rv-chip {
  min-height: 32px;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-charcoal);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rv-chip:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.rv-chip[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent-dark); }

/* Product sales: revenue cards, then the category ranking */
.sa-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.sa-kpi {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 30, 60, 0.06);
  background: var(--tint-sky);
}
.sa-kpi[data-kpi="discount"] { background: var(--tint-sun); }
.sa-kpi[data-kpi="returns"] { background: var(--tint-peach); }
.sa-kpi[data-kpi="net"] { background: var(--tint-mint); }
.sa-kpi dt { font-size: 0.75rem; font-weight: 700; color: var(--color-gray); }
.sa-kpi dd { margin: 0.1rem 0 0; }
.sa-kpi dd b { font-size: clamp(0.8125rem, 4.2cqw, 1rem); white-space: nowrap; }
.sa-kpi dd span,
.sa-val span { font-size: 0.75em; font-weight: 600; color: var(--color-gray); }
@container (min-width: 560px) {
  .sa-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 400px) {
  .sa-row { font-size: 0.8125rem; column-gap: 0.4rem; }
}

.sa-bars { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.sa-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto 2.6rem;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.3rem;
  transform: translateY(var(--dy, 0px));
  transition: transform .5s var(--ease);
}
.sa-row.is-flip { transition: none; }
.sa-rank {
  grid-row: 1 / 3;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 800;
}
.sa-row:first-child .sa-rank { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.sa-name { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.sa-val { white-space: nowrap; }
.sa-share { text-align: right; color: var(--color-gray); font-variant-numeric: tabular-nums; }
.sa-share b { font-weight: 700; }
.sa-track { grid-column: 2 / -1; height: 8px; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }
.sa-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--color-accent); transition: width .6s var(--ease); }
.sa-row:first-child .sa-fill { background: var(--color-accent-dark); }
.sa-row[data-cat="drinks"] { --w: 100%; }
.sa-row[data-cat="sweets"] { --w: 67.79%; }
.sa-row[data-cat="grocery"] { --w: 59.94%; }
.sa-row[data-cat="dairy"] { --w: 58.28%; }
.sa-row[data-cat="home"] { --w: 29.94%; }

/* Debt aging: total, healthy / risky split, one column per bucket */
.ag-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin: 0; }
.ag-total > span { font-size: var(--fs-xs); font-weight: 700; color: var(--color-gray); }
.ag-total b { font-size: 1.375rem; letter-spacing: -0.01em; }
.ag-total b span:last-child { font-size: 0.6em; font-weight: 600; color: var(--color-gray); }
.ag-split { --healthy: 73%; }
.ag-split-bar { height: 8px; border-radius: var(--radius-pill); background: var(--color-warm); overflow: hidden; }
.ag-split-bar i { display: block; height: 100%; width: var(--healthy); background: var(--color-accent); transition: width .6s var(--ease); }
.ag-split-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin: 0.4rem 0 0; font-size: var(--fs-xs); color: var(--color-charcoal); }
.ag-key { display: inline-flex; align-items: center; gap: 0.35rem; }
.ag-key::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.ag-key.is-risky::before { background: var(--color-warm); }

.ag-chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.ag-chart li { min-width: 0; display: flex; }
.ag-col {
  --c: var(--color-accent);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-primary);
  text-align: center;
  transition: background .2s ease, border-color .2s ease;
}
.ag-col[data-bucket="0"] { --h: 100%; }
.ag-col[data-bucket="1"] { --h: 62.22%; --c: #6CC3B3; }
.ag-col[data-bucket="2"] { --h: 37.78%; --c: var(--color-warm); }
.ag-col[data-bucket="3"] { --h: 22.22%; --c: var(--color-danger); }
.ag-col:hover { background: var(--color-white); border-color: var(--color-border); }
.ag-col[aria-pressed="true"] { background: var(--color-white); border-color: var(--color-border-strong); box-shadow: var(--shadow-xs); }
/* Visual order: amount over the column, bucket name and share under it */
.ag-amt { order: 1; font-size: 0.75rem; white-space: nowrap; letter-spacing: -0.01em; }
.ag-amt span { font-weight: 600; color: var(--color-gray); }
.ag-track { order: 2; height: 8.5rem; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--color-border-strong); }
.ag-fill {
  width: 100%;
  max-width: 3.25rem;
  height: var(--h);
  min-height: 3px;
  border-radius: 6px 6px 0 0;
  background: var(--c);
  transition: height .6s var(--ease), filter .2s ease;
}
.ag-col:hover .ag-fill,
.ag-col:focus-visible .ag-fill { filter: brightness(1.08) saturate(1.1); }
.ag-col[aria-pressed="true"] .ag-fill { box-shadow: inset 0 0 0 2px rgba(15, 30, 60, 0.18); }
.ag-name { order: 3; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ag-share { order: 4; font-size: 0.75rem; color: var(--color-gray); }
.ag-share b { font-weight: 700; }
/* Phones: four columns share ~260px, so the unit leaves the column (the
   total above and the table below still say AZN) and the figures shrink */
@container (max-width: 400px) {
  .ag-chart { gap: 0.2rem; }
  .ag-col { padding: 0.4rem 0.1rem; }
  .ag-amt { font-size: 0.625rem; }
  .ag-amt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ag-name, .ag-share { font-size: 0.6875rem; }
  .ag-track { height: 7rem; }
}

.ag-detail { border-radius: var(--radius-sm); }
.ag-bucket::before { content: "·"; margin: 0 0.4em; color: var(--color-gray); }
.rv-table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; font-size: var(--fs-xs); }
.rv-table th {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--color-border-strong);
  text-align: left;
  font-weight: 700;
  color: var(--color-gray);
}
.rv-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--color-border); font-variant-numeric: tabular-nums; }
.rv-table th:last-child,
.rv-table td:last-child { text-align: right; }
.rv-table td:first-child { font-weight: 700; }
.rv-table tbody tr:last-child td { border-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Bars grow in the first time a chart comes into view */
  .js .sa-bars:not(.is-in) .sa-fill { width: 0; }
  .js .ag-chart:not(.is-in) .ag-fill { height: 0; }
  .js .ag-chart:not(.is-in) .ag-fill { min-height: 0; }
}
/* ---- demo slot: hesabatlar — end ---- */

/* ·· */

/* ---- demo slot: trust-pricing (platforma.html: permission matrix · qiymet.html: package finder) — start ---- */
/* Permission matrix (platforma.html, moved from etibarliliq.html): the role table is markup with buttons
   in the row headers and cells; the detail under it (role sentence, data scope,
   audit log) only exists with JS. Without JS it reads as the old static card. */
.tm { padding: var(--space-3); }
.tm-title {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-primary);
}
.tm-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tm-table th,
.tm-table td { padding: 0.25rem 0.1rem; border-bottom: 1px solid #F0F1F3; text-align: center; }
.tm-table thead th {
  padding: 0.65rem 0.1rem;
  border-bottom-color: var(--color-border);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-gray);
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: color .2s ease;
}
.tm-table th:first-child { width: 36%; text-align: left; }
.tm-table tbody tr:last-child > * { border-bottom: 0; }
.tm-table tbody tr { transition: background .2s ease; }
.tm-table tbody tr.is-on { background: var(--tint-mint); }
.tm[data-act="view"] thead th[data-act="view"],
.tm[data-act="create"] thead th[data-act="create"],
.tm[data-act="approve"] thead th[data-act="approve"],
.tm[data-act="delete"] thead th[data-act="delete"] { color: var(--color-accent-dark); }

.tm-role {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--fs-small);
  line-height: 1.3;
  text-align: left;
  color: var(--color-charcoal);
  transition: background .2s ease, color .2s ease;
}
.tm-role:hover { background: var(--color-offwhite); color: var(--color-primary); }
.tm-role[aria-pressed="true"] { font-weight: 700; color: var(--color-primary); }
.tm-role[aria-pressed="true"]:hover { background: transparent; }

.tm-cell {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}
.tm-cell:hover { border-color: var(--color-border-strong); background: var(--color-white); }
.tm-cell[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-white); box-shadow: var(--shadow-sm); }
.tm-cell:not([data-allow])[aria-pressed="true"] { border-color: #F59E0B; }
.tm-yes {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(30, 158, 139, 0.18);
}
.tm-yes::after { /* the tick */
  content: "";
  position: absolute;
  left: 5.5px;
  top: 3px;
  width: 4px;
  height: 7.5px;
  border: solid #167A6B;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.tm-no { font-weight: 700; color: #B9C2D4; }
html:not(.js) .tm button { cursor: default; pointer-events: none; }

.tm-detail { display: grid; gap: 0.75rem; margin-top: var(--space-2); }
html:not(.js) .tm-detail { display: none; }
.tm-says p {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-offwhite);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-charcoal);
}
.tm-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.tm-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.tm-switch { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; background: var(--color-offwhite); }
.tm-switch .demo-tab { min-height: 30px; padding: 0.35rem 0.8rem; }
.tm-switch .demo-tab:hover { background: var(--color-white); }
.tm-switch .demo-tab[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.tm-count { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--color-gray); }
.tm-count b { color: var(--color-primary); font-variant-numeric: tabular-nums; }
.tm-customers { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.4rem; }
.tm-customers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-primary);
  animation: feed-in .4s var(--ease);
}
.tm-customers li[hidden] { display: none; }
.tm-customers small { font-weight: 600; color: var(--color-gray); }
.tm-log { margin-top: 0; }
.tm-log li { flex-wrap: wrap; }
.tm-log [data-who] { color: var(--color-gray); }
.tm-hint { font-size: var(--fs-xs); color: var(--color-gray); }
.tm-foot { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--color-gray); }
@container (max-width: 400px) {
  .tm-table thead th { font-size: 0.5625rem; letter-spacing: 0; }
  .tm-table th:first-child { width: 34%; }
  .tm-role { padding-inline: 0.35rem; font-size: var(--fs-xs); }
  .tm-count { margin-left: 0; }
}
@media (max-width: 479px) { .tm { padding: var(--space-2); } }

/* Package finder (qiymet.html): chip questions above the plan cards. The card
   it picks gets a ring and a "Sizə uyğun" badge (both hidden until then). */
.pf {
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
html:not(.js) .pf { display: none; }
.pf-title { margin-bottom: var(--space-2); font-size: var(--fs-body); font-weight: 800; color: var(--color-primary); }
.pf-questions { display: grid; gap: var(--space-2) var(--space-3); }
@container (min-width: 760px) { .pf-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-ask { margin-bottom: 0.5rem; font-size: var(--fs-xs); font-weight: 700; color: var(--color-charcoal); }
.pf-chips,
.cmp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pf-chips button,
.cmp-pick button {
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-charcoal);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pf-chips button:hover,
.cmp-pick button:hover { border-color: var(--color-border-strong); background: var(--color-offwhite); color: var(--color-primary); }
.pf-chips button[aria-pressed="true"],
.cmp-pick button[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.pf-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-small);
  color: var(--color-charcoal);
}
.pf-result b { color: var(--color-accent-dark); }
.pf-show { min-height: 30px; padding: 0.3rem 0; border: 0; background: none; }
.pf-show[hidden] { display: none; }
@media (min-width: 1150px) { .pf-show { display: none; } }
.pf-note { margin-top: 0.4rem; font-size: var(--fs-xs); color: var(--color-gray); }

.plan-match { display: none; }
.plan-card.is-match { /* an outline, so the flash (a box-shadow) plays over it */
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.plan-card.is-match .plan-match {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  display: inline-flex;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: var(--shadow-accent);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: pf-badge .45s var(--ease);
}
@keyframes pf-badge { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Comparison filter (qiymet.html): "only differences" switch and a column
   picker above the table; the table reads both off .cmp's class and data-pick. */
.cmp-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem var(--space-3);
  margin-bottom: var(--space-2);
}
html:not(.js) .cmp-tools { display: none; }
.cmp-diff-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; }
.cmp-diff {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  padding: 0.35rem 0.95rem 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-charcoal);
  transition: border-color .2s ease, color .2s ease;
}
.cmp-diff:hover { border-color: var(--color-border-strong); color: var(--color-primary); }
.cmp-switch {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  transition: background .2s ease;
}
.cmp-switch::after { /* the knob */
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease);
}
.cmp-diff[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent-dark); }
.cmp-diff[aria-pressed="true"] .cmp-switch { background: var(--color-accent); }
.cmp-diff[aria-pressed="true"] .cmp-switch::after { transform: translateX(14px); }
.cmp-diff-note { font-size: var(--fs-xs); font-weight: 600; color: var(--color-gray); }
.cmp-diff-note b { color: var(--color-primary); font-variant-numeric: tabular-nums; }
.cmp-pick-label { font-size: var(--fs-xs); font-weight: 700; color: var(--color-gray); }
.cmp-pick button { min-height: 32px; padding: 0.3rem 0.75rem; }

.cmp.is-diff .cmp-table tr.is-same,
.cmp.is-diff .cmp-group.is-all-same { display: none; }
.cmp[data-pick="1"] .cmp-table td:nth-of-type(1),
.cmp[data-pick="2"] .cmp-table td:nth-of-type(2),
.cmp[data-pick="3"] .cmp-table td:nth-of-type(3),
.cmp[data-pick="4"] .cmp-table td:nth-of-type(4) { background: rgba(49, 87, 184, 0.08); }
.cmp[data-pick="1"] .cmp-head span:nth-child(2),
.cmp[data-pick="2"] .cmp-head span:nth-child(3),
.cmp[data-pick="3"] .cmp-head span:nth-child(4),
.cmp[data-pick="4"] .cmp-head span:nth-child(5) { color: #3157B8; text-decoration: underline 2px; text-underline-offset: 0.35em; }
.cmp[data-pick="1"] .cmp-count:nth-of-type(2),
.cmp[data-pick="2"] .cmp-count:nth-of-type(3),
.cmp[data-pick="3"] .cmp-count:nth-of-type(4),
.cmp[data-pick="4"] .cmp-count:nth-of-type(5) { background: #3157B8; color: #fff; }
@media (max-width: 639px) {
  .cmp-tools { gap: 0.6rem; }
  .cmp-pick-label { flex-basis: 100%; }
}
/* ---- demo slot: trust-pricing — end ---- */

/* ·· */

/* ---- demo slot: modules-contact (digitayqa.html: module explorer · elaqe.html: path chooser · musteriler.html: sector filter) — start ---- */
/* Chips shared by the team-size row (elaqe.html) and the sector filter
   (musteriler.html): one choice at a time, aria-pressed marks it */
.mc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-charcoal);
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.mc-chip:hover { border-color: var(--color-accent); color: var(--color-primary); }
.mc-chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.mc-chip[hidden] { display: none; }

/* Module explorer (digitayqa.html): tab list on the left, one module on the
   right. Everything is scoped to .js, so without JS the modules keep their
   long zigzag list and the tab list stays hidden. */
html:not(.js) .mx-tabs { display: none; }
.js .mx { display: grid; gap: var(--space-3); }
.js .mx > * { min-width: 0; }
.mx-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.mx-tabs::-webkit-scrollbar { display: none; }
.mx-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-charcoal);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.mx-tab-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tint-mint);
  color: var(--color-accent-dark);
  transition: background .2s ease, color .2s ease;
}
.mx-tab-icon svg { width: 16px; height: 16px; }
.mx-tab:hover { background: var(--color-offwhite); color: var(--color-primary); }
.mx-tab[aria-selected="true"] { background: var(--color-primary); color: #fff; }
.mx-tab[aria-selected="true"] .mx-tab-icon { background: rgba(255, 255, 255, 0.12); color: #5BD0B8; }

/* The panel: the original module block, framed as one card, same layout for
   every module (the zigzag only made sense in the long list) */
.js .mx .module-block {
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-white), var(--color-offwhite));
}
.js .mx .module-block:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.js .mx .module-grid { gap: var(--space-4); }
.js .mx .module-block h3 { margin-top: var(--space-1); }
/* The panel has its own entrance; the page-wide scroll reveal would only hide
   panels that open after the section has scrolled past */
.js .mx .module-grid.reveal { opacity: 1; transform: none; transition: none; }
.mx .module-block.mx-enter { animation: mx-in .4s var(--ease); }
@keyframes mx-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  .js .mx { grid-template-columns: 16.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
  .mx-tabs {
    position: sticky;
    top: calc(var(--header-height) + var(--space-2));
    flex-direction: column;
    overflow: visible;
  }
  .mx-tab { white-space: normal; padding-right: 0.6rem; }
  .js .mx .module-block { padding: var(--space-5) var(--space-4); }
  .js .mx .module-block > .module-grid,
  .js .mx .module-block:nth-of-type(even) > .module-grid { grid-template-columns: minmax(0, 1fr); }
  .js .mx .module-block:nth-of-type(even) > .module-grid > :first-child { order: 0; }
}
/* Wide enough for the text and the visual side by side inside the panel */
@media (min-width: 1200px) {
  .js .mx .module-block > .module-grid,
  .js .mx .module-block:nth-of-type(even) > .module-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
}
@media (max-width: 639px) {
  .js .mx .module-block { padding: var(--space-3) var(--space-2); border-radius: var(--radius-lg); }
  .mx-tab { font-size: var(--fs-xs); min-height: 40px; }
  .mx-tab-icon { width: 28px; height: 28px; }
}

/* Path chooser (elaqe.html): each engagement card is one big toggle. The
   button sits in the heading and stretches over the card; the card's own
   links stay on top of it. Without JS the button stays disabled and reads
   as the plain heading it replaced. */
.path-pick {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
}
.path-pick:disabled { cursor: default; }
.js .paths .engagement-card { position: relative; }
.js .paths .path-pick::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
}
.js .paths .engagement-actions { position: relative; z-index: 2; }
.js .paths .path-pick:focus-visible { outline: none; }
.js .paths .path-pick:focus-visible::after { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* A round check in the corner: empty until the card is chosen */
.js .paths .engagement-card::after {
  content: "";
  position: absolute;
  top: calc(var(--space-3) + 0.5rem);
  right: calc(var(--space-3) + 0.5rem);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  background: var(--color-white) no-repeat center / 14px;
  box-shadow: var(--shadow-xs);
  transform: scale(.9);
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease);
}
.js .paths .engagement-card:hover::after { border-color: var(--color-accent); }
.js .paths .engagement-card.is-picked {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-md);
}
.js .paths .engagement-card.is-picked::after {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  transform: none;
}

/* Team size and the message preview, between the cards and the channels */
.path-compose[hidden] { display: none; }
.path-compose {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-offwhite);
}
@media (min-width: 768px) {
  .path-compose { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: var(--space-4); }
}
.path-size-label,
.path-preview-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gray);
}
.path-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.path-preview-label .pulse { width: 8px; height: 8px; }
.path-bubble {
  position: relative;
  max-width: 34rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  background: #E7F8EE;
  border: 1px solid #CDEFD9;
  font-size: var(--fs-small);
  color: var(--color-primary);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.path-preview-note { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--color-gray); }

/* Sector filter (musteriler.html): hidden until every logo tile has a sector */
.sector-bar[hidden] { display: none; }
.sector-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.sector-chips {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px; /* room for the focus ring inside the scroller */
}
.sector-chips::-webkit-scrollbar { display: none; }
.sector-chips .mc-chip { flex-shrink: 0; }
@media (min-width: 768px) { .sector-chips { flex-wrap: wrap; overflow: visible; } }
.sector-count { font-size: var(--fs-small); color: var(--color-gray); font-weight: 600; }
.sector-count b { color: var(--color-primary); font-variant-numeric: tabular-nums; }
[data-demo="clients-sectors"] .logo-tile.is-out { display: none; }
[data-demo="clients-sectors"] .logo-grid.is-filtering > .logo-tile {
  transition: transform .45s var(--ease), opacity .35s ease, box-shadow .3s ease;
  transition-delay: 0s;
}
[data-demo="clients-sectors"] .logo-grid.is-filtering > .logo-tile.is-moving { transform: translate(var(--dx, 0), var(--dy, 0)); transition: none; }
[data-demo="clients-sectors"] .logo-grid.is-filtering > .logo-tile.is-entering { opacity: 0; transform: scale(.92); transition: none; }
[data-demo="clients-sectors"] .logo-grid.is-measuring > .logo-tile { transform: none; transition: none; }
/* ---- demo slot: modules-contact — end ---- */

/* ·· */

/* ==========================================================================
   Company facts (haqqimizda.html), the privacy notice (mexfilik.html) and the
   integration proof line (platforma.html)
   ========================================================================== */
.company-card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .company-card { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.company-intro h2 { margin: var(--space-1) 0; }
.company-intro p:last-child { color: var(--color-charcoal); }
.company-facts { display: grid; gap: var(--space-2); margin: 0; }
.company-facts div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.company-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.company-facts dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-gray); }
.company-facts dd { margin: 0; font-weight: 600; }
.company-facts a { color: var(--color-accent-dark); }
.company-facts a:hover { text-decoration: underline; }
@media (max-width: 479px) { .company-facts div { grid-template-columns: 1fr; gap: 0.15rem; } }

.legal-text { max-width: 760px; }
.legal-text h2 { font-size: var(--fs-h3); margin: var(--space-4) 0 var(--space-1); }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { color: var(--color-charcoal); }
.legal-text a { color: var(--color-accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.integration-proof { margin-top: 0.6rem; font-size: var(--fs-xs); font-weight: 700; color: var(--color-accent-dark); }

/* ==========================================================================
   Team-size plan finder (qiymet.html) — user counts in, which plans fit out
   ========================================================================== */
.pc[hidden] { display: none; }
.pc-grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 960px) { .pc-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.pc-inputs, .pc-results {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.pc-inputs { display: grid; gap: var(--space-3); }
.pc-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem var(--space-2); align-items: center; }
.pc-label { font-weight: 700; color: var(--color-primary); }
.pc-hint { grid-column: 1; margin: 0; font-size: var(--fs-xs); color: var(--color-gray); }
.pc-step { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius-pill); background: var(--color-offwhite); }
.pc-step button {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--color-white); box-shadow: var(--shadow-xs);
  font-size: 1.1rem; font-weight: 800; color: var(--color-accent-dark); cursor: pointer;
}
.pc-step button:hover { background: var(--color-accent-soft); }
.pc-step button:focus-visible, .pc-step input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pc-step input {
  width: 3.2rem; border: 0; background: transparent; text-align: center;
  font: inherit; font-size: 1.05rem; font-weight: 800; color: var(--color-primary);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.pc-step input::-webkit-outer-spin-button, .pc-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pc-plans { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 0.5rem; }
.pc-plan {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.25rem 0.75rem;
  padding: 0.8rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-white); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.pc-plan:hover:not(:disabled) { border-color: var(--color-border-strong); }
.pc-plan:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pc-plan[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-accent-soft); box-shadow: 0 0 0 1px var(--color-accent); }
.pc-plan:disabled { cursor: default; background: var(--color-offwhite); }
.pc-name { font-weight: 800; color: var(--color-primary); }
.pc-badge { justify-self: start; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); background: var(--color-accent); color: #fff; font-size: 0.6875rem; font-weight: 800; visibility: hidden; }
.is-best .pc-badge { visibility: visible; }
.pc-fit { justify-self: end; font-size: var(--fs-xs); font-weight: 700; color: var(--color-accent-dark); }
.is-off .pc-fit { display: none; }
.pc-why { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--color-warm); }
.pc-why[hidden] { display: none; }

.pc-total-users { margin: 0; font-size: var(--fs-small); color: var(--color-charcoal); }
.pc-total-users b { color: var(--color-primary); font-variant-numeric: tabular-nums; }
.pc-enterprise { display: none; margin: var(--space-1) 0 0; font-weight: 600; color: var(--color-charcoal); }
.is-custom .pc-enterprise { display: block; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.pc-note { margin: var(--space-2) 0 0; font-size: var(--fs-xs); color: var(--color-gray); }
