:root {
  --bg: #f4f1e8;
  --bg-soft: #ebe5d7;
  --text: #17231b;
  --muted: #667164;
  --green: #173f2a;
  --green-2: #24563a;
  --line: rgba(23, 63, 42, .16);
  --card: rgba(255, 255, 255, .72);
  --white: #ffffff;
  --sand: #d8c6a3;
  --shadow: 0 24px 70px rgba(23, 63, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 10% 0%, rgba(216, 198, 163, .42), transparent 28%),
              radial-gradient(circle at 90% 5%, rgba(36, 86, 58, .12), transparent 30%),
              var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 58px);
  background: rgba(244, 241, 232, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  letter-spacing: .08em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  color: var(--muted);
  font-size: 13px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

.header-nav a:hover {
  color: var(--green);
}

.section-wide {
  width: 100%;
  padding: clamp(15px, 7vw, 25px) clamp(16px, 5vw, 76px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 89px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/hero/hero-aum-main.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(244, 241, 232, .99) 0%,
      rgba(244, 241, 232, .96) 20%,
      rgba(244, 241, 232, .82) 36%,
      rgba(244, 241, 232, .46) 52%,
      rgba(244, 241, 232, .12) 66%,
      rgba(244, 241, 232, 0) 78%),
    linear-gradient(180deg,
      rgba(244, 241, 232, .36) 0%,
      rgba(244, 241, 232, 0) 32%,
      rgba(244, 241, 232, .34) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(930px, 54vw);
  padding: clamp(22px, 3vw, 42px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}

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

h1 {
  max-width: 1180px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero h1 {
  max-width: 920px;
  text-shadow: 0 1px 24px rgba(244, 241, 232, .9);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: -.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.hero-lead {
  max-width: 760px;
  color: #344137;
  font-size: clamp(18px, 2vw, 25px);
  text-shadow: 0 1px 22px rgba(244, 241, 232, .82);
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-2);
}

.btn-secondary {
  background: rgba(255, 255, 255, .52);
  color: var(--green);
  border-color: rgba(23, 63, 42, .24);
}

.btn-large {
  min-height: 58px;
  padding: 17px 28px;
  font-weight: 800;
}

.price-note {
  margin-top: 16px;
  color: var(--green);
  font-weight: 800;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  width: 100%;
  border: 1px dashed rgba(23, 63, 42, .28);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(235,229,215,.72)),
    repeating-linear-gradient(45deg, transparent 0 15px, rgba(23,63,42,.035) 15px 16px);
  color: rgba(23, 63, 42, .72);
  text-align: center;
  padding: 28px;
  box-shadow: var(--shadow);
}

.placeholder-large {
  min-height: clamp(380px, 58vw, 760px);
}

.placeholder-medium {
  min-height: 440px;
}

.section-soft {
  background: rgba(235, 229, 215, .62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  width: 100%;
  margin-bottom: 34px;
}

.section-title p {
  max-width: 1050px;
  color: var(--muted);
  font-size: 18px;
}

.cards {
  display: grid;
  width: 100%;
  gap: 18px;
}

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

.card {
  min-height: 220px;
  padding: clamp(22px, 2.5vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(23, 63, 42, .07);
}

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

.accent-line {
  margin-top: 28px;
  padding: 22px clamp(20px, 3vw, 36px);
  background: rgba(23, 63, 42, .08);
  border-left: 5px solid var(--green);
  color: var(--green);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.split-section p {
  color: var(--muted);
  font-size: 18px;
}

.fine-print {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.section-green {
  background: var(--green);
  color: var(--white);
}

.section-green .eyebrow,
.section-green .section-title p {
  color: rgba(255, 255, 255, .76);
}

.ecosystem {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 0;
  gap: 16px;
  align-items: stretch;
}

.card.dark {
  min-width: 0;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

.ecosystem-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 2vw, 30px);
  overflow: hidden;
}

.ecosystem-card h3 {
  max-width: 100%;
  margin-bottom: 12px;
  font-size: clamp(22px, 1.55vw, 30px);
  line-height: 1.04;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.ecosystem-card p {
  max-width: 100%;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(15px, .95vw, 18px);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.ecosystem-card-copy {
  min-width: 0;
}

.eco-icon {
  width: clamp(58px, 4.3vw, 78px);
  height: clamp(58px, 4.3vw, 78px);
  margin-top: auto;
  align-self: flex-end;
  flex: 0 0 auto;
  opacity: .96;
}

.eco-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.svg-white-stroke,
.svg-gold-stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.svg-white-stroke {
  stroke: rgba(255, 255, 255, .94);
}

.svg-gold-stroke {
  stroke: #d8c06a;
}

.svg-green-fill {
  fill: rgba(92, 145, 99, .78);
}

.svg-gold-fill {
  fill: #d8c06a;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(23, 63, 42, .09);
}

.product-card.featured {
  border-color: rgba(23, 63, 42, .42);
  background: rgba(255, 255, 255, .9);
}

.product-card p {
  color: var(--muted);
}

.product-card strong {
  display: block;
  color: var(--green);
  font-size: 20px;
}

.product-image {
  min-height: 260px;
  box-shadow: none;
}

.product-plan {
  min-height: 150px;
  box-shadow: none;
}

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

.steps article {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(216,198,163,.45), transparent 32%),
    rgba(255,255,255,.38);
}

.final-cta p {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 28px clamp(16px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.quiz-modal.open {
  display: block;
}

.quiz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 16, .64);
}

.quiz-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(720px, 100%);
  height: 100%;
  overflow: auto;
  background: var(--bg);
  padding: clamp(22px, 4vw, 50px);
  box-shadow: -24px 0 70px rgba(0,0,0,.24);
}

.quiz-close {
  position: absolute;
  right: 20px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.quiz-progress {
  height: 6px;
  margin: 24px 52px 38px 0;
  background: rgba(23, 63, 42, .12);
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width .25s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

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

.choice-grid label {
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  display: block;
  min-height: 68px;
  padding: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  color: var(--text);
}

.choice-grid input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.78);
  color: var(--text);
  outline: none;
}

.field:focus {
  border-color: var(--green);
}

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

.quiz-message {
  margin-top: 20px;
  color: var(--green);
  font-weight: 800;
}

.admin-body {
  background: #f4f1e8;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.admin-card,
.admin-shell {
  width: 100%;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-card {
  max-width: 460px;
  padding: 34px;
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 42px);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}

.admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

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

.admin-table th {
  background: rgba(23,63,42,.08);
  color: var(--green);
}

.admin-table tr {
  cursor: pointer;
}

.admin-table tr:hover {
  background: rgba(23,63,42,.045);
}

.admin-detail {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
}

.admin-detail.open {
  display: block;
}

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

.detail-item {
  padding: 14px;
  background: rgba(244,241,232,.74);
  border: 1px solid var(--line);
}

.detail-item strong {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
}

.admin-comment {
  width: 100%;
  min-height: 120px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  resize: vertical;
}

.admin-status {
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .split-section,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(760px, 68vw);
  }

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

  .header-nav {
    display: none;
  }
}

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

  .site-header .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(38px, 14vw, 62px);
  }

  .section-wide {
    padding: 46px 16px;
  }

  .cards.four,
  .steps,
  .choice-grid,
  .detail-grid,
  .ecosystem {
    grid-template-columns: 1fr;
  }

  .ecosystem-card {
    min-height: 220px;
  }

  .eco-icon {
    width: 64px;
    height: 64px;
  }

  .hero {
    min-height: calc(100vh - 134px);
    align-items: flex-start;
    padding-top: 42px;
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(244, 241, 232, .98) 0%,
        rgba(244, 241, 232, .93) 34%,
        rgba(244, 241, 232, .48) 62%,
        rgba(244, 241, 232, .16) 100%),
      linear-gradient(90deg,
        rgba(244, 241, 232, .94) 0%,
        rgba(244, 241, 232, .54) 58%,
        rgba(244, 241, 232, .12) 100%);
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .placeholder-large,
  .placeholder-medium {
    min-height: 300px;
  }

  .quiz-panel {
    width: 100%;
  }

  .site-footer,
  .admin-top {
    flex-direction: column;
  }
}
