:root {
  --shell-bg: #f8f7f4;
  --shell-ink: #161513;
  --shell-muted: #685f54;
  --shell-accent: #c74634;
  --shell-card: rgba(255, 255, 255, 0.92);
  --shell-border: rgba(22, 21, 19, 0.1);
  --redwood-band: #f1efeb;
  --redwood-panel: #ffffff;
  --redwood-user: #312d2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Oracle Sans", sans-serif;
  background: var(--shell-bg);
  color: var(--shell-ink);
}

.landing {
  min-height: 100vh;
  display: grid;
  gap: 24px;
  padding: 40px 24px;
}

.landing__hero,
.landing__cases,
.landing__architecture {
  background: var(--shell-card);
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.landing__brand {
  color: var(--shell-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing__title {
  margin: 12px 0 8px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
}

.landing__subtitle {
  margin: 0;
  max-width: 36rem;
  color: var(--shell-muted);
  font-size: 18px;
}

.landing__cases {
  display: grid;
  gap: 16px;
}

.case-card {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--shell-border);
  background: #fff;
  color: var(--shell-ink);
  cursor: pointer;
}

.case-card__eyebrow {
  font-size: 14px;
  color: var(--shell-accent);
  font-weight: 700;
}

.case-card__product {
  font-size: 24px;
  font-weight: 600;
}

.landing__architecture h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.shell-chrome {
  display: contents;
}

.shell-chrome__header,
.shell-chrome__panel,
.act-page__content {
  background: var(--shell-card);
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 24px;
}

.shell-chrome__header {
  order: 0;
}

.shell-chrome__panel {
  order: 2;
}

.act-page__content {
  order: 1;
}

.shell-chrome__progress {
  display: grid;
  gap: 10px;
}

.shell-chrome__progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: var(--shell-muted);
  font-weight: 600;
}

.shell-chrome__progress-label strong {
  color: var(--shell-accent);
  font-size: 22px;
}

.shell-chrome__progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e1dc;
  border: 1px solid rgba(22, 21, 19, 0.08);
}

.shell-chrome__progress-fill {
  display: block;
  width: var(--progress-percent);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a736e 0%, var(--shell-accent) 100%);
}

.shell-chrome__breadcrumb {
  margin-top: 14px;
  color: var(--shell-muted);
}

.act-page {
  min-height: 100vh;
  display: grid;
  gap: 24px;
  padding: 40px 24px;
}

.act-page__tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 70, 52, 0.12);
  color: var(--shell-accent);
  font-size: 13px;
  font-weight: 700;
}

.act-page__title {
  margin: 16px 0 8px;
  font-size: clamp(30px, 5vw, 56px);
}

.act-page__product {
  margin: 0 0 16px;
  color: var(--shell-muted);
  font-size: 20px;
}

.act-page__card {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--shell-border);
  padding: 20px;
}

.act-page__intro {
  margin-bottom: 18px;
}

.act-page__label {
  margin: 0 0 10px;
  color: var(--shell-accent);
  font-size: 14px;
  font-weight: 700;
}

.act-page__copy {
  margin: 0;
}

.act-page__actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.case-card--secondary {
  background: transparent;
}

.chat-flow {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--redwood-band);
  border: 1px solid var(--shell-border);
}

.chat-channel {
  display: grid;
  gap: 16px;
}

.chat-channel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 8px;
  background: #312d2a;
  color: #fff;
  border: 1px solid var(--shell-border);
}

.chat-channel__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-channel__identity p,
.chat-channel__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.chat-channel__meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: 13px;
}

.chat-channel__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--shell-accent);
  color: #fff;
  font-weight: 700;
}

.chat-flow--messenger .chat-flow__message {
  background: var(--redwood-panel);
  border: 1px solid rgba(22, 21, 19, 0.08);
}

.tool-surface {
  display: grid;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fbfaf8;
  border: 1px solid var(--shell-border);
}

.tool-surface__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #1f2430;
  color: #f8f8f8;
}

.tool-surface__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.tool-surface__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(248, 248, 248, 0.78);
  font-size: 13px;
}

.tool-surface__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff7a59 0%, #c74634 100%);
}

.tool-surface__icon--bureau {
  border-radius: 50%;
  background: linear-gradient(180deg, #70a6ff 0%, #295bb8 100%);
}

.tool-surface__icon--pricing {
  background: linear-gradient(180deg, #f1b24a 0%, #b87713 100%);
}

.tool-surface__icon--tracker {
  background: linear-gradient(180deg, #76c2ff 0%, #255a78 100%);
}

.tool-surface__tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #eef1f5;
  border-bottom: 1px solid var(--shell-border);
}

.tool-surface__tab {
  padding: 8px 12px;
  border-radius: 12px;
  color: #55606f;
  font-size: 13px;
  font-weight: 600;
}

.tool-surface__tab.is-active {
  background: #fff;
  color: var(--shell-ink);
  border: 1px solid var(--shell-border);
}

.tool-surface__body {
  display: grid;
  gap: 0;
}

.tool-surface__sidebar {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f4f6f8;
  border-right: 1px solid var(--shell-border);
}

.tool-surface__nav {
  padding: 10px 12px;
  border-radius: 12px;
  color: #5f6b79;
  font-weight: 600;
}

.tool-surface__nav.is-active {
  background: #fff;
  color: var(--shell-ink);
  border: 1px solid var(--shell-border);
}

.tool-surface__main {
  padding: 20px;
}

.chat-flow__hero,
.chat-flow__summary {
  display: grid;
  gap: 16px;
}

.chat-flow__lead {
  margin: 0;
  font-size: 18px;
  color: var(--shell-muted);
}

.chat-flow__status {
  display: inline-grid;
  gap: 8px;
  justify-items: start;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--shell-border);
  color: var(--shell-muted);
  font-size: 14px;
}

.chat-flow__offer,
.chat-flow__snapshot,
.chat-flow__transcript {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--shell-border);
}

