/* ============================================================
   Residentially — Crimson Plinth design system
   Quiet warm-paper canvas, hairline borders, editorial serif
   moments. One material element: the layered crimson press.
   ============================================================ */

:root {
  --paper: #f6f2ec;
  --surface: #ffffff;
  --sunken: #efe9e0;
  --hair: #e5dfd6;
  --muted: #6b645d;
  --ink: #1a1614;
  --crimson: #f00045;
  --deep: #a30037;

  --radius: 12px;
  --radius-lg: 16px;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--crimson);
  color: #fff;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.display em {
  font-style: italic;
  color: var(--crimson);
}

.display-xl { font-size: clamp(44px, 7vw, 88px); }
.display-lg { font-size: clamp(36px, 5vw, 64px); }
.display-md { font-size: clamp(28px, 3.5vw, 44px); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   The one material element: the crimson press button
   4px lift at rest, 6 on hover, 2 on click.
   ------------------------------------------------------------ */

.press {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--crimson);
  border: none;
  border-radius: var(--radius);
  padding: 14px 26px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--deep);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.press:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--deep);
}

.press:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--deep);
}

.press:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.press:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 0 var(--deep);
}

.press:disabled:hover {
  transform: none;
  box-shadow: 0 4px 0 var(--deep);
}

/* Everything else stays flat. */

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.btn-quiet:hover {
  border-color: var(--muted);
}

.btn-quiet .label {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink);
}

.link-arrow:hover {
  text-decoration-color: var(--crimson);
  color: var(--crimson);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--crimson);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a.nav-link:hover {
  color: var(--ink);
}

.site-nav .press {
  padding: 10px 20px;
  font-size: 15px;
}

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

.hero {
  padding: 96px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .lede {
  max-width: 46ch;
  margin: 28px 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
}

.hero-stats .stat .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.hero-stats .stat .value {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
}

/* Hero visual: a flat portal vignette */

.hero-visual {
  background: var(--sunken);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.phone-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
}

.bubble {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 90%;
}

.bubble.resident {
  background: var(--sunken);
  align-self: flex-end;
}

.bubble.assistant {
  background: var(--paper);
  border: 1px solid var(--hair);
  align-self: flex-start;
}

.bubble.system {
  background: rgba(240, 0, 69, 0.06);
  border: 1px solid rgba(240, 0, 69, 0.14);
  align-self: center;
  display: grid;
  gap: 8px;
  max-width: 94%;
}

.bubble .who {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.upload-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

.automation-card {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--sunken);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.automation-card .who {
  grid-column: 1 / -1;
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.automation-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
}

.automation-row span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  padding: 88px 0;
}

.home .hero + .section {
  padding-top: 56px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 36px;
  margin-bottom: 56px;
}

.section-head .lede {
  max-width: 52ch;
}

/* Feature cards: flat, hairline, shared radius */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
}

.feature-card + .feature-card {
  border-left: none;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 18px;
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 22px;
}

.home #product .feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 332px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(240, 0, 69, 0.4), rgba(229, 223, 214, 0.85) 38%, rgba(163, 0, 55, 0.24)) border-box;
  box-shadow:
    0 26px 60px rgba(26, 22, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.home #product .feature-card + .feature-card {
  border-left: 1px solid transparent;
}

.home #product .feature-card::before {
  content: "";
  position: absolute;
  inset: -48% -62%;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 31%, rgba(240, 0, 69, 0.08) 42%, rgba(255, 255, 255, 0.56) 50%, rgba(163, 0, 55, 0.08) 58%, transparent 69%);
  transform: translateX(-42%) rotate(8deg);
  opacity: 0.85;
  transition: transform 0.55s ease, opacity 0.22s ease;
}

.home #product .feature-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) - 4px);
  background:
    linear-gradient(90deg, rgba(240, 0, 69, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 22, 20, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.9), transparent 58%);
  opacity: 0.55;
}

.home #product .feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 0, 69, 0.22);
  box-shadow:
    0 32px 70px rgba(26, 22, 20, 0.11),
    0 0 0 1px rgba(240, 0, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home #product .feature-card:hover::before {
  transform: translateX(20%) rotate(8deg);
  opacity: 1;
}

