:root {
  --ink: #11141a;
  --sub: #4f5d72;
  --paper: #f6f9ff;
  --panel: #ffffff;
  --line: #d6e4f5;
  --accent: #ea580c;
  --accent-deep: #b4450d;
  --accent-soft: #fff2e9;
  --brand-blue: #235ca3;
  --brand-blue-deep: #123f7b;
  --blue-soft: #edf5ff;
  --danger: #cf3a2b;
  --ok: #1a7a4a;
  --radius-lg: 14px;
  --radius-md: 11px;
  --shadow-card:
    0 1px 4px rgba(0, 0, 0, 0.05),
    0 7px 24px rgba(35, 92, 163, 0.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", -apple-system, sans-serif;
}

.paint-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse at 0% 35%, rgba(234, 88, 12, 0.24) 0%, transparent 45%),
    radial-gradient(ellipse at 38% 78%, rgba(35, 92, 163, 0.21) 0%, transparent 38%),
    radial-gradient(ellipse at 72% 24%, rgba(234, 88, 12, 0.17) 0%, transparent 42%),
    radial-gradient(ellipse at 96% 8%, rgba(35, 92, 163, 0.2) 0%, transparent 36%),
    linear-gradient(162deg, #fff8f4 0%, #f4f8ff 46%, #f8fbff 100%);
  opacity: 0.28;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 255, 0.92);
  backdrop-filter: blur(12px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logo {
  display: block;
  width: auto;
  height: 18px;
}

.logo-dobu {
  color: #18181b;
}

.logo-lennar {
  height: 14px;
}

.logo-divider {
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  transform: translateY(-0.5px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-family: "Instrument Serif", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-text span {
  font-size: 11px;
  color: #6d84a6;
}

.top-btn {
  text-decoration: none;
  color: #fff;
  background: #18181b;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.top-btn:hover {
  background: #0d0f14;
}

.app-shell {
  min-height: calc(100vh - 56px);
  display: flex;
}

.sidebar {
  width: 252px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #eff5ff 0%, #f9fbff 100%);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow: auto;
}

.sidebar-hero {
  margin: 14px 12px 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(35, 92, 163, 0.17);
  border: 1px solid var(--line);
}

.hero-sky {
  height: 82px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 70%, rgba(234, 88, 12, 0.46) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 20%, rgba(35, 92, 163, 0.35) 0%, transparent 37%),
    linear-gradient(160deg, #fff2e8 0%, #ebf4ff 52%, #f5f9ff 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  background: #fff;
  padding: 10px 12px 12px;
}

.hero-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  line-height: 1.1;
}

.hero-sub {
  margin: 2px 0 10px;
  color: #6f7f98;
  font-size: 11px;
}

.chip-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.chip {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-blue-deep);
  background: var(--blue-soft);
  border: 1px solid #c8daf2;
}

.chip.alert {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: #f5c7aa;
}

.nav-label {
  margin: 10px 0 5px;
  padding: 0 18px;
  font-size: 10px;
  color: #6e86a8;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-nav {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

.nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-decoration: none;
  padding: 9px 16px;
  border-left: 2px solid transparent;
  color: var(--sub);
  font-size: 13px;
  transition: all 0.14s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nav-item span {
  min-width: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #8ea8ca;
}

.nav-item.active {
  background: #fff;
  border-left-color: var(--brand-blue);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.nav-item.active span {
  color: var(--accent);
}

.main-report {
  flex: 1;
  overflow: auto;
  padding: 30px clamp(14px, 5vw, 50px) 50px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2.6vw, 26px);
}

.report-section {
  margin-bottom: 18px;
  scroll-margin-top: 75px;
}

.section-header {
  margin-bottom: 18px;
}

.kicker {
  margin: 0 0 5px;
  font-size: 11px;
  color: var(--brand-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(32px, 3.3vw, 42px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.executive-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 80%, rgba(234, 88, 12, 0.34) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 20%, rgba(35, 92, 163, 0.32) 0%, transparent 44%),
    linear-gradient(160deg, #fff4ec 0%, #f2f7ff 38%, #f8fbff 100%);
  box-shadow: 0 8px 35px rgba(35, 92, 163, 0.12);
}

.executive-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.76;
}

.hero-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 11px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 2;
}

.hero-overlay p {
  margin: 0;
  font-size: 10px;
  color: #7389aa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-overlay h2 {
  margin-top: 4px;
  font-size: clamp(20px, 2.2vw, 29px);
}

.risk-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--danger);
  background: var(--accent-soft);
  border: 1px solid #f5c7aa;
  z-index: 3;
}

