/* ==========================================================================
   Smart365Solutions — components
   Every component below is the Bridge Hire / SimplyApply component translated
   from inline React styles to CSS, with the same geometry, elevation and
   motion. Selectors are kept to a single class so nothing in the cascade
   silently undoes spacing set elsewhere.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-heading);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--text-link); }
a:hover { color: var(--text-link-hover); }

img, svg { max-width: 100%; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-brand-primary);
  color: var(--text-on-brand);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-lg) 0;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--text-on-brand); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Icons ------------------------------------------------------- */

.icon { width: 22px; height: 22px; display: block; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Layout primitives ------------------------------------------ */

.shell { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--space-6); }
.shell--content { max-width: var(--container-content); }
.shell--narrow { max-width: var(--container-narrow); }

.band { padding-block: var(--space-24); }
.band--tight { padding-block: var(--space-16); }
.band--alt { background: var(--surface-page-alt); }
.band--gradient { background: var(--gradient-section); }
.band--hero { background: var(--gradient-hero); }

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--space-2); }
.stack-3 { gap: var(--space-3); }
.stack-4 { gap: var(--space-4); }
.stack-5 { gap: var(--space-5); }
.stack-6 { gap: var(--space-6); }
.stack-8 { gap: var(--space-8); }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* Pills and eyebrows are intrinsically sized — a column stack would otherwise
   stretch them to the full column width. */
.stack > .badge,
.stack > .eyebrow,
.stack > .btn { align-self: flex-start; }

/* Pushes a trailing label to the bottom of a card so labels line up across a
   row of cards with unequal body lengths. */
.push { margin-top: auto; }

.grid { display: grid; gap: var(--space-8); }

/* Grid and flex children default to min-width:auto, which lets a wide child
   (a spec table, a console bar) push the whole track past the viewport.
   Every layout child opts out so the page body never scrolls sideways. */
.grid > *,
.hero__grid > *,
.product > *,
.steps > *,
.case__metrics > * { min-width: 0; }

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.section-head--start { text-align: left; align-items: flex-start; margin-inline: 0; }

.section-title { font-size: var(--text-4xl); font-weight: var(--font-weight-bold); }
.section-lede { color: var(--text-muted); font-size: var(--text-lg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Badge (kit: components/feedback/Badge.jsx) ------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--text-body);
}
.badge--brand { background: var(--blue-100); color: var(--color-brand-primary); }
.badge--accent { background: var(--purple-100); color: var(--color-brand-accent); }
.badge--success { background: var(--state-success-bg); color: var(--state-success-fg); }
.badge--live { background: var(--state-live-bg); color: var(--state-live-fg); }
.badge--pending { background: var(--state-pending-bg); color: var(--state-pending-fg); }
.badge--on-brand { background: var(--white); color: var(--blue-600); box-shadow: var(--shadow-md); }

