/* ==========================================================================
   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.
   ========================================================================== */
: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-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-charcoal);
  white-space: nowrap;
}
.nav-portal:hover { color: var(--color-accent-dark); }
.nav-portal svg { width: 16px; height: 16px; }
.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); }
  .nav-portal { justify-content: center; padding: 0.75rem; }
  .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; }

.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: 46px;
  max-width: 140px;
  object-fit: contain;
  mix-blend-mode: multiply; /* drops the white boxes some logo PNGs carry */
}
.marquee-group img.logo-med { max-height: 40px; }
.marquee-group img.logo-wide { max-height: 30px; }
.marquee-group img.logo-xwide { max-height: 24px; }
@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); }

.problem-layout {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .problem-layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-6); align-items: start; }
  .problem-aside { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
}
.problem-aside .section-head { margin-bottom: var(--space-4); }

.problem-list {
  display: grid;
  gap: 0.75rem;
}
.problem-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  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;
}
.problem-item:hover { transform: translateX(4px); background: #fff; box-shadow: 0 10px 30px -12px rgba(120, 60, 10, 0.18); }
.problem-item .card-icon {
  grid-row: span 3;
  margin: 0;
  width: 44px;
  height: 44px;
  background: rgba(242, 153, 74, 0.14);
  color: var(--color-warm);
}
@media (max-width: 639px) {
  .problem-item { grid-template-columns: 1fr; }
  .problem-item .card-icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 0.5rem; }
}
.problem-item h3 { font-size: 1.0625rem; }
.problem-item p { color: var(--color-gray); font-size: var(--fs-small); line-height: 1.55; }
.problem-item .card-cost { margin-top: 0.5rem; }

.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); }

.card-cost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(242, 153, 74, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  color: #B4561A;
}
.card-cost svg { width: 13px; height: 13px; flex-shrink: 0; }

/* The cumulative price — a big figure on a white card */
.cost-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: 0 30px 60px -24px rgba(180, 86, 26, 0.3);
  border: 1px solid rgba(217, 119, 43, 0.14);
}
.cost-card .number {
  display: block;
  font-size: clamp(3.25rem, 2.4rem + 3vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, #F2994A, #D9542B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cost-card .label { display: block; margin-top: var(--space-2); font-weight: 700; color: var(--color-primary); line-height: 1.45; }
.cost-card .footnote { display: block; margin-top: var(--space-2); font-size: 0.75rem; color: var(--color-gray); }

/* Legacy strip variant (kept for reuse) */
.cost-strip {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  text-align: center;
}
.cost-strip .number { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-weight: 800; color: var(--color-warm); line-height: 1; }
.cost-strip .label { font-weight: 700; color: var(--color-primary); }
.cost-strip .footnote { width: 100%; font-size: 0.75rem; color: var(--color-gray); }

/* Where the loss shows up — four light tiles */
.problem-subhead {
  max-width: 640px;
  margin: var(--space-6) auto var(--space-4);
  text-align: center;
}
.problem-subhead h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.025em; }
.problem-subhead p { margin-top: var(--space-1); color: var(--color-gray); font-size: var(--fs-small); }

.card-consequence {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(217, 119, 43, 0.1);
  box-shadow: none;
  padding: var(--space-3);
}
.card-consequence .card-icon,
.grid > .card-consequence:nth-child(n) .card-icon { background: rgba(242, 153, 74, 0.12); color: var(--color-warm); width: 42px; height: 42px; margin-bottom: var(--space-2); }
.card-consequence h3 { font-size: 1.0625rem; }

/* Hand-over line into the solution */
.problem-closing {
  margin: var(--space-6) 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; }

/* Phones: the problem and consequence cards become swipe rows 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) {
  .problem-list,
  .section-problems .grid-4 {
    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;
  }
  .problem-list::-webkit-scrollbar,
  .section-problems .grid-4::-webkit-scrollbar { display: none; }
  .problem-list > *,
  .section-problems .grid-4 > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .problem-item: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 .problem-list > .reveal,
  .js .section-problems .grid-4 > .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: 48px;
  object-fit: contain;
}
.logo-tile img.logo-med   { max-height: 42px; }
.logo-tile img.logo-wide  { max-height: 34px; }
.logo-tile img.logo-xwide { max-height: 28px; }

.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: 44px;
  object-fit: contain;
}
.logo-strip img.logo-med   { max-height: 38px; }
.logo-strip img.logo-wide  { max-height: 30px; }
.logo-strip img.logo-xwide { max-height: 24px; }
.logo-more { text-align: center; margin-top: var(--space-3); color: var(--color-gray); font-size: var(--fs-small); }

/* ==========================================================================
   Roles list
   ========================================================================== */
.roles-columns { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .roles-columns { grid-template-columns: 1fr 1fr; } }
.roles-columns ul { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.roles-columns li {
  padding: 0.85rem var(--space-2);
  background: var(--color-offwhite);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
}
.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; }
.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;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-small); font-weight: 700; color: var(--color-primary); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #BAC3D1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(30, 158, 139, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.required-mark { color: var(--color-accent-dark); }

.engagement-selector { display: grid; gap: var(--space-2); grid-template-columns: 1fr; margin-bottom: var(--space-4); }
@media (min-width: 768px) { .engagement-selector { grid-template-columns: repeat(3, 1fr); } }
.engagement-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  cursor: pointer;
  display: block;
  background: var(--color-white);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.engagement-option:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.engagement-option input { position: absolute; opacity: 0; pointer-events: none; }
.engagement-option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--tint-mint);
  box-shadow: 0 0 0 4px rgba(30, 158, 139, 0.1);
}
.engagement-option:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.radio-group { display: grid; gap: var(--space-1); }
.radio-option { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-small); }
.radio-option input { accent-color: var(--color-accent); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: var(--tint-mint); color: var(--color-accent-dark); }
.form-status.error { background: rgba(192, 57, 43, 0.08); color: var(--color-danger); }

.contact-direct {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.contact-direct ul { display: grid; gap: var(--space-1); margin-top: var(--space-2); font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.form-privacy-note { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--color-gray); }

.container-narrow { max-width: 860px; }
.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.form-fieldset { border: none; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
.form-legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.form-submit { margin-top: var(--space-4); }
/* Line the direct-contact block up with the fields inside the card */
.form-card + .contact-direct { padding-left: clamp(1.5rem, 1rem + 2.5vw, 3rem); padding-right: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-top: none; }
.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 form */
.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%; } }
.form-intro { margin-bottom: var(--space-3); color: var(--color-gray); }
.form-intro strong { color: var(--color-primary); }
