/* iConsult — Variant 2: Modern SaaS overrides */
/* Loaded AFTER styles.css — sharpens the palette and structure */

/* Typography — Manrope everywhere, no italic em, accent colour */
body,
body .h-display,
body .h-section,
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--sans);
  font-style: normal;
}
body em,
body .h-display em,
body .h-section em,
body .become-price-value em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--blue-1);
}
body .h-display {
  font-weight: 800;
  letter-spacing: -0.035em;
}
body .h-section {
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Palette — Graphite + Blue accent (Stripe/Linear school) */
/* Graphite ink instead of pure black; warm paper bands; crisp white cards */
/* body.palette-ink to beat styles.css palette-ink specificity (0,1,1) */
body.palette-ink {
  --paper:           #ffffff;          /* page + card surface — crisp white */
  --paper-soft:      #fafbfc;
  --cream:           #f4f6f8;          /* cool alternating section bands */
  --cream-soft:      #f8fafc;
  --ink:             #14161a;          /* graphite — softer than #0a0a0a */
  --ink-soft:        #2a2e36;
  --mute:            #5b6068;          /* cool-neutral grey for body-secondary */
  --mute-soft:       #9aa0a8;
  --rule:            #e6e8eb;          /* cool hairline */
  --rule-soft:       #eef0f3;
  --accent:          var(--blue-1);
  --accent-deep:     var(--blue-0);
  --accent-soft:     var(--blue-3);
  --terracotta:      var(--blue-1);
  --terracotta-deep: var(--blue-0);
  --terracotta-soft: var(--blue-3);
  --indigo:          var(--ink);
  --ochre:           var(--mute);
}

/* Sharper shadows — less warmth, more software */
body {
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 1px 3px rgba(10, 10, 10, 0.06), 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 2px 8px rgba(10, 10, 10, 0.08), 0 24px 60px rgba(10, 10, 10, 0.08);
}

/* HEADER — cleaner, sharper */
.header {
  background: color-mix(in oklab, var(--paper) 90%, transparent);
}
.btn {
  border-radius: 8px;
  font-weight: 500;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.18);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.28);
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}
.btn-ghost {
  border-radius: 999px;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--cream);
}

/* Brand mark — blue dot */
.brand-mark svg circle:nth-child(2) {
  fill: var(--accent) !important;
}

/* ——— Single calm canvas — all light sections white, separated by air ——— */
/* Avoids the "striped" look; structure comes from cards + spacing, not fills */
.values,
.flows,
.cabinet,
.become,
.apply {
  background: var(--paper);
  border-top: none;
  border-bottom: none;
}
/* Flow cards stay crisp white on every band (shadow defined in FLOWS block) */

/* ——— HERO ——— */
.hero {
  background: var(--paper);
  padding-top: 40px;
}
.hero-tag {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink-soft);
  font-size: 13px;
}
.hero-tag-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.h-display em {
  color: var(--accent);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
  max-height: none;
  aspect-ratio: auto;
}
@media (max-width: 980px) {
  .hero-visual { display: none; }
}

/* TG Mini App mockup */
.tg-mock {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 17;
  border-radius: 28px;
  background: #f7f9fc;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 3px rgba(10, 10, 10, 0.05),
    0 30px 80px rgba(10, 10, 10, 0.12),
    0 60px 120px color-mix(in srgb, var(--blue-1) 8%, transparent);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tg-mock-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tg-mock-status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}
