/* ==========================================================================
   Tsifrix design system
   Self-hosted fonts · tokens · base · components
   ========================================================================== */

/* --- Fonts (latin subset, variable, display swap) ------------------------ */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Brand orange — derived from the logo tile #E8632C. */
  --brand-500: #e8632c;
  --brand-600: #e8632c;
  --brand-700: #d4571f;
  --brand-800: #b84a1a;
  --brand-400: #f08a5d;
  --brand-300: #f5b79a;
  --brand-100: #fde7dc;
  --brand-50: #fff4ee;

  /* Warm neutrals */
  --ink-900: #1b1512;
  --ink-800: #2a211c;
  --ink-700: #4a3f38;
  --ink-600: #5f5148;
  --ink-500: #6b5d54;
  --paper: #ffffff;
  --cream: #fbf6f1;
  --cream-deep: #f2e9e1;
  --line: #eadfd6;
  --line-strong: #d9c9bc;

  /* Semantic — deliberately distinct from brand orange. */
  --success: #1e7a4b;
  --success-soft: #e7f5ec;
  --success-line: #b7e2c7;
  --warning: #9a5b00;
  --warning-soft: #fff4dc;
  --warning-line: #f0d49a;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --danger-line: #f3c4bf;
  --info: #1d5fa7;
  --info-soft: #e8f1fb;
  --info-line: #bbd4ee;

  /* Backwards-compatible semantic aliases used by existing components. */
  --c-ink: var(--ink-900);
  --c-ink-soft: var(--ink-700);
  --c-muted: var(--ink-600);
  --c-subtle: var(--ink-500);
  --c-line: var(--line);
  --c-line-strong: var(--line-strong);
  --c-surface: var(--paper);
  --c-paper: var(--cream);
  --c-paper-deep: var(--cream-deep);
  --c-brand: var(--ink-900);
  --c-brand-800: var(--ink-800);
  --c-brand-700: var(--brand-700);
  --c-brand-600: var(--brand-600);
  --c-accent: var(--brand-600);
  --c-accent-strong: var(--brand-700);
  --c-accent-soft: var(--brand-100);
  --c-accent-line: #f5c6ae;
  --c-danger: var(--danger);
  --c-danger-soft: var(--danger-soft);
  --c-success: var(--success);
  --c-success-soft: var(--success-soft);
  --c-warning: var(--warning);
  --c-warning-soft: var(--warning-soft);
  --c-info: var(--info);
  --c-info-soft: var(--info-soft);

  /* Type */
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 2vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 3vw, 2rem);
  --fs-3xl: clamp(1.9rem, 4vw, 3rem);
  --fs-4xl: clamp(2.4rem, 6vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Radius — echoes the icon tile. */
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadow — warm ink tint, never a coloured glow. */
  --shadow-xs: 0 1px 2px rgba(27, 21, 18, 0.06);
  --shadow-sm: 0 1px 3px rgba(27, 21, 18, 0.08), 0 1px 2px rgba(27, 21, 18, 0.04);
  --shadow-md: 0 12px 28px -14px rgba(27, 21, 18, 0.22);
  --shadow-lg: 0 24px 48px -24px rgba(27, 21, 18, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 220ms var(--ease);

  --header-h: 72px;
  --focus-ring: 0 0 0 3px rgba(232, 99, 44, 0.35);
  --ray-bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23E8632C'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(45 12 12)'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(90 12 12)'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(135 12 12)'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(180 12 12)'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(225 12 12)'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(270 12 12)'/%3E%3Crect x='11.25' y='0.6' width='1.5' height='4.9' transform='rotate(315 12 12)'/%3E%3C/g%3E%3C/svg%3E");
  --ray-spinner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cg fill='%23000'%3E%3Ccircle cx='512' cy='512' r='150'/%3E%3Crect x='495' y='82' width='34' height='280'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(15 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(30 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(45 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(60 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(75 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(90 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(105 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(120 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(135 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(150 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(165 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(180 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(195 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(210 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(225 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(240 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(255 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(270 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(285 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(300 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(315 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(330 512 512)'/%3E%3Crect x='495' y='82' width='34' height='280' transform='rotate(345 512 512)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-4xl);
}
h2 {
  font-size: var(--fs-3xl);
}
h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
}
h4 {
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-700);
}

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

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.section--ink :focus-visible,
.cta-band :focus-visible,
.mobile-menu :focus-visible,
.workflow :focus-visible {
  outline-color: #ffffff;
  box-shadow: 0 0 0 5px var(--brand-500);
}

::selection {
  background: var(--brand-100);
  color: var(--brand-700);
}

/* --- Layout helpers ------------------------------------------------------ */
.container {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}
.container--wide {
  width: min(100% - 2rem, 84rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.section--paper {
  background: var(--c-paper);
}
.section--ink {
  background: var(--ink-900);
  color: #fff;
}
.section--line {
  border-top: 1px solid var(--c-line);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before {
  content: '';
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ray-bullet) center / contain no-repeat;
  mask: var(--ray-bullet) center / contain no-repeat;
}
.section--ink .eyebrow,
.cta-band .eyebrow {
  color: var(--brand-400);
}

.lede {
  max-width: 62ch;
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--c-muted);
}

.muted {
  color: var(--c-muted);
}
.subtle {
  color: var(--c-subtle);
}
.small {
  font-size: var(--fs-sm);
}
.center {
  text-align: center;
}
.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;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-bottom: var(--space-4);
}
.section-head p {
  font-size: var(--fs-lg);
  color: var(--c-muted);
}

/* --- Skip link ----------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast);
}
.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast),
    color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn--primary:hover {
  background: var(--brand-700);
  color: #fff;
}
.btn--primary:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}
.btn--secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-900);
}
.btn--secondary:hover {
  background: var(--brand-100);
  border-color: var(--brand-500);
  color: var(--ink-900);
}
.btn--quiet {
  background: transparent;
  color: var(--brand-700);
}
.btn--quiet:hover {
  background: var(--brand-100);
  color: var(--brand-700);
}
.btn--on-dark {
  background: #fff;
  color: var(--ink-900);
}
.btn--on-dark:hover {
  background: var(--cream);
  color: var(--ink-900);
}
.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}
.btn--outline-light:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px var(--brand-500);
}
.btn[aria-busy='true'] {
  cursor: progress;
}
.btn[aria-busy='true'] .spinner {
  margin-right: 0.1rem;
}
.btn--sm {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-sm);
}
.btn--lg {
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* --- Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--ink-900);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink-900);
}
.brand img,
.brand .brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
/* Header mark is 50% larger than the footer lockup's 32px mark. */
.site-header .brand img {
  width: 48px;
  height: 48px;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink-900);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.nav-link:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}
.nav-link[aria-current='page'] {
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav-signin:hover {
  color: var(--c-ink);
}

/* Account menu */
.account {
  position: relative;
}
.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-ink-soft);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.account-toggle:hover {
  background: var(--c-paper);
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 15rem;
  padding: 0.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.account-menu[hidden] {
  display: none;
}
.account-menu__meta {
  padding: 0.5rem 0.6rem 0.65rem;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 0.35rem;
}
.account-menu__meta strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}
.account-menu__meta span {
  display: block;
  overflow: hidden;
  font-size: var(--fs-xs);
  color: var(--c-subtle);
  text-overflow: ellipsis;
}
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-ink-soft);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}
.account-menu .is-danger {
  color: var(--c-danger);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
}
.menu-toggle:hover {
  background: var(--c-paper);
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle svg[hidden] {
  display: none;
}
.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-900);
  padding: 0.75rem 0 1rem;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu .container {
  display: grid;
  gap: 0.15rem;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  color: #f5ece5;
  font-size: var(--fs-base);
  text-decoration: none;
}
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.mobile-menu a[aria-current='page'] {
  background: rgba(232, 99, 44, 0.18);
  color: var(--brand-400);
  font-weight: 600;
}
.mobile-menu .btn--primary {
  background: var(--brand-500);
  color: var(--ink-900);
}
.mobile-menu .btn--primary:hover {
  background: var(--brand-400);
  color: var(--ink-900);
}
.mobile-menu__divider {
  height: 1px;
  margin: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.14);
}
.mobile-menu__actions {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0;
}
.mobile-menu__meta {
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  color: #cdbfb5;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-paper-deep);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(
    from 0deg at 78% 38%,
    rgba(232, 99, 44, 0.09) 0deg 1.25deg,
    transparent 1.25deg 15deg
  );
  -webkit-mask-image: radial-gradient(circle at 78% 38%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 78% 38%, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero > .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero h1 {
  max-width: 15ch;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-600);
}
.hero .lede {
  max-width: 46ch;
}
.hero .btn-row {
  margin-top: var(--space-8);
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: var(--space-5);
  color: var(--c-subtle);
  font-size: var(--fs-sm);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-note span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* Hero workflow visual */
.hero-visual {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
}
.workflow {
  border-radius: var(--r-lg);
  background: var(--ink-900);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: #fff;
}
.workflow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.workflow__head strong {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
}
.workflow__head span {
  font-size: var(--fs-xs);
  color: #c9bbb1;
}
.workflow__steps {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}
.workflow__step {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.workflow__step:last-child {
  border-bottom: 0;
}
.workflow__step .dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-400);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.workflow__step b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.workflow__step small {
  color: #c9bbb1;
  font-size: var(--fs-xs);
}
.workflow__tag {
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(240, 138, 93, 0.16);
  color: var(--brand-400);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Trust / process strip ---------------------------------------------- */
.strip {
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.strip ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
}
.strip li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1rem;
  background: #fff;
  color: var(--ink-700);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.strip li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-accent);
}

/* --- Cards --------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card:hover {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.0625rem;
}
.card p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-600);
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card--link {
  text-decoration: none;
}
.card--link h3 {
  color: var(--c-ink);
}
.card--link:hover h3 {
  color: var(--c-brand-700);
}
.card--paper {
  background: var(--c-paper);
}
.card--flush {
  padding: 0;
  overflow: hidden;
}

/* --- Steps --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
}
.step__num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.step h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}
.step p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: #fff;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -7rem;
  top: 50%;
  width: 36rem;
  height: 36rem;
  transform: translateY(-50%);
  background-image: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.06) 0deg 1.15deg,
    transparent 1.15deg 15deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  pointer-events: none;
}
.cta-band > .container {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band h2 {
  max-width: 22ch;
  margin-bottom: var(--space-4);
  color: #fff;
}
.cta-band p {
  max-width: 56ch;
  margin-bottom: var(--space-8);
  color: #d8ccc3;
  font-size: var(--fs-lg);
}
.cta-band .btn-row {
  margin-top: 0;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 54rem;
  margin-inline: auto;
  border-top: 1px solid var(--c-line);
}
.faq details {
  border-bottom: 1px solid var(--c-line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--c-brand-700);
}
.faq summary .faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--brand-300);
  border-radius: 50%;
}
.faq summary .faq__icon::before,
.faq summary .faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 1.5px;
  background: var(--brand-700);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base);
}
.faq summary .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq details[open] summary .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq details[open] summary {
  color: var(--c-brand-700);
}
.faq__body {
  max-width: 65ch;
  padding: 0 0.25rem 1.25rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.faq__body a {
  color: var(--c-brand-700);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  padding-bottom: clamp(4.5rem, 7vw, 5.5rem);
  background: var(--c-paper);
  border-top: 1px solid var(--c-paper-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand p {
  max-width: 30ch;
  margin: 1rem 0 1.25rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.footer-contact {
  display: grid;
  gap: 0.35rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.footer-contact a {
  color: var(--c-ink-soft);
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--c-brand-700);
  text-decoration: underline;
}
.footer-col h2 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-subtle);
}
.footer-col ul {
  display: grid;
  gap: 0.15rem;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--c-brand-700);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--c-paper-deep);
  color: var(--c-subtle);
  font-size: var(--fs-xs);
}
.footer-legal-slot {
  flex-basis: 100%;
  padding-top: 0.5rem;
  color: var(--c-subtle);
  font-size: var(--fs-xs);
}

/* --- WhatsApp floating action ------------------------------------------- */
.wa-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: #075e54;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(27, 21, 18, 0.55);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.wa-fab:hover {
  background: #0b6e62;
  color: #fff;
  transform: translateY(-1px);
}
.wa-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sticky mobile CTA. The WhatsApp button yields to it on small screens. */
.mobile-cta {
  display: none;
}
@media (max-width: 767px) {
  .wa-fab {
    display: none;
  }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem max(0.75rem, env(safe-area-inset-left)) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--ink-900);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 30px -18px rgba(27, 21, 18, 0.7);
  }
  .mobile-cta p {
    flex: 1;
    min-width: 0;
    color: #f5ece5;
    font-size: var(--fs-xs);
    line-height: 1.35;
  }
  .mobile-cta .btn {
    min-height: 44px;
    flex-shrink: 0;
    padding-inline: 0.9rem;
  }
  body.has-mobile-cta {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
  .has-mobile-cta .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

/* --- Forms --------------------------------------------------------------- */
.form-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label,
.field > .label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
}
.field .optional {
  font-weight: 400;
  color: var(--c-subtle);
}
.input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea,
textarea.input {
  min-height: 8rem;
  resize: vertical;
}
.input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-500);
  opacity: 1;
}
.input:hover,
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--line-strong);
}
.input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--focus-ring);
}
.input[aria-invalid='true'],
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}
.field-help {
  color: var(--c-subtle);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--danger);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.field-error:not(:empty)::before {
  content: '';
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L1 21h22L12 2zm1 15h-2v-2h2v2zm0-4h-2V9h2v4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L1 21h22L12 2zm1 15h-2v-2h2v2zm0-4h-2V9h2v4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field--success .input,
.field--success input,
.field--success textarea,
.field--success select {
  border-color: var(--success);
}
.field-success {
  color: var(--success);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.field-error:empty {
  display: none;
}
.field--error .input {
  border-color: var(--c-danger);
}
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 4.25rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  min-height: 36px;
  padding: 0.25rem 0.6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--brand-700);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover {
  background: var(--brand-100);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400 !important;
  line-height: 1.55;
  cursor: pointer;
}
.consent-label input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand-600);
}
.consent-label a {
  color: var(--brand-700);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
.form-note {
  color: var(--c-subtle);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* Honeypot stays out of the visual and accessibility tree */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp-field input {
  width: 1px;
}

.alert {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
}
.alert strong {
  font-weight: 600;
}
.alert--error {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: #7a1a14;
}
.alert--success {
  border-color: var(--success-line);
  background: var(--success-soft);
  color: #0f4d2f;
}
.alert--warning {
  border-color: var(--warning-line);
  background: var(--warning-soft);
  color: #6b3f00;
}
.alert--info {
  border-color: var(--info-line);
  background: var(--info-soft);
  color: #154a82;
}
.alert + .alert {
  margin-top: 0.5rem;
}
.form-status {
  margin-top: 1rem;
}
.form-status:empty {
  display: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ray-spinner) center / contain no-repeat;
  mask: var(--ray-spinner) center / contain no-repeat;
  animation: spin 1.4s linear infinite;
}
.spinner--lg {
  width: 2.5rem;
  height: 2.5rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* --- Auth pages ---------------------------------------------------------- */
.auth-shell {
  display: flex;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: var(--c-paper);
}
.auth-wrap {
  width: min(100% - 2rem, 27rem);
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.auth-brand img {
  width: 52px;
  height: 52px;
}
.auth-head {
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-head h1 {
  font-size: var(--fs-2xl);
}
.auth-head p {
  margin-top: 0.4rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.auth-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.auth-card form {
  display: grid;
  gap: 1rem;
}
.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  text-align: center;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.auth-footer a {
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-back {
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--fs-sm);
}
.auth-back a {
  color: var(--c-muted);
  text-decoration: none;
}
.auth-back a:hover {
  color: var(--c-ink);
  text-decoration: underline;
}
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: var(--fs-sm);
}
.steps-indicator__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-subtle);
}
.steps-indicator__item.is-current {
  color: var(--c-ink);
  font-weight: 600;
}
.steps-indicator__num {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.is-current .steps-indicator__num {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}
.is-done .steps-indicator__num {
  border-color: var(--c-success);
  background: var(--c-success);
  color: #fff;
}
.steps-indicator__line {
  width: 1.5rem;
  height: 1px;
  background: var(--c-line-strong);
}

/* --- Legal / long-form --------------------------------------------------- */
.page-hero {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-paper-deep);
}
.page-hero h1 {
  max-width: 20ch;
  margin-bottom: var(--space-4);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
.page-hero p {
  max-width: 58ch;
  color: var(--c-muted);
  font-size: var(--fs-lg);
}
.page-hero--split > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.page-hero__aside {
  justify-self: end;
  width: 100%;
  max-width: 26rem;
}
@media (max-width: 1023px) {
  .page-hero--split > .container {
    grid-template-columns: 1fr;
  }
  .page-hero__aside {
    justify-self: start;
    max-width: 34rem;
  }
}
.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
}
.legal-toc h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-subtle);
}
.legal-toc ol {
  display: grid;
  gap: 0.1rem;
  counter-reset: toc;
}
.legal-toc a {
  display: block;
  padding: 0.35rem 0.25rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--c-brand-700);
  text-decoration: underline;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.legal-body {
  max-width: 68ch;
  color: var(--c-ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-body section {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.legal-body section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--c-line);
}
.legal-body h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.legal-body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}
.legal-body p + p,
.legal-body p + ul,
.legal-body p + ol {
  margin-top: 0.75rem;
}
.legal-body ul,
.legal-body ol {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-body ol {
  list-style: decimal;
}
.legal-body li::marker {
  color: var(--c-accent);
}
.legal-body a {
  color: var(--c-brand-700);
}
.legal-body strong {
  color: var(--c-ink);
}
.legal-contact {
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  font-size: var(--fs-sm);
}
.legal-contact p {
  display: grid;
  gap: 0.2rem;
}
.legal-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--brand-50);
  color: var(--ink-900);
  font-size: var(--fs-sm);
}

/* --- Utility ------------------------------------------------------------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--c-brand-700);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.divider {
  height: 1px;
  background: var(--c-line);
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.contact-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  text-align: left;
}
.contact-card .card__icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
}
.contact-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.contact-card a,
.contact-card p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card a:hover {
  color: var(--c-brand-700);
  text-decoration: underline;
}
.contact-aside {
  display: grid;
  gap: 1rem;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .desktop-nav .nav-link {
    padding-inline: 0.55rem;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  .header-actions .nav-signin,
  .header-actions .btn--primary {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero > .container {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 18ch;
  }
  .hero-visual {
    max-width: 34rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .legal-shell {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
  .container,
  .container--narrow,
  .container--wide {
    width: min(100% - 1.5rem, 100%);
  }
  .hero > .container {
    padding-block: 3rem 3.5rem;
  }
  .strip ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-col ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btn-row {
    align-items: stretch;
  }
  .btn-row .btn {
    width: 100%;
  }
  .auth-shell {
    padding-block: 2rem;
  }
  .auth-wrap {
    width: min(100% - 1.5rem, 27rem);
  }
  .page-hero {
    padding-block: 2.5rem;
  }
  .legal-shell {
    padding-block: 2rem;
  }
  .legal-body {
    font-size: 0.9875rem;
  }
}

@media (max-width: 380px) {
  .brand-word {
    font-size: 1.05rem;
  }
  .strip ul {
    grid-template-columns: 1fr;
  }
  .footer-col ul {
    grid-template-columns: 1fr;
  }
  .steps-indicator__label {
    display: none;
  }
  .wa-fab {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
  .wa-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-footer {
    padding-bottom: 4.5rem;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .wa-fab,
  .legal-toc,
  .btn,
  .skip-link {
    display: none !important;
  }
  .legal-shell {
    display: block;
  }
  body {
    color: #000;
  }
}

/* --- Additional composed components ------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.prose-lite p {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--c-muted);
  font-size: var(--fs-lg);
  line-height: 1.7;
}
.prose-lite p:first-child {
  margin-top: 0;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75rem;
  height: 0.45rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}
.check-list--stack {
  margin-top: 1.25rem;
}
.check-list--stack li + li {
  padding-top: 0.5rem;
  border-top: 1px solid var(--c-line);
}

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

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.logo-row img {
  width: auto;
  max-width: 9rem;
  max-height: 2.5rem;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity var(--t-fast), filter var(--t-fast);
}
.logo-row a:hover img {
  opacity: 1;
  filter: none;
}

.quote-card {
  justify-content: space-between;
  gap: 1.5rem;
}
.quote-card blockquote {
  margin: 0;
}
.quote-card blockquote p {
  color: var(--c-ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quote-card figcaption img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote-card figcaption strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}
.quote-card figcaption small {
  display: block;
  color: var(--c-subtle);
  font-size: var(--fs-xs);
}
.card__result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-accent-strong) !important;
  font-weight: 600;
}
.team-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
}
.team-card .tag {
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.mini-steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: mini;
  margin-top: 0.75rem;
}
.mini-steps li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  counter-increment: mini;
}
.mini-steps li::before {
  content: counter(mini);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.price-card h2 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.25rem;
}
.price-card .check-list {
  margin-bottom: 1.5rem;
}
.price {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 1.25rem 0 0.25rem;
}
.price__amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}
.price__period {
  padding-bottom: 0.2rem;
  color: var(--c-subtle);
  font-size: var(--fs-sm);
}
.price__was {
  display: flex;
  gap: 0.5rem;
  color: var(--c-subtle);
  font-size: var(--fs-xs);
}
.price__was .line-through {
  text-decoration: line-through;
}
.empty-state {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  text-align: center;
}
.empty-state h2 {
  font-size: var(--fs-xl);
}
.empty-state p {
  max-width: 36rem;
  margin: 0.5rem auto 1.25rem;
  color: var(--c-muted);
}

@media (max-width: 1023px) {
  .grid-2,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .steps--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  /* WCAG 2.2 / brief: 44px minimum touch targets in the footer and header */
  .footer-col a,
  .footer-contact a,
  .footer-bottom a,
  .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-col li + li,
  .footer-contact a + a {
    margin-top: 0;
  }
  .wa-fab {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
  .wa-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-footer {
    padding-bottom: 4.5rem;
  }
}

.field-help ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.field-help li + li {
  margin-top: 0.2rem;
}

/* --- Documents / tables --------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin-block: 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.table-wrap th {
  background: var(--c-paper);
  color: var(--c-ink);
  font-weight: 600;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.notice {
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-accent-line);
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
}
.notice p {
  margin-bottom: 0.75rem;
}

/* --- Illustrative dashboard ---------------------------------------------- */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.demo-frame {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.demo-frame__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
}
.demo-badge {
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--c-warning-soft);
  color: var(--c-warning);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-block: 1rem;
}
.demo-kpis div {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-paper);
}
.demo-kpis span {
  display: block;
  color: var(--c-subtle);
  font-size: var(--fs-xs);
}
.demo-kpis strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--c-ink);
}
.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 42px;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}
.demo-row:last-child {
  border-bottom: 0;
}
.demo-pill {
  flex-shrink: 0;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.demo-pill--ok { background: var(--c-success-soft); color: var(--c-success); }
.demo-pill--warn { background: var(--c-warning-soft); color: var(--c-warning); }
.demo-pill--err { background: var(--c-danger-soft); color: var(--c-danger); }
.demo-frame__foot {
  margin-top: 0.9rem;
  color: var(--c-subtle);
  font-size: var(--fs-xs);
}
@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Expressive brand components ---------------------------------------- */
.section--ink a:not(.btn),
.cta-band a:not(.btn) {
  color: var(--brand-400);
}
.section--ink a:not(.btn):hover,
.cta-band a:not(.btn):hover {
  color: #fff;
}

.ray-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand-600);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ray-divider::before,
.ray-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.ray-divider::before {
  max-width: 2.5rem;
}
.ray-divider span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ray-divider span::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: var(--ray-bullet) center / contain no-repeat;
  mask: var(--ray-bullet) center / contain no-repeat;
}

