:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --bg-soft: #eeeeeb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --ink: #202124;
  --muted: #696c70;
  --quiet: #8b8e94;
  --line: #deded9;
  --line-strong: #c9c9c2;
  --accent: #3f444b;
  --accent-soft: #f0f1f2;
  --green: #2f6f56;
  --yellow: #9b6a22;
  --red: #a3403a;
  --blue: #4a6178;
  --shadow: 0 18px 48px rgba(32, 33, 36, 0.08);
  --shadow-soft: 0 8px 22px rgba(32, 33, 36, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 36rem),
    linear-gradient(135deg, #f7f7f5 0%, #ededeb 100%);
  color: var(--ink);
}
button, input, select { font: inherit; }
button {
  border: 1px solid var(--line-strong);
  background: linear-gradient(#fff, #f7f7f5);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.62rem 0.82rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
button:hover {
  border-color: #aeb0b4;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
button:active { transform: translateY(0); box-shadow: none; }
button.ghost { background: rgba(255, 255, 255, 0.48); }
a { color: var(--blue); text-underline-offset: 0.18em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre {
  background: #f6f6f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
}

#app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(32, 33, 36, 0.94);
  color: #f5f5f3;
  padding: 1rem;
  overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.25rem 1.2rem;
}
.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #f4f4f1;
  color: #202124;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.08);
}
.brand small, td small {
  display: block;
  color: #b9bab7;
  margin-top: 0.2rem;
}
nav { display: grid; gap: 0.28rem; }
nav button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  background: transparent;
  color: #d8d8d3;
  text-align: left;
  box-shadow: none;
}
nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}
nav button.active {
  background: #f4f4f1;
  color: #202124;
  border-color: #f4f4f1;
}
.nav-icon { width: 1.3rem; text-align: center; color: currentColor; opacity: 0.82; }

