:root {
  --bg: #f7efe3;
  --section-bg: #fbf4ea;
  --section-alt: #fffaf3;
  --text: #2f261f;
  --muted: #6f6258;
  --primary: #b9824b;
  --primary-dark: #8f6237;
  --card: #fffaf3;
  --card-soft: #ffffff;
  --border: #e5d7c5;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(47, 38, 31, 0.08);
}

body.theme-clean-bright {
  --bg: #f8fafc;
  --section-bg: #ffffff;
  --section-alt: #eef6f1;
  --text: #1f2933;
  --muted: #64748b;
  --primary: #2f855a;
  --primary-dark: #276749;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --border: #dce7df;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(31, 41, 51, 0.08);
}

body.theme-premium-dark {
  --bg: #101010;
  --section-bg: #101010;
  --section-alt: #151515;
  --text: #f5f1e8;
  --muted: #c7bfae;
  --primary: #d4af37;
  --primary-dark: #b8942f;
  --card: #1b1b1b;
  --card-soft: #202020;
  --border: #2e2e2e;
  --white: #ffffff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

body.theme-natural-cream {
  --bg: #f7efe3;
  --section-bg: #fbf4ea;
  --section-alt: #fffaf3;
  --text: #2f261f;
  --muted: #6f6258;
  --primary: #b9824b;
  --primary-dark: #8f6237;
  --card: #fffaf3;
  --card-soft: #ffffff;
  --border: #e5d7c5;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(47, 38, 31, 0.1);
}

body.theme-soft-pink {
  --bg: #fff1f5;
  --section-bg: #fff7fa;
  --section-alt: #ffe8f0;
  --text: #3b1f2b;
  --muted: #7a5262;
  --primary: #d6336c;
  --primary-dark: #a61e4d;
  --card: #ffffff;
  --card-soft: #fff7fa;
  --border: #f5bfd1;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(214, 51, 108, 0.12);
}

body.customer-preview .builder-preview-divider {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
}

main {
  background: var(--bg);
}

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

section {
  padding: 80px 8%;
  background: var(--section-bg);
}

#landingPage > section:nth-child(even):not(.final-cta) {
  background: var(--section-alt);
}

.builder-progress {
  position: sticky;
  bottom: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.94);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.25);
}

.builder-progress strong {
  width: auto;
  display: inline;
  margin: 0;
  font-size: inherit;
  color: #ffffff;
}

.builder-progress strong::after {
  content: "";
}

.builder-progress-text {
  display: grid;
  gap: 2px;
}

.builder-progress-title {
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
}

.builder-progress-meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.builder-progress-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.builder-progress.ready .builder-progress-pill {
  background: #dcfce7;
  color: #14532d;
}

.builder-progress.incomplete .builder-progress-pill {
  background: #fff7d6;
  color: #6b4e00;
}

.revision-notice {
  display: none;
  width: 100%;
  margin: 18px 0 26px;
  padding: 18px 20px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  background: #fff7d6;
  color: #6b4e00;
  font-size: 0.95rem;
  line-height: 1.6;
}

.revision-notice strong {
  width: auto;
  display: block;
  margin: 0 0 8px;
  color: #6b4e00;
  font-size: 1rem;
  font-weight: 900;
}

.revision-notice strong::after {
  content: "";
}

.revision-notice p {
  margin: 0;
  color: #6b4e00;
}

@media (max-width: 650px) {
  .builder-progress {
    align-items: flex-start;
    flex-direction: column;
  }

  .builder-progress-pill {
    width: 100%;
    text-align: center;
  }
}

.builder-preview-divider {
  padding: 18px 8%;
  background: #111111;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.builder-preview-divider h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.builder-preview-divider p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.preview-panel {
  position: relative;
  z-index: 1000;
  max-height: 78vh;
  overflow-y: auto;
  padding: 24px 8%;
  background: #111111;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-panel::-webkit-scrollbar {
  width: 10px;
}

.preview-panel::-webkit-scrollbar-track {
  background: #111111;
}

.preview-panel::-webkit-scrollbar-thumb {
  background: #555555;
  border-radius: 999px;
}

.preview-panel::-webkit-scrollbar-thumb:hover {
  background: #777777;
}

.preview-panel strong {
  width: 100%;
  display: block;
  margin-bottom: 18px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.preview-panel > strong::after {
  content: "";
}

.preview-panel > label,
.section-controls,
.content-controls,
.validation-status,
.compliance-note,
.export-controls {
  width: 100%;
}

.preview-panel > label {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-panel select {
  min-width: 150px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
}

.section-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.section-controls span {
  margin-right: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.section-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 0.85rem;
}

.section-controls input {
  margin: 0;
  accent-color: #69a6b0;
}

.form-group-title {
  grid-column: span 3;
  margin: 8px 0 -4px;
  padding-top: 10px;
  color: #d4af37;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.upload-control input[type="file"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.upload-control input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.upload-status {
  min-height: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.4;
}

.upload-status.success {
  color: #86efac;
}

.upload-status.error {
  color: #fca5a5;
}

.content-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.045);
}

.content-controls label {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.content-controls input,
.content-controls textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  line-height: 1.5;
  outline: none;
}

.content-controls input:focus,
.content-controls textarea:focus,
.preview-panel select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.content-controls textarea {
  min-height: 104px;
  resize: vertical;
}

.content-controls .wide-control {
  grid-column: span 3;
}

.validation-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.validation-status.valid {
  background: #dcfce7;
  color: #14532d;
}

.validation-status.warning {
  background: #fff7d6;
  color: #6b4e00;
}

.validation-status ul {
  margin-left: 18px;
}

.compliance-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
  line-height: 1.5;
}