.ray-art {
  width: clamp(6rem, 14vw, 11rem);
  aspect-ratio: 1;
  background: var(--brand-100);
  -webkit-mask: var(--ray-spinner) center / contain no-repeat;
  mask: var(--ray-spinner) center / contain no-repeat;
}
.ray-art--on-dark {
  background: rgba(255, 255, 255, 0.14);
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
}
.tabs [role='tab'] {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-600);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.tabs [role='tab']:hover {
  background: #fff;
  color: var(--ink-900);
}
.tabs [role='tab'][aria-selected='true'] {
  background: var(--brand-100);
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
}
.tab-panel {
  margin-top: 1rem;
}
.tab-panel[hidden] {
  display: none;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-flex;
}
.tooltip__content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  z-index: 30;
  width: max-content;
  max-width: 16rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1.45;
  text-align: left;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}
.tooltip:hover .tooltip__content,
.tooltip:focus-within .tooltip__content {
  opacity: 1;
  visibility: visible;
}

/* Toast */
.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 2rem));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink-700);
  font-size: var(--fs-sm);
}
.toast--success { border-color: var(--success-line); }
.toast--warning { border-color: var(--warning-line); }
.toast--error { border-color: var(--danger-line); }
.toast--info { border-color: var(--info-line); }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-700);
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--brand-500);
  background: var(--brand-100);
  color: var(--ink-900);
}
.pagination [aria-current='page'] {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}
.pagination .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--ink-500);
  font-size: var(--fs-sm);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.breadcrumbs li + li::before {
  content: '/';
  color: var(--line-strong);
}
.breadcrumbs a {
  color: var(--brand-600);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch__track {
  position: relative;
  width: 2.6rem;
  height: 1.5rem;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: background-color var(--t-fast);
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast);
}
.switch input:checked + .switch__track {
  background: var(--brand-600);
}
.switch input:checked + .switch__track::after {
  transform: translateX(1.1rem);
}
.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}