.tg-mock-status-right span {
  width: 16px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.tg-mock-status-right span::after {
  content: "";
  position: absolute;
  inset: 2px;
  right: 6px;
  background: currentColor;
  border-radius: 1px;
}
.tg-mock-header {
  padding: 8px 20px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.tg-mock-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.tg-mock-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-mock-header-text > :first-child {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.tg-mock-header-text > :last-child {
  font-size: 12px;
  color: var(--mute);
}
.tg-mock-header-icon {
  width: 18px;
  height: 3px;
  background: var(--mute);
  border-radius: 2px;
  box-shadow:
    0 6px 0 var(--mute),
    0 -6px 0 var(--mute);
  margin-right: 6px;
  opacity: 0.4;
}
.tg-mock-search {
  margin: 14px 16px 6px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  color: var(--mute);
  font-size: 13px;
}
.tg-mock-search::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 3px 3px 0 -1px currentColor;
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}
.tg-mock-chips {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow: hidden;
}
.tg-mock-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tg-mock-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tg-mock-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 16px 16px;
  overflow: hidden;
}
.tg-mock-tile {
  border-radius: 14px;
  background: linear-gradient(180deg, #eff1f5, #e6e9ee);
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--rule);
}
.tg-mock-tile::before {
  /* fake product silhouette */
  content: "";
  position: absolute;
  inset: 12% 22% 22% 22%;
  background: #c6ccd4;
  border-radius: 10px 10px 40% 40% / 10px 10px 20% 20%;
}
.tg-mock-tile.t2::before { background: #b6c0cc; inset: 10% 20% 18% 20%; border-radius: 50% 50% 30% 30% / 50% 50% 10% 10%; }
.tg-mock-tile.t3::before { background: #bec5cf; inset: 18% 18% 20% 18%; border-radius: 12px; }
.tg-mock-tile.t4::before { background: #c9cfd7; inset: 12% 24% 24% 24%; border-radius: 16px; }
.tg-mock-tile-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.tg-mock-tile-label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.tg-mock-try-btn {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--blue-1) 35%, transparent);
}
.tg-mock-try-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
  mask: radial-gradient(circle at 30% 30%, transparent 3px, #000 3.5px);
}
.tg-mock-chat {
  position: absolute;
  left: 16px;
  right: 96px;
  bottom: 80px;
  background: var(--paper);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tg-mock-chat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* HERO META */
.hero-meta strong {
  color: var(--ink);
}

/* ——— VALUES: pure white cards, 1px border ——— */
.value-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
}
/* hover handled in "Card motion language" block below */
.value-icon {
  color: var(--accent);
  background: var(--accent-soft);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* ——— FLOWS as a stepper ——— */
.flows-head {
  text-align: left;
  margin-bottom: 56px;
}
.flows-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.flows-grid .reveal {
  height: 100%;
}
.flow {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  box-sizing: border-box;
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--mute-soft);
  padding: 0 4px;
}
.flow-arrow svg {
  width: 28px;
  height: 28px;
}

/* ═══ Card motion language — calm physics, fast in / slow settle ═══ */
/* Resting state: slow, gentle return (260ms). Hover state: snappy (150ms). */
.value-card,
.flow {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  will-change: transform;
}
.value-card:hover,
.flow:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}
/* Icon micro-response inside value cards */
.value-card:hover .value-icon {
  transform: scale(1.06);
  transition: transform 150ms ease-out;
}
.value-icon {
  transition: transform 260ms ease;
}
/* Touch feedback — primary audience is mobile (no hover, needs tap response) */
.value-card:active,
.flow:active {
  transform: scale(0.985);
  transition: transform 90ms ease;
}

.flow-subtitle {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.flow-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--ink);
}
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow-step {
  display: flex;
  gap: 12px;
  padding-left: 22px;
  position: relative;
}
.flow-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--paper);
}
.flow-step-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.flow-step-hint {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}
@media (max-width: 980px) {
  .flows-grid {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }
}

/* ——— BOARD ——— */
.board {
  background: var(--white-0);
  color: var(--black-0);
  /* styles.css .board block locally overrides --ink/--paper to dark — reset them */
  --ink:      var(--black-0);
  --ink-soft: var(--black-1);
  --mute:     var(--black-2);
  --mute-soft:var(--black-3);
  --paper:    var(--white-0);
  --rule:     var(--white-3);
  --cream:    var(--white-1);
}
.board .h-section,
.board .h-section em {
  color: var(--black-0);
}
.board .h-section em {
  color: var(--blue-1);
}
.board .eyebrow {
  color: var(--black-2);
}
.board-head p {
  color: var(--black-1);
}
.board-section-label {
  color: var(--black-2);
}
.board-section-label::before,
.board-section-label::after {
  background: var(--white-3);
}
.board .eyebrow::before {
  background: var(--blue-1);
}
.human-card {
  background: #111111;
  border: 1px solid #262626;
  border-radius: 16px;
}
.human-card.empty {
  background: transparent;
  border-style: dashed;
  border-color: #2a2a2a;
}
.portrait {
  background: #1a1a1a;
}
.human-role {
  color: var(--accent);
}
.agent {
  background: #111111;
  border: 1px solid #262626;
  border-radius: 16px;
}
.agent-status-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.agent-status {
  color: #a3a3a3;
}
.agent-role {
  color: var(--accent);
}
.board-section-label {
  color: #a3a3a3;
  border-color: #262626;
}

