:root {
  --ink: #edf4f8;
  --ink-soft: #a9b9c6;
  --navy: #12314b;
  --navy-deep: #0c2438;
  --teal: #3bc4bb;
  --teal-bright: #5bdad1;
  --teal-pale: #153b39;
  --sky: #17303d;
  --paper: #0c1319;
  --white: #ffffff;
  --line: #34434f;
  --line-soft: #26343e;
  --amber: #f0bd66;
  --amber-pale: #3a2d17;
  --red: #ff8e88;
  --red-pale: #3c2222;
  --green: #78d8b5;
  --green-pale: #17372d;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 3%, rgba(23, 166, 158, 0.1), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.fabricated-banner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  color: #dcecf3;
  background: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  height: 78px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand > span:last-child {
  display: flex;
  line-height: 1.1;
  flex-direction: column;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.header-nav a:hover {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-button.signed-in {
  color: var(--green);
  border-color: #b9dacd;
  background: var(--green-pale);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.button:focus-visible,
.preset-button:focus-visible,
.data-tab:focus-visible,
.icon-button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(23, 166, 158, 0.24);
  outline-offset: 2px;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(13, 123, 118, 0.22);
}

.button-primary:hover {
  background: #096b67;
}

.button-secondary {
  color: var(--navy);
  border-color: #b9c7d2;
  background: var(--white);
}

.button-ghost {
  min-height: 38px;
  color: var(--navy);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button-light {
  color: var(--navy-deep);
  background: var(--white);
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.8rem;
}

.hero {
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 78px 26px 90px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--teal);
  font-weight: 500;
}

.hero-lead {
  max-width: 610px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 2px rgba(23, 166, 158, 0.2);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -60px -50px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 166, 158, 0.14), transparent 68%);
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(18, 49, 75, 0.12);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(12, 36, 56, 0.18);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.preview-topbar {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7e0e7;
}

.secure-label {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 50px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 0.62rem;
}

.preview-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 480px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 16px;
  background: var(--navy-deep);
}

.mini-logo {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 7px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.55rem;
  font-weight: 800;
}

.preview-sidebar i {
  width: 16px;
  height: 5px;
  border-radius: 4px;
  background: #456177;
}

.preview-sidebar i.active {
  background: var(--teal-bright);
}

.preview-content {
  padding: 25px;
  background: #f7f9fb;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.preview-heading div {
  display: flex;
  flex-direction: column;
}

.preview-heading small {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-heading strong {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.28rem;
}

.preview-heading > span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 0.6rem;
}

.preview-grid {
  display: grid;
  gap: 8px;
}

.preview-finding {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--amber);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(12, 36, 56, 0.04);
}

.preview-finding.priority-high {
  border-left-color: var(--red);
}

.finding-number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-soft);
  background: #eef3f6;
  font-family: Georgia, serif;
  font-size: 0.65rem;
}

.preview-finding div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.preview-finding small {
  color: var(--ink-soft);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-finding strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--navy);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-finding p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.preview-chart {
  margin-top: 13px;
  padding: 13px 15px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--white);
}

.chart-label {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
}

.chart-label small {
  color: var(--teal);
}

.chart-bars {
  height: 74px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, #fff 0, #fff 23px, #edf1f4 24px);
}

.chart-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #9bc8c4;
}

.chart-bars i:nth-child(1) { height: 35%; }
.chart-bars i:nth-child(2) { height: 52%; }
.chart-bars i:nth-child(3) { height: 78%; }
.chart-bars i:nth-child(4) { height: 43%; }
.chart-bars i:nth-child(5) { height: 94%; }
.chart-bars i:nth-child(6) { height: 58%; }
.chart-bars i:nth-child(7) { height: 86%; }
.chart-bars i:nth-child(8) { height: 48%; }

.chart-bars i.alert {
  background: var(--teal);
}