/* Skeleton */
.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--cream) 25%, #fff 37%, var(--cream) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
.skeleton--text { height: 0.8rem; margin-block: 0.45rem; }
.skeleton--title { height: 1.4rem; width: 55%; margin-block: 0.6rem; }
.skeleton--card { height: 11rem; border-radius: var(--r-lg); }
@keyframes skeleton-shimmer {
  to { background-position: -135% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* Empty states */
.empty-state {
  position: relative;
  overflow: hidden;
}
.empty-state::before {
  content: '';
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  background: var(--brand-100);
  -webkit-mask: var(--ray-spinner) center / contain no-repeat;
  mask: var(--ray-spinner) center / contain no-repeat;
}
.insights-empty {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
  background: var(--cream);
  text-align: center;
}
.insights-empty h2 {
  font-size: var(--fs-xl);
}
.insights-empty p {
  max-width: 42ch;
  margin: 0.5rem auto 1.25rem;
  color: var(--ink-600);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink-700);
  font-size: var(--fs-sm);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner p {
  flex: 1;
  min-width: 15rem;
  line-height: 1.5;
}
.cookie-banner a {
  color: var(--brand-600);
}
.cookie-banner .btn {
  min-height: 44px;
}
@media (max-width: 767px) {
  .has-mobile-cta .cookie-banner {
    bottom: calc(4.7rem + env(safe-area-inset-bottom));
  }
}

/* Brand sheet helpers */
.brand-swatch {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.brand-swatch__chip {
  height: 5rem;
}
.brand-swatch__meta {
  padding: 0.7rem 0.8rem;
  font-size: var(--fs-xs);
  color: var(--ink-600);
}
.brand-swatch__meta strong {
  display: block;
  color: var(--ink-900);
  font-size: var(--fs-sm);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.brand-asset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.brand-asset {
  display: grid;
  place-items: center;
  min-width: 9rem;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
}
.brand-asset--ink {
  background: var(--ink-900);
}
.brand-asset img {
  max-height: 4rem;
  width: auto;
}

/* Legal print: ink on white only. */
@media print {
  .cookie-banner,
  .mobile-cta,
  .toast-stack,
  .account,
  .menu-toggle,
  .pagination,
  .breadcrumbs {
    display: none !important;
  }
  body,
  .legal-body,
  .legal-body p,
  .legal-body li,
  .legal-body a,
  .legal-body strong {
    color: #000 !important;
    background: #fff !important;
  }
  .legal-body a {
    text-decoration: underline;
  }
  .legal-body section + section {
    border-top-color: #ccc;
  }
  .legal-shell {
    padding-block: 0;
  }
}

/* ==========================================================================
   Interaction & motion layer
   ========================================================================== */
::selection {
  background: var(--brand-100);
  color: var(--ink-900);
}

/* Page-level scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 160;
  height: 3px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  transition: width 90ms linear;
}

/* Header reacts to scroll */
.site-header {
  transition: background-color var(--t-base), box-shadow var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px -28px rgba(27, 21, 18, 0.55);
}

/* Scroll-reveal primitives. The inline head script adds `.js` before paint, so
   nothing flashes; <noscript> restores visibility if JS is unavailable. */
.js [data-animate] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-animate='left'] { transform: translate3d(-26px, 0, 0); }
.js [data-animate='right'] { transform: translate3d(26px, 0, 0); }
.js [data-animate='scale'] { transform: scale(0.96); }
.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-animate-group] > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-animate-group].is-visible > * {
  opacity: 1;
  transform: none;
}
.motion-fallback [data-animate],
.motion-fallback [data-animate-group] > * {
  opacity: 1 !important;
  transform: none !important;
}

/* Load-time hero entrance (kept separate from scroll reveal so above-the-fold
   content never waits on an observer). */
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.965) translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes dot-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 99, 44, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(232, 99, 44, 0); }
}
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes slide-swap {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow,
.page-hero .eyebrow { animation: rise-in 550ms 40ms var(--ease) both; }
.hero h1,
.page-hero h1 { animation: rise-in 650ms 110ms var(--ease) both; }
.hero .lede,
.page-hero p { animation: rise-in 650ms 190ms var(--ease) both; }
.hero .btn-row,
.page-hero .btn-row { animation: rise-in 600ms 270ms var(--ease) both; }
.hero-visual,
.page-hero__aside { animation: scale-in 750ms 160ms var(--ease) both; }
.hero-note { animation: rise-in 600ms 340ms var(--ease) both; }
.auth-wrap { animation: rise-in 600ms 80ms var(--ease) both; }

/* Buttons: lift and a single light sweep on primary actions. */
.btn {
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.34) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 650ms var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(130%); }