.badge__dot {
  width: 7px; height: 7px; border-radius: var(--radius-full);
  background: currentColor; flex: none;
}
.badge--live .badge__dot { animation: pulse-dot 1.6s var(--ease-in-out) infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ---------- Button (kit: components/forms/Button.jsx) ------------------- */

.btn {
  font-family: inherit;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  line-height: 1.2;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              transform 0.15s var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.btn--sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn--lg { padding: 14px 32px; font-size: var(--text-lg); }
.btn--block { width: 100%; }

.btn--primary { background: var(--color-brand-primary); color: var(--text-on-brand); }
.btn--primary:hover { background: var(--color-brand-primary-hover); color: var(--text-on-brand); box-shadow: var(--shadow-glow-blue); transform: translateY(-2px); }

.btn--secondary {
  background: var(--surface-card);
  color: var(--text-body);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.btn--secondary:hover { background: var(--surface-muted); color: var(--text-heading); transform: translateY(-2px); }

.btn--accent { background: var(--color-brand-accent); color: var(--text-on-brand); }
.btn--accent:hover { background: var(--purple-500); color: var(--text-on-brand); transform: translateY(-2px); }

.btn--dark { background: var(--surface-inverse); color: #fff; }
.btn--dark:hover { background: var(--gray-800); color: #fff; transform: translateY(-2px); }

.btn--on-brand { background: #fff; color: var(--blue-600); }
.btn--on-brand:hover { background: var(--blue-50); color: var(--blue-700); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--text-link); padding-inline: 0; }
.btn--ghost:hover { color: var(--text-link-hover); gap: var(--space-3); }

.btn[disabled] { background: var(--gray-400); cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Navbar (kit: components/navigation/Navbar.jsx) -------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-weight: var(--font-weight-extrabold);
  font-size: var(--text-xl);
  color: var(--color-brand-primary);
  letter-spacing: -0.015em;
}
.brand:hover { color: var(--color-brand-primary); }

.brand__mark {
  width: 38px; height: 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
  flex: none;
  box-shadow: var(--shadow-md);
}

.brand__text { color: var(--color-brand-primary); }
.brand__text span { color: var(--color-brand-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  font-weight: var(--font-weight-medium);
}

.nav__link {
  color: var(--text-body);
  text-decoration: none;
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav__link:hover { color: var(--color-brand-primary); }
.nav__link[aria-current="page"] { color: var(--color-brand-primary); font-weight: var(--font-weight-semibold); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--gradient-rule);
}

/* ---------- Dropdown menus ---------------------------------------------
   Opening is driven by JS (data-open) rather than :hover, so the panel can
   survive the diagonal trip from the trigger to the item you're aiming at.
   ---------------------------------------------------------------------- */

.nav__item { position: relative; display: flex; align-items: center; }

.nav__link--trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.nav__caret {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-base) var(--ease-out);
}
.nav__item[data-open="true"] > .nav__link { color: var(--color-brand-primary); }
.nav__item[data-open="true"] .nav__caret { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  /* The padding is the bridge: without it the pointer crosses dead space
     between the trigger and the panel and the menu flickers shut. */
  padding-top: 14px;
  width: max-content;
  max-width: min(24rem, calc(100vw - var(--space-8)));
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  /* Visibility flips instantly on open and is held back until the fade
     finishes on close, so the panel is never a transparent click-trap. */
  transition: opacity 0.18s var(--ease-out),
              transform 0.18s var(--ease-out),
              visibility 0s linear 0.18s;
}
.nav__item[data-open="true"] > .menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.18s var(--ease-out),
              transform 0.18s var(--ease-out),
              visibility 0s linear 0s;
}

.menu__inner {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out);
}
.menu__item:hover,
.menu__item:focus-visible { background: var(--surface-page-alt); color: inherit; }

.menu__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--color-brand-primary);
  display: grid;
  place-items: center;
  flex: none;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.menu__icon--accent { background: var(--purple-100); color: var(--color-brand-accent); }
.menu__icon--live { background: var(--state-live-bg); color: var(--state-live-fg); }
.menu__icon--success { background: var(--state-success-bg); color: var(--state-success-fg); }

.menu__item:hover .menu__icon { background: var(--color-brand-primary); color: var(--text-on-brand); }
.menu__item:hover .menu__icon--accent { background: var(--color-brand-accent); }
.menu__item:hover .menu__icon--live { background: var(--state-live-fg); }
.menu__item:hover .menu__icon--success { background: var(--state-success-fg); }

.menu__title {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
  line-height: 1.35;
}
.menu__desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.menu__foot {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-1);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.menu__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-link);
  text-decoration: none;
}
.menu__link:hover { gap: var(--space-2); }
.menu__link .icon { width: 13px; height: 13px; }

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

.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-muted); color: var(--color-brand-primary); }

.nav__toggle { display: none; }

/* Sun icon when the page is light, moon when it is dark. The explicit
   data-theme rules come last so the toggle beats the OS preference. */
.theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
:root[data-theme="light"] .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }

.nav__drawer { display: none; }

/* ---------- Cards (kit: components/cards/*) ---------------------------- */

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.feature-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: var(--shadow-glow-blue-soft); }