.statement-strip {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 24px;
  color: #dce8ef;
  background: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.statement-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.statement-strip strong {
  margin-left: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #bcd0dd;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
}

.demo-section,
.workbook-section,
.safeguards-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 26px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.safeguards-copy h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p,
.safeguards-copy > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.demo-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
  min-height: 730px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.demo-controls {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #f6f9fa;
}

.control-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.control-heading div {
  display: flex;
  flex-direction: column;
}

.control-heading strong {
  font-size: 0.9rem;
}

.control-heading small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.control-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--teal);
}

.control-group {
  margin-top: 24px;
}

.control-label {
  margin: 0 0 11px;
  color: #728091;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preset-list {
  display: grid;
  gap: 7px;
}

.preset-button {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.preset-button:hover {
  background: var(--white);
}

.preset-button.active {
  border-color: #b8dcd9;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(12, 36, 56, 0.06);
}

.preset-button > span {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ink-soft);
  background: #e5ecef;
  font-family: Georgia, serif;
  font-size: 0.65rem;
}

.preset-button.active > span {
  color: var(--white);
  background: var(--teal);
}

.preset-button strong {
  font-size: 0.78rem;
}

.preset-button small {
  margin-top: 3px;
  color: #718091;
  font-size: 0.66rem;
}

.custom-question {
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.custom-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.custom-heading .control-label {
  margin-bottom: 3px;
}

.custom-heading small {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.live-badge,
.result-mode,
.cache-note {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 800;
}

.live-badge {
  color: var(--amber);
  background: var(--amber-pale);
}

.live-badge.online {
  color: var(--green);
  background: var(--green-pale);
}

.live-badge.offline {
  color: var(--ink-soft);
  background: #e8edf1;
}

.custom-question form {
  margin-top: 12px;
}

.custom-question label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.custom-question textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #cbd5dd;
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.75rem;
  line-height: 1.5;
}

.custom-question textarea::placeholder {
  color: #95a1ac;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.form-footer > span {
  color: #84909c;
  font-size: 0.64rem;
}

.result-panel {
  position: relative;
  min-width: 0;
  padding: 30px 36px 36px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.98)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, #e9eef2 32px),
    repeating-linear-gradient(90deg, transparent 0, transparent 89px, #e9eef2 90px);
}

.result-toolbar {
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.result-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-mode {
  color: var(--green);
  background: var(--green-pale);
}

.cache-note {
  color: var(--ink-soft);
  background: #eef3f6;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: var(--white);
  cursor: pointer;
}

.icon-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.result-content {
  padding-top: 30px;
}

.result-eyebrow {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.result-content h3 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.result-summary {
  max-width: 780px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.68;
  white-space: pre-line;
}

.finding-list {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.finding-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(12, 36, 56, 0.05);
}

.finding-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-pale);
  font-family: Georgia, serif;
  font-size: 0.75rem;
}

.finding-main {
  min-width: 0;
}

.finding-main h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.84rem;
}

.finding-main > p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.finding-meta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-top: 10px;
}

