:root {
  --paper: #fbf7ed;
  --paper-deep: #efe4cf;
  --ink: #243028;
  --muted: #667166;
  --line: #d8cdb8;
  --green: #8fb69d;
  --green-deep: #436653;
  --copper: #9b4d2e;
  --clay: #d6a36f;
  --blue: #5a7f95;
  --rose: #b56b74;
  --white: #fffdf7;
  --shadow: 0 18px 50px rgba(53, 42, 30, 0.15);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body::selection {
  background: #e9caaa;
  color: var(--ink);
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(36, 48, 40, 0.13);
  background: rgba(251, 247, 237, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 760;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: #39443b;
  text-decoration: none;
  font-weight: 680;
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(143, 182, 157, 0.22);
  outline: none;
}

.button,
.icon-button {
  min-height: 44px;
  border: 1px solid rgba(36, 48, 40, 0.18);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.72rem 0.95rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 770;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  background: #314139;
  outline: none;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #f6eddc;
}

.button.copper {
  background: var(--copper);
  border-color: rgba(155, 77, 46, 0.35);
}

.button.copper:hover,
.button.copper:focus-visible {
  background: #7e3920;
}

.button.slim {
  min-height: 38px;
  padding: 0.55rem 0.72rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  overflow: hidden;
  isolation: isolate;
  background: #d8c7a8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/cumora-room-inspection.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.94) contrast(0.98);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 247, 237, 0.94) 0%, rgba(251, 247, 237, 0.78) 42%, rgba(251, 247, 237, 0.22) 72%, rgba(36, 48, 40, 0.12) 100%),
    linear-gradient(0deg, rgba(251, 247, 237, 0.92) 0%, rgba(251, 247, 237, 0) 28%);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(3.2rem, 8vw, 7rem) 1.25rem 6rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green-deep);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: 5.6rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  color: #3c493f;
  font-size: 1.26rem;
}

.hero-actions,
.section-actions,
.runtime-actions,
.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-panel {
  align-self: end;
  border: 1px solid rgba(36, 48, 40, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-panel strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
}

.hero-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  color: #425044;
}

.hero-panel li + li {
  margin-top: 0.4rem;
}

.hero-next {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(36, 48, 40, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  color: #465149;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 720;
}

.section {
  padding: clamp(4rem, 7vw, 7rem) 1.25rem;
}

.section.flush-top {
  padding-top: 2.2rem;
}

.section.alt {
  background: #f4ead8;
}

.section.deep {
  background: var(--ink);
  color: var(--white);
}

.section.deep .muted,
.section.deep .section-lede {
  color: rgba(255, 253, 247, 0.72);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-kicker {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin-bottom: 0.7rem;
  font-size: 3.2rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.42rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.section-lede {
  max-width: 790px;
  color: #5c695f;
  font-size: 1.08rem;
}

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

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

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

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

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

.tile,
.source-row,
.agent-card,
.plan,
.faq-item,
.check-row {
  border: 1px solid rgba(36, 48, 40, 0.15);
  border-radius: var(--radius);
  background: var(--white);
}

.tile,
.agent-card,
.plan,
.faq-item {
  padding: 1.05rem;
}

.tile.accent-green {
  border-top: 5px solid var(--green-deep);
}

.tile.accent-copper {
  border-top: 5px solid var(--copper);
}

.tile.accent-blue {
  border-top: 5px solid var(--blue);
}

.tile.accent-rose {
  border-top: 5px solid var(--rose);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -1.75rem;
  border: 1px solid rgba(36, 48, 40, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(36, 48, 40, 0.16);
  box-shadow: var(--shadow);
}

.fact {
  min-height: 130px;
  padding: 1.1rem;
  background: var(--white);
}

.fact span {
  display: block;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.04rem;
}

.answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.7fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.long-copy {
  color: #39463d;
  font-size: 1.03rem;
}

.long-copy p {
  margin-bottom: 1rem;
}

.visual-figure {
  margin: 0;
}

.visual-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(36, 48, 40, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.brief-builder {
  display: grid;
  gap: 0.75rem;
}

.brief-builder label {
  display: grid;
  gap: 0.35rem;
  color: #344138;
  font-weight: 780;
}

.brief-builder textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid rgba(36, 48, 40, 0.2);
  border-radius: var(--radius);
  background: #fffaf0;
  color: var(--ink);
  padding: 0.72rem;
  line-height: 1.42;
}

.brief-builder textarea:focus {
  border-color: var(--copper);
  outline: 3px solid rgba(155, 77, 46, 0.15);
}

.brief-preview {
  min-height: 112px;
  border: 1px dashed rgba(36, 48, 40, 0.24);
  border-radius: var(--radius);
  background: #f6eddc;
  color: #3c493f;
  padding: 0.82rem;
  white-space: pre-line;
  font-size: 0.94rem;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}

.role-tab {
  min-height: 48px;
  border: 1px solid rgba(36, 48, 40, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.role-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.role-panel {
  min-height: 168px;
  padding: 1.25rem;
  border-left: 6px solid var(--green-deep);
  background: #fff9ec;
}

.readiness {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.score-pane {
  border: 1px solid rgba(36, 48, 40, 0.16);
  border-radius: var(--radius);
  background: #fff9ec;
  padding: 1.1rem;
}

.score-ring {
  width: 148px;
  height: 148px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--green-deep) calc(var(--score, 38) * 1%), #e0d2bb 0),
    #e0d2bb;
}

.score-ring strong {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-size: 2rem;
}

.checks {
  display: grid;
  gap: 0.65rem;
}

.check-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem;
}

.check-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--green-deep);
}

.check-row span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.agent-card {
  min-height: 190px;
}

.agent-card .sigil {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  color: var(--white);
  font-weight: 820;
}

.sigil.green { background: var(--green-deep); }
.sigil.copper { background: var(--copper); }
.sigil.blue { background: var(--blue); }
.sigil.rose { background: var(--rose); }

.source-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.source-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.source-row a {
  font-weight: 760;
}

.source-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.source-badge {
  min-width: 86px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #efe2ce;
  color: #573522;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 780;
}

.runtime-main {
  min-height: 100vh;
  background: var(--paper);
}

.runtime-main--console-first {
  padding-top: 0;
}

.runtime-console-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 48, 40, 0.18);
  background: #fffdf7;
  box-shadow: 0 22px 60px rgba(53, 42, 30, 0.12);
}

.runtime-console-section--front {
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.runtime-console-frame {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.console-frame {
  width: 100%;
  border: 0;
  display: block;
  background: #fffdf7;
}

.runtime-frame {
  height: min(780px, calc(100svh - 154px));
  min-height: 640px;
}

.runtime-console-section--front .runtime-frame {
  height: calc(100svh - 68px);
  min-height: 620px;
}

.runtime-mobile-launch {
  display: none;
}

.runtime-mobile-launch .tag {
  justify-self: start;
}

.runtime-main--console-first .runtime-hero,
.runtime-main--console-first .runtime-check-grid {
  width: min(100% - 32px, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.runtime-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.52fr);
  gap: 2rem;
  align-items: end;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  margin-bottom: 1.75rem;
}

.runtime-hero h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 5.9rem);
}

.runtime-hero p {
  max-width: 720px;
  color: #3c493f;
  font-size: 1.08rem;
}

.runtime-brief {
  border: 1px solid rgba(36, 48, 40, 0.16);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #efe2ce;
  color: #573522;
  padding: 0.28rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.console-embed-facts {
  display: grid;
  gap: 0.7rem;
  margin: 0.9rem 0 0;
}

.console-embed-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
  border-top: 1px solid rgba(36, 48, 40, 0.12);
  padding-top: 0.7rem;
}

.console-embed-facts dt {
  color: #573522;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-embed-facts dd {
  margin: 0;
  color: #465248;
}

.runtime-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.runtime-check-grid article {
  border: 1px solid rgba(36, 48, 40, 0.16);
  border-radius: var(--radius);
  background: #fffdf7;
  padding: 1rem;
}

.runtime-check-grid h2 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  line-height: 1.12;
}

.runtime-check-grid p {
  margin-bottom: 0;
  color: #526057;
}

.stamp {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.08em;
}

.runtime-status {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(36, 48, 40, 0.14);
  border-radius: var(--radius);
  background: #fff9ec;
  color: #475349;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.plan {
  display: flex;
  min-height: 320px;
  flex-direction: column;
}

.plan strong.price {
  display: block;
  margin: 0.85rem 0;
  font-size: 2rem;
  line-height: 1;
}

.plan ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: #536058;
}

