/* Weft public site — static, no build step.
   Brand: black and sunlit gold on warm stone; Geist type; product
   screens instead of photos. Light is the default theme; dark is the toggle. */

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Black and sun gold. Logo: a black building with golden evening light on the roof peak */
  --violet: #111111; /* black: the building */
  --magenta: #f2b33d; /* sun gold */
  --coral: #e39a2a; /* amber gold */
  --grad: linear-gradient(120deg, #fff8e6 0%, #ffe08a 16%, #f2b33d 34%, #e39a2a 52%, #111111 100%); /* white sunlit tip into gold, as in the icon */
  --grad-soft: linear-gradient(120deg, rgb(242 179 61 / 0.18), rgb(227 154 42 / 0.18));

  /* Dark theme: near-black, the sun is the only colour */
  --bg: #070707;
  --bg-alt: #0d0d0d;
  --card: #141414;
  --card-hi: #1b1b1b;
  --border: #262626;
  --fg: #ece9e4;
  --heading: #ffffff;
  --muted: #a39e96;
  --accent-text: #f2b33d;
  --btn-bg: #f3efe8; /* main buttons: warm white on black */
  --btn-bg-hover: #f3efe8;
  --btn-ring-hover: #f2b33d; /* hover: sun orange border from the logo */
  --btn-fg: #111111;
  --coral-text: #f2c46b;
  --header-bg: rgb(7 7 7 / 0.8);
  --shadow: 0 24px 60px rgb(0 0 0 / 0.5);
  --ph-bg: rgb(255 214 102 / 0.14);
  --ph-fg: #ffd666;

  --max: 72rem;
  --radius: 1rem;

  color-scheme: dark;
}

:root[data-theme="light"] {
  /* Light theme: warm stone, black type and buttons, gold details */
  --bg: #f7f4ef;
  --bg-alt: #efeae1;
  --card: #ffffff;
  --card-hi: #f8f5f0;
  --border: #e3ddd2;
  --fg: #1b1a18;
  --heading: #111111;
  --muted: #5f5a53;
  --accent-text: #8a6214;
  --btn-bg: #111111; /* main buttons: black */
  --btn-bg-hover: #111111;
  --btn-ring-hover: #f2b33d; /* hover: sun orange border, as in dark */
  --btn-fg: #ffffff;
  --coral-text: #8a6214;
  /* Bands on warm stone start pale gold, since white would vanish (as in the icon's light version) */
  --grad: linear-gradient(120deg, #ffe9a8 0%, #f7c24a 18%, #e39a2a 45%, #111111 100%);
  --header-bg: rgb(247 244 239 / 0.82);
  --shadow: 0 24px 60px rgb(30 24 18 / 0.12);
  --ph-bg: #fff3c4;
  --ph-fg: #7a5600;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-text);
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Plain label above headings */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-text);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ph {
  padding: 0 0.3rem;
  border-radius: 0.25rem;
  background: var(--ph-bg);
  color: var(--ph-fg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  box-shadow: 0 0 0 2px var(--btn-ring-hover);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--card);
  color: var(--heading);
}

.btn-ghost:hover {
  border-color: var(--btn-ring-hover);
  box-shadow: 0 0 0 1px var(--btn-ring-hover);
}

.btn .arrow {
  transition: transform 0.15s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  height: 1.9rem;
  width: auto;
}

/* Logo with white lettering on dark, ink lettering on light */
.logo-light {
  display: none;
}

:root[data-theme="light"] .logo-dark {
  display: none;
}

:root[data-theme="light"] .logo-light {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.93rem;
}

/* Tighter menu spacing on small laptops so it stays on one line */
@media (min-width: 60.01rem) and (max-width: 72rem) {
  .nav {
    gap: 1.1rem;
  }
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--heading);
  border-bottom-color: var(--coral);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--coral-text);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

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

.nav-toggle {
  display: none;
}