.finding-meta div {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.finding-meta small {
  display: block;
  margin-bottom: 3px;
  color: #7c8996;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finding-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.caution-box {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 11px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid #ecd29f;
  border-radius: 10px;
  color: #75531f;
  background: var(--amber-pale);
}

.caution-box svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.caution-box p {
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.5;
}

.result-loading,
.result-error {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.result-loading strong,
.result-error strong {
  margin-top: 20px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.result-loading span,
.result-error p {
  max-width: 470px;
  margin: 8px 0 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.loading-orbit {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid #cfe8e5;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loading-orbit i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.loading-orbit i:nth-child(1) { left: 21px; top: -5px; }
.loading-orbit i:nth-child(2) { right: -3px; bottom: 10px; }
.loading-orbit i:nth-child(3) { left: 3px; bottom: 3px; }

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

.workbook-section {
  padding-top: 70px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
}

.metric-grid article {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.metric-grid small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-grid strong {
  margin-top: 12px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.metric-grid span {
  margin-top: auto;
  color: #7a8996;
  font-size: 0.68rem;
}

.data-card {
  overflow: hidden;
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.data-card-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.tab-list {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.data-tab {
  position: relative;
  padding: 0 14px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.data-tab.active {
  color: var(--teal);
}

.data-tab.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--teal);
}

.table-search {
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.table-search svg {
  width: 16px;
  fill: none;
  stroke: #7d8b98;
  stroke-width: 1.8;
}

.table-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.72rem;
}

.table-wrap {
  overflow: auto;
  max-height: 570px;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #6d7d8c;
  background: #f9fbfc;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.73rem;
}

td:first-child {
  color: var(--navy);
  font-weight: 700;
}

.money {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.variance-high {
  color: var(--red);
  font-weight: 750;
}

.status-pill {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 50px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 0.62rem;
  font-weight: 750;
}

.status-pill.pending {
  color: var(--amber);
  background: var(--amber-pale);
}

.table-footnote {
  margin: 0;
  padding: 12px 16px;
  color: #7b8894;
  background: #f9fbfc;
  font-size: 0.68rem;
}

.trend-view {
  min-height: 380px;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  align-items: center;
  gap: 50px;
  padding: 45px 55px;
}

.trend-view h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

.trend-view > div:first-child > p:last-child {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.trend-chart {
  min-height: 260px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 46px;
  padding: 30px 40px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, #fff 0, #fff 64px, #edf1f4 65px);
}

.trend-column {
  position: relative;
  width: 70px;
  min-height: 40px;
  border-radius: 8px 8px 0 0;
  background: #a8d5d1;
}

.trend-column.trend-height-1 { height: 40px; }
.trend-column.trend-height-2 { height: 58px; }
.trend-column.trend-height-3 { height: 77px; }
.trend-column.trend-height-4 { height: 96px; }
.trend-column.trend-height-5 { height: 115px; }
.trend-column.trend-height-6 { height: 134px; }
.trend-column.trend-height-7 { height: 153px; }
.trend-column.trend-height-8 { height: 172px; }
.trend-column.trend-height-9 { height: 191px; }
.trend-column.trend-height-10 { height: 210px; }

.trend-column:last-child {
  background: var(--teal);
}

.trend-column strong {
  position: absolute;
  top: -27px;
  left: 50%;
  color: var(--navy);
  font-size: 0.72rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.trend-column span {
  position: absolute;
  bottom: -27px;
  left: 50%;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.profit-view {
  min-height: 390px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 60px;
  padding: 50px 55px;
}

.profit-copy h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

.profit-copy > strong {
  display: block;
  margin-top: 18px;
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 2.8rem;
  font-weight: 500;
}

.profit-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.tax-exclusion {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid #ecd29f;
  border-radius: 8px;
  color: #75531f;
  background: var(--amber-pale);
  font-size: 0.7rem;
}

.profit-breakdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.profit-breakdown > span {
  color: #94a1ac;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.profit-breakdown article {
  min-height: 150px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}

.profit-breakdown article.profit-total {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.profit-breakdown small {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profit-breakdown .profit-total small {
  color: #d7f1ef;
}

.profit-breakdown strong {
  margin-top: 12px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.profit-breakdown .profit-total strong {
  color: var(--white);
}

.automation-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 26px 110px;
}

.auto-demo-console {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.auto-demo-heading {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.auto-demo-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-demo-heading > div:first-child > div {
  display: flex;
  flex-direction: column;
}

.auto-demo-heading strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.auto-demo-heading small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.auto-demo-actions {
  display: flex;
  gap: 8px;
}

.auto-demo-actions button.running {
  color: var(--red);
  border-color: #efc6c2;
  background: var(--red-pale);
}

.automation-run-log {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
}

.automation-run-log > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 18px;
  color: #7f8b96;
  background: #fbfcfd;
  font-size: 0.67rem;
  text-align: center;
}

.automation-run-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 13px;
  background: #fbfcfd;
  animation: teams-post-in 280ms ease both;
}

.automation-run-item > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-pale);
  font-size: 0.65rem;
  font-weight: 800;
}

.automation-run-item strong,
.automation-run-item small,
.automation-run-item time {
  display: block;
}

.automation-run-item strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-run-item small {
  margin-top: 4px;
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 800;
}

.automation-run-item time {
  margin-top: 3px;
  color: #8a959f;
  font-size: 0.55rem;
}

.automation-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.monitor-panel {
  min-width: 0;
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading > div > div {
  display: flex;
  flex-direction: column;
}

.panel-heading strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.panel-heading small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.automation-pulse {
  width: 12px;
  height: 12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(23, 166, 158, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(23, 166, 158, 0.03); }
}

.zero-token-badge {
  padding: 6px 9px;
  border-radius: 50px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 0.63rem;
  font-weight: 800;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.monitor-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfcfd;
}

.monitor-card > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 0.75rem;
}

.monitor-card.attention > span:first-child {
  color: var(--amber);
  background: var(--amber-pale);
}

.monitor-card div {
  min-width: 0;
}

.monitor-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.76rem;
}

.monitor-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.45;
}

.monitor-card small {
  display: block;
  margin-top: 7px;
  color: #87939e;
  font-size: 0.58rem;
}

.issue-count {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber);
  background: var(--amber-pale);
  font-size: 0.65rem;
  font-weight: 800;
}

.simulation-panel {
  padding: 32px;
  color: var(--white);
  background:
    radial-gradient(circle at 95% 5%, rgba(23, 166, 158, 0.3), transparent 16rem),
    var(--navy-deep);
}

.simulation-panel .eyebrow {
  color: #69d0ca;
}

.simulation-panel h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.simulation-panel > p:not(.eyebrow) {
  color: #b9cbd7;
  font-size: 0.78rem;
  line-height: 1.65;
}

.internal-access {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.internal-access strong {
  font-size: 0.8rem;
}

.internal-access span {
  margin: 7px 0 14px;
  color: #b9cbd7;
  font-size: 0.68rem;
  line-height: 1.5;
}

.simulation-panel form {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.simulation-panel label {
  color: #b9cbd7;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simulation-panel select {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #577083;
  border-radius: 9px;
  color: var(--white);
  background: #17364d;
}

.simulation-result {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 45px;
  margin-top: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.simulation-result-heading span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 50px;
  color: var(--red);
  background: var(--red-pale);
  font-size: 0.65rem;
  font-weight: 800;
}

.simulation-result-heading div p {
  display: inline;
  margin-left: 8px;
  color: var(--ink-soft);
  font-size: 0.63rem;
}

.simulation-result-heading h3 {
  margin: 15px 0 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.18;
}

.simulation-result-heading > p {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.6;
}

.action-timeline {
  display: grid;
  gap: 4px;
}

.action-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  padding: 10px 0;
}

.action-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: -9px;
  left: 13px;
  width: 1px;
  background: var(--line);
}

.action-step > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  z-index: 1;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-pale);
  font-size: 0.62rem;
  font-weight: 800;
}

.action-step.approval > span {
  color: var(--amber);
  background: var(--amber-pale);
}

.action-step h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.76rem;
}

.action-step p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.teams-demo {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #cfd2ea;
  border-radius: var(--radius-md);
  background: #f5f5fb;
  box-shadow: var(--shadow-soft);
}

.teams-titlebar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: #31325f;
  background: #e7e7f6;
  border-bottom: 1px solid #d4d4e8;
}

.teams-titlebar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.teams-titlebar strong {
  font-size: 0.78rem;
}

.teams-titlebar em,
.teams-titlebar > span {
  padding: 4px 7px;
  border-radius: 50px;
  color: #666889;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 700;
}

.teams-open-link {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
}

.teams-open-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.teams-app-mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #5b5fc7;
  font-size: 0.72rem;
  font-weight: 800;
}

.teams-window {
  min-height: 410px;
  display: grid;
  grid-template-columns: 54px 210px minmax(0, 1fr);
}

.teams-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px 8px;
  color: #7a7b9d;
  background: #ebebf4;
  border-right: 1px solid #d9d9e8;
}

.teams-rail span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 0.72rem;
}

.teams-rail span.active {
  color: #fff;
  background: #5b5fc7;
}

.teams-channels {
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  color: #45465f;
  background: #f3f3f8;
  border-right: 1px solid #dedeea;
}

.teams-channels strong {
  padding: 0 8px 15px;
  font-size: 0.82rem;
}

.teams-channels small {
  padding: 8px;
  color: #777891;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teams-channels > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.teams-channels > span.active {
  color: #2f3158;
  background: #e3e3f2;
  font-weight: 800;
}

.teams-channels b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #c4314b;
  font-size: 0.55rem;
}

.teams-conversation {
  min-width: 0;
  background: #fff;
}

.teams-channel-heading {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #e3e4ec;
}

.teams-channel-heading div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.teams-channel-heading strong {
  color: #242543;
  font-size: 0.9rem;
}

.teams-channel-heading span {
  padding: 20px 2px 17px;
  color: #5b5fc7;
  border-bottom: 3px solid #5b5fc7;
  font-size: 0.69rem;
  font-weight: 800;
}

.teams-channel-heading small {
  color: #818296;
  font-size: 0.65rem;
}

.teams-feed {
  min-height: 346px;
  padding: 20px;
  background: #fafafd;
}

.teams-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #85869c;
}

