:root {
  --soil-950: #18140f;
  --soil-900: #221a13;
  --soil-800: #30251b;
  --moss-700: #2f5f3d;
  --moss-600: #3e734d;
  --moss-500: #4b8b5d;
  --sand-100: #f1eadc;
  --sand-200: #e6dcc8;
  --clay-200: #dcc0a3;
  --clay-500: #996646;
  --alert: #b84731;
  --text-main: #f5eee2;
  --text-soft: #d4c8b5;
  --card-edge: rgba(230, 220, 200, 0.18);
  --focus: #dfb15f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(75, 139, 93, 0.28), transparent 60%),
    radial-gradient(1000px 420px at 20% 12%, rgba(153, 102, 70, 0.24), transparent 56%),
    linear-gradient(160deg, #1a140e 0%, #20170f 46%, #17120f 100%);
  min-height: 100vh;
  line-height: 1.45;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 12px;
  z-index: 10000;
  background: var(--focus);
  color: #20150e;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-shell {
  padding: 1rem clamp(1rem, 2vw, 2.2rem) 2.5rem;
}

.top-nav {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.brand {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: 0.02em;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 53px;
  width: auto;
  object-fit: contain;
}

.top-nav-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-email {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-decoration: none;
  opacity: 0.72;
  white-space: nowrap;
}

.nav-email:hover {
  opacity: 1;
  color: var(--text-main);
}

.hero-content {
  max-width: 1160px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
}

.hero-copy h1 {
  margin: 0.35rem 0 0.95rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.04;
  max-width: none;
  text-wrap: balance;
}

.tagline-line {
  display: block;
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(223, 177, 95, 0.46);
  border-radius: 999px;
  color: var(--clay-200);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  max-width: 60ch;
  color: var(--text-soft);
  margin: 0 0 1.2rem;
}

.hero-note {
  margin: 1rem 0 0;
  color: #c3b49e;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-cards {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  max-width: 510px;
  justify-self: end;
}

.stat-card {
  border: 1px solid var(--card-edge);
  background: linear-gradient(150deg, rgba(43, 33, 24, 0.9), rgba(30, 24, 19, 0.72));
  border-radius: 14px;
  padding: 0.9rem;
  backdrop-filter: blur(2px);
  animation: riseIn 520ms ease both;
}

.stat-card:nth-child(2) {
  animation-delay: 90ms;
}

.stat-card:nth-child(3) {
  animation-delay: 180ms;
}

.stat-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.stat-card p {
  margin: 0;
  color: var(--text-soft);
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 2vw, 2.2rem) 2rem;
}

.room-preview {
  padding-top: 0.4rem;
}

.section-head {
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-head p,
.section-subhead {
  margin: 0;
  color: var(--text-soft);
}

.filter-row {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.filter-row label {
  display: grid;
  gap: 0.35rem;
}

.filter-row span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border-radius: 10px;
  border: 1px solid var(--card-edge);
  background: rgba(34, 26, 19, 0.93);
  color: var(--text-main);
  padding: 0.62rem 0.72rem;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, white 30%);
  outline-offset: 2px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-lg {
  padding: 0.72rem 1.15rem;
  font-weight: 700;
}

.btn-cta {
  color: #1f130f;
  background: linear-gradient(135deg, #cfaa63, #bb8d44);
  border-color: #af7d38;
}

.btn-cta:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  color: var(--sand-100);
  border-color: var(--moss-500);
  background: rgba(62, 115, 77, 0.34);
}

.btn-secondary:hover {
  background: rgba(62, 115, 77, 0.52);
}

.btn-ghost,
.link-pill {
  color: var(--sand-100);
  border-color: rgba(230, 220, 200, 0.32);
  background: rgba(34, 26, 19, 0.62);
}

.btn-ghost:hover,
.link-pill:hover {
  background: rgba(54, 42, 30, 0.68);
}

.link-pill {
  border: 1px solid;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  font-size: 0.93rem;
}

.room-grid,
.plant-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

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

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

.room-card,
.plant-card {
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(150deg, rgba(42, 33, 26, 0.92), rgba(28, 22, 17, 0.76));
}

.room-card h3,
.plant-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.badge-row {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(230, 220, 200, 0.26);
  background: rgba(78, 57, 39, 0.56);
  padding: 0.2rem 0.54rem;
  font-size: 0.78rem;
  color: #ebddc9;
}

.card-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.split-band {
  margin-bottom: 2.4rem;
  border-top: 1px solid rgba(230, 220, 200, 0.18);
  border-bottom: 1px solid rgba(230, 220, 200, 0.18);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
  background: rgba(31, 25, 20, 0.56);
}

.split-band h2 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
}

.split-band p {
  margin: 0;
  color: var(--text-soft);
}

.split-band ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.split-band li {
  margin: 0.25rem 0;
}

.site-footer {
  border-top: 1px solid rgba(230, 220, 200, 0.15);
  padding: 1.2rem clamp(1rem, 2vw, 2.2rem) 2.2rem;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-legal {
  font-size: 0.82rem;
  opacity: 0.6;
  font-style: italic;
  width: 100%;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  flex: 0 0 auto;
}

.site-footer .footer-logo {
  display: block;
  height: 24px !important;
  width: auto !important;
  max-width: 170px !important;
  max-height: 24px !important;
  object-fit: contain;
}

dialog {
  width: min(720px, calc(100vw - 2rem));
  border: 1px solid rgba(230, 220, 200, 0.24);
  border-radius: 18px;
  padding: 0;
  background: #1f1812;
  color: var(--text-main);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.wizard-shell {
  padding: 1.1rem 1.15rem 1rem;
}

.wizard-shell h2 {
  margin: 0.35rem 0 0;
  font-family: "Fraunces", Georgia, serif;
}

.stepper {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stepper li {
  border: 1px solid rgba(230, 220, 200, 0.24);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #c9bca8;
  font-size: 0.86rem;
}

.stepper li.active {
  color: #1f130f;
  background: linear-gradient(130deg, #cfaa63, #bb8d44);
  border-color: #af7d38;
  font-weight: 700;
}

.wizard-step {
  display: none;
  gap: 0.75rem;
}

.wizard-step.active {
  display: grid;
}

.wizard-step h3 {
  margin: 0;
  font-size: 1.05rem;
}

.wizard-step label {
  display: grid;
  gap: 0.35rem;
}

.wizard-hint {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.wizard-plant-picker {
  display: grid;
  gap: 0.5rem;
}

.wizard-plant-filters {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr 1fr;
}

.wizard-plant-filters .wizard-plant-search-label {
  grid-column: 1 / -1;
}

.wizard-plant-filters label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.wizard-plant-filters select,
.wizard-plant-filters input {
  width: 100%;
}

.wizard-plant-filter-stats {
  margin: 0;
  font-size: 0.85rem;
}

@media (min-width: 560px) {
  .wizard-plant-filters {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  }

  .wizard-plant-filters .wizard-plant-search-label {
    grid-column: auto;
  }
}

.wizard-plant-results {
  max-height: 12.5rem;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(230, 220, 200, 0.24);
  border-radius: 12px;
  background: rgba(28, 22, 17, 0.72);
}

.wizard-plant-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(230, 220, 200, 0.18);
  background: rgba(42, 33, 26, 0.92);
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
}

.wizard-plant-option:hover,
.wizard-plant-option:focus-visible {
  border-color: #c9a05a;
  outline: 2px solid rgba(201, 160, 90, 0.45);
  outline-offset: 1px;
}

.wizard-plant-option.is-selected {
  border-color: #c9a05a;
  background: linear-gradient(130deg, rgba(207, 170, 99, 0.28), rgba(187, 141, 68, 0.18));
  box-shadow: inset 0 0 0 1px rgba(201, 160, 90, 0.35);
}

.wizard-plant-option strong {
  font-size: 0.95rem;
}

.wizard-plant-option .meta {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.82rem;
}

.wizard-plant-option .badge {
  font-size: 0.72rem;
  justify-self: end;
}

.wizard-plant-selected {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(230, 220, 200, 0.2);
  background: rgba(42, 33, 26, 0.75);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.wizard-plant-selected strong {
  color: var(--text-main);
}

.wizard-custom-plant {
  border: 1px solid rgba(230, 220, 200, 0.2);
  border-radius: 12px;
  padding: 0.45rem 0.7rem 0.65rem;
  background: rgba(32, 25, 19, 0.5);
}

.wizard-custom-plant summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.wizard-custom-plant[open] summary {
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.wizard-custom-plant label {
  display: grid;
  gap: 0.35rem;
}

.review-panel {
  border: 1px solid rgba(230, 220, 200, 0.24);
  border-radius: 12px;
  background: rgba(42, 33, 26, 0.9);
  padding: 0.75rem;
}

.review-panel p {
  margin: 0.2rem 0;
}

.wizard-error {
  min-height: 1.3rem;
  color: #e99481;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.wizard-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.empty-state {
  margin: 0;
  border: 1px dashed rgba(230, 220, 200, 0.28);
  border-radius: 14px;
  padding: 1rem;
  color: var(--text-soft);
  background: rgba(32, 25, 19, 0.64);
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .hero-content,
  .split-band {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    max-width: none;
    justify-self: stretch;
  }

  .hero-copy h1 {
    max-width: 22ch;
  }

  .tagline-line {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    height: 43px;
  }

  .top-nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

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

  #dashboard-demo > div {
    grid-template-columns: 1fr !important;
  }
}

/* Legal page body */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  margin: 1.6rem 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-main);
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--focus);
}

/* Homepage review band (SITE-GUIDE §0) */
.review-section {
  padding-top: 0.5rem;
}

.review-band {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  background: rgba(42, 33, 26, 0.72);
  padding: 1.35rem 1.4rem;
}

@media (min-width: 768px) {
  .review-band {
    grid-template-columns: 1fr auto;
    padding: 1.6rem 1.75rem;
  }
}

.review-band__stars {
  color: var(--focus);
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.review-band__title {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--text-main);
}

.review-band__text {
  margin: 0 0 1rem;
  color: var(--text-soft);
  max-width: 52ch;
}

.review-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.review-qr {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--card-edge);
  background: #fff;
  padding: 8px;
  margin: 0 auto;
}

.review-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Floating review CTA — left of typical cart area; cart is top-nav */
.review-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 18px;
  background: linear-gradient(130deg, #cfaa63, #bb8d44);
  color: #1f130f;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.review-fab:hover {
  filter: brightness(1.06);
}

.review-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
}

@media (min-width: 640px) {
  .review-dialog {
    align-items: center;
  }
}

.review-dialog[hidden] {
  display: none;
}

.review-dialog-panel {
  background: #1f1812;
  color: var(--text-main);
  border: 1px solid rgba(230, 220, 200, 0.24);
  border-radius: 16px;
  width: min(100%, 440px);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 1.4rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  position: relative;
}

.review-dialog-panel h2 {
  margin: 0 0 0.65rem;
  padding-right: 2.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
}

.review-dialog-panel p {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.review-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-edge);
  background: rgba(42, 33, 26, 0.9);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-main);
}

.review-dialog-panel .review-qr {
  margin: 1rem auto;
}

.review-dialog-panel .btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.review-compliance {
  font-size: 0.82rem !important;
  margin-top: 1rem !important;
  text-align: center;
}

body.dialog-open {
  overflow: hidden;
}