@media (max-width: 60rem) {
  .header-inner {
    min-height: 3.75rem;
  }

  .brand img {
    height: 1.6rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.6rem;
    padding: 0 0.6rem;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--heading);
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 1.05rem;
  }

  .nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    border-bottom-color: var(--border);
    color: var(--accent-text);
  }

  /* Theme switch lives in the footer on phones */
  .nav .theme-toggle {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  isolation: isolate;
}

/* The logo's stacked lines, large and faint, as a backdrop */
.hero-motif::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -3rem;
  right: -9rem;
  width: 44rem;
  aspect-ratio: 1280 / 1147;
  background: url("weft-icon.png") no-repeat center / contain;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  pointer-events: none;
}

@media (max-width: 40rem) {
  .hero-motif::after {
    width: 24rem;
    right: -8rem;
    top: -1rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero p.lead {
  max-width: 36rem;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.partner-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.partner-line strong {
  color: var(--heading);
  font-weight: 600;
}

.partner-line .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgb(242 179 61 / 0.18);
  flex: none;
}

/* Sub-page hero: shorter, text only */
.page-hero {
  padding: 4.5rem 0 4rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 48rem;
}

.page-hero p.lead {
  margin-bottom: 1.75rem;
}

.page-hero + section {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}

/* ---------- Product mock: manager dashboard ---------- */

.mock {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.8rem;
}

.mock::before {
  /* gradient hairline across the top */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.mock-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
}

.mock-bar span {
  margin-left: 0.6rem;
}

.mock-body {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  min-height: 18rem;
}

.mock-side {
  padding: 0.9rem 0.6rem;
  border-right: 1px solid var(--border);
  background: var(--card-hi);
}

.mock-side b {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-weight: 500;
}

.mock-side b.on {
  background: var(--grad-soft);
  color: var(--heading);
}

.mock-main {
  padding: 1rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.mock-stat {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.mock-stat strong {
  display: block;
  color: var(--heading);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.mock-stat small {
  color: var(--muted);
  font-size: 0.68rem;
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.2rem;
  border-top: 1px solid var(--border);
}

.mock-row span {
  color: var(--fg);
}

.mock-row small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-new {
  background: rgb(227 154 42 / 0.16);
  color: var(--coral-text);
}

.pill-prog {
  background: rgb(17 17 17 / 0.16);
  color: var(--accent-text);
}

.pill-done {
  background: rgb(46 204 140 / 0.14);
  color: #2fb37f;
}

@media (max-width: 30rem) {
  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }
}

/* ---------- Product mock: phone with the building assistant ---------- */

.phone {
  width: min(100%, 17.5rem);
  margin: 0 auto;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2.2rem;
  background: var(--card-hi);
  box-shadow: var(--shadow);
}

.phone-screen {
  border-radius: 1.7rem;
  background: var(--bg);
  overflow: hidden;
  font-size: 0.8rem;
}

.phone-top {
  padding: 1rem 1rem 0.75rem;
  background: var(--grad);
  color: #fff;
}

.phone-top small {
  display: block;
  opacity: 0.85;
  font-size: 0.68rem;
}

.phone-top strong {
  font-size: 0.95rem;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 0.75rem 1.1rem;
}

.bubble {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  line-height: 1.4;
}

.bubble.me {
  align-self: flex-end;
  border-bottom-right-radius: 0.3rem;
  background: var(--violet);
  color: #fff;
}

.bubble.ai {
  align-self: flex-start;
  border-bottom-left-radius: 0.3rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
}

.bubble.ai small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.66rem;
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--violet) 45%, var(--border));
}

.card p {
  color: var(--muted);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
  color: var(--fg);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.card .eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.68rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.1rem;
  border-radius: 0.75rem;
  background: var(--grad-soft);
  color: var(--accent-text);
}

.icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.12em;
  white-space: nowrap;
}

/* Problem cards: three across */
@media (min-width: 52rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card h3 {
  color: var(--heading);
}

.problem-card .icon {
  background: rgb(227 154 42 / 0.14);
  color: var(--coral-text);
}

.answer-line {
  margin: 2.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.015em;
}

/* Audience bento */
@media (min-width: 44rem) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento .wide {
    grid-column: span 2;
  }

  /* Closing card runs the full width, so the last row has no gap */
  .bento .more {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 2rem;
  }

  .bento .more h3,
  .bento .more p {
    margin: 0;
  }

  .bento .more .btn {
    margin-left: auto;
  }
}