/* ——— TENANT steps: minimal rows with dividers ——— */
.tenant-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.tenant-step {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 28px 8px;
  box-shadow: none;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 24px;
  transition: background 0.2s ease, padding 0.2s ease;
}
.tenant-step:hover {
  background: var(--cream);
}
.tenant-step-num {
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.tenant-step-title {
  font-size: 17px;
  font-weight: 600;
}
.tenant-step-by {
  background: var(--cream);
  color: var(--mute);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--mono);
}

/* ——— FORM: larger, modern focus ring ——— */
.field label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-1) 15%, transparent);
  outline: none;
}
.field.error input,
.field.error textarea,
.field.error select {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.form-submit {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 10px;
  font-weight: 600;
}
.form-submit:hover {
  background: var(--accent-deep);
  transform: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--blue-1) 30%, transparent);
}
.form-success-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ——— CONTACTS: light ——— */
.contacts {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--rule);
}
.contacts .h-section,
.contacts .h-section em {
  color: var(--ink);
}
.contacts .h-section em {
  color: var(--accent);
}
.contacts .eyebrow {
  color: var(--mute);
}
.contacts .lede {
  color: var(--mute) !important;
}
.become-price { border-radius: 16px; }

.contacts-list {
  background: transparent;
  border: none;
  gap: 12px;
  overflow: visible;
}
.contact-row {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.contact-row:hover {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--blue-1) 60%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.contact-label {
  color: var(--mute);
}
.contact-value {
  color: var(--ink);
}
.contact-arrow {
  color: var(--accent);
}

/* ——— FOOTER: cool charcoal ——— */
.footer {
  background: var(--black-0);
  color: #a3a3a3;
  border-top: none;
}
.footer-brand {
  color: var(--white-1);
}

/* EYEBROW line uses accent blue */
.eyebrow::before { background: var(--accent); }

/* ——— HEADER SIGN-IN BUTTON ——— */
.header-right {
  gap: 8px !important;
}
.signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.signin-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.signin-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.signin-btn:hover svg {
  opacity: 1;
  transform: translateX(1px);
}
@media (max-width: 880px) {
  .signin-btn {
    display: none;
  }
}

/* Mobile drawer header row */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
/* Cancel out .mobile-nav a styles that bleed into header elements */
.mobile-nav .mobile-nav-logo,
.mobile-nav .mobile-signin {
  padding: 0;
  border-bottom: none;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.mobile-nav-logo img {
  height: 90px;
  width: auto;
  display: block;
}
.mobile-nav-lang {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--paper);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 8px;
}
.mobile-nav-lang button {
  padding: 6px 11px;
  color: var(--mute);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-lang button.active {
  background: var(--ink);
  color: var(--paper);
}

/* Mobile drawer sign-in — full-width blue CTA */
.mobile-nav .mobile-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.15s ease;
}
.mobile-nav .mobile-signin:hover {
  background: var(--accent-deep);
}
.mobile-nav .mobile-signin svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* ——— CABINET SECTION ——— */
.cabinet {
  background: var(--paper);
}
.cabinet-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .cabinet-inner { grid-template-columns: 1fr; gap: 56px; }
}
.cabinet-left,
.cabinet-right {
  min-width: 0;
  overflow: hidden;
}
.cabinet-left .lede { margin-top: 20px; max-width: 56ch; }

