:root {
  --ink: #1C1B19;
  --terracotta: #C6603D;
  --amber: #E8A94C;
  --paper: #FAF7F2;
  --muted: #8A8680;
  --border: #E4DFD5;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header,
.section,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: none;
}

.nav-links a,
.header-action {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  color: var(--terracotta);
}

.header-action {
  display: none;
}

.section {
  padding: 72px 0;
}

.hero {
  display: grid;
  gap: 34px;
  min-height: calc(100svh - 80px);
  align-items: center;
  padding-top: 42px;
  border-top: 1px solid var(--border);
}

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

.eyebrow,
.section-label,
.case-kicker,
.panel-label,
.card-index {
  margin: 0;
  color: var(--terracotta);
  font-size: 0.92rem;
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(3.45rem, 15vw, 8.4rem);
}

h2 {
  font-size: clamp(2.12rem, 7vw, 4.7rem);
}

h3 {
  font-size: clamp(1.28rem, 5vw, 1.74rem);
}

p {
  margin: 0;
}

.hero-text {
  max-width: 590px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.16rem, 4vw, 1.48rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 0;
  padding: 15px 22px;
  border: 1px solid var(--terracotta);
  border-radius: 4px;
  background: var(--terracotta);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
}

.hero-note {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.button:hover,
.button:focus-visible {
  background: var(--paper);
  color: var(--terracotta);
}

.product-frame {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 430px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--border);
}

.frame-brand span {
  font-size: 1rem;
}

.tenant-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-dot,
.accent {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
}

.login-panel,
.overview-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.login-panel h2 {
  font-size: clamp(1.8rem, 7vw, 2.7rem);
}

.field-line,
.panel-button {
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.95rem;
}

.muted-line {
  color: var(--muted);
}

.tenant-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tenant-switcher span {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tenant-switcher .tenant-active {
  border-color: var(--terracotta);
  color: var(--ink);
}

.panel-button {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--paper);
  text-align: center;
}