main {
  padding: 1.55rem;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  margin-bottom: 0;
  letter-spacing: 0;
}
h2 { font-size: 1.05rem; margin-bottom: 0; }
h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.eyebrow {
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}
.top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.lottie-status {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.lottie-status svg { width: 100% !important; height: 100% !important; }
.lottie-fallback {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #202124;
  box-shadow: 0 0 0 0 rgba(32, 33, 36, 0.22);
  animation: pulse 1.9s infinite;
}
.disclaimer {
  border: 1px solid #e1d6c6;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 250, 242, 0.78);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  color: #53432c;
  margin-bottom: 1rem;
  line-height: 1.45;
  animation: riseIn 420ms ease both;
}

.grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .status {
  background: var(--panel);
  border: 1px solid rgba(222, 222, 217, 0.95);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(16px);
  animation: riseIn 360ms ease both;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.panel:hover, .status:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(32, 33, 36, 0.1);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.step { color: var(--muted); font-size: 0.86rem; max-width: 60ch; }
.status {
  position: relative;
  overflow: hidden;
  border-top: 0;
}
.status i {
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
}
.status.yellow i { background: var(--yellow); }
.status.red i { background: var(--red); }
.status::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--green);
}
.status.yellow::before { background: var(--yellow); }
.status.red::before { background: var(--red); }
.status span, .metrics span { color: var(--muted); font-size: 0.84rem; }
.status strong { display: block; font-size: 1.35rem; margin: 0.2rem 0; }
.status p { margin-bottom: 0; color: #46494e; }

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.report-card {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  min-height: 180px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 248, 246, 0.82);
}
.report-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.report-card p {
  color: #555962;
  line-height: 1.45;
}
.report-card small {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td {
  text-align: left;
  padding: 0.78rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: #686b70;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
tbody tr { transition: background 140ms ease; }
tbody tr:hover { background: rgba(245, 245, 243, 0.72); }
tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge.green { color: var(--green); background: #eef5f1; }
.badge.yellow { color: var(--yellow); background: #f8f2e8; }
.badge.red { color: var(--red); background: #f8eded; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.82rem 0;
}
.row:last-child { border-bottom: 0; }
.row small { display: block; color: var(--muted); margin-top: 0.2rem; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.metrics div {
  background: #f5f5f3;
  border: 1px solid #e9e9e5;
  border-radius: 10px;
  padding: 0.8rem;
}
.metrics strong { display: block; margin-top: 0.15rem; font-size: 1.2rem; }
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.rule {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: rgba(250, 250, 249, 0.8);
  transition: transform 160ms ease, border-color 160ms ease;
}
.rule:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.rule p { color: #45484d; line-height: 1.4; }
.rule small { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
label { display: grid; gap: 0.3rem; color: #4c4f54; font-size: 0.9rem; }
input, select {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.58rem 0.68rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, select:focus {
  outline: none;
  border-color: #8c9097;
  box-shadow: 0 0 0 4px rgba(32, 33, 36, 0.07);
}
.check { display: flex; align-items: center; gap: 0.5rem; padding-top: 1.25rem; }
.check input { width: auto; min-height: auto; }
.wide { grid-column: 1 / -1; }
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.workflow div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f5f5f3;
  border: 1px solid #e9e9e5;
  padding: 0.72rem;
  border-radius: 10px;
  min-height: 3rem;
}
.workflow span {
  display: grid;
  place-items: center;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: #fff;
  background: #3f444b;
  font-size: 0.78rem;
  font-weight: 700;
}
.extract-empty {
  color: var(--muted);
  background: #f5f5f3;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}
.extract-review {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.extract-review p {
  color: var(--muted);
  margin-bottom: 0;
}
.extract-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.extract-grid article {
  background: #f5f5f3;
  border: 1px solid #e9e9e5;
  border-radius: 12px;
  padding: 0.8rem;
}
.extract-grid span,
.upload-row small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.extract-grid strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}
.upload-list {
  display: grid;
  gap: 0.45rem;
}
.upload-row {
  display: grid;
  background: #f5f5f3;
  border-radius: 10px;
  padding: 0.7rem;
}
.request-card .legal-flag, .legal-flag {
  color: var(--red);
  background: #f8eded;
  border-radius: 10px;
  padding: 0.7rem;
}
.chips, .prompt-list, .sources { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.compact-actions { gap: 0.35rem; }
.compact-actions button { padding: 0.45rem 0.55rem; }
.work-row {
  align-items: flex-start;
}
.work-meta {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}
button.danger {
  border-color: #e7c9c7;
  background: #fff6f5;
  color: var(--red);
}
.empty { color: var(--muted); margin-bottom: 0; }
.assistant { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; }
.prompt-list { align-content: start; }
.prompt-list button { width: 100%; text-align: left; }
.ai-output {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  min-height: 220px;
  background: #fafaf9;
}
.ai-output.compact {
  min-height: 130px;
  margin-top: 0.8rem;
}
.ai-command {
  border-color: #cfd1d6;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(246,246,244,0.92));
}
.ai-command-intro {
  color: var(--muted);
  line-height: 1.5;
}
.ai-recs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.ai-recs article {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f7f4;
  padding: 0.8rem;
}
.ai-recs span {
  color: var(--muted);
  line-height: 1.4;
}
.ai-recs button {
  width: fit-content;
}
.announcement-form {
  display: grid;
  gap: 0.75rem;
}
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.68rem;
  resize: vertical;
  font: inherit;
}
textarea:focus {
  outline: none;
  border-color: #8c9097;
  box-shadow: 0 0 0 4px rgba(32, 33, 36, 0.07);
}
.latest-announcement {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  background: #f5f5f3;
  border: 1px solid #e9e9e5;
  border-radius: 12px;
  padding: 0.8rem;
}
.latest-announcement span,
.latest-announcement small {
  color: var(--muted);
  font-size: 0.82rem;
}
.latest-announcement p {
  color: #45484d;
  margin-bottom: 0;
}
.log {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  color: #45484d;
}

.portal-stage {
  border-radius: 24px;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 76% 10%, rgba(137, 125, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 15% 0%, rgba(86, 116, 145, 0.18), transparent 20rem),
    #0a0b0e;
  color: #f7f7f4;
  box-shadow: 0 34px 100px rgba(32, 33, 36, 0.22);
  opacity: 1;
}
.portal-app {
  display: block !important;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(137, 125, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 20% 15%, rgba(86, 116, 145, 0.18), transparent 24rem),
    #090a0d;
  color: #f7f7f4;
}
.auth-app {
  display: block !important;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(137, 125, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 20% 15%, rgba(86, 116, 145, 0.18), transparent 24rem),
    #090a0d;
  color: #f7f7f4;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: transparent;
}
.tour-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: transparent;
}
.tour-card {
  width: min(1180px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.055)),
    rgba(11, 12, 15, 0.72);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
  padding: 1.5rem;
  backdrop-filter: blur(18px);
}
.tour-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.tour-track-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.tour-track-tabs button {
  min-height: 2.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0 0.95rem;
  color: #d9d9d3;
  background: transparent;
  font-weight: 750;
}
.tour-track-tabs button.active {
  color: #111315;
  background: #f4f2eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}
.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 1.25rem;
  align-items: stretch;
}
.tour-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tour-card h1 {
  color: #fff;
  font-size: clamp(2.15rem, 4.7vw, 4.6rem);
  line-height: 0.98;
  margin: 0.7rem 0;
  max-width: 680px;
}
.tour-card p {
  color: #d4d4cf;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 650px;
}
.tour-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 1.15rem 0 1.35rem;
}
.tour-progress button {
  height: 0.42rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  padding: 0;
}
.tour-progress button.active {
  background: linear-gradient(90deg, #f7f7f4, #cfc8b8);
}
.tour-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.tour-panel article {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(247, 247, 244, 0.94);
  color: #17181c;
  padding: 1rem;
}
.tour-panel strong {
  display: block;
  margin-bottom: 0.5rem;
}
.tour-panel span {
  color: #4f535b;
  line-height: 1.45;
}
.tour-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.tour-actions button {
  background: #f7f7f4;
  color: #101115;
  border-color: #f7f7f4;
  font-weight: 800;
  min-height: 3rem;
}
.tour-actions button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7f4;
  border-color: rgba(255, 255, 255, 0.18);
}
.tour-preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 247, 242, 0.98), rgba(232, 230, 222, 0.96));
  color: #141619;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(20, 22, 25, 0.07), 0 24px 70px rgba(0, 0, 0, 0.25);
}
.tour-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.tour-preview-top span {
  color: #747067;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}
.tour-preview-top strong {
  color: #17181b;
  text-align: right;
}
.tour-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.tour-metrics article {
  min-width: 0;
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
  box-shadow: 0 10px 30px rgba(27, 28, 31, 0.08);
}
.tour-metrics span,
.tour-live-card p,
.tour-task-stack small {
  color: #6a6c70;
  margin: 0;
}
.tour-metrics strong {
  display: block;
  margin-top: 0.25rem;
  color: #15171a;
  font-size: 1.35rem;
}
.tour-live-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-radius: 18px;
  padding: 1rem;
  background: #17181b;
  color: #f7f7f4;
  overflow: hidden;
  position: relative;
}
.tour-live-card::after {
  content: "";
  width: 12rem;
  height: 12rem;
  position: absolute;
  right: -5rem;
  top: -5rem;
  border-radius: 50%;
  background: rgba(218, 209, 188, 0.18);
}
.tour-live-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}
.tour-live-card span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7f7f4;
  padding: 0.35rem 0.7rem;
  font-weight: 800;
}
.tour-live-card.homeowner-preview {
  background: #2d2f34;
}
.tour-task-stack {
  display: grid;
  gap: 0.55rem;
}
.tour-task-stack article {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.75rem;
  box-shadow: 0 10px 28px rgba(27, 28, 31, 0.06);
}
.tour-task-stack article > span {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 12px;
  background: #e4e0d6;
  color: #1b1d21;
  font-weight: 900;
  font-size: 0.78rem;
}
.tour-task-stack strong {
  display: block;
  color: #17181b;
}
.tour-task-stack em {
  justify-self: end;
  border-radius: 999px;
  background: #efeee8;
  color: #55514a;
  padding: 0.3rem 0.55rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 850;
}
.tour-assistant-card {
  margin-top: auto;
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  box-shadow: 0 10px 28px rgba(27, 28, 31, 0.08);
}
.tour-assistant-card strong {
  display: block;
  color: #15171a;
  margin-bottom: 0.25rem;
}
.tour-assistant-card p {
  color: #66696f;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}
.auth-card {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
  padding: 1.4rem;
  backdrop-filter: blur(18px);
}
.auth-card h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  margin: 1rem 0;
}
.auth-card p {
  color: #c9cbd1;
  line-height: 1.55;
}
.auth-card small {
  display: block;
  color: #aeb6c2;
  margin-top: 1rem;
}
.auth-form {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.auth-provider-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
}
.auth-provider-tabs button {
  min-width: 0;
  padding: 0.62rem 0.45rem;
  border-radius: 9px;
  background: transparent;
  color: #d9dbe1;
  border-color: transparent;
  box-shadow: none;
}
.auth-provider-tabs button.active {
  background: #f7f7f4;
  color: #101115;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.invite-banner {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
  margin-top: 1rem;
}
.invite-banner strong {
  color: #fff;
}
.invite-banner span {
  color: #c9cbd1;
}
.auth-form label {
  color: #e8e8e5;
}
.auth-form button {
  background: #f7f7f4;
  color: #101115;
  border-color: #f7f7f4;
  font-weight: 800;
}
.auth-hint {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9cbd1;
  font-size: 0.9rem;
}
.auth-hint strong {
  color: #fff;
}
.auth-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.auth-switch button {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7f4;
  border-color: rgba(255, 255, 255, 0.18);
}
.auth-error {
  color: #ffd8d5 !important;
  background: rgba(163, 64, 58, 0.18);
  border: 1px solid rgba(255, 216, 213, 0.28);
  border-radius: 10px;
  padding: 0.7rem;
}
.account-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.58rem 0.78rem;
  background: rgba(255, 255, 255, 0.62);
  color: #303238;
  font-size: 0.88rem;
}
.portal-standalone {
  padding: 0;
  min-height: 100vh;
  color: #f7f7f4;
  background: transparent;
}
.portal-standalone-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}
.portal-standalone .portal-stage {
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
}
.portal-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1rem 1.4rem;
}
.portal-kicker {
  color: #aeb6c2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.portal-hero h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.96;
  max-width: 760px;
}
.portal-hero p {
  color: #c9cbd1;
  line-height: 1.65;
  max-width: 720px;
}
.portal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.portal-actions button,
.portal-card button {
  background: #f7f7f4;
  color: #101115;
  border-color: #f7f7f4;
  font-weight: 800;
}
.portal-mockup-shell {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
  padding: 1rem;
  backdrop-filter: blur(18px);
}
.portal-mockup-shell.clean {
  display: grid;
  gap: 1rem;
}
.homeowner-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.85rem;
}
.homeowner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.homeowner-grid.clean {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.portal-card {
  min-height: 0;
  background: rgba(250, 250, 247, 0.95);
  color: #17181c;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(10, 10, 10, 0.06);
}
.portal-card.balance,
.homeowner-summary .portal-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portal-card.announcement,
.portal-card.update {
  min-height: 190px;
}
.portal-card.history,
.portal-card.docs,
.portal-card.requests {
  min-height: 260px;
}
.portal-card small {
  display: block;
  color: #6a6d74;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.portal-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}
.portal-card span {
  color: #4a4d53;
}
.portal-card p {
  color: #33363c;
  line-height: 1.45;
  margin-bottom: 0;
}
.portal-card.history,
.portal-card.docs,
.portal-card.requests {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.portal-card.homeowner-link-card {
  min-height: 210px;
  border: 1px solid rgba(22, 24, 28, 0.08);
  background: linear-gradient(180deg, #fbfaf6, #f0eee7);
}
.portal-card.homeowner-link-card h3 {
  margin-bottom: 0.55rem;
  color: #17181c;
}
.payment-list {
  display: grid;
  gap: 0.55rem;
}
.payment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  background: #f2f2ef;
  border: 1px solid #e5e5df;
  border-radius: 14px;
  padding: 0.7rem;
}
.payment-main {
  min-width: 0;
}
.payment-main strong {
  display: block;
  color: #191a1d;
  font-size: 0.95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payment-main em {
  display: block;
  color: #6a6d74;
  font-size: 0.82rem;
  font-style: normal;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payment-method {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 2rem;
  border-radius: 999px;
  background: #17181c;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 800;
}
.payment-meta {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  min-width: 4.8rem;
}
.payment-status {
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: #eef5f1;
  color: var(--green) !important;
}
.payment-status.pending {
  background: #f8f2e8;
  color: var(--yellow) !important;
}
.payment-amount {
  display: block;
  color: #191a1d;
  font-size: 1rem;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.payment-empty {
  display: grid;
  gap: 0.25rem;
  place-items: center;
  text-align: center;
  min-height: 150px;
  background: #f2f2ef;
  border: 1px dashed #d9d9d2;
  border-radius: 14px;
  color: #4a4d53;
}
.payment-empty span {
  color: #6a6d74;
}
.message-item {
  display: grid;
  gap: 0.25rem;
  background: #f2f2ef;
  border: 1px solid #e5e5df;
  border-radius: 14px;
  padding: 0.75rem;
}
.message-item strong {
  color: #191a1d;
  font-size: 0.95rem;
}
.message-item span {
  color: #6a6d74;
  font-size: 0.8rem;
}
.message-item p {
  margin: 0;
}
.contact-log {
  margin-top: 1rem;
}
.portal-card.docs div,
.portal-card.requests div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  background: #f2f2ef;
  border-radius: 12px;
  padding: 0.6rem;
  min-width: 0;
}
.portal-card.docs div span,
.portal-card.requests div span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ach-card button {
  margin-top: 0.75rem;
  width: fit-content;
}
.plaid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  border: 1px solid #d8ded8;
  border-radius: 999px;
  background: #f8fbf7;
  color: #475047;
  padding: 0.34rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}
.plaid-badge strong {
  display: inline-flex;
  align-items: center;
  min-height: 1.28rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0.22rem 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0;
}
.pricing-payment-mark {
  margin: 0.85rem 0 0;
}
.ach-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.ach-list span {
  background: #f2f2ef;
  border-radius: 10px;
  padding: 0.55rem;
  color: #4a4d53;
}
.ach-panel {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  padding: 1rem;
}
.ach-panel h3 {
  color: #fff;
  font-size: 1.4rem;
}
.ach-panel p {
  color: #c9cbd1;
  line-height: 1.5;
}
.ach-panel .plaid-badge {
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
}
.ach-security-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.ach-security-strip span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef0f4;
  padding: 0.7rem;
  font-size: 0.88rem;
}
.ach-bank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.ach-bank-list button {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  background: rgba(247, 247, 244, 0.94);
  color: #17181c;
}
.ach-bank-list span {
  color: #666a72;
  font-size: 0.88rem;
}
.ach-panel .secondary {
  width: fit-content;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7f4;
  border-color: rgba(255, 255, 255, 0.18);
}
.ach-panel label {
  color: #f7f7f4;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(32, 33, 36, 0.22); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(32, 33, 36, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(32, 33, 36, 0); transform: scale(1); }
}

.marketing-app {
  display: block !important;
  min-height: 100vh;
  background: #08090b;
  color: #f7f7f4;
}
.marketing {
  padding: 0;
  color: #f7f7f4;
  background:
    radial-gradient(circle at 72% 0%, rgba(137, 125, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 20% 15%, rgba(86, 116, 145, 0.2), transparent 24rem),
    linear-gradient(180deg, #090a0d 0, #111215 840px, #f5f5f3 840px, #f5f5f3 100%);
}
.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(9, 10, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}
.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marketing-nav a {
  color: #d7d7d3;
  text-decoration: none;
  font-size: 0.92rem;
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-lockup span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f7f7f4;
  color: #111215;
  font-weight: 800;
}
.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 2rem;
  padding: 5rem 1.25rem 6rem;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  max-width: 820px;
  color: #fff;
}
.trust, .kicker, .section-heading p {
  color: #aeb6c2;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.hero-sub {
  color: #c9cbd1;
  font-size: 1.16rem;
  line-height: 1.7;
  max-width: 690px;
  margin: 1.25rem 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.6rem 0;
}
.hero-actions.center {
  justify-content: center;
}
.hero-actions button, .marketing-nav button, .pricing button, .final-cta button {
  background: #f7f7f4;
  color: #101115;
  border-color: #f7f7f4;
  font-weight: 700;
}
.hero-actions button.secondary,
.final-cta button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f7f7f4;
  border-color: rgba(255, 255, 255, 0.18);
}
.hero-actions a {
  color: #f7f7f4;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.62rem 0.82rem;
}
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.proof-strip span, .prompt-cloud span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #d9dadd;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
}
.hero-visual {
  perspective: 1300px;
}
.mockup-shell {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
  padding: 1rem;
  transform: rotateX(5deg) rotateY(-8deg);
  animation: floatMockup 7s ease-in-out infinite;
  backdrop-filter: blur(18px);
}
.mockup-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mockup-tabs span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: #f2f2ef;
  font-size: 0.82rem;
}
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mockup-grid article {
  min-height: 118px;
  background: rgba(250, 250, 247, 0.94);
  color: #17181c;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
}
.mockup-grid article.wide { grid-column: span 2; }
.mockup-grid small { color: #6a6d74; }
.mockup-grid strong {
  display: block;
  font-size: 1.45rem;
  margin: 0.25rem 0;
}
.marketing-section, .split-section, .trust-section, .workflow-strip, .ai-band, .benefits, .testimonials, .pricing, .faq, .final-cta, .solution-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
  color: #17181c;
  scroll-margin-top: 92px;
}
.marketing-section, .split-section, .trust-section, .workflow-strip, .ai-band, .benefits, .testimonials, .pricing, .faq {
  border-top: 1px solid rgba(32, 33, 36, 0.08);
}
.section-heading h2, .solution-band h2, .split-section h2, .trust-section h2, .ai-band h2, .final-cta h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  max-width: 860px;
}
.section-heading {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}
.section-heading p,
.split-section .kicker,
.trust-section .kicker,
.ai-band .kicker,
.pricing-copy .kicker,
.testimonial-heading .kicker {
  color: #60646d;
}
.section-heading h2,
.split-section h2,
.trust-section h2,
.solution-band h2 {
  color: #18191d;
}
.problem-grid, .benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.problem-grid article, .benefits article, .bento, .trust-section article, .testimonials article, .pricing article, .faq details {
  background: rgba(255,255,255,0.9);
  border: 1px solid #deded9;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.06);
}
.problem-grid article, .benefits article {
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem;
  color: #2a2c31;
  line-height: 1.35;
}
.problem-grid span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e9ebe8;
  color: #60646d;
  font-size: 0.7rem;
  line-height: 1;
  margin-top: 0.05rem;
}
.solution-band {
  padding: 4.2rem 1.25rem;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}
