:root {
  --bg: #f3eee5;
  --bg-strong: #ece2d4;
  --surface: rgba(255, 251, 246, 0.9);
  --surface-strong: #fffaf4;
  --surface-ink: #14242e;
  --text: #1b2b35;
  --muted: #58666f;
  --line: rgba(27, 43, 53, 0.12);
  --accent: #b6602f;
  --accent-ink: #7f401f;
  --accent-soft: rgba(182, 96, 47, 0.14);
  --highlight: #d9a64f;
  --success: #2b6a56;
  --warning: #8a4c2d;
  --shadow-xl: 0 30px 80px rgba(36, 33, 26, 0.14);
  --shadow-lg: 0 22px 44px rgba(36, 33, 26, 0.11);
  --shadow-md: 0 12px 30px rgba(36, 33, 26, 0.09);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-body: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-head: "Georgia", "Iowan Old Style", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(214, 166, 79, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(182, 96, 47, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, #f2ece3 48%, #efe5d7 100%);
}

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

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

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

.site-chrome {
  width: min(1380px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 26px;
  border: 1px solid rgba(27, 43, 53, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 18px;
  z-index: 20;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #173140 0%, #34495a 45%, #b6602f 100%);
  color: #fff8f1;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.site-nav__link {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  background: rgba(20, 36, 46, 0.08);
  color: var(--text);
}

.site-header__cta,
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.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;
  transition: 180ms ease;
}

.button--primary {
  background: linear-gradient(135deg, #b6602f 0%, #8f471f 100%);
  color: #fff8f1;
  box-shadow: var(--shadow-md);
}

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

.button--ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(27, 43, 53, 0.11);
  color: var(--text);
}

.page-main {
  margin-top: 28px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 10px;
  color: rgba(88, 102, 111, 0.45);
}

.draft-banner {
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(182, 96, 47, 0.12);
  border: 1px solid rgba(182, 96, 47, 0.2);
  color: var(--accent-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(252, 245, 236, 0.94) 100%);
  border: 1px solid rgba(27, 43, 53, 0.09);
  box-shadow: var(--shadow-xl);
}

.hero__copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.eyebrow,
.topic-card__eyebrow,
.role-card__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hero h1,
.content-section h2,
.cta-band h2 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.hero p {
  margin: 0;
  line-height: 1.72;
  color: var(--text);
}

.hero__media {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: calc(var(--radius-xl) - 8px);
  background: rgba(21, 36, 46, 0.06);
}

.hero__media img {
  border-radius: calc(var(--radius-xl) - 12px);
  box-shadow: var(--shadow-lg);
}

.hero__media figcaption {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 36, 46, 0.06);
  border: 1px solid rgba(20, 36, 46, 0.07);
  color: var(--text);
  font-size: 0.92rem;
}

.byline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.byline > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.content-shell {
  margin-top: 24px;
}

.content-shell--with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.content-flow {
  display: grid;
  gap: 20px;
}

.content-shell--with-toc .content-flow {
  order: 1;
}

.toc {
  order: 2;
  position: sticky;
  top: 126px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(27, 43, 53, 0.08);
  box-shadow: var(--shadow-md);
}

.toc strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--muted);
  line-height: 1.4;
}

.toc a.is-active {
  color: var(--accent-ink);
  font-weight: 700;
}

.content-section,
.cta-band {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27, 43, 53, 0.09);
  background: rgba(255, 251, 246, 0.88);
  box-shadow: var(--shadow-md);
  animation: section-enter 420ms ease both;
}

.content-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}

.overview-card {
  display: grid;
  gap: 16px;
}

.overview-card p {
  margin: 0;
  line-height: 1.7;
}

.summary-grid,
.checklist,
.warning-list,
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.summary-grid li,
.checklist li,
.warning-list li,
.source-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border-radius: var(--radius-md);
  background: rgba(20, 36, 46, 0.04);
  line-height: 1.62;
}

.summary-grid li::before,
.checklist li::before,
.source-list li::before,
.warning-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 6px rgba(217, 166, 79, 0.18);
}

.warning-list li::before {
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(138, 76, 45, 0.15);
}

.checklist--compact li {
  padding-top: 14px;
  padding-bottom: 14px;
}

.duo-grid,
.card-grid,
.link-grid,
.scenario-grid {
  display: grid;
  gap: 18px;
}

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

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

.panel-card,
.topic-card,
.link-card,
.scenario-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(27, 43, 53, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.panel-card--warning {
  background: rgba(182, 96, 47, 0.08);
}

.panel-card h3,
.topic-card h3,
.scenario-card h3,
.role-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.32rem;
}

.panel-card p,
.topic-card p,
.link-card span,
.scenario-card p,
.meta-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.step-list,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.step-list li,
.timeline li {
  padding: 18px 18px 18px 22px;
  border-left: 3px solid rgba(182, 96, 47, 0.52);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(182, 96, 47, 0.06);
}

.step-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.22rem;
}

.step-list p {
  margin: 0;
  line-height: 1.66;
}

.table-shell {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(27, 43, 53, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(27, 43, 53, 0.08);
}

.comparison-table thead th {
  background: rgba(20, 36, 46, 0.05);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-item {
  border-top: 1px solid rgba(27, 43, 53, 0.08);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(27, 43, 53, 0.08);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item div {
  padding-top: 12px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.link-card {
  display: grid;
  gap: 10px;
  transition: 180ms ease;
}

.link-card strong {
  font-family: var(--font-head);
  font-size: 1.18rem;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27, 43, 53, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.role-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: var(--shadow-md);
}

.role-card__body {
  display: grid;
  gap: 12px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.calculator-shell__controls {
  display: grid;
  gap: 14px;
}

.calculator-shell label,
.demo-form label {
  display: grid;
  gap: 8px;
}

.calculator-shell input,
.calculator-shell select,
.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27, 43, 53, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.calculator-shell__result {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(182, 96, 47, 0.08) 0%, rgba(20, 36, 46, 0.04) 100%);
  border: 1px solid rgba(182, 96, 47, 0.14);
}

.calculator-shell__result strong {
  display: block;
  margin: 10px 0 12px;
  font-family: var(--font-head);
  font-size: 2.3rem;
}

.demo-form {
  display: grid;
  gap: 16px;
}

.demo-form__footer {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar__button {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(27, 43, 53, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  cursor: pointer;
}

.filter-bar__button.is-active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: rgba(182, 96, 47, 0.16);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #173140 0%, #315265 60%, #b6602f 100%);
  color: #fff6ee;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 246, 238, 0.82);
  line-height: 1.7;
}

.cta-band .eyebrow {
  color: rgba(255, 230, 194, 0.84);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 28px 8px 0;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 44ch;
  margin: 10px 0 0;
  line-height: 1.68;
}

.site-footer__links {
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
}

[data-filter-item][hidden] {
  display: none !important;
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .content-section,
  .cta-band,
  .button,
  .link-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

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

  .hero,
  .content-shell--with-toc,
  .duo-grid,
  .calculator-shell,
  .cta-band,
  .role-card {
    grid-template-columns: 1fr;
  }

  .toc {
    order: 0;
    position: static;
  }

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

@media (max-width: 760px) {
  .site-chrome {
    width: min(100vw - 24px, 1380px);
    padding-top: 18px;
  }

  .site-header,
  .hero,
  .content-section,
  .cta-band {
    padding: 22px;
  }

  .site-header {
    top: 10px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .card-grid,
  .link-grid,
  .scenario-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .hero__actions,
  .site-header__cta,
  .demo-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