.overview-panel {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.overview-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.overview-list {
  display: grid;
  gap: 8px;
}

.overview-list span {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.context {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.context-grid,
.section-heading {
  display: grid;
  gap: 28px;
}

.context .section-label,
.section-heading .section-label {
  margin-bottom: 0;
}

.context-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.dashboard-sample {
  display: grid;
  gap: 0;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.sample-sidebar {
  display: none;
}

.sample-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
}

.sample-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.sample-logo strong {
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.sample-menu {
  display: grid;
  gap: 7px;
  padding: 16px 12px;
}

.sample-menu p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.sample-menu span {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sample-menu .active {
  background: rgba(198, 96, 61, 0.12);
  color: var(--terracotta);
}

.sample-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  background: var(--terracotta);
  color: var(--paper);
}

.sample-hero p,
.sample-hero span {
  color: var(--paper);
  font-size: 0.78rem;
}

.sample-hero h3 {
  margin-top: 4px;
  color: var(--paper);
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.sample-hero strong {
  align-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(250, 247, 242, 0.35);
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
}

.sample-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sample-filter span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.sample-filter button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
}

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

.sample-kpis div,
.sample-panels article,
.sample-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.sample-kpis div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
}

.sample-kpis span {
  color: var(--muted);
  font-size: 0.76rem;
}

.sample-kpis strong {
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.48rem;
  font-weight: 500;
  line-height: 1;
}

.sample-panels {
  display: grid;
  gap: 14px;
}

.sample-panels article {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 18px;
}

.sample-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sample-panel-head h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.sample-panel-head span {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.line-chart {
  min-height: 150px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.line-chart svg {
  width: 100%;
  height: 150px;
}

.chart-legend,
.mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-legend span,
.chart-legend em {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-legend span {
  background: var(--terracotta);
}

.chart-legend em {
  background: var(--amber);
}

.donut {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 10px auto 0;
  border: 18px solid var(--border);
  border-top-color: var(--terracotta);
  border-right-color: var(--amber);
  border-bottom-color: var(--terracotta);
  border-radius: 50%;
}

.donut strong {
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
}

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

.age-bars {
  display: grid;
  gap: 12px;
}

.age-bars div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.age-bars p {
  color: var(--muted);
  font-size: 0.78rem;
}

.age-bars span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--border);
}

.age-bars span::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--terracotta);
}

.sample-table {
  display: grid;
  gap: 0;
  padding: 18px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.2fr) minmax(82px, 1fr) 58px 72px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.table-head {
  color: var(--ink);
  font-weight: 500;
}

.table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row strong,
.table-row em {
  justify-self: start;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 500;
}

.table-row strong {
  background: rgba(232, 169, 76, 0.24);
  color: var(--ink);
}

.table-row em {
  background: rgba(198, 96, 61, 0.14);
  color: var(--terracotta);
}

.screen-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.screen-card {
  display: grid;
  gap: 20px;
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.screen-top h3 {
  margin-top: 4px;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
}

.screen-top > span {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

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

.metric-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.metric-grid strong {
  display: block;
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.metric-grid span,
.screen-note,
.people-list small,
.care-list p,
.finance-bars p {
  color: var(--muted);
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.signal-list,
.people-list,
.care-list,
.finance-bars,
.tenant-map {
  display: grid;
  gap: 10px;
}

.signal-list p,
.people-list div,
.care-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.signal-list span,
.avatar-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
}

.people-list div {
  justify-content: space-between;
}

.people-list p {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.people-list strong {
  color: var(--ink);
  font-weight: 500;
}

.people-list em {
  color: var(--terracotta);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 500;
}

.care-list div {
  justify-content: space-between;
}

.care-list strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
}

.finance-bars div {
  display: grid;
  gap: 8px;
}

.finance-bars span {
  position: relative;
  display: block;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.finance-bars span::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--terracotta);
}

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

.tenant-map span {
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 500;
}

.screen-note {
  align-self: end;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.pillar-grid,
.case-grid,
.scale-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.pillar-card,
.case-card,
.scale-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
}

.pillar-card {
  grid-template-columns: 1fr auto;
  align-content: start;
}

.pillar-card h3,
.pillar-card p:last-child {
  grid-column: 1 / -1;
}

.pillar-card p:last-child,
.case-card p,
.scale-card p {
  color: var(--muted);
}

.pillar-card .accent {
  justify-self: end;
  background: var(--amber);
}

.case-card {
  min-height: 250px;
  align-content: start;
}

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

.scale-card {
  min-height: 230px;
  align-content: start;
}

.scale-card .accent {
  background: var(--terracotta);
}

.trial {
  display: grid;
  gap: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trial-copy {
  display: grid;
  gap: 22px;
}

.trial-copy p:not(.section-label) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.16rem;
}

.trial-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--terracotta);
  border-radius: 8px;
}

.trial-price {
  display: flex;
  align-items: end;
  gap: 12px;
}

.trial-price span {
  color: var(--terracotta);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 500;
  line-height: 0.86;
}

.trial-price p {
  max-width: 110px;
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.05;
}

.trial-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.trial-card li {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.case-kicker {
  color: var(--terracotta);
}

.final-cta {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 44px;
  padding: 42px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-mark {
  width: 86px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.final-cta p:not(.section-label) {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.final-cta .button {
  width: fit-content;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-brand span {
  color: var(--ink);
}

@media (min-width: 720px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 64px, var(--max));
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }

  .header-action {
    display: inline-flex;
  }

  .section {
    padding: 94px 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: 56px;
    padding-top: 54px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .dashboard-sample {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .sample-sidebar {
    display: block;
    border-right: 1px solid var(--border);
  }

  .sample-main {
    padding: 18px;
  }

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

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

  .context-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
    gap: 56px;
  }

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

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

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

  .scale-grid,
  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .final-cta {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 32px;
  }

  .trial {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 56px;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .section {
    padding: 112px 0;
  }

  .hero {
    min-height: calc(100svh - 86px);
  }

  .pillar-card,
  .case-card,
  .scale-card,
  .screen-card {
    padding: 30px;
  }

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

  .screen-wide {
    grid-column: span 3;
  }

  .screen-card {
    grid-column: span 3;
  }

  .screen-card:nth-child(2),
  .screen-card:nth-child(3),
  .screen-card:nth-child(4) {
    grid-column: span 2;
  }

  .dashboard-sample {
    grid-template-columns: 190px minmax(0, 1fr);
  }

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

@media (max-width: 420px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .text-link {
    width: 100%;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
