:root {
  --ink: #27352d;
  --ink-soft: #68786f;
  --midnight: #22372f;
  --spruce: #6c8d76;
  --spruce-deep: #476354;
  --clay: #be8967;
  --sun: #dbc7a1;
  --paper: #fcf7ef;
  --mist: #eef2ea;
  --line: rgba(39, 53, 45, 0.11);
  --line-strong: rgba(39, 53, 45, 0.18);
  --shadow: 0 24px 64px rgba(39, 53, 45, 0.11);
  --shadow-strong: 0 20px 42px rgba(34, 55, 47, 0.18);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(219, 199, 161, 0.18), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(108, 141, 118, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf7f0 0%, #f3eee3 42%, #f6f3eb 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(39, 53, 45, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 53, 45, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 86%);
  pointer-events: none;
  z-index: 0;
}

section[id] {
  scroll-margin-top: 9rem;
}

a {
  color: inherit;
}

.background-halo {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(104px);
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
}

.halo-left {
  top: -12rem;
  left: -10rem;
  background: rgba(190, 137, 103, 0.28);
}

.halo-right {
  top: 18rem;
  right: -10rem;
  background: rgba(108, 141, 118, 0.26);
}

.shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow,
.metric-label,
.pill,
.hero-badge,
.field-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--spruce);
}

.crisis-banner {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(190, 137, 103, 0.18);
  background: linear-gradient(135deg, rgba(252, 247, 239, 0.98) 0%, rgba(245, 239, 228, 0.94) 100%);
  box-shadow: var(--shadow);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.banner-copy {
  display: grid;
  gap: 0.15rem;
}

.banner-copy strong {
  font-family: "Cambria", "Palatino Linotype", Georgia, serif;
  font-size: 1.08rem;
}

.banner-actions,
.hero-actions,
.hero-badges,
.site-actions,
.control-actions,
.field-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0.9rem auto 0;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(16, 33, 45, 0.08);
  border-radius: 999px;
  background: rgba(252, 247, 239, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.8rem;
  z-index: 12;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--spruce-deep) 0%, var(--spruce) 100%);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-text,