.tile {
  width: 56px; height: 56px;
  border-radius: var(--radius-xl);
  background: var(--blue-50);
  color: var(--color-brand-primary);
  display: grid;
  place-items: center;
  flex: none;
  margin-bottom: var(--space-2);
}
.tile--accent { background: var(--purple-100); color: var(--color-brand-accent); }
.tile--success { background: var(--state-success-bg); color: var(--state-success-fg); }
.tile--live { background: var(--state-live-bg); color: var(--state-live-fg); }

.feature-card__title { font-size: var(--text-xl); font-weight: var(--font-weight-bold); }
.feature-card__body { color: var(--text-muted); }

.feature-card__rule {
  height: 4px;
  width: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-rule);
  margin-top: auto;
  transition: width var(--duration-slow) var(--ease-out);
}
.feature-card:hover .feature-card__rule { width: 60%; }

.meta-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.meta-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.meta-list .icon { color: var(--state-success-fg); margin-top: 2px; }

/* ---------- Stat block (kit: components/cards/StatBlock.jsx) ------------ */

.stat { text-align: center; }
.stat__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat--accent .stat__value { color: var(--color-brand-accent); }
.stat--indigo .stat__value { color: var(--color-brand-accent-2); }
.stat--success .stat__value { color: var(--state-success-fg); }
.stat__label { color: var(--text-muted); margin-top: var(--space-1); font-size: var(--text-sm); }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-14);
}

/* ---------- Pricing card (kit: components/cards/PricingCard.jsx) -------- */

.pricing-card {
  position: relative;
  background: var(--surface-card);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.pricing-card:hover { transform: translateY(-12px) scale(1.03); }

.pricing-card--featured {
  background: var(--color-brand-primary);
  color: var(--text-on-brand);
  border-color: transparent;
  box-shadow: var(--shadow-blue-200);
}
.pricing-card--featured .pricing-card__name,
.pricing-card--featured .pricing-card__price { color: var(--text-on-brand); }
.pricing-card--featured .pricing-card__desc { color: var(--blue-100); }
.pricing-card--featured .pricing-card__rule { background: var(--blue-300); }
.pricing-card--featured .pricing-card__features li { color: #fff; }

.pricing-card__flag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); }
.pricing-card__name { font-size: var(--text-2xl); font-weight: var(--font-weight-bold); }
.pricing-card__price {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  margin-top: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.pricing-card__price small { font-size: var(--text-base); font-weight: var(--font-weight-medium); opacity: 0.8; }
.pricing-card__desc { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); }
.pricing-card__rule { height: 1px; background: var(--border-default); margin-block: var(--space-6); }
.pricing-card__features { display: flex; flex-direction: column; gap: var(--space-4); font-size: var(--text-sm); }
.pricing-card__features li { display: flex; align-items: flex-start; gap: var(--space-3); }
.pricing-card__features .tick { color: var(--green-400); font-weight: var(--font-weight-bold); flex: none; }
.pricing-card__cta { margin-top: var(--space-10); }

/* ---------- Contact info card (kit: ContactInfoCard.jsx) ---------------- */

.info-card {
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
a.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); color: inherit; }
.info-card__title { font-weight: var(--font-weight-bold); font-size: var(--text-lg); color: var(--text-heading); }
.info-card__value { color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- Forms (kit: components/forms/Input.jsx) --------------------- */

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--text-heading); }
.field__hint { font-size: var(--text-xs); color: var(--text-muted); }

.input, .textarea, .select {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--surface-card);
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.textarea { resize: vertical; min-height: 128px; line-height: var(--leading-normal); }
.select { appearance: none; cursor: pointer; padding-right: var(--space-10); }

.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.select-wrap { position: relative; display: block; }
.select-wrap .icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-8);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--state-success-bg);
  color: var(--state-success-fg);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.form-status[data-visible="true"] { display: flex; }