.teams-placeholder p {
  margin: 0;
  font-size: 0.72rem;
}

.teams-post {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  animation: teams-post-in 380ms ease both;
}

@keyframes teams-post-in {
  from { opacity: 0; transform: translateY(10px); }
}

.teams-bot-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.62rem;
  font-weight: 800;
}

.teams-post-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}

.teams-post-meta strong {
  color: #252642;
  font-size: 0.72rem;
}

.teams-post-meta span {
  color: #8a8b9e;
  font-size: 0.59rem;
}

.teams-adaptive-card {
  overflow: hidden;
  max-width: 650px;
  border: 1px solid #dadbe7;
  border-left: 5px solid var(--red);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(36, 37, 67, 0.08);
}

.teams-card-body {
  padding: 16px;
}

.teams-card-label {
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teams-adaptive-card h4 {
  margin: 7px 0 0;
  color: #252642;
  font-size: 0.9rem;
}

.teams-adaptive-card p {
  margin: 7px 0 0;
  color: #55566d;
  font-size: 0.69rem;
  line-height: 1.5;
}

.teams-card-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.teams-card-facts div {
  padding: 9px;
  border-radius: 5px;
  background: #f5f5f9;
}

.teams-card-facts small,
.teams-card-facts strong {
  display: block;
}

.teams-card-facts small {
  color: #85869a;
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teams-card-facts strong {
  margin-top: 4px;
  color: #37384f;
  font-size: 0.65rem;
}

.teams-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid #ebebf1;
  background: #fafafd;
}

.teams-card-actions button {
  padding: 7px 11px;
  border: 1px solid #c9cae1;
  border-radius: 5px;
  color: #4b4f9f;
  background: #fff;
  font-size: 0.63rem;
  font-weight: 800;
  cursor: pointer;
}

.teams-card-actions button.primary {
  color: #fff;
  border-color: #5b5fc7;
  background: #5b5fc7;
}

.teams-card-status {
  margin: 0 16px 14px;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 0.64rem;
  font-weight: 800;
}

.teams-disclaimer {
  margin: 0;
  padding: 9px 16px;
  color: #727389;
  background: #efeff7;
  border-top: 1px solid #dadae8;
  font-size: 0.6rem;
  text-align: center;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 30px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.workflow-toast {
  position: relative;
  display: grid;
  grid-template-columns: 37px 1fr 18px;
  gap: 11px;
  align-items: start;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 35px rgba(12, 36, 56, 0.2);
  pointer-events: auto;
  animation: toast-in 280ms ease both;
}

.workflow-toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--teal);
  animation: toast-life 5s linear both;
}