.home #product .feature-card .icon {
  position: relative;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(240, 0, 69, 0.5), rgba(229, 223, 214, 0.9)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(240, 0, 69, 0.08);
}

.home #product .feature-card .icon span {
  color: var(--crimson);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home #product .feature-card h3,
.home #product .feature-card p,
.home #product .feature-card a {
  position: relative;
  z-index: 1;
}

.home #product .feature-marquee {
  --feature-gap: 20px;
  --feature-loop-shift: calc(-50% - 10px);
  overflow: hidden;
  padding: 4px 0 12px;
}

.home #product .feature-track {
  display: flex;
  gap: var(--feature-gap);
  width: max-content;
  animation: feature-scroll 78s linear infinite;
  will-change: transform;
}

.home #product .feature-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--feature-gap);
}

.home #product .feature-card {
  flex: 0 0 clamp(300px, 30vw, 410px);
}

@keyframes feature-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--feature-loop-shift), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home #product .feature-track {
    animation: none;
  }

  .home #product .feature-marquee {
    overflow-x: auto;
  }

  .home #product .feature-card,
  .home #product .feature-card::before {
    transition: none;
  }

  .home #product .feature-card:hover {
    transform: none;
  }
}

/* Workflow automation: message to routed system action */

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 20px;
}

.workflow-stage {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--hair);
  min-height: 205px;
}

.workflow-stage:last-child {
  border-right: none;
}

.stage-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  display: block;
  margin-bottom: 18px;
}

.stage-num.crimson {
  color: var(--crimson);
  font-style: italic;
}

.workflow-stage h3,
.workflow-card h3 {
  font-size: 20px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.workflow-stage p,
.workflow-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.workflow-grid {
  --workflow-gap: 16px;
  --workflow-loop-shift: calc(-50% - 8px);
  overflow: hidden;
  padding: 4px 0 10px;
}

.workflow-track {
  display: flex;
  gap: var(--workflow-gap);
  width: max-content;
  animation: workflow-scroll 72s linear infinite;
  will-change: transform;
}

.workflow-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--workflow-gap);
}

.workflow-card {
  flex: 0 0 clamp(280px, 25vw, 350px);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 282px;
}

@keyframes workflow-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--workflow-loop-shift), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-track {
    animation: none;
  }

  .workflow-grid {
    overflow-x: auto;
  }
}

.workflow-label {
  display: inline-flex;
  width: fit-content;
  color: var(--crimson);
  border: 1px solid rgba(240, 0, 69, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.workflow-lines {
  border-top: 1px solid var(--hair);
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.workflow-lines div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
}

.workflow-lines span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Portal demo: two-panel composer */

.demo-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-left {
  background: var(--surface);
  padding: 36px;
  min-width: 0;
}

.demo-right {
  background: var(--sunken);
  padding: 36px;
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 2px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--crimson);
}

.demo-left h3.serif {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 8px;
}

.demo-left h3.serif em {
  font-style: italic;
  color: var(--crimson);
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-cell {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
}

.field-cell:nth-child(odd) {
  border-right: 1px solid var(--hair);
}

.field-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}

.field-cell .k {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.request-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 26px;
}

.request-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pill {
  background: rgba(240, 0, 69, 0.08);
  color: var(--crimson);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
}

.request-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
}

.request-row:last-child {
  border-bottom: none;
}

.request-list {
  border-top: 1px solid var(--hair);
}

.request-row .status {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--hair);
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check.done {
  background: var(--crimson);
  border-color: var(--crimson);
}

.check.done::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* Numbered editorial list */

.num-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
}

.num-row .num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}

.num-row:nth-child(3) .num,
.num-row .num.crimson {
  color: var(--crimson);
  font-style: italic;
}

.num-row h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.num-row p {
  color: var(--muted);
  font-size: 15px;
}

/* Integrations */

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.integration-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
}

.integration-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.integration-card h4 {
  font-size: 16.5px;
  font-weight: 600;
}

.integration-card p {
  font-size: 14.5px;
  color: var(--muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
}

.adapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.adapter-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
}

.adapter-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.adapter-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.adapter-card > p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.adapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.adapter-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 10px;
}