/* ---------- Hero -------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding-block: var(--space-20) var(--space-24); }

.blob {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(var(--blur-blob));
  pointer-events: none;
}
.blob--blue { background: var(--blue-500); top: -40px; left: -60px; }
.blob--purple { background: var(--purple-500); bottom: -60px; right: -40px; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-14);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
}

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

.typed { border-right: 2px solid var(--color-brand-primary); padding-right: 4px; }

.hero__lede { font-size: var(--text-xl); color: var(--text-muted); max-width: 34rem; }

.page-hero { position: relative; overflow: hidden; padding-block: var(--space-20) var(--space-16); text-align: center; }
.page-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.page-hero__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); font-weight: var(--font-weight-extrabold); letter-spacing: -0.025em; }
.page-hero__lede { font-size: var(--text-lg); color: var(--text-muted); max-width: 40rem; }

/* ---------- Voice console (the hero thesis: a live call, mid-flight) ---- */

.console {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}

.console__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page-alt);
}
.console__who { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.console__avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  color: var(--color-brand-primary);
  display: grid; place-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  flex: none;
}
.console__caller { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--text-heading); }
.console__meta { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave span {
  width: 3px;
  height: 20%;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  transition: height 0.12s var(--ease-out), background 0.2s var(--ease-out);
}
.wave[data-active="true"] span { background: var(--state-live-dot); }

.transcript { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); min-height: 268px; }

.turn { display: flex; gap: var(--space-3); max-width: 92%; opacity: 0; transform: translateY(8px); }
.turn[data-shown="true"] { opacity: 1; transform: none; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.turn--agent { align-self: flex-start; }
.turn--caller { align-self: flex-end; flex-direction: row-reverse; }

.turn__tag {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: var(--space-2);
  flex: none;
  width: 52px;
  text-align: right;
}
.turn--caller .turn__tag { text-align: left; }

.turn__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.turn--agent .turn__bubble { background: var(--blue-50); color: var(--text-body); border-bottom-left-radius: var(--radius-sm); }
.turn--caller .turn__bubble { background: var(--surface-muted); color: var(--text-body); border-bottom-right-radius: var(--radius-sm); }

.console__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-page-alt);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.chip strong { color: var(--text-heading); font-weight: var(--font-weight-semibold); }

/* ---------- Logo strip -------------------------------------------------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-12);
}
.logos__item {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--duration-fast) var(--ease-out);
}
.logos__item:hover { color: var(--text-muted); }
.logos__item .icon { width: 18px; height: 18px; }

/* ---------- Steps (a real sequence, so the numbers carry meaning) ------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); counter-reset: step; }

.step {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.step__num {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  color: var(--text-on-brand);
  display: grid; place-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  flex: none;
}
.step__title { font-size: var(--text-lg); font-weight: var(--font-weight-bold); }
.step__body { color: var(--text-muted); font-size: var(--text-sm); }
.step__when {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-brand-primary);
  border-top: 1px dashed var(--border-default);
}

/* ---------- Testimonials ------------------------------------------------ */

.quote-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.quote-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow-blue-soft); }

.stars { display: flex; gap: 2px; color: var(--amber-500); }
.stars .icon { width: 16px; height: 16px; }

.quote-card__text { color: var(--text-body); font-size: var(--text-base); line-height: var(--leading-relaxed); }
.quote-card__text::before { content: "\201C"; }
.quote-card__text::after { content: "\201D"; }

.quote-card__result {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--state-success-bg);
  color: var(--state-success-fg);
}

.person { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.person__avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: grid; place-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  flex: none;
  background: var(--blue-100);
  color: var(--color-brand-primary);
}
.person__avatar--accent { background: var(--purple-100); color: var(--color-brand-accent); }
.person__avatar--success { background: var(--state-success-bg); color: var(--state-success-fg); }
.person__name { font-weight: var(--font-weight-semibold); color: var(--text-heading); font-size: var(--text-sm); }
.person__role { color: var(--text-muted); font-size: var(--text-xs); }

/* ---------- Team -------------------------------------------------------- */

.team-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.team-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-glow-blue-soft); }