.export-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.export-controls button,
.import-json-label {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.import-json-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.import-json-label input {
  display: none;
}

.export-controls button:nth-of-type(1) {
  background: #e0f2fe;
  color: #075985;
}

.export-controls button:nth-of-type(2) {
  background: #dcfce7;
  color: #14532d;
}

.export-controls button:nth-of-type(4) {
  background: #d4af37;
  color: #111111;
}

.export-controls button:nth-of-type(5) {
  background: #ffdddd;
  color: #7a1f1f;
}

.export-controls button:hover,
.import-json-label:hover {
  opacity: 0.86;
}

.builder-actions {
  width: min(1720px, calc(100% - 96px));
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.builder-actions .primary-action,
#submitRequestBtn {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 34px;
  background: #ffffff;
  color: #111111;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.builder-actions .primary-action:hover,
#submitRequestBtn:hover {
  transform: translateY(-2px);
  background: #f2c94c;
}

.builder-actions .primary-action:disabled,
#submitRequestBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px) {
  .builder-actions {
    width: min(100% - 32px, 1720px);
  }

  .builder-actions .primary-action,
  #submitRequestBtn {
    width: 100%;
  }
}

.builder-preview-divider {
  padding: 18px 8%;
  background: #111111;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.builder-preview-divider h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.builder-preview-divider p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

body.customer-preview .preview-panel,
body.customer-preview .builder-preview-divider {
  display: none;
}

body.customer-preview .site-header {
  top: 0;
}

.customer-preview-exit {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: none;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

body.customer-preview .customer-preview-exit {
  display: inline-flex;
}

@media (max-width: 950px) {
  .content-controls {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .content-controls .wide-control {
    grid-column: span 2;
  }

  .form-group-title {
    grid-column: span 2;
  }
}

@media (max-width: 650px) {
  .preview-panel {
    max-height: none;
    padding: 20px 6%;
  }

  .preview-panel > label {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    margin-right: 0;
  }

  .preview-panel select {
    width: 100%;
  }

  .section-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-group-title {
    grid-column: span 1;
  }

  .content-controls {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .content-controls .wide-control {
    grid-column: span 1;
  }

  .export-controls {
    flex-direction: column;
    justify-content: stretch;
  }

  .export-controls button,
  .import-json-label {
    width: 100%;
  }
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 760px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 760px;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.header-cta:hover {
  background: var(--primary-dark);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text p {
  max-width: 620px;
  font-size: 1.1rem;
}

.hero-image,
.product-image,
.agent-photo,
.package-box,
.card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image {
  border-radius: 32px;
  padding: 28px;
  overflow: hidden;
}

.hero-image img,
.product-image img,
.agent-photo img {
  width: 100%;
  min-height: 280px;
  object-fit: contain;
  border-radius: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.card {
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card h3 {
  color: var(--text);
}

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

.product-grid,
.agent-grid,
.package-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.product-image,
.agent-photo,
.package-box {
  border-radius: 30px;
  padding: 28px;
}

.package-box {
  background: var(--card-soft);
}

.package-box h3 {
  color: var(--text);
}

.package-box p {
  color: var(--muted);
}

.package-price {
  display: inline-block;
  margin: 18px 0 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  border-radius: 20px;
  padding: 24px;
}

.faq-item h3 {
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background: var(--text);
  color: var(--bg);
}

.final-cta .eyebrow {
  color: var(--primary);
}

.final-cta h2 {
  max-width: none;
  color: var(--bg);
}

.final-cta p {
  color: color-mix(in srgb, var(--bg) 78%, transparent);
  max-width: 620px;
  margin: 0 auto;
}

.final-cta .btn {
  background: var(--primary);
  color: var(--white);
}

.final-cta .btn:hover {
  background: var(--primary-dark);
}

.disclaimer {
  padding: 24px 8%;
  font-size: 0.82rem;
  text-align: center;
  color: var(--muted);
  background: var(--section-alt);
  border-top: 1px solid var(--border);
}

body.theme-premium-dark .final-cta {
  background: #1b1b1b;
  color: #f5f1e8;
  border-top: 1px solid var(--border);
}

body.theme-premium-dark .final-cta h2 {
  color: #f5f1e8;
}

body.theme-premium-dark .final-cta p {
  color: #c7bfae;
}

body.theme-premium-dark .disclaimer {
  background: #101010;
  color: #c7bfae;
}

body.theme-natural-cream .final-cta {
  background: #2f261f;
  color: #fffaf3;
}

body.theme-natural-cream .final-cta h2 {
  color: #fffaf3;
}

body.theme-natural-cream .final-cta p {
  color: rgba(255, 250, 243, 0.78);
}

body.theme-clean-bright .final-cta {
  background: #1f2933;
  color: #ffffff;
}

body.theme-clean-bright .final-cta h2 {
  color: #ffffff;
}

body.theme-clean-bright .final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-soft-pink .final-cta {
  background: #3b1f2b;
  color: #ffffff;
}

body.theme-soft-pink .final-cta h2 {
  color: #ffffff;
}

body.theme-soft-pink .final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 850px) {
  section {
    padding: 64px 6%;
  }

  .brand-logo {
    height: 38px;
  }

  .header-inner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-cta {
    width: 100%;
  }

  .hero-grid,
  .product-grid,
  .agent-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }
}

@media (max-width: 650px) {
  .preview-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-panel label {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-panel select {
    width: 100%;
  }

  .section-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-controls {
    grid-template-columns: 1fr;
  }

  .content-controls .wide-control {
    grid-column: span 1;
  }

  .export-controls {
    flex-direction: column;
    justify-content: stretch;
  }

  .export-controls button,
  .import-json-label {
    width: 100%;
  }
}