.field-label,
.signal-strip article {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
.hero-copy h1,
.section-heading h2,
.panel-header h2,
.panel-header h3,
.plan-summary h3,
.journey-card h3,
.subpanel h4,
.support-note h4,
.pricing-card h3 {
  font-family: "Cambria", "Palatino Linotype", Georgia, serif;
}

.brand-text strong {
  font-size: 1.12rem;
}

.brand-text small,
.site-nav a,
.site-footer,
.card-copy,
.panel-header p,
.section-heading p:not(.eyebrow),
.resource-link span,
.doc-link span,
.funding-card p,
.selector-button span,
.fast-start-button span,
.fast-start-button small,
.tag-row,
.journey-card p,
.pricing-card p,
.signal-strip span {
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: rgba(13, 98, 88, 0.08);
  color: var(--spruce);
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.88rem 1.2rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.segment-card:hover,
.selector-button:hover,
.preset-card:hover,
.resource-link:hover,
.doc-link:hover,
.funding-card:hover,
.opportunity-card:hover,
.filter-button:hover,
.fast-start-button:hover,
.journey-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--spruce) 0%, var(--spruce-deep) 100%);
  color: white;
  box-shadow: 0 16px 34px rgba(71, 99, 84, 0.24);
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-alert {
  background: linear-gradient(135deg, var(--clay) 0%, #9f7256 100%);
  color: white;
  box-shadow: 0 16px 34px rgba(190, 137, 103, 0.24);
}

.button-compact {
  padding: 0.7rem 1rem;
}

.small-button {
  padding: 0.7rem 0.95rem;
}

.hero,
.hero-side,
.triage-layout,
.sponsor-layout,
.docs-layout {
  display: grid;
  gap: 1.25rem;
}

.hero {
  padding: 4.5rem 0 2.4rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.panel,
.section-heading {
  animation: rise-in 560ms ease both;
}

.panel {
  background: rgba(255, 251, 246, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.hero-primary {
  padding: 2rem;
  background:
    radial-gradient(circle at 92% 10%, rgba(219, 199, 161, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(57, 77, 66, 0.98) 0%, rgba(71, 99, 84, 0.96) 100%);
  color: white;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero-primary::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(190, 137, 103, 0.18);
  filter: blur(12px);
}

.hero-primary .eyebrow,
.hero-primary .lede,
.hero-primary .hero-badge,
.hero-primary .stat-tile span {
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0 0 0.8rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.section-heading h2,
.panel-header h2 {
  font-size: clamp(1.95rem, 3vw, 3.15rem);
}

.lede {
  margin: 0;
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-badges {
  margin-top: 1.3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.73rem;
  font-weight: 800;
}

.hero-stats,
.urgency-rail,
.segments-grid,
.preset-grid,
.selector-grid,
.plan-grid,
.pricing-grid,
.sponsor-card-grid,
.funding-card-grid,
.journey-grid {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-tile {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-tile strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-side {
  align-content: start;
}

.start-panel {
  background: linear-gradient(180deg, rgba(252, 247, 239, 0.96) 0%, rgba(239, 242, 234, 0.92) 100%);
}

.fast-start-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fast-start-button {
  text-align: left;
  border: 1px solid rgba(16, 33, 45, 0.08);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  padding: 1rem;
  display: grid;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fast-start-button strong {
  font-size: 1.05rem;
}

.fast-start-button small {
  font-size: 0.82rem;
}

.fast-start-button.is-active {
  border-color: rgba(13, 98, 88, 0.38);
  box-shadow: 0 14px 30px rgba(13, 98, 88, 0.12);
}

.dark-panel {
  color: white;
  background:
    linear-gradient(180deg, rgba(39, 58, 48, 0.98) 0%, rgba(71, 99, 84, 0.95) 100%);
  overflow: hidden;
  position: relative;
}

.dark-panel::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(219, 199, 161, 0.2);
  filter: blur(16px);
}

.dark-panel .metric-label,
.dark-panel .panel-header p,
.dark-panel .signal-strip span {
  color: rgba(255, 255, 255, 0.76);
}

.metric-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-header h2,
.panel-header h3,
.plan-summary h3 {
  margin: 0 0 0.3rem;
}

.panel-header h3,
.journey-card h3,
.subpanel h4,
.support-note h4,
.pricing-card h3 {
  font-size: 1.28rem;
}

.journey-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.journey-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(241, 243, 236, 0.95) 100%);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.journey-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--spruce-deep) 0%, var(--spruce) 100%);
  color: white;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-grid {
  padding: 1.1rem 0 3rem;
}

.section-heading {
  margin-bottom: 1.35rem;
  max-width: 70ch;
}

.urgency-rail,
.segments-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.urgency-card,
.subpanel,
.support-note,
.opportunity-card,
.pricing-card,
.funding-card,
.resource-link,
.doc-link,
.segment-card,
.preset-card,
.selector-button {
  border-radius: var(--radius-lg);
}

.urgency-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.urgency-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.signal-strip {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.signal-strip article {
  gap: 0.12rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-card,
.preset-card,
.selector-button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(16, 33, 45, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(241, 243, 236, 0.92) 100%);
  padding: 1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.segment-card strong,
.preset-card strong,
.selector-button strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 1.06rem;
}

.card-copy,
.tag-row {
  display: block;
}

.tag-row {
  margin-top: 0.55rem;
  font-size: 0.88rem;
}

.segment-card.is-active,
.selector-button.is-active,
.filter-button.is-active,
.opportunity-card.is-active {
  border-color: rgba(13, 98, 88, 0.34);
  box-shadow: 0 14px 30px rgba(13, 98, 88, 0.12);
}

.triage-layout {
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.52fr);
  align-items: start;
}

.control-panel,
.plan-panel,
.sponsor-market {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-panel {
  position: sticky;
  top: 7.8rem;
}

.control-group {
  display: grid;
  gap: 0.7rem;
}

.control-group h4,
.subpanel h4,
.support-note h4,
.pledge-log h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(13, 98, 88, 0.1);
  color: var(--spruce);
  font-size: 0.8rem;
  font-weight: 800;
}

.selector-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

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

.field-label {
  gap: 0.45rem;
  font-weight: 700;
}

.field-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--spruce);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 33, 45, 0.12);
  border-radius: 16px;
  padding: 0.82rem 0.92rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.plan-panel {
  background: rgba(255, 251, 246, 0.94);
}

.plan-summary {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.pill-critical {
  background: rgba(191, 101, 55, 0.12);
  color: #974721;
}

.pill-urgent {
  background: rgba(239, 191, 114, 0.24);
  color: #8a6326;
}

.pill-stabilize {
  background: rgba(13, 98, 88, 0.11);
  color: var(--spruce);
}

.pill-rebuild {
  background: rgba(16, 33, 45, 0.08);
  color: var(--ink);
}

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

.subpanel,
.support-note {
  padding: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(241, 243, 236, 0.92) 100%);
}

.subpanel {
  border-top: 4px solid rgba(13, 98, 88, 0.2);
}

.plan-footer {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-list,
.doc-links {
  display: grid;
  gap: 0.75rem;
}

.resource-link,
.doc-link,
.funding-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-link strong,
.doc-link strong,
.funding-card strong {
  font-size: 1.02rem;
}

.saved-plan-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.saved-plan-list li {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.saved-plan-list strong {
  display: block;
}

.saved-plan-list span,
.funding-date {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.empty-state {
  color: var(--ink-soft);
}

.sponsor-layout,
.docs-layout {
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.4fr);
}

.principles-list,
.mini-list,
.content-list,
.ordered-list {
  margin: 0;
  padding-left: 1.1rem;
}

.principles-list li,
.mini-list li,
.content-list li,
.ordered-list li {
  margin-bottom: 0.55rem;
}

.filter-button {
  width: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 0.92rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.filter-button.is-active {
  background: rgba(13, 98, 88, 0.1);
  color: var(--spruce);
}

.sponsor-card-grid,
.funding-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.opportunity-card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(241, 243, 236, 0.94) 100%);
  display: grid;
  gap: 0.55rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pledge-form {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.9rem;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(241, 243, 236, 0.96) 100%);
}

.pricing-accent {
  background: linear-gradient(180deg, rgba(57, 77, 66, 0.98) 0%, rgba(71, 99, 84, 0.98) 100%);
  color: white;
}

.pricing-accent p,
.pricing-accent .metric-label,
.pricing-accent .mini-list {
  color: rgba(255, 255, 255, 0.78);
}

.price-mark {
  display: block;
  margin: 0.45rem 0 0.65rem;
  font-size: 2.1rem;
}

.site-footer {
  padding: 0 0 2.3rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 1080px) {
  .site-header {
    border-radius: 28px;
  }

  .hero,
  .triage-layout,
  .sponsor-layout,
  .docs-layout,
  .plan-grid,
  .plan-footer {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }
}

@media (max-width: 840px) {
  .crisis-banner,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats,
  .fast-start-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell,
  .site-header {
    width: min(1180px, calc(100vw - 1rem));
  }

  .hero {
    padding-top: 3.5rem;
  }

  .panel,
  .hero-primary {
    padding: 1rem;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .site-actions {
    width: 100%;
  }
}