.solution-band p {
  color: #676b73;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.solution-band h2 {
  margin-left: auto;
  margin-right: auto;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}
.bento {
  padding: 1.25rem;
  min-height: 150px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.bento h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.bento p {
  color: #555962;
  line-height: 1.55;
}
.bento:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(32, 33, 36, 0.1); }
.bento.large { grid-column: span 2; grid-row: span 2; }
.bento.tall { grid-row: span 2; }
.bento.compact {
  display: grid;
  place-items: center start;
  font-weight: 700;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
  gap: 1rem;
}
.capability-card,
.product-preview,
.assistant-preview {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #deded9;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(32, 33, 36, 0.07);
  color: #18191d;
}
.capability-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1rem;
}
.capability-card.large { grid-column: span 2; grid-row: span 2; }
.capability-card.tall { grid-row: span 2; }
.capability-card.wide { grid-column: span 2; }
.capability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.capability-head small,
.preview-toolbar,
.preview-table span,
.owner-preview-strip small {
  color: #6a6d74;
}
.capability-head h3 {
  margin: 0.18rem 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
}
.status-pill {
  white-space: nowrap;
  border-radius: 999px;
  background: #eef5f1;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.35rem 0.55rem;
}
.status-pill.due {
  background: #f8f2e8;
  color: var(--yellow);
}
.preview-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #e5e5df;
  border-radius: 14px;
}
.preview-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  background: #fbfbf8;
  border-bottom: 1px solid #e8e8e1;
}
.preview-table.compact > div {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.55fr) auto;
}
.preview-table > div:first-child {
  background: #f2f2ef;
  font-size: 0.78rem;
  font-weight: 900;
}
.preview-table > div:last-child {
  border-bottom: 0;
}
.preview-table strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-table em {
  border-radius: 999px;
  background: #f0f1f2;
  color: #45484d;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  padding: 0.25rem 0.45rem;
}
.preview-stack,
.task-preview,
.record-preview-list {
  display: grid;
  gap: 0.55rem;
}
.preview-stack > div,
.record-preview-list > div,
.task-preview > div {
  display: grid;
  gap: 0.15rem;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  background: #fbfbf8;
  padding: 0.7rem;
}
.preview-stack span,
.record-preview-list span,
.task-preview em {
  color: #6a6d74;
  font-style: normal;
  font-size: 0.84rem;
}
.doc-preview {
  display: grid;
  gap: 0.5rem;
}
.doc-preview span {
  border: 1px solid #e5e5df;
  border-radius: 12px;
  background: #fbfbf8;
  padding: 0.68rem;
  font-weight: 800;
}
.task-preview > div {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.task-preview > div span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--yellow);
  grid-row: span 2;
}
.task-preview strong {
  min-width: 0;
}
.owner-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.owner-preview-strip div {
  display: grid;
  gap: 0.2rem;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  background: #fbfbf8;
  padding: 0.8rem;
}
.owner-preview-strip strong {
  font-size: 1.05rem;
}
.product-preview {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 900;
}
.preview-toolbar button,
.capability-head button {
  padding: 0.48rem 0.62rem;
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.preview-metrics div,
.owner-account-card,
.payment-preview-card {
  border: 1px solid #e5e5df;
  border-radius: 14px;
  background: #f7f7f4;
  padding: 0.85rem;
}
.preview-metrics small,
.owner-account-card small,
.payment-preview-card span {
  display: block;
  color: #6a6d74;
  margin-bottom: 0.25rem;
}
.preview-metrics strong,
.owner-account-card strong {
  font-size: 1.35rem;
}
.owner-account-card {
  display: grid;
  gap: 0.45rem;
}
.owner-account-card button {
  justify-self: start;
}
.payment-preview-card {
  display: grid;
  gap: 0.65rem;
}
.payment-preview-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.payment-preview-card strong {
  text-align: right;
}
.assistant-preview {
  display: grid;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 1rem;
}
.assistant-prompt,
.assistant-answer {
  border-radius: 16px;
  padding: 1rem;
}
.assistant-prompt {
  justify-self: end;
  max-width: 80%;
  background: #f7f7f4;
  color: #18191d;
  font-weight: 800;
}
.assistant-answer {
  background: rgba(255, 255, 255, 0.1);
  color: #f7f7f4;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.assistant-answer ol {
  margin: 0.7rem 0 0;
  padding-left: 1.25rem;
  color: #d9dadd;
  line-height: 1.55;
}
.mini-ledger, .workflow-mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: 1rem;
  background: #f4f4f1;
  border-radius: 14px;
  padding: 0.9rem;
}
.workflow-mini { grid-template-columns: 1fr; }
.workflow-mini span {
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
}
.split-section, .trust-section, .ai-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.split-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.split-section > div:first-child p:not(.kicker),
.trust-section p:not(.kicker) {
  color: #555962;
  font-size: 1.03rem;
  line-height: 1.65;
}
.split-section.reverse { grid-template-columns: 1.2fr 0.8fr; }
.split-section.reverse > div:first-child { order: 2; }
.check-grid, .marketing .portal-card, .prompt-cloud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.check-grid span, .marketing .portal-card span, .prompt-cloud span {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e5e5df;
  border-radius: 12px;
  padding: 0.7rem;
  color: #24262b;
  font-weight: 700;
}
.trust-section {
  grid-template-columns: repeat(2, 1fr);
}
.trust-section article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.4rem;
}
.workflow-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(6, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.workflow-strip div {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #deded9;
  border-radius: 14px;
  padding: 0.8rem;
}
.workflow-strip .workflow-intro {
  background: transparent;
  border: 0;
  padding: 0;
  align-self: center;
}
.workflow-intro strong {
  display: block;
  color: #18191d;
  font-size: 1.2rem;
  line-height: 1.15;
}
.workflow-strip span {
  display: block;
  color: #777b84;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.ai-band {
  background: #15171b;
  color: #f7f7f4;
  border-radius: 0;
  max-width: none;
  padding-left: max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
}
.ai-band p { color: #c9cbd1; }
.prompt-cloud {
  align-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem;
}
.prompt-cloud span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f1ec;
}
.benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.benefits article {
  min-height: 86px;
  align-items: center;
  font-weight: 800;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.testimonial-heading {
  grid-column: 1 / -1;
  max-width: 760px;
  margin-bottom: 0.5rem;
}
.testimonial-heading h2 {
  color: #18191d;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}
.testimonials article {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  padding: 1.1rem;
}
.testimonials p { color: #303238; line-height: 1.55; }
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 1rem;
  align-items: stretch;
}
.pricing-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.35rem;
}
.pricing-copy h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  max-width: 11ch;
}
.pricing-copy > p {
  color: #4b4e54;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 58ch;
}
.pricing-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pricing-notes span,
.pricing-badge {
  border: 1px solid #deded9;
  border-radius: 999px;
  background: #f7f7f4;
  color: #31343a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}
.pricing-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  background: #17181c !important;
  color: #f8f8f4;
  border-color: #17181c !important;
  box-shadow: 0 26px 70px rgba(23, 24, 28, 0.18);
}
.pricing-card p,
.pricing-card small,
.pricing-card li {
  color: #d4d5d2;
}
.pricing-card h3 {
  display: block;
  color: #fff;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.9;
  margin: 0.8rem 0 0.55rem;
}
.pricing-card h3 span {
  display: block;
  margin-top: 0.35rem;
  color: #d4d5d2;
  font-size: 1rem;
  font-weight: 800;
}
.pricing-card small {
  display: block;
  line-height: 1.5;
}
.pricing-card ul {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
}
.pricing-card li {
  display: flex;
  gap: 0.55rem;
  line-height: 1.35;
}
.pricing-card li::before {
  content: "✓";
  color: #f6f1df;
  font-weight: 900;
}
.pricing-card button {
  width: 100%;
  background: #f7f7f4;
  border-color: #f7f7f4;
  color: #17181c;
  font-weight: 900;
}
.pricing-badge {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pricing-example {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.2rem;
  background: #f7f7f4;
  border: 1px solid #deded9;
  border-radius: 18px;
}
.pricing-example small {
  color: #777b84;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.pricing-example strong {
  color: #17181c;
}
.pricing-example span {
  justify-self: end;
  color: #17181c;
  font-weight: 900;
}
.pricing-example p {
  grid-column: 2 / -1;
  margin: 0;
  color: #60636a;
}
.faq details {
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 0.7rem 0 0; color: #4d5056; }
.final-cta {
  text-align: center;
  padding-bottom: 7rem;
}
.final-cta h2 { margin-left: auto; margin-right: auto; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes floatMockup {
  0%, 100% { transform: rotateX(5deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(5deg) rotateY(-8deg) translateY(-12px); }
}

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

@media (max-width: 980px) {
  #app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.three, .grid.four, .rule-grid, .workflow, .form-grid, .assistant, .report-grid { grid-template-columns: 1fr; }
  .dashboard-lead, .ai-recs { grid-template-columns: 1fr; }
  .extract-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .portal-hero { flex-direction: column; }
  .homeowner-grid, .homeowner-grid.clean, .homeowner-summary { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: auto minmax(0, 1fr); }
  .payment-meta {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }
  .payment-status, .payment-amount { justify-self: start; }
  .ach-bank-list, .ach-security-strip { grid-template-columns: 1fr; }
  .marketing-nav nav { display: none; }
  .tour-screen { padding: 1rem; align-items: start; }
  .tour-card { padding: 1rem; border-radius: 20px; }
  .tour-head { align-items: flex-start; flex-direction: column; }
  .tour-track-tabs { width: 100%; }
  .tour-track-tabs button { flex: 1; padding: 0 0.5rem; }
  .tour-layout { grid-template-columns: 1fr; }
  .tour-panel { grid-template-columns: 1fr; }
  .tour-panel article { min-height: auto; }
  .tour-metrics { grid-template-columns: 1fr; }
  .tour-task-stack article { grid-template-columns: 2.3rem minmax(0, 1fr); }
  .tour-task-stack em { grid-column: 2; justify-self: start; }
  .tour-actions button { flex: 1 1 12rem; }
  .hero, .split-section, .split-section.reverse, .trust-section, .ai-band, .pricing, .testimonials { grid-template-columns: 1fr; }
  .pricing-copy { padding: 0; }
  .pricing-copy h2 { max-width: 100%; }
  .pricing-example {
    grid-template-columns: 1fr;
  }
  .pricing-example span,
  .pricing-example p {
    grid-column: auto;
    justify-self: start;
  }
  .split-section.reverse > div:first-child { order: 0; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.8rem); }
  .mockup-shell { transform: none; animation: none; }
  .problem-grid, .benefits, .bento-grid, .workflow-strip { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card.large,
  .capability-card.tall,
  .capability-card.wide {
    grid-column: auto;
    grid-row: auto;
  }
  .owner-preview-strip,
  .preview-metrics {
    grid-template-columns: 1fr;
  }
  .preview-table > div,
  .preview-table.compact > div {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .payment-preview-card div {
    align-items: flex-start;
    flex-direction: column;
  }
  .assistant-prompt {
    justify-self: stretch;
    max-width: 100%;
  }
  .bento.large, .bento.tall, .mockup-grid article.wide { grid-column: auto; grid-row: auto; }
  .mockup-grid { grid-template-columns: 1fr; }
  .check-grid, .portal-card, .prompt-cloud { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .top-actions, nav button { display: none; }
  #app { display: block; }
  main { padding: 0; }
  .panel, .status { box-shadow: none; break-inside: avoid; }
}