.bento .feature {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.bento .more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--grad-soft);
}

.bento .more h3 {
  font-size: 1.35rem;
}

/* ---------- Audience sections: one per user group ---------- */

/* Each group gets its own faint tint and a soft glow behind the screens */
.aud {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Group tints: see the audience group colours block at the end */

.aud .visual {
  position: relative;
}

.aud .visual::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(17 17 17 / 0.35), rgb(227 154 42 / 0.12) 60%, transparent);
  filter: blur(40px);
  pointer-events: none;
}

:root[data-theme="light"] .aud .visual::before {
  background: radial-gradient(closest-side, rgb(17 17 17 / 0.18), rgb(227 154 42 / 0.08) 60%, transparent);
}

.aud .visual > * {
  position: relative;
  z-index: 1;
}

.aud h2 {
  max-width: 26rem;
}

.aud .check-list {
  margin-bottom: 1.5rem;
}

.more-link {
  display: inline-flex;
  gap: 0.4rem;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.more-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* App window with the bright gradient title bar */
.app-win {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.8rem;
}

.app-top {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--grad);
  color: #fff;
}

.app-top .dots {
  display: inline-flex;
  gap: 0.3rem;
  margin-right: 0.3rem;
  align-self: center;
}

.app-top .dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.45);
}

.app-top strong {
  font-size: 0.95rem;
}

.app-top small {
  opacity: 0.85;
  font-size: 0.7rem;
}

.app-body {
  padding: 0.9rem 1rem 0.6rem;
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.app-tabs b {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.app-tabs b.on {
  border-color: transparent;
  background: var(--grad-soft);
  color: var(--heading);
}

.app-tabs em {
  font-style: normal;
  color: var(--accent-text);
  font-weight: 700;
}

.app-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.app-row:first-of-type {
  border-top: 0;
}

.app-row span {
  color: var(--fg);
  min-width: 0;
}

.app-row small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.av {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
  background: var(--grad);
  color: #fff !important;
  font-size: 0.62rem;
  font-weight: 700;
}

/* Phones inside the audience visuals */
.phone-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem 0.7rem 1rem;
}

.voice {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: 0.8rem;
  background: var(--grad-soft);
  color: var(--fg);
  line-height: 1.35;
}

.voice small {
  display: block;
  color: var(--accent-text);
  font-size: 0.64rem;
  font-weight: 600;
}

.mic {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center / 0.9rem no-repeat,
    var(--grad);
}

.task,
.ack {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--fg);
}

.task i,
.ack i {
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}

.task.done {
  color: var(--muted);
  text-decoration: line-through;
}

.task.done i,
.ack i {
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.62rem no-repeat,
    var(--grad);
}

.ack small {
  margin-left: auto;
  color: #2fb37f;
  font-size: 0.66rem;
  font-weight: 600;
}

.notice-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--fg);
  line-height: 1.35;
}

.notice-item i {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 50%;
}

.notice-item.unread i {
  background: var(--grad);
}

.notice-item small {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
}

.mini-btn {
  margin-top: 0.2rem;
  padding: 0.55rem;
  border: 1px solid rgb(17 17 17 / 0.45);
  border-radius: 0.7rem;
  color: var(--accent-text);
  font-weight: 600;
  text-align: center;
}

.mini-btn.solid {
  border: 0;
  background: var(--grad);
  color: #fff;
}

.signing {
  padding: 0.65rem;
  border-radius: 0.8rem;
  background: var(--grad-soft);
  color: var(--heading);
  font-weight: 600;
}

/* Managers: laptop with the field app phone in front */
.duo .phone-float {
  width: 13rem;
  margin: -3.5rem 0.5rem 0 auto;
}

@media (min-width: 56rem) {
  .duo {
    padding-bottom: 2.5rem;
  }

  .duo .app-win {
    margin-right: 4.5rem;
  }

  .duo .phone-float {
    position: absolute;
    right: -0.5rem;
    bottom: 0;
    margin: 0;
  }
}

