:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --paper-strong: #fffaf1;
  --ink: #1d2329;
  --muted: #5c6570;
  --line: #ded7cc;
  --coral: #ec6f5e;
  --teal: #008d8a;
  --amber: #f2b544;
  --sage: #8aa77a;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(29, 35, 41, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 42px);
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid rgba(222, 215, 204, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--teal));
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.header-action {
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #211d1a;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, 0.84), rgba(20, 17, 14, 0.42) 44%, rgba(20, 17, 14, 0.18)),
    linear-gradient(0deg, rgba(20, 17, 14, 0.82), rgba(20, 17, 14, 0.08) 56%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 0 clamp(36px, 7vw, 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.hero-copy {
  max-width: 710px;
  color: var(--white);
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #72e0dd;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper-strong);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.button:hover,
.button:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 35, 41, 0.18);
}

.text-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-planner,
.build-panel,
.budget-tool,
.tool-result,
.email-box {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: var(--shadow);
}

.hero-planner {
  padding: 18px;
  color: var(--ink);
}

.planner-head {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.planner-head strong {
  font-size: 1.18rem;
}

.hero-planner label,
.toolbar label,
.budget-tool label,
.email-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.planner-grid,
.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 141, 138, 0.28);
  outline-offset: 2px;
}

.planner-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 36px));
  margin: -22px auto 0;
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metrics-band div {
  display: grid;
  gap: 2px;
  min-height: 94px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.74);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band strong {
  color: var(--amber);
  font-size: 2rem;
  line-height: 1;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) 0 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 700px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0 clamp(36px, 6vw, 72px);
}

.lead-magnet-hero,
.thank-you-hero,
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0 clamp(42px, 7vw, 88px);
}

.lead-copy h1,
.thank-you-hero h1,
.product-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
}

.lead-copy p,
.thank-you-hero p,
.product-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.proof-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.lead-form p {
  margin: 8px 0 0;
  color: var(--muted);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.form-note {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.buy-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.buy-price {
  color: var(--coral);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 950;
  line-height: 0.9;
}

.page-hero h1,
.article-header h1 {
  color: var(--ink);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
}

.page-hero p,
.article-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.conversion-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(29, 35, 41, 0.08);
}

.conversion-panel p {
  margin: 0;
  color: var(--muted);
}

.conversion-panel .text-link {
  display: block;
}

.muted-panel {
  background: #ece5d9;
}

.page-section {
  padding-top: clamp(48px, 7vw, 86px);
}

.content-grid {
  display: grid;
  gap: 16px;
}

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

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

.topic-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(29, 35, 41, 0.05);
}

.topic-card.featured {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(0, 141, 138, 0.15);
}

.topic-card p {
  margin: 0;
  color: var(--muted);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid div {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow-grid span {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 210px 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 20px;
  align-items: start;
}

.card-grid,
.product-grid,
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.character-card,
.knowledge-card,
.product-card,
.vendor-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 246px;
  padding: 18px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(29, 35, 41, 0.06);
}

.character-card {
  overflow: hidden;
}

.character-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--coral), var(--teal), var(--amber));
}

.character-card.active {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(0, 141, 138, 0.16);
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.tag,
.meta {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: #ece5d9;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag.coral {
  background: rgba(236, 111, 94, 0.16);
  color: #9b382c;
}

.tag.teal {
  background: rgba(0, 141, 138, 0.14);
  color: #006865;
}

.tag.amber {
  background: rgba(242, 181, 68, 0.22);
  color: #805710;
}

.card-copy {
  margin: 0;
  color: var(--muted);
}

.link-button {
  width: fit-content;
  margin-top: auto;
  color: var(--teal);
  background: none;
  border: 0;
  padding: 0;
  font-weight: 900;
  text-align: left;
}

.build-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.build-panel ul,
.timeline ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.build-panel li,
.timeline li {
  margin: 6px 0;
}

.brief-price {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 14px;
  background: #f1ece3;
  border-radius: var(--radius);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.knowledge-list {
  display: grid;
  gap: 12px;
}

.knowledge-card {
  min-height: 130px;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.knowledge-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius);
  font-weight: 900;
}

.tools-section {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - var(--max)) / 2));
  padding-bottom: clamp(64px, 8vw, 96px);
  background: #e9dfd1;
}

.tools-section.embedded-tool {
  margin-top: 0;
  padding-top: clamp(48px, 7vw, 76px);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.budget-tool,
.tool-result {
  padding: 20px;
  border-color: var(--line);
  background: var(--paper-strong);
}

.tool-head {
  margin-bottom: 16px;
}

.tool-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.range-row {
  grid-column: 1 / -1;
  margin: 16px 0;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

.tool-result {
  display: grid;
  align-content: start;
  gap: 16px;
}

.total {
  color: var(--coral);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 950;
  line-height: 0.95;
}

.tool-result p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card {
  min-height: 260px;
}

.price {
  color: var(--coral);
  font-size: 1.9rem;
  font-weight: 950;
}

.ecosystem {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 60px);
}

.directory-tabs {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.tab.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

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

.vendor-card {
  min-height: 198px;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr minmax(290px, 420px);
  gap: 22px;
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 96px);
  padding: 32px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
}

.cta-section .eyebrow {
  color: var(--amber);
}

.cta-section h2 {
  max-width: 760px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.76);
}

.email-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 250, 241, 0.96);
}

.email-box p {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 42px);
  color: rgba(255, 255, 255, 0.72);
  background: #171b20;
}

.article-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0 clamp(60px, 8vw, 100px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-header {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin-bottom: 36px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.article-content {
  display: grid;
  gap: 30px;
}

.article-content section {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.article-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.article-content p {
  margin: 0;
  color: var(--muted);
}

.article-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.clean-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.clean-list li {
  margin: 8px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #ece5d9;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

tr:last-child td {
  border-bottom: 0;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checklist-grid > div {
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist-grid h3 {
  margin-bottom: 10px;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-list strong {
  color: var(--ink);
}

.timeline-list span {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--muted);
  background: var(--paper-strong);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner,
  .atlas-layout,
  .split-section,
  .tool-grid,
  .ecosystem,
  .cta-section,
  .page-hero,
  .article-layout,
  .lead-magnet-hero,
  .thank-you-hero,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 92px;
  }

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

  .toolbar label:first-child {
    grid-column: 1 / -1;
  }

  .build-panel {
    position: static;
  }

  .card-grid,
  .product-grid,
  .content-grid.three,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-tabs,
  .directory-grid {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .header-action {
    display: none;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(3.3rem, 20vw, 5.4rem);
  }

  .hero-actions,
  .planner-grid,
  .input-grid,
  .toolbar,
  .metrics-band,
  .card-grid,
  .product-grid,
  .directory-grid,
  .content-grid.two,
  .content-grid.three,
  .workflow-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list div {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .metrics-band {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .metrics-band div {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .metrics-band div:last-child {
    border-bottom: 0;
  }

  .section {
    width: min(100% - 28px, var(--max));
  }

  .tools-section {
    padding-inline: 14px;
  }

  .knowledge-card {
    grid-template-columns: 1fr;
  }

  .cta-section {
    width: min(100% - 28px, var(--max));
    padding: 22px;
  }

  .page-hero,
  .article-shell,
  .lead-magnet-hero,
  .thank-you-hero,
  .product-hero {
    width: min(100% - 28px, var(--max));
  }

  .article-aside {
    position: static;
  }
}