/* Feature rows */
.cabinet-features {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cabinet-feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05);
  overflow: hidden;
}
.cabinet-feature > div {
  min-width: 0;
}
.cabinet-feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.cabinet-feature-icon svg {
  width: 22px;
  height: 22px;
}
.cabinet-feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cabinet-feature-body {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
}

/* Right-column mockup */
.cabinet-right {
  position: sticky;
  top: 84px;
}
@media (max-width: 980px) {
  .cabinet-right { position: static; }
}
.cabinet-mock {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 8px 32px rgba(10, 10, 10, 0.06);
  overflow: hidden;
  max-width: 100%;
}
.cabinet-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f7f7f8;
  border-bottom: 1px solid var(--rule);
}
.cabinet-mock-dots {
  display: inline-flex;
  gap: 6px;
}
.cabinet-mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d8;
  display: block;
}
.cabinet-mock-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.01em;
}
.cabinet-mock-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px 0;
  min-height: 360px;
}
.cabinet-mock-greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.cabinet-mock-greet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cabinet-mock-exit {
  font-size: 11px;
  color: var(--mute);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
}
.cabinet-mock-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-top: 8px;
}
.cabinet-mock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}
.cabinet-mock-stylist {
  justify-content: space-between;
}
.cabinet-mock-stylist strong {
  font-size: 14px;
  color: var(--ink);
}
.cabinet-mock-ghost-btn {
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
}
.cabinet-mock-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.cabinet-mock-agent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.cabinet-mock-agent-info strong {
  font-size: 13px;
  color: var(--ink);
}
.cabinet-mock-agent-role {
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cabinet-mock-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--mute);
}
.cabinet-mock-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
  animation: cabinetPulse 1.8s ease-in-out infinite;
}
.cabinet-mock-talk {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--rule));
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.cabinet-mock-tabbar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin: 8px -16px 0;
  padding: 10px 6px 12px;
  background: var(--paper);
}
.cabinet-mock-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--mute-soft);
}
.cabinet-mock-tab-ic { display: flex; }
.cabinet-mock-tab-ic svg { width: 18px; height: 18px; display: block; }
.cabinet-mock-tab.active {
  color: var(--accent);
  font-weight: 600;
}
@keyframes cabinetPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1); }
}

/* Form: submitting + error states */
.apply .btn-primary.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.apply .btn-primary.form-submit.submitting::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}

.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
}

.form-error::before {
  content: "⚠ ";
  font-weight: 600;
}

/* ——— Board people cards: equal height & aligned portraits ——— */
.humans-grid {
  align-items: stretch;
}
.human-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.human-card .portrait {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.human-card .portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.human-card > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.human-card .human-bio {
  margin-top: auto;
}

/* ── Board Diagram ─────────────────────────────────────── */
.bd { display:flex; flex-direction:column; align-items:center; width:100%; max-width:680px; margin:3rem auto 0; }

.bd-council { display:flex; justify-content:center; gap:2.5rem; flex-wrap:wrap; width:100%; }

.bd-human { display:flex; flex-direction:column; align-items:center; gap:.45rem; min-width:110px; }

.bd-circle {
  width:64px; height:64px; border-radius:50%;
  background:var(--white-0); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--sans); font-size:1.15rem; font-weight:600;
  color:var(--black-1); letter-spacing:.03em; flex-shrink:0;
}
.bd-human--vacancy .bd-circle { border:1.5px dashed var(--black-3); box-shadow:none; color:var(--black-2); }

.bd-human-name { font-size:.75rem; color:var(--black-0); text-align:center; line-height:1.35; max-width:110px; }
.bd-human--vacancy .bd-human-name { color:var(--black-2); font-style:italic; }
.bd-human-role { font-size:.75rem; color:var(--black-2); text-transform:uppercase; letter-spacing:.07em; text-align:center; }

.bd-flow { width:100%; display:flex; flex-direction:column; align-items:center; gap:4px; padding:1rem 0; }
.bd-flow-label { font-size:.75rem; color:var(--black-3); text-transform:uppercase; letter-spacing:.09em; }
.bd-flow-svg { width:100%; max-width:480px; height:16px; overflow:visible; }