/* Residents: two phones, the second set lower */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 34rem;
  margin: 0 auto;
}

.pair .phone {
  width: 100%;
}

.pair .phone:last-child {
  margin-top: 2.5rem;
}

@media (max-width: 30rem) {
  .pair .phone-screen {
    font-size: 0.7rem;
  }

  .pair .phone {
    padding: 0.4rem;
    border-radius: 1.6rem;
  }

  .pair .phone-screen {
    border-radius: 1.25rem;
  }
}

/* Committees: report tiles and a bright bar chart */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.kpis div {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.kpis strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kpis small {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.3;
  display: block;
}

.chart {
  margin-bottom: 0.6rem;
  padding: 0.7rem 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.chart > small {
  color: var(--muted);
  font-size: 0.68rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 5.5rem;
  margin-top: 0.5rem;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 0.35rem 0.35rem 0.1rem 0.1rem;
  background: linear-gradient(180deg, #fff8e6, #ffe08a 20%, #e39a2a 60%, #111111);
  opacity: 0.9;
}

.bars i:last-child {
  opacity: 1;
  box-shadow: 0 0 18px rgb(227 154 42 / 0.45);
}

.bar-labels {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.bar-labels span {
  flex: 1;
  color: var(--muted);
  font-size: 0.6rem;
  text-align: center;
}

/* Contractors: printed lobby poster beside the phone */
.poster-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 34rem;
  margin: 0 auto;
}

.poster-pair .phone {
  width: 100%;
}

.poster {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem;
  border-radius: 0.9rem;
  background: #fff;
  color: #1b1a18;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  border-image: var(--grad) 1;
  transform: rotate(-2deg);
}

.poster-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
}

.poster strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.poster small {
  color: #5f5a53;
  font-size: 0.66rem;
}

.qr {
  width: 100%;
  max-width: 8.5rem;
  margin: 0.4rem 0;
  fill: #1b1a18;
}

@media (max-width: 30rem) {
  .poster-pair .phone-screen {
    font-size: 0.7rem;
  }

  .poster {
    padding: 1rem 0.7rem;
  }
}

/* Calmer screens: plain title bars with a thin gradient line.
   Only the building assistant keeps the full gradient header. */
.app-win {
  position: relative;
}

.app-win::before,
.aud .phone-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  z-index: 1;
}

.aud .phone-screen {
  position: relative;
}

.app-top,
.aud .phone-top {
  background: var(--card-hi);
  color: var(--heading);
  border-bottom: 1px solid var(--border);
}

.app-top small,
.aud .phone-top small {
  color: var(--muted);
  opacity: 1;
}

.app-top .dots i {
  background: var(--border);
}

.aud .phone-top.hl {
  background: var(--grad);
  color: #fff;
  border-bottom: 0;
}

.aud .phone-top.hl small {
  color: #fff;
  opacity: 0.85;
}

.av {
  background: var(--grad-soft);
  color: var(--accent-text) !important;
}

.bars i {
  opacity: 0.75;
}

.bars i:last-child {
  box-shadow: none;
}

/* Sub-headings inside an audience section (Dashboard, Field app) */
.aud-sub {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  color: var(--heading);
}

.aud-sub + .check-list {
  margin-top: 0.5rem;
}

.aud .check-list li {
  font-size: 0.97rem;
}

/* Field app: task detail screen */
.photo {
  display: grid;
  place-items: end start;
  height: 5.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: repeating-linear-gradient(135deg, var(--card-hi) 0 10px, var(--card) 10px 20px);
}

.photo span {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  font-size: 0.6rem;
}

.status-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.status-pick b {
  padding: 0.4rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  text-align: center;
}

.status-pick b.on {
  border-color: rgb(17 17 17 / 0.5);
  background: var(--grad-soft);
  color: var(--heading);
}

.note-line {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--fg);
  line-height: 1.35;
}

.note-line small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
}

/* Residents: request followed through to resolution */
.track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.track span {
  padding-top: 0.4rem;
  border-top: 3px solid var(--border);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
}