.adapter-points {
  list-style: none;
}

.adapter-points li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.adapter-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
}

.adapter-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.adapter-status.ready {
  background: rgba(240, 0, 69, 0.08);
  color: var(--crimson);
}

.adapter-status.staged {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.adapter-status.planned {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--hair);
}

.logo-strip {
  margin-bottom: 32px;
}

.logo-strip .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.logo-strip-note {
  max-width: 48ch;
  margin-bottom: 0;
}

.logo-marquee {
  overflow: hidden;
  width: 100%;
  padding: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 42s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.logo-row {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
  margin: 0;
  flex-shrink: 0;
}

.logo-row li {
  flex: 0 0 160px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-row img {
  display: block;
  max-width: 140px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
}

.integrations-page #adapters {
  padding: 56px 0;
}

.integrations-page #adapters + .section {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }

  .logo-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Big stat band */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-marquee {
  overflow: hidden;
  width: 100%;
}

.stat-band .cell {
  padding: 28px 28px 36px 0;
}

.stat-band .cell:last-child {
  border-right: none;
}

.stat-band .cell + .cell {
  padding-left: 28px;
}

.stat-band .cell-accent .big {
  color: var(--crimson);
}

.stat-band .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.stat-band .big {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
}

.stat-band .big sup {
  font-size: 0.38em;
  font-style: italic;
  color: var(--crimson);
  vertical-align: super;
}

.stat-band .note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

/* Final CTA */

.cta {
  padding: 110px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.cta .lede {
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Interior pages */

.page-hero {
  padding: 72px 0 56px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: end;
}

.page-hero .lede {
  max-width: 46ch;
}

.page-hero-chat {
  align-items: center;
}

.page-hero-chat .hero-visual {
  margin-top: 0;
}

.site-nav a.nav-link.active {
  color: var(--ink);
}

.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-panel {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 36px 32px 40px;
}

.product-panel .lede {
  margin-top: 14px;
  max-width: none;
}

.product-points {
  list-style: none;
  margin: 22px 0 28px;
}

.product-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
}

.module-grid {
  --module-gap: 14px;
  --module-loop-shift: calc(-50% - 7px);
  overflow: hidden;
  padding: 4px 0 10px;
}

.module-track {
  display: flex;
  gap: var(--module-gap);
  width: max-content;
  animation: module-scroll 72s linear infinite;
  will-change: transform;
}

.module-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--module-gap);
}

.module-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 clamp(220px, 19vw, 280px);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(240, 0, 69, 0.38), rgba(229, 223, 214, 0.88) 40%, rgba(163, 0, 55, 0.22)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  min-height: 226px;
  box-shadow:
    0 26px 60px rgba(26, 22, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: -48% -62%;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 31%, rgba(240, 0, 69, 0.08) 42%, rgba(255, 255, 255, 0.56) 50%, rgba(163, 0, 55, 0.08) 58%, transparent 69%);
  transform: translateX(-42%) rotate(8deg);
  opacity: 0.85;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) - 4px);
  background:
    linear-gradient(90deg, rgba(240, 0, 69, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 22, 20, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.9), transparent 58%);
  opacity: 0.55;
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--crimson);
  display: block;
  margin-bottom: 12px;
}

.module-card h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.module-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.module-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 10px;
}

@keyframes module-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--module-loop-shift), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-track {
    animation: none;
  }

  .module-grid {
    overflow-x: auto;
  }
}

.flow-step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair);
  margin-top: 6px;
}

.flow-dot.accent {
  background: var(--crimson);
}

.flow-step strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-note {
  margin-top: 36px;
  font-size: 15px;
  color: var(--muted);
}

.section-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
}

.section-note a:hover {
  text-decoration-color: var(--crimson);
  color: var(--crimson);
}

/* Hubbly assistant page */

.assistant-hero {
  padding-bottom: 72px;
}

.assistant-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: center;
}

.assistant-copy .display-xl {
  margin-top: 18px;
  max-width: 10.5ch;
}

.assistant-copy .lede {
  max-width: 55ch;
  margin-top: 22px;
}

.assistant-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
}