/* Navigation and brand micro-interactions. */
.nav-link:hover { transform: translateY(-1px); }
.brand img { transition: transform 360ms var(--ease); }
.brand:hover img { transform: rotate(-7deg) scale(1.06); }
.nav-signin { transition: color var(--t-fast), transform var(--t-fast); }
.nav-signin:hover { transform: translateY(-1px); }

/* Cards: lift, top accent, icon pop. */
.card {
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  /* Cover the border box and inherit its radius: the accent then follows the
     card's rounded corners instead of poking through them (a 3px-tall bar
     with a 16px radius gets its radius clamped, so it cannot match up). */
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300)) left top / 0% 3px no-repeat;
  pointer-events: none;
  transition: background-size 380ms var(--ease);
}
.card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card:hover::before { background-size: 100% 3px; }
.card__icon {
  transition: background-color var(--t-base), color var(--t-base), transform var(--t-base);
}
.card:hover .card__icon {
  background: var(--brand-500);
  color: #fff;
  transform: translateY(-2px) rotate(-5deg) scale(1.06);
}
.post-card__media { overflow: hidden; }
.post-card__media img { transition: transform 600ms var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.text-link svg { transition: transform 240ms var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Process steps and capability strip. */
.step {
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.step__num { transition: background-color var(--t-base), transform var(--t-base); }
.step:hover .step__num {
  background: var(--brand-500);
  transform: scale(1.08) rotate(-4deg);
}
.strip li { transition: background-color var(--t-fast), color var(--t-fast); }
.strip li:hover { background: var(--brand-50); color: var(--brand-700); }
.strip li svg { transition: transform 260ms var(--ease); }
.strip li:hover svg { transform: rotate(-12deg) scale(1.12); }

/* Form fields: subtle focus lift and label colour. */
.field label { transition: color var(--t-fast); }
.field-count { float: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.field:focus-within label { color: var(--brand-600); }
.input { transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), transform var(--t-fast); }
.input:focus { transform: translateY(-1px); }

/* FAQ open state. */
.faq details[open] .faq__body { animation: slide-swap 280ms var(--ease) both; }
.faq summary .faq__icon { transition: background-color var(--t-fast), border-color var(--t-fast); }
.faq summary:hover .faq__icon { background: var(--brand-100); border-color: var(--brand-500); }

/* Pointer spotlight — only on designated visual panels. */
[data-spotlight] { --mx: 50%; --my: 50%; }
[data-spotlight]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(232, 99, 44, 0.14), transparent 64%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
[data-spotlight]:hover::after { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }

/* Homepage workflow demo: each number dot pops as its step lands. */
.workflow__step.is-shown .dot {
  animation: dot-pop 520ms var(--ease) both;
}
.demo-kpis strong { font-variant-numeric: tabular-nums; }
.js .demo-rows.is-visible .demo-row { animation: rise-in 480ms var(--ease) both; }
.js .demo-rows.is-visible .demo-row:nth-child(2) { animation-delay: 90ms; }
.js .demo-rows.is-visible .demo-row:nth-child(3) { animation-delay: 180ms; }
.js .demo-rows.is-visible .demo-row:nth-child(4) { animation-delay: 270ms; }

/* ==========================================================================
   Hive product page
   ========================================================================== */
.product-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-paper-deep);
  background:
    radial-gradient(900px circle at 82% 8%, rgba(232, 99, 44, 0.13), transparent 55%),
    var(--c-paper);
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(
    from 0deg at 84% 30%,
    rgba(232, 99, 44, 0.07) 0deg 1.2deg,
    transparent 1.2deg 15deg
  );
  -webkit-mask-image: radial-gradient(circle at 84% 30%, #000 0%, transparent 64%);
  mask-image: radial-gradient(circle at 84% 30%, #000 0%, transparent 64%);
  pointer-events: none;
}
.product-hero > .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.34rem 0.7rem 0.34rem 0.38rem;
  border: 1px solid var(--brand-200, #fbd3c2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--brand-500);
  color: #fff;
}
.product-mark svg,
.product-mark img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.product-hero h1 { max-width: 17ch; }
.product-title__mark {
  display: inline-block;
  width: auto;
  height: 1em;
  margin-right: 0.16em;
  vertical-align: -0.12em;
  filter: drop-shadow(0 6px 12px rgba(27, 21, 18, 0.22));
}
.product-hero h1 em { font-style: normal; color: var(--brand-600); }
.product-hero .lede { max-width: 48ch; }
.product-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-600);
  font-size: var(--fs-sm);
}
.product-hero__points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.product-hero__points li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
}
.product-visual {
  position: relative;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}