.plan li + li {
  margin-top: 0.35rem;
}

.plan .button {
  margin-top: auto;
}

.status-note {
  min-height: 44px;
  margin-top: 1rem;
  color: #536058;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.faq-item p {
  margin-bottom: 0;
  color: #526057;
}

.footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(36, 48, 40, 0.13);
  background: #efe4cf;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.footer a {
  color: #3f4a42;
  font-weight: 690;
}

.page-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 1.25rem clamp(3rem, 5vw, 5rem);
  background:
    linear-gradient(90deg, rgba(251, 247, 237, 0.98), rgba(251, 247, 237, 0.76)),
    url("/assets/cumora-room-inspection.png") center / cover;
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 4.8rem;
}

.notice {
  border-left: 6px solid var(--copper);
  padding: 1rem 1.1rem;
  background: #fff9ec;
  color: #3e493f;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: 760px;
  }

  h1 {
    font-size: 4.45rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.8rem;
  }

  .hero-inner,
  .answer-layout,
  .readiness,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: end;
    padding-bottom: 5rem;
  }

  .hero-panel {
    max-width: 560px;
  }

  .fact-strip,
  .agent-grid,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runtime-hero,
  .runtime-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 0.96rem;
  }

  .nav-links a {
    padding-inline: 0.58rem;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero {
    min-height: 585px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(251, 247, 237, 0.98) 0%, rgba(251, 247, 237, 0.88) 58%, rgba(251, 247, 237, 0.56) 100%),
      linear-gradient(0deg, rgba(251, 247, 237, 0.96), rgba(251, 247, 237, 0));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.2rem;
    padding-bottom: 2.6rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .runtime-console-section--front {
    min-height: calc(100svh - 68px);
    background:
      linear-gradient(90deg, rgba(251, 247, 237, 0.96), rgba(251, 247, 237, 0.82)),
      url("/assets/cumora-room-inspection.png") center / cover;
  }

  .runtime-console-frame {
    display: none;
  }

  .runtime-mobile-launch {
    min-height: calc(100svh - 68px);
    display: grid;
    align-content: center;
    gap: 0.95rem;
    padding: 1rem;
  }

  .runtime-mobile-launch h2 {
    max-width: 360px;
    margin-bottom: 0;
    font-size: 2.3rem;
    line-height: 1;
  }

  .runtime-mobile-launch p {
    max-width: 380px;
    color: #3c493f;
  }

  .console-embed-facts div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero-panel {
    display: none;
  }

  .hero-actions,
  .section-actions,
  .runtime-actions,
  .pricing-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .fact-strip,
  .agent-grid,
  .plans,
  .role-tabs {
    grid-template-columns: 1fr;
  }

  .source-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer nav {
    justify-content: flex-start;
  }
}