.track span.done {
  border-image: var(--grad) 1;
  color: var(--fg);
}

.track span.now {
  color: #2fb37f;
}

.chat-tight {
  padding: 0.2rem 0 0;
  gap: 0.45rem;
}

.chat-tight .bubble {
  max-width: 92%;
}

.resolved-line {
  padding: 0.45rem;
  border-radius: 0.6rem;
  background: rgb(46 204 140 / 0.14);
  color: #2fb37f;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
}

.bubble.me small {
  display: block;
  margin-top: 0.35rem;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.62rem;
}

/* AI labels on the building assistant */
.ai-badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: 0.15em;
}

.ai-note {
  padding: 0.45rem 0.55rem;
  border: 1px dashed var(--border);
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
  text-align: center;
}

/* Phones stack on narrow screens so the text stays readable */
@media (max-width: 30rem) {
  .pair {
    grid-template-columns: 1fr;
    max-width: 16.5rem;
    gap: 1.25rem;
  }

  .pair .phone:last-child {
    margin-top: 0;
  }

  .pair .phone-screen {
    font-size: 0.8rem;
  }
}

.tab-action {
  margin-left: auto;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Field app: AI-suggested steps */
.ai-steps {
  padding: 0.6rem 0.65rem;
  border: 1px solid rgb(17 17 17 / 0.35);
  border-radius: 0.7rem;
  background: var(--grad-soft);
  color: var(--fg);
}

.ai-steps b {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--heading);
  font-size: 0.72rem;
}

.ai-steps ol {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.68rem;
  line-height: 1.4;
}

.ai-steps li + li {
  margin-top: 0.2rem;
}

.visual .ai-steps p {
  color: var(--fg);
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.4;
}

.visual .ai-steps p + p {
  margin-top: 0.3rem;
}

.ai-steps strong {
  color: var(--heading);
}

.visual .ai-steps .warranty {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgb(46 204 140 / 0.16);
  color: #2fb37f;
  font-weight: 600;
}

.task.active {
  border-color: rgb(17 17 17 / 0.5);
  background: var(--grad-soft);
  color: var(--heading);
  font-weight: 600;
}

.task .ai-badge {
  margin-left: auto;
}

/* Why the name: woven threads */
.why p + p {
  margin-top: 1rem;
}

.weave-wrap {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}

.weave-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(17 17 17 / 0.3), rgb(227 154 42 / 0.1) 60%, transparent);
  filter: blur(40px);
  pointer-events: none;
}

:root[data-theme="light"] .weave-wrap::before {
  opacity: 0.5;
}

.weave {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.weave .warp {
  fill: color-mix(in srgb, var(--violet) 22%, var(--card));
  stroke: color-mix(in srgb, var(--violet) 35%, var(--border));
  stroke-width: 1.5;
}

.weave .warp.over {
  stroke: none;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25));
}