.metrics-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

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

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

.metric {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.metrics-grid .metric:nth-child(even) {
  border-top-color: var(--brand-blue);
}

.metric.compact {
  border-top-color: var(--brand-blue);
}

.metric-label {
  margin: 0;
  font-size: 10px;
  color: #6b7f9f;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.metric h3 {
  margin-top: 4px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
}

.metric-sub {
  margin: 5px 0 0;
  color: #5d6f89;
  font-size: 12px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

thead {
  background: var(--blue-soft);
}

th {
  font-size: 10px;
  color: var(--brand-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid #e8eff9;
  color: #2e3f57;
  font-size: 13px;
  vertical-align: top;
}

tbody tr:hover td {
  background: #f8fbff;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, auto));
  gap: 8px;
  align-items: center;
}

.flow-stack {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.flow-stack .callout {
  margin-top: 0;
}

.pipe-item {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 11px;
  padding: 12px;
  min-height: 88px;
}

.pipe-item p {
  margin: 0;
  font-size: 10px;
  color: #6b7f9f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.pipe-item h3 {
  margin-top: 5px;
  font-size: 16px;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 1.15;
}

.pipe-arrow {
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.callout {
  margin-top: 14px;
  background: var(--blue-soft);
  border: 1px solid #cbdcf2;
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  color: #405474;
  font-size: 13px;
  line-height: 1.55;
}

.callout.info {
  background: var(--accent-soft);
  border-color: #f3c5a7;
  border-left-color: var(--accent);
}

.callout.warning {
  background: #fdf0ee;
  border-color: #ecc5c0;
  border-left-color: var(--danger);
}

.journey-wrap {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 12px 16px;
  background: #ffffff;
}

.journey-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.journey-side {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.journey-side.before {
  border-left: 3px solid var(--brand-blue);
}

.journey-side.after {
  border-left: 3px solid var(--accent);
}

.journey-side-title {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5f7392;
  font-weight: 700;
}

.journey-side-logos {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.journey-brand {
  display: block;
  width: auto;
}

.journey-brand.salesforce {
  height: 20px;
}

.journey-brand.dobu {
  height: 17px;
}

.journey-chart {
  position: relative;
}

.journey-svg {
  width: 100%;
  display: block;
  border: 1px solid #d6e4f5;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.axis {
  stroke: #c2d7f2;
  stroke-width: 8;
  stroke-linecap: round;
}

.curve {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 6;
  stroke-linecap: round;
}

.decision-divider {
  stroke: #93aed1;
  stroke-width: 3;
  stroke-dasharray: 11 10;
}

.journey-heading {
  fill: var(--brand-blue-deep);
  text-anchor: middle;
  font-family: "Instrument Serif", serif;
  font-size: 36px;
  letter-spacing: -0.01em;
}

.journey-phase-title {
  fill: var(--brand-blue-deep);
  font-size: 16px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
}

.journey-phase-title.center {
  text-anchor: middle;
  font-size: 18px;
}

.journey-phase-sub {
  fill: #5e7291;
  font-size: 10.5px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

.journey-metric-box {
  fill: #ffffff;
  stroke: #c9dcf4;
  stroke-width: 2;
  filter: drop-shadow(0 5px 10px rgba(35, 92, 163, 0.14));
}

.journey-metric-text {
  fill: #3b5478;
  text-anchor: middle;
  font-size: 14px;
  font-weight: 700;
}

.homeowner-token {
  position: absolute;
  left: 9.2%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--brand-blue-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.24);
  z-index: 2;
}

.homeowner-token svg {
  width: 20px;
  height: 20px;
}

.homeowner-token svg path,
.homeowner-token svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.journey-labels span {
  text-align: center;
  border: 1px solid #cfdff3;
  border-radius: 999px;
  padding: 5px 8px;
  color: #4d6689;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.journey-labels span.active {
  color: #fff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.sf-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.sf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #edf5ff 0%, #fff3ea 100%);
}

.sf-head p {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
}

.sf-head span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #c5d9f2;
  color: var(--brand-blue-deep);
  background: #f5f9ff;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
}

.sf-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.sf-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 0.7fr;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sf-row.live {
  box-shadow: 0 8px 18px rgba(35, 92, 163, 0.16);
  transform: translateY(-1px);
}

.sf-row strong,
.sf-row p,
.sf-row em {
  margin: 0;
}

.sf-row strong {
  font-size: 12px;
  color: var(--brand-blue-deep);
}

.sf-row p {
  font-size: 13px;
  color: #425a7a;
}

.status {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  font-style: normal;
}

.status.open {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.status.routing {
  color: var(--brand-blue-deep);
  background: var(--blue-soft);
}

.status.resolved {
  color: var(--ok);
  background: #eef8f2;
}

.proven-beach {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}

.beach-art {
  width: 100%;
  height: auto;
  display: block;
}

.proven-note {
  margin: 0 0 6px;
  color: #4e678d;
  font-size: 14px;
  font-weight: 600;
}

.sf-foot {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 12px;
  color: #4a607f;
  background: #f7fbff;
}

.section-subline {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sf-scene {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 56%, #fff3ea 100%);
  overflow: hidden;
  padding: 14px 16px 72px;
  min-height: 430px;
}

.sf-scene::after {
  content: "";
  position: absolute;
  left: -94px;
  bottom: -172px;
  width: 520px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 56% 36%,
    rgba(234, 88, 12, 0.82) 0%,
    rgba(234, 88, 12, 0.68) 56%,
    rgba(234, 88, 12, 0.4) 78%,
    rgba(234, 88, 12, 0) 100%
  );
  pointer-events: none;
}

.sf-issue-card,
.sf-ticket-card {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(35, 92, 163, 0.09);
}

.sf-issue-card {
  width: min(100%, 620px);
  padding: 16px 18px 18px;
}

.sf-issue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sf-issue-head h3 {
  font-family: "DM Sans", -apple-system, sans-serif;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.sf-issue-head h3 span {
  color: #6d7383;
}

.sf-image-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #a8c2e4;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sf-image-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #365886;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-status-line {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f9a56;
  font-size: clamp(16px, 1.35vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.sf-checkmark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.sf-checkmark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #1f9a56;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-issue-copy {
  margin: 12px 0 0;
  max-width: 100%;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.42;
  color: #2d4467;
}

.sf-arrow-flow {
  position: absolute;
  left: 26px;
  top: 216px;
  width: 178px;
  height: 102px;
  z-index: 3;
}

.sf-arrow-flow path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-ticket-card {
  width: min(100%, 500px);
  margin-top: 14px;
  margin-left: clamp(58px, 8.5vw, 102px);
  padding: 16px 16px 64px;
}

.sf-ticket-item {
  margin-bottom: 10px;
}

.sf-ticket-item:last-of-type {
  margin-bottom: 0;
}

.sf-ticket-item p {
  margin: 0;
  color: #6a7386;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

.sf-ticket-item h4 {
  margin: 3px 0 0;
  font-size: 28px;
  font-family: "DM Sans", -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.06;
  color: #101a2b;
}

.sf-confirm-pill {
  position: absolute;
  right: -82px;
  bottom: 16px;
  border: 1px solid #1f9a56;
  background: #f4fff9;
  color: #165d36;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 258px;
  box-shadow: 0 7px 16px rgba(15, 84, 45, 0.14);
}

.sf-confirm-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sf-confirm-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #1f9a56;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.time-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.time-item p {
  margin: 0;
  font-size: 10px;
  color: #6883a9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.time-item h3 {
  margin-top: 5px;
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  font-weight: 400;
}

.time-item span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #566c8f;
  line-height: 1.5;
}

.flywheel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.flywheel-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}

.flywheel-grid h3 {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
}

.flywheel-grid p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #496387;
  line-height: 1.5;
}

.assets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.asset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.asset h3 {
  font-size: 19px;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.asset p {
  margin: 5px 0 0;
  color: #5b7194;
  font-size: 12px;
}

.asset-box {
  margin-top: 10px;
  min-height: 170px;
  border: 1px dashed #9ab8de;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff1e7 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #3f6292;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.real-listing-box {
  position: relative;
  min-height: 290px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--line);
  background: #ffffff;
  overflow: hidden;
  padding: 0;
}

.listing-image {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ai-extract-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(17, 20, 26, 0.84);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.ai-pulse-node {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  max-width: min(280px, 82%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: aiPulse 2.2s ease-in-out infinite;
}

.ai-pulse-node.node-home {
  right: 30%;
  top: 32%;
  color: var(--brand-blue-deep);
  background: rgba(237, 245, 255, 0.96);
  border: 1px solid #b7cff1;
}

.ai-pulse-node.node-output {
  right: 12px;
  bottom: 14px;
  color: var(--accent-deep);
  background: rgba(255, 242, 233, 0.97);
  border: 1px solid #f0c4a8;
  animation-delay: 0.5s;
}

.ai-pulse-node.node-model {
  left: 12px;
  bottom: 14px;
  color: var(--brand-blue-deep);
  background: rgba(237, 245, 255, 0.97);
  border: 1px solid #b7cff1;
  animation-delay: 0.9s;
}

.real-account-box {
  position: relative;
  min-height: 290px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--line);
  background: #ffffff;
  overflow: hidden;
  padding: 0;
}

.account-chip {
  background: rgba(18, 63, 123, 0.86);
}

.ai-pulse-node.account-node-1 {
  left: 12px;
  top: 34%;
  color: var(--brand-blue-deep);
  background: rgba(237, 245, 255, 0.97);
  border: 1px solid #b7cff1;
}

.ai-pulse-node.account-node-2 {
  left: 34%;
  top: 52%;
  color: var(--accent-deep);
  background: rgba(255, 242, 233, 0.97);
  border: 1px solid #f0c4a8;
  animation-delay: 0.4s;
}

.ai-pulse-node.account-node-3 {
  right: 12px;
  bottom: 14px;
  color: var(--brand-blue-deep);
  background: rgba(237, 245, 255, 0.97);
  border: 1px solid #b7cff1;
  animation-delay: 0.8s;
}

.agentic-bridge {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1fr;
  gap: 9px;
  align-items: center;
}

.agentic-step {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  color: #41597d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.agentic-step.highlight {
  border-color: #f0c4a8;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.agentic-arrow {
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 800;
}

@keyframes aiPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(35, 92, 163, 0.2);
  }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 12px 13px 12px 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #344a67;
  line-height: 1.55;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.steps li:nth-child(even)::before {
  background: var(--accent);
}

.step-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #6a7f9f;
  font-weight: 600;
}

.contact-footer {
  margin-top: 6px;
  margin-bottom: 6px;
  border-left: 3px solid var(--accent);
}

.contact-title {
  margin: 2px 0 8px;
  font-size: 14px;
  color: #364e71;
  font-weight: 600;
}

.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.contact-person {
  min-width: 0;
}

.contact-name {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  line-height: 1.05;
  color: var(--brand-blue-deep);
}

.contact-role {
  margin: 6px 0 0;
  font-size: 15px;
  color: #4c6488;
  font-weight: 600;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #c7dbf3;
  background: #f5f9ff;
  color: var(--brand-blue-deep);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(24, 63, 123, 0.12);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-email {
  border-color: #f0c4a8;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.contact-route-note {
  margin: -3px 0 2px 4px;
  font-size: 12px;
  color: #5d7191;
  font-weight: 600;
}

.contact-photo-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(35, 92, 163, 0.09);
  min-height: 220px;
}

.contact-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
}

.signature-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.signature-title {
  margin: 0 0 8px;
  font-family: "Instrument Serif", serif;
  font-size: 27px;
  line-height: 1.08;
  color: var(--brand-blue-deep);
}

.signature-line {
  margin: 0;
  color: #4c6488;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.signature-link {
  margin: 4px 0 0;
  color: var(--accent-deep);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-tabs {
  display: none;
}

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

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

  .journey-heading {
    font-size: 29px;
  }

  .journey-phase-title {
    font-size: 14px;
  }

  .journey-phase-sub {
    font-size: 9px;
  }

  .sf-ticket-item h4 {
    font-size: 26px;
  }

  .sf-confirm-pill {
    right: -62px;
    font-size: 13px;
    max-width: 230px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-report {
    max-width: 100%;
    padding: 16px 12px 76px;
  }

  .grid-3,
  .grid-4,
  .flywheel-grid,
  .assets-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .pipe-arrow {
    display: none;
  }

  .journey-sides {
    grid-template-columns: 1fr;
  }

  .journey-heading {
    font-size: 20px;
  }

  .journey-phase-title {
    font-size: 12px;
  }

  .journey-phase-sub {
    display: none;
  }

  .journey-metric-text {
    font-size: 11px;
  }

  .homeowner-token {
    width: 28px;
    height: 28px;
  }

  .homeowner-token svg {
    width: 16px;
    height: 16px;
  }

  .real-listing-box,
  .real-account-box,
  .listing-image {
    min-height: 220px;
  }

  .ai-pulse-node {
    font-size: 9px;
    padding: 5px 7px;
  }

  .ai-pulse-node.node-home {
    right: 8px;
    top: 30%;
  }

  .ai-pulse-node.node-output {
    right: 8px;
    bottom: 8px;
  }

  .ai-pulse-node.node-model {
    left: 8px;
    bottom: 8px;
  }

  .ai-pulse-node.account-node-1 {
    left: 8px;
    top: 24%;
  }

  .ai-pulse-node.account-node-2 {
    left: 8px;
    top: 42%;
  }

  .ai-pulse-node.account-node-3 {
    right: 8px;
    bottom: 8px;
  }

  .agentic-bridge {
    grid-template-columns: 1fr;
  }

  .agentic-arrow {
    display: none;
  }

  .mobile-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 7px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    overflow: auto;
    background: rgba(246, 249, 255, 0.96);
    border-top: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    z-index: 45;
  }

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

  .mobile-tabs a {
    flex-shrink: 0;
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-blue-deep);
    border-radius: 999px;
    min-width: 38px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
  }

  .topbar {
    height: 60px;
    padding: 0 12px;
  }

  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .logo {
    height: 15px;
  }

  .logo-lennar {
    height: 12px;
  }

  .top-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hero-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 11px;
  }

  .hero-overlay h2 {
    font-size: clamp(18px, 5.5vw, 24px);
  }

  .risk-pill {
    top: 10px;
    right: 10px;
    font-size: 9px;
    padding: 4px 8px;
  }

  .sf-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
  }

  .section-subline {
    font-size: clamp(16px, 5vw, 20px);
  }

  .sf-scene {
    min-height: auto;
    width: 100%;
    padding: 12px 11px 16px;
  }

  .sf-scene::after {
    left: -104px;
    bottom: -184px;
    width: 360px;
    height: 220px;
  }

  .sf-issue-card,
  .sf-ticket-card {
    border-radius: 14px;
    border-width: 1px;
  }

  .sf-issue-card {
    padding: 13px 12px;
  }

  .sf-image-icon {
    width: 26px;
    height: 26px;
  }

  .sf-image-icon svg {
    width: 14px;
    height: 14px;
  }

  .sf-status-line {
    margin-top: 10px;
    font-size: clamp(16px, 4.7vw, 22px);
  }

  .sf-checkmark {
    width: 24px;
    height: 24px;
  }

  .sf-issue-copy {
    max-width: 100%;
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.38;
  }

  .sf-arrow-flow {
    display: none;
  }

  .sf-ticket-card {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
    padding: 13px 12px;
  }

  .sf-ticket-item {
    margin-bottom: 10px;
  }

  .sf-ticket-item p {
    font-size: 15px;
  }

  .sf-ticket-item h4 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .sf-confirm-pill {
    position: static;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    padding: 10px 12px;
  }

  .sf-confirm-icon {
    width: 24px;
    height: 24px;
  }

  .contact-name {
    font-size: 26px;
  }

  .contact-top {
    grid-template-columns: 1fr;
  }

  .contact-photo-card,
  .contact-photo {
    min-height: 200px;
  }

  .signature-title {
    font-size: 23px;
  }

  .status {
    justify-self: start;
  }
}