.team-card__portrait {
  width: 96px; height: 96px;
  border-radius: var(--radius-full);
  display: grid; place-items: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-extrabold);
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}
.team-card__portrait--a { background: linear-gradient(135deg, var(--blue-600), var(--indigo-600)); }
.team-card__portrait--b { background: linear-gradient(135deg, var(--purple-600), var(--pink-500)); }
.team-card__portrait--c { background: linear-gradient(135deg, var(--sky-500), var(--blue-600)); }

.team-card__name { font-size: var(--text-xl); font-weight: var(--font-weight-bold); }
.team-card__role { color: var(--color-brand-primary); font-weight: var(--font-weight-semibold); font-size: var(--text-sm); }
.team-card__bio { color: var(--text-muted); font-size: var(--text-sm); }

.tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.tag {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--text-muted);
}

.social-row { display: flex; gap: var(--space-3); }
.social {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--text-body);
  display: grid; place-items: center;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.social:hover { color: #fff; transform: translateY(-3px); }
.social--linkedin:hover { background: #1d4ed8; }
.social--x:hover { background: #0f172a; }
.social--youtube:hover { background: #dc2626; }
.social--github:hover { background: #24292f; }
.social--sm { width: 32px; height: 32px; }
.social--sm .icon { width: 16px; height: 16px; }

/* ---------- Product detail rows ---------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-14);
  align-items: center;
}
.product--flip .product__media { order: -1; }

.product__body { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.product__name { font-size: var(--text-3xl); font-weight: var(--font-weight-bold); letter-spacing: -0.02em; }
.product__lede { color: var(--text-muted); font-size: var(--text-lg); }

.spec {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.spec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-page-alt);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
}
.spec__rows { display: flex; flex-direction: column; }
.spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}
.spec__row:last-child { border-bottom: none; }
.spec__key { color: var(--text-muted); min-width: 0; }
.spec__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  font-weight: var(--font-weight-semibold);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Pipeline diagram — used on the Process Automation product */
.pipeline { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
.node {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface-page-alt);
  border: 1px solid var(--border-subtle);
}
.node__dot { width: 10px; height: 10px; border-radius: var(--radius-full); flex: none; background: var(--state-success-fg); }
.node--pending .node__dot { background: var(--state-pending-fg); }
.node--idle .node__dot { background: var(--border-strong); }
.node__label { font-size: var(--text-sm); color: var(--text-heading); font-weight: var(--font-weight-medium); flex: 1; min-width: 0; }
.node__time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.node__link { height: 14px; width: 1px; margin-left: 21px; background: var(--border-strong); }

/* ---------- Comparison table ------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}
table.matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--text-sm); }
table.matrix th, table.matrix td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--border-subtle); }
table.matrix thead th {
  background: var(--surface-page-alt);
  color: var(--text-heading);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
table.matrix tbody th { font-weight: var(--font-weight-medium); color: var(--text-heading); }
table.matrix td { color: var(--text-muted); font-variant-numeric: tabular-nums; }
table.matrix tbody tr:last-child th, table.matrix tbody tr:last-child td { border-bottom: none; }
table.matrix tbody tr:hover td, table.matrix tbody tr:hover th { background: var(--surface-page-alt); }
table.matrix .yes { color: var(--state-success-fg); font-weight: var(--font-weight-bold); }
table.matrix .no { color: var(--text-faint); }

/* ---------- Case study -------------------------------------------------- */

.case {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.case__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.case__metric {
  background: var(--surface-page-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.case__metric b {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-brand-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.case__metric span { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- Industry / solution cards ---------------------------------- */

.solution-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow-blue-soft); border-color: var(--blue-300); }
.solution-card__title { font-size: var(--text-xl); font-weight: var(--font-weight-bold); }
.solution-card__body { color: var(--text-muted); font-size: var(--text-sm); }
.solution-card__foot {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- Accordion / FAQ -------------------------------------------- */

.faq { border: 1px solid var(--border-default); border-radius: var(--radius-2xl); overflow: hidden; background: var(--surface-card); }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__item:last-child { border-bottom: none; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { background: var(--surface-page-alt); }
.faq__q .icon { color: var(--text-muted); transition: transform var(--duration-base) var(--ease-out); }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); color: var(--color-brand-primary); }
.faq__a { padding: 0 var(--space-6) var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.faq__a[hidden] { display: none; }

/* ---------- CTA band ---------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600) 55%, var(--purple-600));
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: var(--space-14) var(--space-10);
  box-shadow: var(--shadow-glow-blue);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.cta-band h2 { color: #fff; font-size: var(--text-4xl); font-weight: var(--font-weight-extrabold); letter-spacing: -0.02em; }
.cta-band p { color: var(--blue-100); font-size: var(--text-lg); max-width: 38rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-2); }
.cta-band__blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #fff; opacity: 0.08; filter: blur(50px); }
.cta-band__blob--l { top: -140px; left: -80px; }
.cta-band__blob--r { bottom: -160px; right: -60px; }

/* ---------- Footer (kit: components/navigation/Footer.jsx) -------------- */

.footer { background: var(--surface-card); border-top: 1px solid var(--border-default); margin-top: var(--space-20); }
.footer__grid {
  max-width: var(--container-content);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
  display: grid;
  /* The brand column is wider; every link column after it is created
     implicitly at an equal width. Written this way so parking a footer column
     (see src/partials/footer.html) reflows to fill the row instead of leaving
     an empty track behind. */
  grid-template-columns: 1.5fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-8);
}
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__label { font-weight: var(--font-weight-semibold); color: var(--text-heading); margin-bottom: var(--space-1); font-size: var(--text-sm); }
.footer__link { color: var(--text-muted); font-size: var(--text-sm); text-decoration: none; width: fit-content; }
.footer__link:hover { color: var(--color-brand-primary); }
.footer__blurb { color: var(--text-muted); font-size: var(--text-sm); }
.footer__bottom {
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  color: var(--text-faint);
  font-size: var(--text-sm);
  text-align: center;
}

/* ---------- Scroll reveal ---------------------------------------------- */

.reveal { opacity: 0; transform: translateY(20px); }
.reveal[data-revealed="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .product, .product--flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .product--flip .product__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }

  .nav__drawer {
    display: block;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-card);
    padding: var(--space-4) var(--space-6) var(--space-6);
  }
  .nav__drawer[hidden] { display: none; }
  .nav__drawer > .nav__link { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
  .nav__drawer .nav__link[aria-current="page"]::after { display: none; }
  .nav__drawer .btn { margin-top: var(--space-4); width: 100%; }

  /* Touch has no hover, so the drawer uses tap-to-expand groups instead. */
  .drawer__group { border-bottom: 1px solid var(--border-subtle); }
  .drawer__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: var(--font-weight-medium);
    color: var(--text-body);
    cursor: pointer;
  }
  .drawer__toggle .icon { transition: transform var(--duration-base) var(--ease-out); }
  .drawer__toggle[aria-expanded="true"] { color: var(--color-brand-primary); }
  .drawer__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

  .drawer__panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: var(--space-3);
  }
  .drawer__panel[hidden] { display: none; }
  .drawer__panel .menu__item { padding-inline: var(--space-2); }

  .band { padding-block: var(--space-16); }
  .grid--2, .grid--3, .steps, .case__metrics { grid-template-columns: minmax(0, 1fr); }
  .stat-row { gap: var(--space-8); }
  .section-title { font-size: var(--text-3xl); }
  .cta-band { padding: var(--space-10) var(--space-6); }
  .cta-band h2 { font-size: var(--text-3xl); }
}

@media (max-width: 560px) {
  /* The header CTA lives in the drawer at this width — keeping it in the bar
     wraps the label onto two lines. */
  .nav__actions > .btn { display: none; }
  .nav__inner { gap: var(--space-3); }
  .brand { font-size: var(--text-lg); }

  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .form-panel { padding: var(--space-6); }
  .shell { padding-inline: var(--space-5); }
  .turn { max-width: 100%; }
  .stat-row { gap: var(--space-6) var(--space-10); }
  .stat-row .stat { flex: 1 1 40%; }
}