.assistant-mini-metrics div {
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.assistant-mini-metrics strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.assistant-mini-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.hubbly-console {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(240, 0, 69, 0.52), rgba(229, 223, 214, 0.9) 44%, rgba(163, 0, 55, 0.24)) border-box;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(26, 22, 20, 0.1);
}

.hubbly-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(240, 0, 69, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 22, 20, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.92), transparent 72%);
}

.console-top,
.intent-head,
.staff-preview-head,
.usecase-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.console-top {
  margin-bottom: 18px;
}

.console-top h2,
.intent-head h3,
.staff-preview-head h3 {
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.resident-prompt {
  background: var(--sunken);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.resident-prompt .who {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.intent-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
}

.intent-head strong {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.9;
  color: var(--crimson);
  font-weight: 400;
}

.intent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 18px;
}

.intent-grid div {
  padding: 13px 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  font-weight: 600;
}

.intent-grid div:nth-child(odd) {
  border-right: 1px solid var(--hair);
}

.intent-grid div:nth-last-child(-n + 2) {
  border-bottom: none;
}

.intent-grid span,
.usecase-lines span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.missing-fields .field-label {
  margin-top: 18px;
}

.missing-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.missing-pill-row span {
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
}

.console-action-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: flex-start;
  background: rgba(240, 0, 69, 0.06);
  border: 1px solid rgba(240, 0, 69, 0.16);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 18px;
}

.console-action-card strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin: 5px 0 8px;
}

.console-action-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 7px rgba(240, 0, 69, 0.09);
  margin-top: 8px;
}

.assistant-section-tight {
  padding-top: 34px;
}

.assistant-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.process-card {
  min-height: 242px;
  padding: 24px 20px;
  border-right: 1px solid var(--hair);
}

.process-card:last-child {
  border-right: none;
}

.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--crimson);
  margin-bottom: 28px;
}

.process-card h3,
.assistant-usecase h3,
.ops-checks div,
.staff-ticket strong,
.guardrail-grid h3 {
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.process-card p,
.assistant-usecase p,
.staff-ticket p,
.guardrail-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 9px;
}

.assistant-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.assistant-usecase {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.usecase-top {
  margin-bottom: 26px;
}

.usecase-top span {
  display: inline-flex;
  width: fit-content;
  color: var(--crimson);
  border: 1px solid rgba(240, 0, 69, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usecase-top strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: rgba(26, 22, 20, 0.2);
  font-weight: 400;
}

.usecase-lines {
  border-top: 1px solid var(--hair);
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.usecase-lines div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.35;
}

.assistant-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: stretch;
}

.ops-panel,
.staff-preview,
.assistant-guardrails {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.ops-panel .display-md {
  margin-top: 16px;
}

.ops-panel .lede {
  margin-top: 16px;
}

.ops-checks {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ops-checks div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
}

.ops-checks span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  margin-top: 7px;
}

.staff-preview {
  background: var(--sunken);
}

.staff-preview-head {
  margin-bottom: 16px;
}

.staff-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 17px 18px;
  margin-top: 12px;
}

.staff-ticket.urgent {
  border-color: rgba(240, 0, 69, 0.24);
}

.staff-ticket span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.staff-ticket em {
  align-self: start;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--crimson);
  background: rgba(240, 0, 69, 0.06);
  padding: 5px 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.assistant-guardrails {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.assistant-guardrails .display-md {
  margin-top: 14px;
}

.guardrail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.guardrail-grid article {
  background: var(--surface);
  padding: 20px;
}

/* Footer */

.site-footer {
  padding: 48px 0 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 20px 0 28px;
}

.footer-bottom .small {
  font-size: 13px;
}

.ink-strip {
  background: var(--ink);
  height: 10px;
}

/* ------------------------------------------------------------
   Auth pages
   ------------------------------------------------------------ */

.auth-main {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-aside {
  background: var(--sunken);
  border-right: 1px solid var(--hair);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside .display-md {
  max-width: 14ch;
  margin-top: 24px;
}

.auth-aside .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.5;
}

.auth-aside .quote .who {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card .display-md {
  margin-bottom: 8px;
}

.auth-card > .lede {
  font-size: 15.5px;
  margin-bottom: 32px;
}

.auth-form {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-group input,
.input-group select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}

.input-group input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--ink);
}

.input-group .hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 24px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-row .box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--hair);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.checkbox-row input:checked + .box {
  background: var(--crimson);
  border-color: var(--crimson);
}

