:root {
  --bg: #f6f0e5;
  --surface: rgba(255, 250, 242, 0.86);
  --surface-strong: rgba(255, 251, 246, 0.94);
  --text: #1e241f;
  --text-soft: #5e655e;
  --line: rgba(59, 66, 57, 0.12);
  --accent: #b35b2c;
  --accent-strong: #8a4318;
  --accent-soft: rgba(179, 91, 44, 0.13);
  --mint: #245f58;
  --mint-soft: rgba(36, 95, 88, 0.12);
  --gold: #d7a250;
  --critical: #ab4f2c;
  --warning: #8b6116;
  --shadow: 0 28px 70px rgba(67, 52, 32, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(215, 162, 80, 0.18), transparent 25%),
    radial-gradient(circle at right 12% top 10%, rgba(36, 95, 88, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f2e9 0%, #f5ede1 46%, #f4ebdf 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

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

p,
li {
  line-height: 1.65;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.75;
  pointer-events: none;
}

.halo-top {
  top: -140px;
  right: -70px;
  width: 360px;
  height: 360px;
  background: rgba(215, 162, 80, 0.24);
}

.halo-bottom {
  bottom: 140px;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgba(36, 95, 88, 0.16);
}

.topbar,
.case-page {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b96435 0%, #e0ae56 100%);
  color: #fff9f0;
  box-shadow: 0 10px 24px rgba(175, 91, 43, 0.24);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 160ms var(--ease-out),
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

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

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #cd7d3d 100%);
  color: #fffaf3;
  box-shadow: 0 14px 34px rgba(175, 91, 43, 0.25);
}

.button.secondary,
.button.ghost {
  background: rgba(255, 251, 245, 0.82);
  border-color: rgba(80, 79, 69, 0.15);
}

.case-page {
  padding-bottom: 100px;
}

.hero,
.story-strip,
.bills-section,
.findings-section,
.ops-section,
.draft-section,
.interview-section,
.cta-section {
  animation: fade-up 720ms var(--ease-out) both;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 44px 0 70px;
}

.eyebrow,
.mini-label,
.finding-kind {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.mini-label {
  color: var(--accent-strong);
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 5vw, 5.1rem);
}

.hero-text,
.section-heading p:last-child {
  color: var(--text-soft);
}

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

.hero-summary {
  display: grid;
  gap: 18px;
}

.summary-card,
.strip-card,
.bill-card,
.finding-card,
.ops-card,
.draft-card,
.prompt-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 24px;
}

.summary-card.accent {
  background:
    linear-gradient(180deg, rgba(36, 95, 88, 0.1), rgba(255, 251, 245, 0.9)),
    var(--surface);
}

.summary-label {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.summary-value {
  margin-top: 14px;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.summary-meta {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.strip-card,
.ops-card,
.prompt-card {
  padding: 24px;
}

.strip-card h2,
.ops-title,
.prompt-card h3,
.finding-card h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.strip-card p,
.ops-copy,
.prompt-card p,
.finding-card p {
  color: var(--text-soft);
}

.bills-section,
.findings-section,
.ops-section,
.draft-section,
.interview-section,
.cta-section {
  padding-top: 104px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.bills-grid,
.findings-grid,
.ops-section,
.interview-grid {
  display: grid;
  gap: 18px;
}

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

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

.bill-card {
  padding: 24px;
}

.bill-card.highlight {
  background:
    linear-gradient(180deg, rgba(179, 91, 44, 0.1), rgba(255, 250, 242, 0.92)),
    var(--surface);
}

.bill-top,
.bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bill-top {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-weight: 700;
}

.bill-top strong {
  color: var(--text);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.bill-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(55, 60, 53, 0.08);
}

.bill-row.flagged {
  color: var(--accent-strong);
}

.finding-card {
  padding: 24px;
}

.finding-card.critical {
  background:
    linear-gradient(180deg, rgba(179, 91, 44, 0.08), rgba(255, 250, 242, 0.9)),
    var(--surface);
}

.finding-card.warning {
  background:
    linear-gradient(180deg, rgba(215, 162, 80, 0.1), rgba(255, 250, 242, 0.9)),
    var(--surface);
}

.finding-kind {
  color: var(--mint);
}

.finding-metric {
  margin-top: 18px;
  color: var(--text);
  font-weight: 800;
}

.checklist {
  margin: 0;
  padding-left: 20px;
}

.checklist li + li {
  margin-top: 10px;
}

.draft-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(36, 95, 88, 0.08), rgba(255, 251, 245, 0.9)),
    var(--surface);
}

.draft-card p {
  margin: 0;
}

.draft-card p + p {
  margin-top: 16px;
}

.placeholder {
  color: var(--accent-strong);
}

.prompt-card .step {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cta-card {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(179, 91, 44, 0.08), rgba(255, 250, 242, 0.94)),
    var(--surface);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .story-strip,
  .bills-grid,
  .findings-grid,
  .ops-section,
  .interview-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  .topbar,
  .case-page {
    width: min(100vw - 24px, 1180px);
  }

  .topbar {
    padding-top: 16px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .bills-section,
  .findings-section,
  .ops-section,
  .draft-section,
  .interview-section,
  .cta-section {
    padding-top: 84px;
  }
}