.bd-functions { display:grid; grid-template-columns:repeat(3,1fr); gap:.65rem; width:100%; }

.bd-fn {
  position:relative; border:1px solid var(--white-3); border-radius:var(--radius);
  padding:.9rem .6rem .75rem; text-align:center; cursor:pointer;
  background:var(--white-0);
  animation:bd-pulse 3s ease-in-out infinite;
  transition:border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color:transparent;
}
.bd-fn:hover { border-color:var(--blue-1); box-shadow:var(--shadow-sm); }

.bd-fn--1 { animation-delay:-2.5s; }
.bd-fn--2 { animation-delay:-2.0s; }
.bd-fn--3 { animation-delay:-1.5s; }
.bd-fn--4 { animation-delay:-1.0s; }
.bd-fn--5 { animation-delay:-0.5s; }

@keyframes bd-pulse {
  0%,100% { border-color: var(--white-3); }
  50%     { border-color: color-mix(in srgb, var(--blue-1) 55%, transparent); }
}

.bd-fn-label { display:block; font-size:.75rem; font-weight:400; color:var(--black-2); line-height:1.3; }

.bd-fn-tooltip {
  display:none; position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--white-1); border:1px solid var(--white-3); border-radius:var(--radius-sm);
  padding:.45rem .7rem; font-size:.75rem; color:var(--black-0);
  white-space:nowrap; z-index:20; pointer-events:none;
  box-shadow:var(--shadow-md);
}
@media (hover:hover) { .bd-fn:hover .bd-fn-tooltip { display:block; } }

.bd-fn-expand {
  margin-top:.5rem; font-size:.66rem; color:var(--black-0);
  line-height:1.45; text-align:left;
}

.bd-tenants {
  width:100%;
  border:1px solid var(--white-3);
  border-radius:var(--radius);
  padding:1.1rem 1rem;
  text-align:center;
  font-size:.85rem;
  color:var(--black-0);
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:500;
  background:var(--white-0);
}

@media (max-width:520px) {
  .bd-council { gap:1.25rem; }
  .bd-circle { width:54px; height:54px; font-size:.95rem; }
  .bd-functions { grid-template-columns:repeat(2,1fr); gap:.5rem; }
  .bd-fn-tooltip { white-space:normal; width:170px; }
}

@media (prefers-reduced-motion:reduce) {
  .bd-fn { animation:none !important; border-color:color-mix(in srgb, var(--blue-1) 35%, transparent) !important; }
  .bd-fn, .bd-tenants { transition:none !important; }
}

/* bd-circle photo */
.bd-circle img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.bd-human--chair .bd-circle,
.bd-human--member .bd-circle { cursor:pointer; }

/* Modal */
.bd-modal-overlay {
  position:fixed; inset:0; background:rgba(10,10,10,.6);
  z-index:1000; display:flex; align-items:center;
  justify-content:center; padding:1.5rem;
  animation:bd-fade .2s ease;
}
@keyframes bd-fade { from{opacity:0} to{opacity:1} }