.checkbox-row input:checked + .box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.auth-form .press {
  width: 100%;
  justify-content: center;
}

.auth-alt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

.auth-alt a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-alt a:hover {
  color: var(--crimson);
}

.form-note {
  display: none;
  background: rgba(240, 0, 69, 0.07);
  border: 1px solid rgba(240, 0, 69, 0.25);
  color: var(--deep);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-note.show {
  display: block;
}

.demo-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sunken);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.demo-strip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
}

.demo-strip button {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}

.demo-strip button:hover {
  color: var(--crimson);
}

/* ------------------------------------------------------------
   Resident portal
   ------------------------------------------------------------ */

.resident-shell {
  padding-top: 28px;
  padding-bottom: 88px;
}

.resident-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.resident-bar select {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 10px 14px;
}

.resident-locked #residentSelect {
  display: none;
}

.resident-conn {
  max-width: 360px;
}

.resident-conn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resident-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  margin-bottom: 20px;
}

.resident-hero-card .lede {
  max-width: 58ch;
  margin-top: 12px;
}

.resident-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resident-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  margin-bottom: 34px;
}

.resident-stat {
  width: 100%;
  text-align: left;
  font-family: var(--font-ui);
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 18px 22px 22px 0;
  border-right: 1px solid var(--hair);
}

.resident-stat.clickable {
  cursor: pointer;
}

.resident-stat.clickable:hover strong,
.resident-stat.clickable:focus-visible strong {
  color: var(--crimson);
}

.resident-stat:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.resident-stat + .resident-stat {
  padding-left: 22px;
}

.resident-stat:last-child {
  border-right: none;
}

.resident-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 400;
  margin: 8px 0;
}

.resident-stat span:last-child {
  color: var(--muted);
  font-size: 13.5px;
}

.resident-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 24px;
  overflow-x: auto;
}

.resident-view {
  animation: resident-fade 0.16s ease;
}

@keyframes resident-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.resident-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.resident-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.resident-panel {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-head h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-top: 3px;
}

.compact,
.press.compact,
.btn-quiet.compact {
  padding: 10px 16px;
  font-size: 14px;
}

.resident-list {
  border-top: 1px solid var(--hair);
}

.resident-list.compact-list {
  margin-top: 20px;
}

.resident-list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}

.resident-list-row:last-child {
  border-bottom: none;
}

.resident-list-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.resident-list-row small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 3px;
}

.resident-list-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  margin-top: 1px;
}

button.resident-list-row {
  width: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

button.resident-list-row:hover strong {
  color: var(--crimson);
}

.row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  margin-top: 7px;
}

.resident-list-row.done .row-dot {
  background: var(--hair);
}

.resident-list-row.urgent .row-dot {
  box-shadow: 0 0 0 5px rgba(240, 0, 69, 0.08);
}

.resident-row-thumb {
  width: 68px;
  height: 52px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--paper);
  object-fit: cover;
  flex-shrink: 0;
}

.empty-card {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

.empty-card strong {
  display: block;
  margin-bottom: 4px;
}

.resident-action-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  font-family: var(--font-ui);
  color: var(--ink);
}

.resident-action-card:hover {
  border-color: var(--muted);
}

.resident-action-card strong,
.resident-action-card span {
  display: block;
}

.resident-action-card strong {
  font-size: 17px;
  margin: 12px 0 4px;
}

.resident-action-card span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.action-symbol {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 650;
}

.resident-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.chat-panel,
.action-panel {
  min-height: 560px;
}

