:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --paper-strong: #efe6d7;
  --surface: #fffdf9;
  --surface-soft: #fbf7ef;
  --ink: #1f2a23;
  --ink-soft: #5d695f;
  --line: #d9cebc;
  --forest: #2f5b43;
  --forest-deep: #193727;
  --forest-soft: #e0ebe3;
  --gold: #b98b2f;
  --shadow: 0 24px 60px rgba(25, 55, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 0 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: rgba(47, 91, 67, 0.08);
  color: var(--forest-deep);
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(47, 91, 67, 0.18);
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.hero-copy {
  padding: 24px 0;
}

.content-stack {
  display: grid;
  gap: 32px;
}

.guided-shell {
  width: min(1380px, calc(100% - 24px));
}

.page-hero {
  padding: 28px 0 8px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.lede,
.section-copy,
.panel p,
.feature-card p,
.story-card p,
.timeline-item p,
.product-body p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.lede {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.status-panel {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: var(--shadow);
}

.status-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  line-height: 1.5;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #27a35d;
}

.status-dot.muted {
  background: #c59b43;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.button-primary {
  background: var(--forest);
  color: #fff;
}

.button-secondary {
  border: 1px solid rgba(31, 42, 35, 0.12);
  background: var(--surface);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.highlights li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(47, 91, 67, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.product-frame,
.product-card,
.panel,
.feature-card,
.story-card,
.timeline-item {
  border: 1px solid rgba(47, 91, 67, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-frame {
  width: min(100%, 480px);
  margin: 0;
  overflow: hidden;
}

.product-frame img,
.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-frame figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(47, 91, 67, 0.12);
}

.product-frame figcaption span,
.panel-kicker {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-frame figcaption strong {
  font-size: 1.08rem;
}

.section {
  padding: 24px 0;
}

.section-soft {
  padding: 28px;
  border: 1px solid rgba(47, 91, 67, 0.1);
  border-radius: 8px;
  background: var(--surface-soft);
}

.section-head {
  margin-bottom: 22px;
}

.section-head.narrow,
.section-copy {
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.panel-link {
  display: block;
}

.panel,
.feature-card,
.story-card,
.timeline-item {
  padding: 22px;
}

.product-card {
  overflow: hidden;
}

.product-body {
  padding: 18px;
}

.stack-list,
.timeline {
  display: grid;
  gap: 18px;
}

.inline-link {
  color: var(--forest);
  font-weight: 700;
}

.guided-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: start;
}

.guided-chat,
.guided-results {
  min-width: 0;
}

.guided-chat {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(47, 91, 67, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guided-chat-head h1 {
  max-width: 10ch;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.query-bubble {
  justify-self: end;
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef2f7;
  color: var(--forest-deep);
  font-size: 0.98rem;
  line-height: 1.5;
}

.assistant-card {
  padding: 20px;
  border: 1px solid rgba(47, 91, 67, 0.1);
  border-radius: 8px;
  background: var(--surface-soft);
}

.question-list {
  margin: 14px 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.6;
}

.assistant-note,
.toolbar-note,
.result-meta,
.result-price {
  color: var(--ink-soft);
}

.results-tag {
  color: #2a5bcc;
  font-weight: 700;
}

.action-icons {
  display: flex;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.fake-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgba(47, 91, 67, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 1rem;
}

.fake-send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.guided-toolbar {
  padding: 18px 20px;
  border: 1px solid rgba(47, 91, 67, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0f2f6;
  color: var(--ink);
  font-size: 0.94rem;
}

.filter-chip.active {
  background: rgba(47, 91, 67, 0.12);
  color: var(--forest-deep);
  font-weight: 700;
}

.guided-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.result-card {
  overflow: hidden;
  border: 1px solid rgba(47, 91, 67, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.result-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.result-brand {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-body h3 {
  margin-bottom: 0;
}

.result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 24px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

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

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

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

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-bottom: 16px;
  }

  .hero-copy {
    padding-top: 8px;
  }

  h1 {
    max-width: none;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .guided-layout {
    grid-template-columns: 1fr;
  }

  .guided-chat {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 16px;
  }

  .topbar {
    padding-bottom: 18px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav a {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 3.8rem);
  }

  .lede {
    font-size: 1rem;
  }

  .actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

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

  .section-soft {
    padding: 22px 18px;
  }

  .footer {
    gap: 8px;
  }
}