.chat-flow__eyebrow,
.chat-flow__author {
  margin: 0 0 8px;
  color: var(--shell-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-layout {
  display: grid;
  gap: 16px;
}

.tracker-panel {
  border-radius: 22px;
  border: 1px solid var(--shell-border);
  background: #fff;
  padding: 18px;
}

.tracker-details {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.tracker-details span,
.tracker-summary__meta,
.tracker-metric span {
  color: var(--shell-muted);
  font-size: 13px;
}

.tracker-details strong,
.tracker-metric strong {
  display: block;
  margin-top: 4px;
}

.tracker-summary__copy {
  margin: 0 0 12px;
}

.tracker-timeline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tracker-stage {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--shell-border);
  background: #f8f4ef;
  font-size: 14px;
  font-weight: 600;
}

.tracker-stage--completed {
  background: rgba(54, 132, 92, 0.12);
  color: #2a6d47;
}

.tracker-stage--current {
  background: rgba(199, 70, 52, 0.12);
  color: var(--shell-accent);
}

.tracker-stage--next {
  background: rgba(37, 90, 120, 0.12);
  color: #255a78;
}

.tracker-analysis__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tracker-analysis__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.tracker-button,
.tracker-link {
  border: 1px solid var(--shell-border);
  background: #fff;
  color: var(--shell-ink);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.tracker-button.is-active {
  background: rgba(199, 70, 52, 0.12);
  color: var(--shell-accent);
  border-color: rgba(199, 70, 52, 0.24);
}

.tracker-severity {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.tracker-severity--warning {
  background: rgba(199, 70, 52, 0.12);
  color: var(--shell-accent);
}

.tracker-severity--positive {
  background: rgba(54, 132, 92, 0.12);
  color: #2a6d47;
}

.tracker-analysis__title {
  margin: 0 0 8px;
  font-size: 24px;
}

.tracker-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tracker-metric {
  border-radius: 18px;
  padding: 14px;
  background: #f8f4ef;
}

.chat-flow__offer h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 34px);
}

.chat-flow__snapshot {
  display: grid;
  gap: 12px;
}

.chat-flow__snapshot dt {
  color: var(--shell-muted);
  font-size: 13px;
}

.chat-flow__snapshot dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.chat-flow__transcript {
  display: grid;
  gap: 12px;
  min-height: 320px;
  align-content: start;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(251, 250, 248, 0.96) 100%),
    radial-gradient(circle at 12% 18%, rgba(199, 70, 52, 0.08), transparent 26%);
  border: 1px solid rgba(22, 21, 19, 0.08);
}

.chat-flow__message {
  max-width: 44rem;
  padding: 16px 18px;
  justify-self: start;
  border-radius: 18px 18px 18px 4px;
  background: rgba(199, 70, 52, 0.08);
  box-shadow: 0 10px 24px rgba(22, 21, 19, 0.04);
}

.chat-flow__message--customer {
  justify-self: end;
  border-radius: 18px 18px 4px 18px;
  background: var(--redwood-user);
  color: #fff;
}

.chat-flow__message--customer .chat-flow__author {
  color: rgba(255, 255, 255, 0.72);
}

.chat-flow__message p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.chat-flow__notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(22, 21, 19, 0.06);
  color: var(--shell-muted);
}

.chat-flow__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-flow__option {
  display: inline-flex;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--shell-border);
  color: var(--shell-ink);
  font-weight: 600;
  font: inherit;
}

.chat-flow__grid {
  display: grid;
  gap: 14px;
}

.chat-flow__panel {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--shell-border);
}

.chat-flow__panel p:last-child {
  margin-bottom: 0;
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.scorecard-table th,
.scorecard-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--shell-border);
  text-align: left;
  vertical-align: top;
}

.scorecard-table th {
  color: var(--shell-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-error {
  padding: 24px;
  color: #fff;
  background: #6d1f1f;
}

@media (min-width: 900px) {
  .landing {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .landing__hero {
    grid-column: 1 / -1;
  }

  .act-page {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .act-page__content {
    grid-column: 1 / -1;
    order: 1;
  }

  .shell-chrome__header,
  .shell-chrome__panel {
    grid-column: 1 / -1;
  }

  .tool-surface__body {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .chat-flow__hero,
  .chat-flow__summary {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

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