.floor {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #17110e;
  color: #fff;
}
.floor__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: #d8cbc2;
}
.floor__bar strong { color: #fff; font-family: var(--font-display); font-size: var(--fs-sm); }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #35c47a;
  animation: soft-pulse 2.2s ease-in-out infinite;
}
.floor__agents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.8rem;
}
.agent-card {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.agent-card:hover { border-color: rgba(240, 138, 93, 0.5); background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.agent-card.is-active { border-color: var(--brand-400); background: rgba(232, 99, 44, 0.14); }
.agent-card b { font-size: 0.8rem; }
.agent-card span { color: #c9bbb1; font-size: 0.68rem; }
.agent-card .agent-state { display: inline-flex; align-items: center; gap: 0.28rem; color: #e9ded7; }
.agent-card .agent-state::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35c47a;
}
.agent-card .agent-state[data-state='working']::before { background: var(--brand-400); animation: soft-pulse 1.6s infinite; }
.floor__chat {
  margin: 0 0.8rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.chat-thread { display: grid; gap: 0.5rem; padding: 0.8rem; }
.chat-thread[hidden] { display: none; }
.chat-thread:not([hidden]) { animation: slide-swap 300ms var(--ease) both; }
.chat-msg {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.chat-msg--in { justify-self: start; background: rgba(255, 255, 255, 0.09); color: #f3ebe6; }
.chat-msg--out { justify-self: end; background: var(--brand-600); color: #fff; }
.chat-typing { display: inline-flex; gap: 3px; align-items: center; padding: 0.55rem 0.7rem; }
.chat-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
  animation: typing 1.2s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

.product-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.3) blur(10px);
}
.product-subnav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-subnav ul::-webkit-scrollbar { display: none; }
.product-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  color: var(--ink-600);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.product-subnav a:hover { background: var(--brand-50); color: var(--brand-700); }
.product-subnav a[aria-current='true'] { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.product-subnav + .section,
.product-subnav ~ .section { scroll-margin-top: calc(var(--header-h) + 3.5rem); }

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.product-tab {
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-600);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.product-tab:hover { border-color: var(--brand-300); color: var(--brand-700); transform: translateY(-1px); }
.product-tab[aria-selected='true'] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.product-panel[hidden] { display: none; }
.product-panel:not([hidden]) { animation: slide-swap 300ms var(--ease) both; }
.product-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.product-panel h3 { margin-bottom: 0.4rem; }
.product-panel > p { max-width: 62ch; color: var(--ink-600); font-size: var(--fs-sm); }
.product-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.mini-feature {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
}
.mini-feature strong { display: block; margin-bottom: 0.15rem; font-size: var(--fs-sm); color: var(--ink-900); }
.mini-feature span { font-size: var(--fs-xs); color: var(--ink-600); line-height: 1.5; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.channel-card:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.channel-card svg { width: 22px; height: 22px; color: var(--brand-600); }
.channel-card strong { font-size: var(--fs-sm); }
.channel-card span { font-size: var(--fs-xs); color: var(--ink-600); line-height: 1.5; }

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.deploy-card {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.deploy-card:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow-lg); }
.deploy-card .tag { margin-bottom: 0.7rem; }
.deploy-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.deploy-card p { color: var(--ink-600); font-size: var(--fs-sm); }
.deploy-card ul { margin-top: 0.75rem; }

.architecture {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--cream);
}
.arch-col { display: grid; gap: 0.55rem; }
.arch-node {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: var(--fs-xs);
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}
.arch-node strong { display: block; font-size: var(--fs-sm); color: var(--ink-900); }
.arch-node--accent { border-color: var(--brand-300); background: var(--brand-50); }
.arch-arrow {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  animation: float-y 4s ease-in-out infinite;
}
.arch-arrow svg { width: 18px; height: 18px; }

.product-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.product-stat {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.product-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  color: var(--brand-600);
}
.product-stat span { font-size: var(--fs-xs); color: var(--ink-600); }

@media (max-width: 1023px) {
  .product-hero > .container { grid-template-columns: 1fr; }
  .product-visual { max-width: 34rem; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deploy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .floor__agents { grid-template-columns: 1fr; }
  .product-panel__grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .product-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture { grid-template-columns: 1fr; }
  .arch-arrow { margin-inline: auto; transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-animate],
  .js [data-animate-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero .btn-row,
  .hero-visual,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p,
  .page-hero .btn-row,
  .page-hero__aside,
  .hero-note,
  .auth-wrap,
  .js .demo-rows.is-visible .demo-row,
  .workflow__step.is-shown .dot,
  .live-dot,
  .arch-arrow,
  .chat-typing i {
    animation: none !important;
  }
  [data-spotlight]::after { display: none; }
  .js [data-workflow-animate] > .workflow__step { opacity: 1 !important; }
  .workflow__focus { display: none; }
}

@media print {
  .scroll-progress,
  .product-subnav { display: none !important; }
}

/* Hive teaser on the homepage */
.product-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--ink-900);
  color: #fff;
}
.product-teaser::before {
  content: '';
  position: absolute;
  right: -6rem;
  top: 50%;
  width: 32rem;
  height: 32rem;
  transform: translateY(-50%);
  background-image: repeating-conic-gradient(from 0deg, rgba(240, 138, 93, 0.16) 0deg 1.2deg, transparent 1.2deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  pointer-events: none;
}
.product-teaser > * { position: relative; z-index: 1; }
.product-teaser h2 { color: #fff; margin-bottom: 0.6rem; }
.product-teaser p { max-width: 56ch; color: #d8ccc3; }
.product-teaser .eyebrow { color: var(--brand-400); }
.product-teaser .btn-row { margin-top: 1.2rem; }
.product-teaser__mark { display: grid; place-items: center; }
.product-teaser__mark svg,
.product-teaser__mark img {
  width: clamp(8rem, 16vw, 12rem);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: float-y 6s ease-in-out infinite;
}
@media (max-width: 767px) {
  .product-teaser { grid-template-columns: 1fr; }
  .product-teaser__mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .product-teaser__mark svg { animation: none; }
}

/* ==========================================================================
   Hive interactive dashboard tour
   ========================================================================== */
.hive-tour {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}
.hive-tour__app {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background: #120e0c;
  box-shadow: var(--shadow-lg);
}
.hive-window-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #1a1411;
  color: #a99a8f;
  font-size: 0.7rem;
}
.hive-window-dots { display: inline-flex; gap: 4px; }
.hive-window-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.hive-window-dots i:first-child { background: #e8632c; }
.hive-window-dots i:nth-child(2) { background: #d9a441; }
.hive-window-dots i:nth-child(3) { background: #3fae72; }
.hive-window-url {
  flex: 1;
  overflow: hidden;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #c9bbb1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hive-window-live { display: inline-flex; align-items: center; gap: 0.3rem; color: #e9ded7; white-space: nowrap; }
.hive-window-live .live-dot { margin-right: 0; }
.hive-app-body {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  min-height: 27rem;
}
.hive-rail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #17110e;
}
.hive-rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #9d8e83;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.hive-rail button svg { width: 17px; height: 17px; }
.hive-rail button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.hive-rail button.is-active { background: rgba(232, 99, 44, 0.16); border-color: rgba(232, 99, 44, 0.4); color: #fff; }
.hive-screens { min-width: 0; padding: 0.9rem; }
.hive-screen[hidden] { display: none; }
.hive-screen:not([hidden]) { animation: slide-swap 320ms var(--ease) both; }
.hive-screen__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.hive-screen__head strong { display: block; color: #fff; font-family: var(--font-display); font-size: 0.95rem; }
.hive-screen__head span { color: #9d8e83; font-size: 0.68rem; }
.hive-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  color: #cdbfb5;
  font-size: 0.62rem;
  white-space: nowrap;
}
.hive-pill--live { border-color: rgba(63, 174, 114, 0.35); color: #7ddba7; }
.hive-pill--soft { background: rgba(232, 99, 44, 0.12); color: var(--brand-300); border-color: rgba(232, 99, 44, 0.25); }

.hw-agent-grid { display: grid; gap: 0.45rem; }
.hw-agent {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.6rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hw-agent:hover, .hw-agent.is-active { background: rgba(232, 99, 44, 0.12); border-color: rgba(232, 99, 44, 0.4); transform: translateX(2px); }
.hw-avatar {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}
.hw-agent__meta b { display: block; font-size: 0.78rem; }
.hw-agent__meta small { color: #a99a8f; font-size: 0.65rem; }
.hw-state { color: #7ddba7; font-size: 0.62rem; font-weight: 600; }
.hw-state--working { color: var(--brand-300); }
.hw-state--working::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: var(--brand-400);
  animation: soft-pulse 1.8s infinite;
}
.hw-agent__task { grid-column: 2 / -1; color: #8f8076; font-size: 0.62rem; }

.hw-activity { margin-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 0.6rem; }
.hw-activity__head { display: flex; justify-content: space-between; margin-bottom: 0.35rem; color: #9d8e83; font-size: 0.65rem; }
.hw-activity__head strong { color: #d8cbc2; }
.hw-activity__item { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 0.45rem; align-items: center; padding: 0.3rem 0; color: #c9bbb1; font-size: 0.66rem; }
.hw-activity__item b { color: #fff; font-weight: 600; }
.hw-activity__item time { color: #7d6f66; font-size: 0.6rem; }
.hw-dot { width: 6px; height: 6px; border-radius: 50%; background: #7d6f66; }
.hw-dot--green { background: #3fae72; }
.hw-dot--orange { background: var(--brand-400); }

.hw-inbox { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0.6rem; }
.hw-thread-list { display: grid; gap: 0.3rem; align-content: start; }
.hw-thread {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d8cbc2;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hw-thread:hover, .hw-thread.is-active { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.hw-thread b { display: block; color: #fff; font-size: 0.68rem; }
.hw-thread small { display: block; overflow: hidden; color: #9d8e83; font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.hw-thread time { color: #7d6f66; font-size: 0.58rem; }
.hw-channel { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 6px; font-size: 0.55rem; font-weight: 700; }
.hw-channel--wa { background: rgba(37, 211, 102, 0.16); color: #6ee79a; }
.hw-channel--tg { background: rgba(56, 165, 233, 0.16); color: #7cc7f0; }
.hw-channel--em { background: rgba(232, 99, 44, 0.16); color: var(--brand-300); }
.hw-channel--db { background: rgba(255, 255, 255, 0.1); color: #d8cbc2; }
.hw-preview { min-width: 0; padding: 0.55rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.hw-preview__head { display: flex; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.45rem; color: #9d8e83; font-size: 0.6rem; }
.hw-preview__head b { color: #fff; font-size: 0.7rem; }
.hw-msg { max-width: 92%; margin-bottom: 0.35rem; padding: 0.42rem 0.55rem; border-radius: 8px; font-size: 0.65rem; line-height: 1.45; }
.hw-msg--in { background: rgba(255, 255, 255, 0.08); color: #ece3dd; border-bottom-left-radius: 2px; }
.hw-msg--out { margin-left: auto; background: rgba(232, 99, 44, 0.18); color: #ffd9c8; border-bottom-right-radius: 2px; }
.hw-msg--draft { background: rgba(232, 99, 44, 0.08); border: 1px dashed rgba(232, 99, 44, 0.4); color: var(--brand-300); }
.hw-approval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(232, 99, 44, 0.28);
  border-radius: 8px;
  background: rgba(232, 99, 44, 0.08);
  color: #ffd9c8;
  font-size: 0.62rem;
}
.hw-approval button {
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: var(--brand-500);
  color: #fff;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}
.hw-approval button:hover { background: var(--brand-400); }

.hw-chat { display: grid; gap: 0.5rem; }
.hw-chat__body { display: grid; gap: 0.35rem; align-content: start; min-height: 13.5rem; }
.hw-tools { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.1rem 0 0.2rem; }
.hw-tools span { padding: 0.2rem 0.42rem; border: 1px solid rgba(63, 174, 114, 0.25); border-radius: var(--r-pill); background: rgba(63, 174, 114, 0.1); color: #9fe0b8; font-size: 0.58rem; }
.hw-typing { display: flex; align-items: center; gap: 0.25rem; color: #9d8e83; font-size: 0.6rem; }
.hw-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-300); animation: typing 1.2s infinite; }
.hw-typing i:nth-child(2) { animation-delay: 0.15s; }
.hw-typing i:nth-child(3) { animation-delay: 0.3s; }
.hw-typing span { margin-left: 0.3rem; }
.hw-chat__input { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.55rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 9px; color: #8f8076; font-size: 0.65rem; }
.hw-send { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 5px; background: var(--brand-500); color: #fff; }

.hw-schedules { display: grid; gap: 0.35rem; }
.hw-schedule {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.hw-schedule time { color: var(--brand-300); font-size: 0.64rem; font-weight: 600; }
.hw-schedule b { display: block; color: #fff; font-size: 0.7rem; }
.hw-schedule span { color: #9d8e83; font-size: 0.6rem; }
.hw-skill-row { display: grid; gap: 0.35rem; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.hw-skill { display: flex; align-items: center; gap: 0.45rem; color: #d8cbc2; font-size: 0.65rem; }
.hw-skill__icon { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 5px; background: rgba(232, 99, 44, 0.14); color: var(--brand-300); font-size: 0.7rem; }
.hw-skill b { display: block; color: #fff; font-size: 0.66rem; }
.hw-skill span { color: #8f8076; font-size: 0.58rem; }

.hive-caption {
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.hive-caption__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.hive-caption__top .eyebrow { margin: 0; }
.hive-caption__count { color: var(--ink-500); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.hive-caption h3 { margin-bottom: 0.5rem; font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.hive-caption > p { color: var(--ink-600); font-size: var(--fs-sm); }
.hive-controls { display: flex; align-items: center; gap: 0.35rem; margin-top: 1rem; }
.hive-control {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-800);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.hive-control:hover { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-700); }
.hive-control--play { flex: 1; background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.hive-control--play:hover { background: var(--brand-400); border-color: var(--brand-400); color: #fff; }
.hive-dots { display: flex; gap: 0.3rem; margin-top: 1rem; }
.hive-dots button {
  width: 1.5rem;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  cursor: pointer;
  transition: width 250ms var(--ease), background-color 250ms var(--ease);
}
.hive-dots button.is-active { width: 2.6rem; background: var(--brand-500); }
.hive-caption__note { margin-top: auto; padding-top: 1rem; color: var(--ink-500); font-size: 0.68rem; }

@media (max-width: 1023px) {
  .hive-tour { grid-template-columns: 1fr; }
  .hive-app-body { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .hive-caption__note { margin-top: 0.75rem; }
}
@media (max-width: 640px) {
  .hive-app-body { grid-template-columns: 1fr; }
  .hive-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .hive-rail button { min-width: 3.4rem; }
  .hive-screens { padding: 0.6rem; }
  .hw-inbox { grid-template-columns: 1fr; }
  .hw-thread-list { grid-template-columns: 1fr 1fr; }
  .hw-schedule { grid-template-columns: 3.3rem minmax(0, 1fr); }
  .hw-schedule .hive-pill { display: none; }
  .hive-window-url { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hive-screen:not([hidden]),
  .hw-state--working::before,
  .hw-typing i { animation: none !important; }
}

/* ==========================================================================
   Services workflow selector
   ========================================================================== */
.workflow-demo { margin-top: 0.5rem; }
.workflow-panel {
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.workflow-panel[hidden] { display: none; }
.workflow-panel:not([hidden]) { animation: slide-swap 300ms var(--ease) both; }
.workflow-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.workflow-panel__head .eyebrow { margin-bottom: 0.25rem; }
.workflow-panel__head h3 { font-size: clamp(1.15rem, 2.3vw, 1.45rem); }
.workflow-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.workflow-chips span {
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--ink-600);
  font-size: var(--fs-xs);
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.wp-step {
  position: relative;
  padding: 0.8rem 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.wp-step:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.wp-step__num {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.wp-step b { display: block; margin-bottom: 0.15rem; font-size: var(--fs-sm); color: var(--ink-900); }
.wp-step span:not(.wp-step__num) { display: block; color: var(--ink-600); font-size: var(--fs-xs); line-height: 1.5; }
.workflow-outcome {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(232, 99, 44, 0.25);
  border-radius: var(--r-md);
  background: var(--brand-50);
}
.workflow-outcome span {
  flex-shrink: 0;
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workflow-outcome p { color: var(--ink-700); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-outcome { flex-direction: column; gap: 0.25rem; }
}

/* Contact intent chips */
.intent-picker {
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
}
.intent-picker__label { display: block; margin-bottom: 0.5rem; color: var(--ink-700); font-size: var(--fs-sm); font-weight: 600; }
.intent-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.intent-chip {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-700);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.intent-chip:hover { border-color: var(--brand-400); color: var(--brand-700); transform: translateY(-1px); }
.intent-chip.is-active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

/* ==========================================================================
   Approach methodology player
   ========================================================================== */
.method-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.9rem;
  align-items: start;
}
.method-rail { display: grid; gap: 0.45rem; }
.method-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-700);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.method-step:hover { border-color: var(--brand-300); transform: translateX(2px); }
.method-step.is-active { border-color: var(--brand-400); background: var(--brand-50); box-shadow: var(--shadow-sm); }
.method-step__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink-700);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.method-step.is-active .method-step__num { background: var(--brand-500); color: #fff; }
.method-step b { display: block; color: var(--ink-900); font-size: var(--fs-sm); }
.method-step small { display: block; margin-top: 0.1rem; color: var(--ink-600); font-size: var(--fs-xs); line-height: 1.45; }
.method-panel {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.method-panel[hidden] { display: none; }
.method-panel:not([hidden]) { animation: slide-swap 300ms var(--ease) both; }
.method-panel h3 { margin-bottom: 0.45rem; font-size: clamp(1.15rem, 2.3vw, 1.4rem); }
.method-panel > p { color: var(--ink-600); font-size: var(--fs-sm); }
.method-panel .check-list { margin-top: 0.9rem; }
@media (max-width: 900px) {
  .method-demo { grid-template-columns: 1fr; }
  .method-rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .method-rail { grid-template-columns: 1fr; }
}

/* Solutions sector filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filter-count { color: var(--ink-500); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.card[hidden] { display: none !important; }


/* Hive Assistant screenshot in the product hero */
.product-visual--assistant {
  display: grid;
  place-items: center;
  width: calc(min(100%, 22rem) + 1.7rem);
  max-width: 100%;
  margin-inline: auto;
  background: radial-gradient(420px circle at 50% 12%, rgba(232, 99, 44, 0.1), transparent 62%), var(--cream);
}
.assistant-shot {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 22rem);
  margin: 0;
}
.assistant-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(27, 21, 18, 0.5);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.assistant-shot:hover img {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 0 36px 68px -34px rgba(27, 21, 18, 0.55);
}
.assistant-shot figcaption { display: grid; gap: 0.15rem; padding-inline: 0.2rem; }
.assistant-shot figcaption strong {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
}
.assistant-shot figcaption span { color: var(--ink-600); font-size: var(--fs-xs); line-height: 1.5; }


/* ==========================================================================
   Warm theme pass: no black / dark-blue content cards
   ========================================================================== */

/* Hero workflow card */
.workflow {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.workflow__head { border-bottom-color: var(--line); }
.workflow__head span { color: var(--ink-500); }
.workflow__step { border-bottom-color: var(--line); }
.workflow__step .dot { background: var(--brand-100); color: var(--brand-700); }
.workflow__step b { color: var(--ink-900); }
.workflow__step small { color: var(--ink-500); }
.workflow__tag { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200, #fbd3c2); }

/* Homepage workflow sequence: each step is introduced large in the middle of
   the card, then travels to its row while the real row fades in. The ghost is
   a copy in .workflow__focus so nothing needs to reflow or overflow. */
.workflow__steps { position: relative; }
.js [data-workflow-animate] > .workflow__step {
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.js [data-workflow-animate] > .workflow__step.is-shown { opacity: 1; }
/* Hover replays start from a clean slate without fading every row out. */
.js [data-workflow-animate].is-resetting > .workflow__step { transition: none; }
.motion-fallback [data-workflow-animate] > .workflow__step { opacity: 1 !important; }
.workflow__focus {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  text-align: center;
  pointer-events: none;
}
.wf-focus__inner { width: min(100%, 22rem); will-change: transform, opacity; }
.wf-focus__inner .dot {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 700;
}
.wf-focus__inner b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink-900);
}
.wf-focus__inner small {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink-500);
  font-size: 0.95rem;
}
.wf-focus__inner .workflow__tag { display: inline-block; margin-top: 0.9rem; }

/* CTA bands use the brand orange rather than an ink slab. */
.cta-band {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 55%, var(--brand-400) 100%);
  color: #fff;
}
.cta-band::before {
  background-image: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.16) 0deg 1.15deg, transparent 1.15deg 15deg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }
.cta-band .eyebrow { color: #fff; }

/* Hive teaser becomes a warm light card. */
.product-teaser {
  background: linear-gradient(145deg, #fff 0%, var(--cream) 100%);
  border: 1px solid var(--line);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.product-teaser::before { background-image: repeating-conic-gradient(from 0deg, rgba(232, 99, 44, 0.14) 0deg 1.2deg, transparent 1.2deg 15deg); }
.product-teaser h2 { color: var(--ink-900); }
.product-teaser p { color: var(--ink-600); }
.product-teaser .eyebrow { color: var(--brand-700); }

/* Blog sidebar CTA */
.sidebar-card--ink {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  border-color: var(--brand-500);
  color: #fff;
}
.sidebar-card--ink h3 { color: #fff; }
.sidebar-card--ink p { color: rgba(255, 255, 255, 0.88); }

/* Generic ink section, if used later */
.section--ink {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff;
}

/* Small dark UI accents that read as part of the old palette. */
.avatar { background: var(--brand-500); }
.step__num { background: var(--brand-500); }
.tooltip__content { background: var(--ink-800); }

/* Hive tour: warm paper UI instead of a black app shell */
.hive-tour__app {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
}
.hive-window-bar {
  background: var(--cream);
  border-bottom-color: var(--line);
  color: var(--ink-500);
}
.hive-window-url {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-600);
}
.hive-window-live { color: var(--ink-700); }
.hive-rail {
  background: var(--cream);
  border-right-color: var(--line);
}
.hive-rail button { color: var(--ink-500); }
.hive-rail button:hover { background: #fff; color: var(--ink-900); }
.hive-rail button.is-active {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
}
.hive-screen__head strong { color: var(--ink-900); }
.hive-screen__head span { color: var(--ink-500); }
.hive-pill {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-600);
}
.hive-pill--live {
  background: #f3fbf6;
  border-color: #b7e2c7;
  color: #1e7a4b;
}
.hive-pill--soft {
  background: var(--brand-50);
  border-color: var(--brand-200, #fbd3c2);
  color: var(--brand-700);
}
.hw-agent {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-900);
}
.hw-agent:hover, .hw-agent.is-active {
  background: var(--brand-50);
  border-color: var(--brand-300);
}
.hw-agent__meta small { color: var(--ink-500); }
.hw-agent__task { color: var(--ink-500); }
.hw-state { color: #1e7a4b; }
.hw-state--working { color: var(--brand-700); }
.hw-state--working::before { background: var(--brand-500); }
.hw-activity { border-top-color: var(--line); }
.hw-activity__head { color: var(--ink-500); }
.hw-activity__head strong { color: var(--ink-900); }
.hw-activity__item { color: var(--ink-600); }
.hw-activity__item b { color: var(--ink-900); }
.hw-activity__item time { color: var(--ink-500); }
.hw-thread { color: var(--ink-700); }
.hw-thread:hover, .hw-thread.is-active {
  background: var(--brand-50);
  border-color: var(--brand-200, #fbd3c2);
}
.hw-thread b { color: var(--ink-900); }
.hw-thread small { color: var(--ink-500); }
.hw-thread time { color: var(--ink-500); }
.hw-preview {
  background: #fff;
  border-color: var(--line);
}
.hw-preview__head { color: var(--ink-500); }
.hw-preview__head b { color: var(--ink-900); }
.hw-msg--in {
  background: var(--cream);
  color: var(--ink-800);
}
.hw-msg--out {
  background: var(--brand-100);
  color: var(--brand-800);
}
.hw-msg--draft {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
}
.hw-approval {
  background: var(--brand-50);
  border-color: var(--brand-200, #fbd3c2);
  color: var(--brand-800);
}
.hw-tools span {
  background: #f3fbf6;
  border-color: #b7e2c7;
  color: #1e7a4b;
}
.hw-typing { color: var(--ink-500); }
.hw-typing i { background: var(--brand-500); }
.hw-chat__input {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-500);
}
.hw-schedule {
  background: #fff;
  border-color: var(--line);
}
.hw-schedule time { color: var(--brand-700); }
.hw-schedule b { color: var(--ink-900); }
.hw-schedule span { color: var(--ink-500); }
.hw-skill-row { border-top-color: var(--line); }
.hw-skill { color: var(--ink-700); }
.hw-skill__icon { background: var(--brand-50); color: var(--brand-700); }
.hw-skill b { color: var(--ink-900); }
.hw-skill span { color: var(--ink-500); }
.hw-channel--wa { background: #e7f8ee; color: #1e7a4b; }
.hw-channel--tg { background: #e8f4fb; color: #176a96; }
.hw-channel--em { background: var(--brand-100); color: var(--brand-700); }
.hw-channel--db { background: var(--cream-deep); color: var(--ink-700); }

/* Mobile navigation and sticky CTA on warm surfaces */
.mobile-menu {
  background: #fff;
  border-top-color: var(--line);
}
.mobile-menu a { color: var(--ink-700); }
.mobile-menu a:hover { background: var(--cream); color: var(--ink-900); }
.mobile-menu a[aria-current='page'] { background: var(--brand-50); color: var(--brand-700); }
.mobile-menu .btn--primary { background: var(--brand-500); color: #fff; }
.mobile-menu .btn--primary:hover { background: var(--brand-400); color: #fff; }
.mobile-menu__divider { background: var(--line); }
.mobile-menu__meta { color: var(--ink-500); }
.mobile-cta {
  background: #fff;
  border-top-color: var(--line);
  box-shadow: 0 -12px 30px -22px rgba(27, 21, 18, 0.35);
}
.mobile-cta p { color: var(--ink-700); }

/* CTA bands are content-width cards, not full-bleed slabs. */
.cta-band {
  background: transparent;
  overflow: visible;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.cta-band::before { display: none; }
.cta-band > .container {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 55%, var(--brand-400) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-band > .container::before {
  content: '';
  position: absolute;
  right: -7rem;
  top: 50%;
  width: 36rem;
  height: 36rem;
  transform: translateY(-50%);
  background-image: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.16) 0deg 1.15deg, transparent 1.15deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  pointer-events: none;
}
.cta-band > .container > * { position: relative; z-index: 1; }

/* ==========================================================================
   Homepage principles strip: four distinct animated cards
   ========================================================================== */
.strip {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--c-paper);
  border-bottom: 1px solid var(--line);
}
.strip ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
  background: transparent;
}
.strip li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  color: var(--ink-700);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base), background-color var(--t-base);
}
.strip li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 360ms var(--ease);
}
.strip li:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.strip li:hover::before { transform: scaleX(1); }
.strip-card__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: background-color var(--t-base), color var(--t-base), transform var(--t-base);
}
.strip li svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}
.strip li:hover .strip-card__icon {
  background: var(--brand-500);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}
.strip-card__copy { min-width: 0; padding-right: 1.3rem; }
.strip-card__copy strong {
  display: block;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.strip-card__copy small {
  display: block;
  margin-top: 0.22rem;
  color: var(--ink-500);
  font-size: 0.78rem;
  line-height: 1.45;
}
.strip-card__index {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  color: var(--brand-300);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Sequential icon + accent entrance when the group reveals. */
@keyframes strip-icon-in {
  from { opacity: 0; transform: translateY(7px) scale(0.82) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes strip-line-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.js .strip ul.is-visible li .strip-card__icon {
  animation: strip-icon-in 580ms var(--ease) both;
}
.js .strip ul.is-visible li::before {
  animation: strip-line-in 650ms var(--ease) both;
}
.js .strip ul.is-visible li:nth-child(2) .strip-card__icon,
.js .strip ul.is-visible li:nth-child(2)::before { animation-delay: 80ms; }
.js .strip ul.is-visible li:nth-child(3) .strip-card__icon,
.js .strip ul.is-visible li:nth-child(3)::before { animation-delay: 160ms; }
.js .strip ul.is-visible li:nth-child(4) .strip-card__icon,
.js .strip ul.is-visible li:nth-child(4)::before { animation-delay: 240ms; }
.js .strip ul.is-visible li::before { transform: none; }

@media (max-width: 900px) {
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .strip ul { grid-template-columns: 1fr; gap: 0.65rem; }
  .strip li { padding: 1rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .strip ul.is-visible li .strip-card__icon,
  .js .strip ul.is-visible li::before { animation: none !important; }
  .strip li,
  .strip li::before,
  .strip-card__icon { transition: none !important; }
}