.workflow-toast.warning::after,
.workflow-toast.failure::after {
  background: var(--red);
}

.toast-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--teal);
  background: var(--teal-pale);
  font-weight: 800;
}

.workflow-toast.warning .toast-icon,
.workflow-toast.failure .toast-icon {
  color: var(--red);
  background: var(--red-pale);
}

.workflow-toast strong,
.workflow-toast span {
  display: block;
}

.workflow-toast strong {
  font-size: 0.75rem;
}

.workflow-toast span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.4;
}

.workflow-toast button {
  padding: 0;
  border: 0;
  color: #83909b;
  background: transparent;
  cursor: pointer;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@keyframes toast-life {
  from { width: 100%; }
  to { width: 0; }
}

.safeguards-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.safeguards-copy {
  position: sticky;
  top: 30px;
}

.safeguards-copy > p:last-child {
  max-width: 480px;
  margin-top: 20px;
}

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

.safeguard-grid article {
  min-height: 230px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.safeguard-grid span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--teal);
  background: var(--teal-pale);
  font-family: Georgia, serif;
  font-size: 0.73rem;
}

.safeguard-grid h3 {
  margin: 22px 0 8px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.safeguard-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.6;
}

.closing-cta {
  margin: 30px 24px 0;
  padding: 92px 24px;
  border-radius: 30px 30px 0 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 15%, rgba(23, 166, 158, 0.36), transparent 23rem),
    var(--navy-deep);
  text-align: center;
}