.bd-modal-card {
  position:relative; background:var(--white-0);
  border:none; border-radius:var(--radius-lg);
  max-width:420px; width:100%;
  max-height:90dvh; display:flex; flex-direction:column; overflow:hidden;
  box-shadow:var(--shadow-lg);
  animation:bd-card-in .2s ease;
}
@keyframes bd-card-in {
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

.bd-modal-photo { width:100%; height:42vh; object-fit:cover; object-position:center top; display:block; flex-shrink:0; }
.bd-modal-body  { padding:1.25rem 1.5rem 1.5rem; overflow-y:auto; }
.bd-modal-name  { font-family:var(--sans); font-size:1.25rem; font-weight:600; color:var(--black-0); line-height:1.25; }
.bd-modal-role  { font-size:.7rem; color:var(--blue-1); text-transform:uppercase; letter-spacing:.08em; margin-top:.3rem; }
.bd-modal-bio   { font-size:.875rem; color:var(--black-2); line-height:1.6; margin-top:.85rem; }

.bd-modal-links { display:flex; gap:.75rem; margin-top:1rem; flex-wrap:wrap; }
.bd-modal-link  {
  font-size:.72rem; color:var(--blue-1); text-decoration:none;
  border:1px solid color-mix(in srgb, var(--blue-1) 35%, transparent); border-radius:4px;
  padding:.3rem .6rem; transition:background .15s;
}
.bd-modal-link:hover { background:var(--blue-3); }

.bd-modal-close {
  position:absolute; top:.5rem; right:.5rem;
  width:44px; height:44px; border-radius:50%;
  background:var(--white-2); border:1px solid var(--white-3);
  color:var(--black-2); font-size:1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s, color .15s;
}
.bd-modal-close:hover { background:var(--white-3); color:var(--black-0); }

/* bd-fn: имя агента + функция */
.bd-fn-name {
  display:block;
  font-family:var(--sans);
  font-size:1.05rem; font-weight:600;
  color:var(--black-0); line-height:1.2;
}
.bd-fn-label { font-size:.68rem; color:var(--black-2); margin-top:.18rem; }

/* Пояснительный блок про имена агентов */
.bd-agents-note {
  margin:1.5rem 0 0; padding-left:1rem;
  border-left:2px solid var(--blue-2);
  font-size:.8rem; font-style:italic;
  color:var(--black-2); line-height:1.65;
  max-width:560px;
}

/* ═══ MARQUEE ═══ */
.marquee-section { overflow: hidden; padding: 28px 0; border-top: 1px solid var(--rule); }
.marquee-section--partners { border-bottom: 1px solid var(--rule); }
.marquee-eyebrow { text-align: left; margin-bottom: 18px; padding: 0 max(var(--pad-x), calc((100% - 1240px) / 2)); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--black-2); font-family: var(--mono); }
.marquee-eyebrow::before { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.marquee-outer { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee-fwd 28s linear infinite; }
.marquee-track--reverse { animation: marquee-rev 22s linear infinite; }
@keyframes marquee-fwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee-tile { display: flex; flex-direction: column; justify-content: center; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--rule); background: var(--white-0); white-space: nowrap; min-width: 140px; flex-shrink: 0; }
.marquee-tile--active { border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); background: color-mix(in srgb, var(--accent) 5%, #ffffff); }
.marquee-tile--soon { opacity: 0.35; }
.marquee-tile--partner { min-width: 240px; }
a.marquee-tile--partner, a.marquee-tile--active { text-decoration: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
a.marquee-tile--partner:hover, a.marquee-tile--active:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.marquee-tile-logo { height: 28px; width: auto; display: block; margin-bottom: 4px; }
.marquee-tile-name { font-size: 13px; font-weight: 600; color: var(--black-0); line-height: 1.2; }
.marquee-tile--soon .marquee-tile-name { font-style: italic; font-weight: 400; color: var(--black-2); }
.marquee-tile-sub { font-size: 12px; color: var(--black-2); margin-top: 3px; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .marquee-track--reverse { animation: none; }
}


/* Hero phone frame for real video */
.hero-phone {
  height: min(600px, 76vh);
  width: auto;
  aspect-ratio: 394 / 854;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 3px rgba(10, 10, 10, 0.05),
    0 30px 80px rgba(10, 10, 10, 0.12),
    0 60px 120px color-mix(in srgb, var(--blue-1) 8%, transparent);
}
.hero-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* до декодирования видео/постера рамка не должна быть пустой белой */
  background: var(--ink) url("/intro-poster.webp") center / cover no-repeat;
}

/* ═══ Reveal-on-scroll — tightened: shorter, ease-out, no overshoot ═══ */
.reveal {
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* ═══ Reduced-motion — calm everything for accessibility ═══ */
@media (prefers-reduced-motion: reduce) {
  .value-card, .flow, .value-icon,
  .value-card:hover, .flow:hover, .value-card:active, .flow:active,
  .value-card:hover .value-icon {
    transition: none !important;
    transform: none !important;
  }
  .reveal {
    transition: opacity 0.3s linear !important;
    transform: none !important;
  }
}