.chat-thread {
  height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.portal-bubble {
  flex: 0 0 auto;
  max-width: 78%;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.45;
}

.portal-bubble span {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.portal-bubble.assistant {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.portal-bubble.thinking {
  min-width: 132px;
}

.thinking-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 650;
}

.thinking-line i,
.button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(240, 0, 69, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: residentSpin 0.8s linear infinite;
}

.button-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes residentSpin {
  to {
    transform: rotate(360deg);
  }
}

.portal-bubble.resident {
  align-self: flex-end;
  background: var(--sunken);
}

.signature-capture {
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 14px;
}

.portal-bubble .signature-capture {
  max-width: min(420px, 100%);
}

.signature-capture.signed {
  background: var(--sunken);
}

.signature-capture.signed strong {
  display: block;
  margin-bottom: 4px;
}

.signature-capture.signed p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.signature-capture-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.signature-capture-head strong,
.signature-pad-label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.signature-capture-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.signature-capture-head > span {
  align-self: flex-start;
  white-space: nowrap;
  border: 1px solid rgba(240, 0, 69, 0.18);
  border-radius: 999px;
  color: var(--crimson);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.signature-capture pre {
  max-height: 138px;
  overflow: auto;
  margin: 0 0 12px;
  padding: 10px;
  white-space: pre-wrap;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.45;
}

.signature-pad-label {
  margin-bottom: 6px;
}

.signature-pad {
  display: block;
  width: 100%;
  height: 124px;
  background: #fff;
  border: 1px dashed rgba(26, 22, 20, 0.26);
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
}

.signature-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.signature-actions > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.signature-consent {
  align-items: flex-start;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.suggestion-row,
.resident-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.filter-chip {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--crimson);
  border-color: rgba(240, 0, 69, 0.4);
  background: rgba(240, 0, 69, 0.06);
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.chat-compose input,
.resident-form input,
.resident-form select,
.resident-form textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 11px 13px;
}

.resident-form textarea {
  resize: vertical;
  min-height: 96px;
}

.chat-compose input:focus,
.resident-form input:focus,
.resident-form select:focus,
.resident-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.action-draft h4 {
  font-size: 20px;
  margin: 16px 0 6px;
}

.action-draft p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.field-grid.mini {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.field-grid.mini .field-cell {
  border-right: none;
}

.field-grid.mini .field-cell:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--hair);
}

.field-grid.mini .field-cell:last-child {
  border-bottom: none;
}

.resident-form {
  display: grid;
  gap: 14px;
}

.resident-form label span {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-line input {
  width: auto;
}

.checkbox-line span {
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

.inline-form {
  grid-template-columns: 0.8fr 1fr 0.8fr auto;
  margin-top: 18px;
}

.balance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.balance-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 400;
  line-height: 1;
  margin: 6px 0 8px;
}

.balance-card p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.balance-card .balance-handoff-note {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.balance-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.autopay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.autopay-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.autopay-toggle span {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.autopay-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.15s ease, background 0.15s ease;
}

.autopay-toggle input:checked + span {
  background: rgba(240, 0, 69, 0.1);
  border-color: rgba(240, 0, 69, 0.36);
}

.autopay-toggle input:checked + span::after {
  transform: translateX(20px);
  background: var(--crimson);
}

.autopay-toggle input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.autopay-toggle em {
  min-width: 78px;
  color: var(--muted);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 650;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.account-grid div {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
}

.account-grid div:nth-child(odd) {
  border-right: 1px solid var(--hair);
}

.account-grid div:nth-last-child(-n + 2) {
  border-bottom: none;
}

.account-grid span {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.account-grid strong {
  font-size: 15px;
}

.document-sign-panel {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 18px;
}

.document-sign-panel .panel-head {
  margin-bottom: 14px;
}

.document-sign-panel pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.signature-form {
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

.signature-form .signature-capture {
  margin-top: 0;
  border: none;
  padding: 0;
  background: transparent;
}

.signature-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  padding: 12px 20px;
  transition: transform 0.25s ease;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ------------------------------------------------------------
   Payment handoff
   ------------------------------------------------------------ */

.payment-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(26, 22, 20, 0.04) calc(100% - 1px)),
    var(--paper);
  background-size: 72px 72px;
}

.payment-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.payment-card {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
}

.payment-card .display {
  margin: 8px 0 12px;
}

.payment-card .lede {
  max-width: 48ch;
  margin-bottom: 26px;
}

.payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.payment-summary div {
  padding: 15px 16px;
  border-bottom: 1px solid var(--hair);
}

.payment-summary div:nth-child(odd) {
  border-right: 1px solid var(--hair);
}

.payment-summary div:last-child,
.payment-summary div:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.payment-summary span {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.payment-summary strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.payment-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-grid,
  .assistant-hero-grid,
  .page-hero-grid,
  .section-head,
  .cta-grid,
  .demo-panel,
  .assistant-ops-grid,
  .assistant-guardrails,
  .resident-hero-card,
  .resident-grid,
  .resident-grid.three,
  .resident-chat-layout {
    grid-template-columns: 1fr;
  }

  .product-split {
    grid-template-columns: 1fr;
  }

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

  .process-card {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }

  .process-card:nth-child(odd) {
    border-right: 1px solid var(--hair);
  }

  .process-card:nth-last-child(-n + 1) {
    border-bottom: none;
  }

  .assistant-usecase-grid,
  .guardrail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .workflow-rail {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-stage:nth-child(2) {
    border-right: none;
  }

  .workflow-stage:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hair);
  }

  .feature-card + .feature-card {
    border-left: none;
  }

  .home #product .feature-card + .feature-card {
    border-left: 1px solid transparent;
  }

  .stat-band {
    grid-template-columns: 1fr 1fr;
  }

  .stat-band .cell {
    padding-left: 0 !important;
  }

  .integration-grid,
  .adapter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .resident-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .resident-stat {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    padding-left: 0 !important;
  }

  .resident-bar select,
  .resident-conn {
    margin-left: 0;
    width: 100%;
    max-width: none;
  }

  .resident-hero-actions {
    justify-content: flex-start;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .balance-card {
    grid-template-columns: 1fr;
  }

  .balance-actions {
    align-items: flex-start;
  }

  .auth-main {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .site-nav a.nav-link {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .display-xl {
    font-size: clamp(38px, 12vw, 50px);
  }

  .display-lg {
    font-size: clamp(32px, 10vw, 42px);
  }

  .lede {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .site-header .wrap {
    height: 64px;
    gap: 14px;
  }

  .wordmark {
    font-size: 25px;
  }

  .site-nav {
    gap: 10px;
    min-width: 0;
  }

  .site-nav .press {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 54px;
  }

  .page-hero {
    padding: 50px 0 44px;
  }

  .section {
    padding: 64px 0;
  }

  .home .hero + .section {
    padding-top: 44px;
  }

  .hero-grid,
  .page-hero-grid,
  .section-head,
  .cta-grid,
  .demo-panel {
    gap: 28px;
  }

  .section-head {
    padding-bottom: 24px;
    margin-bottom: 32px;
  }

  .hero-copy .lede {
    margin: 22px 0 28px;
  }

  .hero-stats {
    display: none;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    width: 100%;
  }

  .assistant-copy .display-xl {
    max-width: none;
  }

  .assistant-copy .lede {
    margin-top: 18px;
  }

  .assistant-mini-metrics,
  .assistant-usecase-grid,
  .guardrail-grid {
    grid-template-columns: 1fr;
  }

  .assistant-mini-metrics div {
    padding: 16px;
  }

  .hubbly-console,
  .intent-panel,
  .ops-panel,
  .staff-preview,
  .assistant-guardrails {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .console-top,
  .intent-head,
  .staff-preview-head,
  .usecase-top {
    flex-direction: column;
    gap: 10px;
  }

  .intent-head strong {
    font-size: 38px;
  }

  .intent-grid {
    grid-template-columns: 1fr;
  }

  .intent-grid div,
  .intent-grid div:nth-child(odd),
  .intent-grid div:nth-last-child(-n + 2) {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }

  .intent-grid div:last-child {
    border-bottom: none;
  }

  .console-action-card,
  .staff-ticket {
    grid-template-columns: 1fr;
  }

  .assistant-process {
    grid-template-columns: 1fr;
  }

  .process-card,
  .process-card:nth-child(odd),
  .process-card:nth-last-child(-n + 1) {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }

  .process-card:last-child {
    border-bottom: none;
  }

  .assistant-usecase {
    min-height: auto;
    padding: 20px;
  }

  .usecase-lines div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hero-actions .press,
  .hero-actions .btn-quiet,
  .cta-actions .press,
  .cta-actions .btn-quiet {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-visual {
    padding: 16px;
  }

  .phone-card {
    padding: 18px;
  }

  .vignette-body {
    min-height: 310px;
  }

  .vignette-arrow.prev {
    left: 8px;
  }

  .vignette-arrow.next {
    right: 8px;
  }

  .feature-card,
  .product-panel,
  .adapter-card,
  .integration-card,
  .request-card {
    padding: 22px;
  }

  .home #product .feature-card {
    flex-basis: min(270px, calc(100vw - 76px));
    min-height: 0;
    padding: 24px 22px;
  }

  .home #product .feature-marquee {
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 10px;
  }

  .home #product .feature-card h3 {
    font-size: 19px;
  }

  .home #product .feature-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .workflow-track,
  .module-track {
    max-width: none;
  }

  .workflow-grid,
  .module-grid {
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 8px;
  }

  .workflow-card {
    flex-basis: min(246px, calc(100vw - 84px));
    padding: 18px;
    min-height: 228px;
  }

  .module-card {
    flex-basis: min(208px, calc(100vw - 96px));
    min-height: 188px;
    padding: 16px 14px 18px;
  }

  .module-card::after {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.25;
  }

  .module-num {
    margin-bottom: 8px;
  }

  .module-card h3 {
    font-size: 16px;
  }

  .module-card p {
    font-size: 12.25px;
    line-height: 1.45;
  }

  .module-tag {
    font-size: 8.75px;
    padding: 4px 8px;
  }

  .workflow-lines div {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .demo-left,
  .demo-right {
    padding: 22px;
  }

  .tabs {
    gap: 18px;
    margin-bottom: 22px;
  }

  .tab {
    font-size: 14px;
  }

  .demo-left h3.serif {
    font-size: 26px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-cell,
  .field-cell:nth-child(odd),
  .field-cell:nth-last-child(-n + 2) {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }

  .field-cell:last-child {
    border-bottom: none;
  }

  .demo-footer {
    align-items: stretch;
  }

  .demo-footer .press {
    width: 100%;
    justify-content: center;
  }

  .request-card .head,
  .adapter-card .head,
  .integration-card .head {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .request-row .status {
    margin-left: 32px;
  }

  .num-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .cta {
    padding: 72px 0;
  }

  .auth-panel {
    padding: 44px 16px;
  }

  .auth-form {
    padding: 24px 20px;
  }

  .integration-grid,
  .adapter-grid,
  .stat-band,
  .hero-stats,
  .workflow-rail,
  .resident-stat-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .stat-band {
    display: flex;
    gap: 44px;
    width: max-content;
    will-change: transform;
  }

  .stat-band .cell,
  .stat-band .cell + .cell {
    flex: 0 0 auto;
    width: 185px;
    min-height: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .stat-band .eyebrow {
    margin-bottom: 12px;
  }

  .stat-band .big {
    font-size: 54px;
  }

  .stat-band .note {
    font-size: 14px;
  }

  .workflow-stage,
  .workflow-stage:nth-child(2),
  .workflow-stage:nth-child(-n + 2) {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    min-height: auto;
  }

  .workflow-stage:last-child {
    border-bottom: none;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .resident-hero-card,
  .resident-panel {
    padding: 22px;
  }

  .resident-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .resident-list-row em {
    grid-column: 2;
    white-space: normal;
  }

  .resident-row-thumb {
    width: 58px;
    height: 46px;
    grid-row: span 2;
  }

  .portal-bubble {
    max-width: 92%;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .payment-summary {
    grid-template-columns: 1fr;
  }

  .automation-card {
    grid-template-columns: 1fr;
  }

  .payment-summary div,
  .payment-summary div:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }

  .payment-summary div:last-child {
    border-bottom: none;
  }

  .account-grid div,
  .account-grid div:nth-child(odd) {
    border-right: none;
  }
}

/* ------------------------------------------------------------
   Hero vignette carousel
   ------------------------------------------------------------ */

.vignette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.phone-card {
  position: relative;
}

.vignette-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
  z-index: 5;
}

.vignette-arrow.prev { left: -17px; }
.vignette-arrow.next { right: -17px; }

.vignette-arrow:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.vignette-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.vignette-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  transition: opacity 0.16s ease;
}

.vignette-body.fading {
  opacity: 0;
}