.av.doc {
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.eyebrow .soon {
  margin-left: 0.2rem;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 {
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Split: text beside a visual */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

.split p {
  color: var(--muted);
  font-size: 1.1rem;
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat,
    var(--grad);
}

/* Modules */
@media (min-width: 44rem) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 72rem) {
  .modules {
    grid-template-columns: repeat(4, 1fr);
  }
}

.module {
  display: flex;
  flex-direction: column;
}

.module .tag {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module.core {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.module.core .tag {
  background: var(--grad);
  color: #fff;
}

.module h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.module > p {
  margin-bottom: 1rem;
}

.pricing-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding: 1.4rem 1.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
}

.pricing-note strong {
  color: var(--heading);
}

/* Partner quote */
.partner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .partner {
    grid-template-columns: 1fr 1.1fr;
  }
}

.quote {
  margin: 0;
  padding: 2rem;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  margin-bottom: 1rem;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.quote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.muted-lead {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Facts row */
.facts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin-top: 2rem;
}

.fact {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.fact strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.fact span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Two-up trust blocks */
.trust {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

/* FAQ */
.faq {
  max-width: 50rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Closing call to action */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
  border-radius: 1.5rem;
  background: var(--grad);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -9rem;
  width: 26rem;
  aspect-ratio: 1280 / 1147;
  background: url("weft-icon.png") no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: 0.12;
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  color: rgb(255 255 255 / 0.88);
  font-size: 1.12rem;
}

.cta-band .btn-light {
  background: #fff;
  color: #111111;
}

.cta-band .btn-outline-light {
  border-color: rgb(255 255 255 / 0.6);
  color: #fff;
}

.cta-band .ctas {
  justify-content: center;
}

/* ---------- Platform page ---------- */

@media (min-width: 44rem) {
  .user-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.user-grid > .user-hub {
  grid-column: 1 / -1;
}

@media (min-width: 52rem) {
  .user-hub ul {
    columns: 2;
    column-gap: 2.5rem;
  }

  .user-hub li {
    break-inside: avoid;
  }
}

/* ---------- Sign-in page ---------- */

@media (min-width: 52rem) {
  .signin-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Cards share rows through subgrid; space inside a card comes from its own margins, not the grid gap */
    row-gap: 0;
    grid-template-rows: auto auto 1fr auto;
  }

  .signin-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
  }
}

.signin-card h3 {
  margin-bottom: 0.4rem;
}

.signin-card .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

.signin-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

/* Tighter spacing around the sign-in cards */
#sign-in {
  padding: 3.5rem 0;
}

#sign-in .section-head {
  margin-bottom: 1.75rem;
}

#sign-in .signin-card {
  padding: 1.4rem 1.5rem;
}

#sign-in .signin-card p {
  margin-bottom: 0.6rem;
}

#sign-in .signin-note {
  margin: 1rem 0 0;
  color: var(--muted);
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.banner h3 {
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
}

.banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.banner-grad {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  border-color: transparent;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

.footer-brand img {
  height: 1.7rem;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  max-width: 22rem;
  color: var(--muted);
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  color: var(--heading);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--heading);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-theme {
  display: none;
}

@media (max-width: 60rem) {
  .footer-theme {
    display: inline-flex;
    width: auto;
    gap: 0.5rem;
    padding: 0 0.9rem;
    font: inherit;
    font-size: 0.85rem;
  }

  .footer-theme .theme-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* ---------- Motion ---------- */

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn .arrow {
    transition: none;
  }
}


/* ---------- Calmer accents (less violet) ---------- */

/* Feature lists: plain tick in the text colour, no coloured circle */
.check-list li::before {
  top: 0.7rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0;
  background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}

/* Completed items inside the screens: green ticks */
.task.done i,
.ack i {
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / 0.62rem no-repeat, #2fb37f;
}

/* Messages: neutral bubbles instead of violet */
.bubble.me {
  background: color-mix(in srgb, var(--fg) 12%, var(--card));
  color: var(--heading);
}

.bubble.me small {
  color: var(--muted);
}

.ai-steps {
  border-color: var(--border);
  background: var(--card-hi);
}

/* Committee chart: neutral bars, latest month a little stronger */
.bars i {
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  opacity: 1;
}

.bars i:last-child {
  background: color-mix(in srgb, var(--fg) 45%, transparent);
}

.kpis strong {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--heading);
}


/* Why Weft: before and with-Weft cards, 2 x 2 */
@media (min-width: 44rem) {
  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ba-card h3 {
  color: var(--heading);
}

.ba-card .icon {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--heading);
}

.ba-card p {
  margin: 0;
  color: var(--muted);
}

.ba-card .before {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: line-through;
  text-decoration-color: rgb(227 154 42 / 0.7);
}