.closing-cta .eyebrow {
  color: #75d3cd;
}

.closing-cta h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.closing-cta p:not(.eyebrow) {
  margin: 15px 0 27px;
  color: #c7d7e1;
}

footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 26px max(26px, calc((100vw - 1188px) / 2));
  color: #9fb1be;
  background: #071b2b;
  font-size: 0.7rem;
}

.footer-brand {
  margin-right: auto;
  color: var(--white);
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-brand small {
  color: #8fa4b3;
}

footer p {
  max-width: 440px;
  margin: 0;
  line-height: 1.5;
}

/* Complete dark presentation for the public Close Review experience. */
body {
  background:
    radial-gradient(circle at 92% 3%, rgba(48, 179, 171, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(34, 84, 112, 0.1), transparent 34rem),
    var(--paper);
}

.site-header {
  border-bottom: 1px solid rgba(77, 98, 113, 0.35);
}

.brand small,
.header-nav,
.hero-lead,
.trust-row,
.section-heading > p,
.safeguards-copy > p:last-child {
  color: var(--ink-soft);
}

.header-nav a:hover,
.eyebrow,
.hero h1 em,
.result-eyebrow,
.profit-copy > strong {
  color: var(--teal);
}

.auth-button.signed-in {
  border-color: #315b4c;
}

.button-primary {
  color: #f7ffff;
  background: #137f79;
  box-shadow: 0 10px 26px rgba(10, 111, 106, 0.28);
}

.button-primary:hover {
  background: #159189;
}

.button-secondary,
.button-ghost {
  color: var(--ink);
  border-color: #465967;
  background: #172129;
}

.button-secondary:hover,
.button-ghost:hover {
  background: #202d37;
}

.hero h1,
.section-heading h2,
.safeguards-copy h2,
.result-content h3,
.result-loading strong,
.result-error strong,
.trend-view h3,
.profit-copy h3,
.simulation-result-heading h3 {
  color: var(--ink);
}

.status-dot,
.automation-pulse {
  border-color: #0c151c;
}

.preview-window {
  border-color: #334550;
  background: #141e26;
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.4);
}

.preview-topbar {
  color: var(--ink-soft);
  background: #121b22;
}

.window-dots i {
  background: #52636e;
}

.secure-label {
  border: 1px solid #285444;
}

.preview-content {
  background: #111a21;
}

.preview-heading strong,
.preview-finding strong,
.metric-grid strong,
.auto-demo-heading strong,
.automation-run-item strong,
.panel-heading strong,
.monitor-card h3,
.action-step h4,
.safeguard-grid h3,
.finding-main h4,
.trend-column strong,
.profit-breakdown strong,
td:first-child {
  color: var(--ink);
}

.preview-heading > span,
.preview-finding,
.preview-chart {
  border-color: var(--line);
  background: #1a252e;
}

.preview-finding {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
}

.finding-number {
  color: #c3ced6;
  background: #283640;
}

.chart-bars {
  background: repeating-linear-gradient(to top, #18232b 0, #18232b 23px, #2a3943 24px);
}

.chart-bars i {
  background: #4faaa4;
}

.statement-strip {
  border-block: 1px solid #294659;
  background:
    radial-gradient(circle at 18% 0%, rgba(55, 192, 183, 0.13), transparent 24rem),
    #10283a;
}

.demo-shell,
.data-card,
.metric-grid article,
.auto-demo-console,
.automation-shell,
.simulation-result,
.safeguard-grid article {
  border-color: var(--line);
  background: #141e26;
  box-shadow: var(--shadow-soft);
}

.demo-controls {
  border-right-color: var(--line);
  background: #111a21;
}

.control-label,
.preset-button small,
.finding-meta small,
.metric-grid span,
.monitor-card small,
.automation-run-item time,
.table-footnote {
  color: #93a4b1;
}

.preset-button {
  color: var(--ink);
}

.preset-button:hover {
  background: #1a252e;
}

.preset-button.active {
  border-color: #2e6763;
  background: #1b292f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.preset-button > span {
  color: #c1cdd5;
  background: #27353f;
}

.preset-button.active > span,
.control-icon,
.brand-mark,
.mini-logo {
  color: #f8ffff;
  background: #157f79;
}

.live-badge.offline,
.cache-note {
  color: var(--ink-soft);
  background: #26343e;
}

.custom-question textarea,
.table-search,
.icon-button {
  color: var(--ink);
  border-color: #465865;
  background: #18232b;
}

.custom-question textarea::placeholder,
.table-search input::placeholder {
  color: #81929e;
}

.result-panel {
  background:
    linear-gradient(rgba(17, 26, 33, 0.94), rgba(15, 23, 30, 0.98)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, #26343e 32px),
    repeating-linear-gradient(90deg, transparent 0, transparent 89px, #26343e 90px);
}

.finding-card {
  border-color: var(--line);
  background: rgba(26, 37, 46, 0.96);
  box-shadow: 0 6px 19px rgba(0, 0, 0, 0.18);
}

.caution-box,
.tax-exclusion {
  color: #f2ce82;
  border-color: #6c5428;
  background: #332914;
}

.loading-orbit {
  border-color: #28544f;
}

.data-card-header,
th,
.table-footnote {
  background: #172129;
}

.data-card-header,
th,
td {
  border-color: var(--line);
}

th {
  color: #a5b4bf;
}

td {
  color: #bdc9d2;
}

tbody tr {
  background: #141e26;
}

tbody tr:hover {
  background: #192730;
}

.table-search svg {
  stroke: #a9b7c1;
}

.trend-chart {
  background: repeating-linear-gradient(to top, #141e26 0, #141e26 64px, #273640 65px);
}

.trend-column {
  background: #4da8a2;
}

.profit-breakdown article {
  background: #19252e;
}

.profit-breakdown article.profit-total {
  border-color: #248f88;
  background: #126f6a;
}

.profit-breakdown > span {
  color: #8295a2;
}

.auto-demo-heading,
.panel-heading,
.result-toolbar {
  border-color: var(--line);
}

.auto-demo-actions button.running {
  border-color: #75403e;
}

.automation-run-log {
  background: var(--line);
}

.automation-run-log > p,
.automation-run-item,
.monitor-card {
  background: #19242c;
}

.automation-run-log > p {
  color: #9eacb7;
}

.monitor-card {
  border-color: var(--line);
}

.simulation-panel {
  border-left: 1px solid #294356;
  background:
    radial-gradient(circle at 95% 5%, rgba(56, 199, 190, 0.2), transparent 17rem),
    #0b2030;
}

.simulation-panel select {
  border-color: #45677a;
  background: #142f40;
}

.teams-demo {
  border-color: #42435c;
  background: #15161b;
}

.teams-titlebar {
  color: #ececf7;
  border-bottom-color: #3b3c51;
  background: #25243c;
}

.teams-titlebar em,
.teams-titlebar > span {
  color: #c4c4d7;
  background: #34334a;
}

.teams-open-link {
  border-color: #696a91;
  background: #34355c;
}

.teams-rail {
  color: #aaaabd;
  border-right-color: #363743;
  background: #17181d;
}

.teams-channels {
  color: #e1e1e8;
  border-right-color: #383943;
  background: #1b1c22;
}

.teams-channels small,
.teams-channel-heading small,
.teams-placeholder,
.teams-post-meta span,
.teams-card-facts small,
.teams-disclaimer {
  color: #a7a7b5;
}

.teams-channels > span.active {
  color: #eeeeff;
  background: #303147;
}

.teams-conversation,
.teams-feed {
  background: #141519;
}

.teams-channel-heading {
  border-bottom-color: #353640;
  background: #1d1e24;
}

.teams-channel-heading strong,
.teams-post-meta strong,
.teams-adaptive-card h4,
.teams-card-facts strong {
  color: #f1f1f5;
}

.teams-channel-heading span,
.teams-card-actions button {
  color: #b9baff;
}

.teams-adaptive-card {
  border-color: #454650;
  border-left-color: var(--red);
  background: #202127;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.teams-adaptive-card p {
  color: #c9c9d1;
}

.teams-card-facts div,
.teams-card-actions {
  background: #292a31;
}

.teams-card-actions {
  border-top-color: #41424c;
}

.teams-card-actions button {
  border-color: #595b7e;
  background: #24252c;
}

.teams-card-actions button:hover {
  background: #303142;
}

.teams-disclaimer {
  border-top-color: #383944;
  background: #1b1c22;
}

.workflow-toast {
  color: var(--ink);
  border-color: #44535f;
  background: rgba(24, 34, 42, 0.98);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.38);
}

.workflow-toast button {
  color: #aab7c1;
}

.closing-cta {
  border: 1px solid #294459;
  border-bottom: 0;
  background:
    radial-gradient(circle at 82% 15%, rgba(47, 190, 180, 0.23), transparent 25rem),
    #0a1e2d;
}

footer {
  border-top: 1px solid #1f394c;
  background: #071720;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .demo-shell {
    grid-template-columns: 295px minmax(0, 1fr);
  }

  .finding-meta {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 800px) {
  .header-nav {
    display: none;
  }

  .site-header .button {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 50px 20px 70px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .hero-visual {
    overflow: hidden;
  }

  .preview-window {
    min-width: 610px;
    transform: scale(0.82);
    transform-origin: left top;
  }

  .hero-visual {
    height: 420px;
  }

  .statement-strip {
    flex-wrap: wrap;
    gap: 11px;
    font-size: 0.88rem;
  }

  .statement-strip strong {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .demo-section,
  .workbook-section,
  .automation-section,
  .safeguards-section {
    padding: 80px 20px;
  }

  .section-heading,
  .safeguards-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-panel {
    padding: 24px 18px;
  }

  .metric-grid,
  .safeguard-grid {
    grid-template-columns: 1fr;
  }

  .data-card-header {
    align-items: stretch;
    flex-direction: column;
    padding-top: 12px;
  }

  .tab-list {
    min-height: 45px;
    overflow-x: auto;
  }

  .data-tab {
    white-space: nowrap;
  }

  .table-search {
    width: 100%;
    margin-bottom: 12px;
  }

  .trend-view {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 35px 20px 55px;
  }

  .profit-view,
  .simulation-result {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 20px;
  }

  .profit-breakdown {
    grid-template-columns: 1fr;
  }

  .profit-breakdown > span {
    display: none;
  }

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

  .auto-demo-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .auto-demo-actions {
    width: 100%;
  }

  .auto-demo-actions .button {
    flex: 1;
  }

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

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

  .teams-rail,
  .teams-channels {
    display: none;
  }

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

  .trend-chart {
    gap: 25px;
    padding-inline: 15px;
  }

  .safeguards-copy {
    position: static;
  }

  .closing-cta {
    margin-inline: 10px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