.ba-card .before span {
  margin-right: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-text);
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 64rem) {
  .ba-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Managers: building view with the left menu */
.bld {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
}

.bld-side {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.8rem 0.5rem;
  border-right: 1px solid var(--border);
  background: var(--card-hi);
}

.bld-side b {
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.bld-side b.on {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  color: var(--heading);
}

.bld-main {
  min-width: 0;
  padding: 0.9rem 1rem 0.6rem;
}

.bld-head strong {
  display: block;
  color: var(--heading);
  font-size: 0.95rem;
}

.bld-head small {
  color: var(--muted);
  font-size: 0.68rem;
}

.bld-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0.8rem;
}

.bld-actions b {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font-size: 0.68rem;
  font-weight: 500;
}

@media (max-width: 30rem) {
  .bld {
    grid-template-columns: 1fr;
  }

  .bld-side {
    display: none;
  }
}

/* Field app: record button */
.rec {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 0.2rem 0 0.4rem;
}

.mic.mic-big {
  width: 3rem;
  height: 3rem;
  background-size: 1.35rem, auto;
  box-shadow: 0 6px 18px rgb(17 17 17 / 0.35);
}

.rec small {
  color: var(--muted);
  font-size: 0.64rem;
}


/* Audience tags: larger, clearer than the small eyebrow labels */
.aud-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.aud-tag svg,
.chooser-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aud-tag svg {
  color: var(--accent-text);
}

/* Who's it for chooser */
.chooser {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.chooser-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .chooser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .chooser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chooser-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.chooser-tile:hover {
  border-color: color-mix(in srgb, var(--violet) 50%, var(--border));
  transform: translateY(-2px);
}

.chooser-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--heading);
}

.chooser-tile strong {
  display: block;
  color: var(--heading);
}

.chooser-tile small {
  color: var(--muted);
  font-size: 0.85rem;
}

.chooser-arrow {
  color: var(--muted);
}


/* ---------- Audience group colours ----------
   One colour per user group, shared by the section background,
   the section's tag icon, the screen glow and the chooser tile. */
.grp-managers, .aud-managers, .aud-field { --aud: #111111; }
.grp-residents, .aud-residents { --aud: #f2b33d; }
.grp-owners, .aud-owners { --aud: #f07c3a; }
.grp-committees, .aud-committees { --aud: #4f7fb0; }
.grp-contractors, .aud-contractors { --aud: #d99a2b; }
.aud-docs { --aud: #8f8a83; }

.aud {
  --aud-mix: 11%;
  background: color-mix(in srgb, var(--aud) var(--aud-mix), var(--bg));
}

:root[data-theme="light"] .aud {
  --aud-mix: 9%;
}

/* Building documents is a feature, not a group: keep it neutral */
.aud.aud-docs {
  background: var(--bg-alt);
}

/* Dashboard and field app read as one building-managers block */
.aud-field {
  border-top: 0;
  padding-top: 1rem;
}

.aud-managers {
  padding-bottom: 3rem;
}

.aud .visual::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aud) 40%, transparent), transparent);
}

:root[data-theme="light"] .aud .visual::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aud) 20%, transparent), transparent);
}

.aud .aud-tag {
  border-color: color-mix(in srgb, var(--aud) 35%, var(--border));
}

.aud .aud-tag svg {
  color: var(--aud);
}

.chooser-tile .chooser-icon {
  background: color-mix(in srgb, var(--aud) 18%, transparent);
  color: var(--aud);
}

.chooser-tile:hover {
  border-color: color-mix(in srgb, var(--aud) 55%, var(--border));
}

.nowrap {
  white-space: nowrap;
}

/* Homepage sign-in: two cards (no contractor card) */
@media (min-width: 52rem) {
  .signin-grid.signin-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Compact version: less space, bigger logo ---------- */

.header-inner {
  min-height: 4.75rem;
}

.brand img {
  height: 2.5rem;
}

.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  gap: 2.5rem;
}

section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

#sign-in {
  padding: 3rem 0;
}

.site-footer {
  padding: 2.5rem 0 2rem;
}


.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

/* Phones: tighter still */
@media (max-width: 40rem) {
  .header-inner {
    min-height: 4.25rem;
  }

  .brand img {
    height: 2.25rem;
  }

  .hero {
    padding: 1.75rem 0 2.25rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  h1 {
    font-size: 2.15rem;
  }

  section,
  #sign-in {
    padding: 2.25rem 0;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .site-footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  .footer-bottom {
    margin-top: 1.25rem;
  }
}
