:root {
  --bg: #fbf7f0;
  --surface: #fffdf9;
  --ink: #241719;
  --muted: #6f6061;
  --line: #eaded3;
  --burgundy: #7b1733;
  --burgundy-dark: #551024;
  --gold: #b98b45;
  --green: #315c4b;
  --shadow: 0 18px 50px rgba(68, 30, 40, 0.11);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  background: rgba(251, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--burgundy);
  color: white;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.button.small {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
}

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

.nav a:hover,
.site-footer a:hover {
  color: var(--burgundy);
}

main {
  min-height: 70vh;
}

.hero,
.section,
.page-intro,
.planner-layout,
.pricing-grid,
.premium-comparison,
.premium-sections,
.faq-list,
.contact-layout,
.legal-page,
.guide-grid,
.guide-layout,
.guide-toc,
.related-bottom {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 3.2rem 0 2rem;
}

.hero-copy h1,
.page-intro h1 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 8vw, 5.4rem);
  line-height: 0.95;
}

.lead,
.page-intro p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.credibility-list {
  display: grid;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.credibility-list li {
  color: var(--muted);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--burgundy);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--burgundy-dark);
}

.button.secondary {
  background: transparent;
  color: var(--burgundy);
}

.button.full {
  width: 100%;
}

.hero-panel,
.card,
.price-card,
.premium-card,
.premium-cta-card,
.planner-form,
.results-panel,
.side-note,
.guide-card,
.guide-content,
.faq-list article,
.legal-page article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.mini-stat:last-child {
  border-bottom: 0;
}

.mini-stat span {
  color: var(--burgundy);
  font-size: 2rem;
  font-weight: 900;
}

.mini-stat small {
  color: var(--muted);
  text-align: right;
}

.section {
  padding: 2.5rem 0;
}

.section.warm {
  width: 100%;
  padding: 2.5rem max(1rem, calc((100% - 1120px) / 2));
  background: #f4eadc;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.price-card h2,
.premium-card h2,
.premium-cta-card h2,
.side-note h2,
.guide-card h2,
.guide-content h2,
.faq-list h2,
.legal-page h2,
.results-panel h2 {
  margin: 0;
  font-size: 1.45rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card,
.price-card,
.premium-card,
.premium-cta-card,
.side-note,
.guide-card,
.guide-content,
.faq-list article,
.legal-page article {
  padding: 1.2rem;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p,
.price-card li,
.premium-card p,
.premium-card li,
.premium-cta-card p,
.side-note p,
.guide-card p,
.guide-content p,
.guide-content li,
.faq-list p,
.legal-page p,
.result-meta,
.small-note {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1rem;
}

.steps div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.trust-strip {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--burgundy);
  color: white;
  text-align: center;
}

.page-intro {
  padding: 2.6rem 0 1.2rem;
}

.planner-layout,
.contact-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  padding-bottom: 3rem;
}

.planner-form,
.results-panel {
  padding: 1rem;
}

.planner-form {
  display: grid;
  gap: 1rem;
}

.planner-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.planner-form small {
  color: var(--muted);
  font-weight: 500;
}

.consent-line {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink) !important;
  font-weight: 600 !important;
}

.consent-line input {
  width: auto;
  margin-top: 0.25rem;
}

.lead-capture-form {
  margin-top: 1rem;
  background: #fffaf3;
  box-shadow: none;
}

.lead-capture-form h2 {
  margin: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9c9bc;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0.78rem 0.85rem;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.checks {
  display: grid;
  gap: 0.55rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

.checks input {
  width: auto;
}

.empty-state,
.loading {
  display: grid;
  place-items: center;
  min-height: 16rem;
  border: 1px dashed #d9c9bc;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.loading.compact {
  min-height: 7rem;
  margin-top: 1rem;
}

.result-block {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.premium-hero {
  align-items: center;
}

.premium-price {
  align-self: stretch;
}

.premium-sections {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.premium-comparison {
  padding: 1rem 0 2rem;
}

.premium-card,
.premium-cta-card {
  background: var(--surface);
}

.premium-cta-card {
  margin-top: 1rem;
  padding: 1rem;
  background: #fffaf3;
}

.premium-price-card,
.premium-price {
  border-color: #d8b06a;
  background: #fffaf3;
}

.feature-list {
  padding-left: 1.2rem;
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.comparison-table {
  display: grid;
  gap: 0.75rem;
}

.paid-banner {
  display: grid;
  padding: 1rem;
  border: 1px solid rgba(123, 23, 51, 0.15);
  border-radius: 12px;
  background: rgba(123, 23, 51, 0.08);
  color: var(--burgundy);
  font-weight: 700;
}

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

.success-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.success-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

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

.premium-doc {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: #fffdf9;
}

.premium-doc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pack-overview {
  display: grid;
  gap: 0.65rem;
  min-width: min(100%, 280px);
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.pack-overview div {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.pack-overview dt {
  color: var(--muted);
  font-weight: 800;
}

.pack-overview dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.premium-doc-actions {
  display: grid;
  gap: 0.75rem;
  justify-content: end;
}

.premium-doc-actions .button {
  width: auto;
}

.premium-doc h2,
.premium-doc h3 {
  margin: 0;
}

.premium-doc .pack-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 1rem;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-title-row.compact {
  margin-bottom: 0.45rem;
}

.button.small {
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.premium-doc pre,
.email-preview {
  white-space: pre-wrap;
  word-break: break-word;
  background: white;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

.disclaimer-block {
  background: #fff4e8;
  border-color: #ecd4bc;
}
  background: white;
  padding: 0.85rem;
}

.comparison-table span {
  display: block;
  color: var(--burgundy);
  font-weight: 900;
}

.comparison-table p {
  margin: 0.35rem 0 0;
}

.table-scroll {
  overflow-x: auto;
}

.pack-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pack-table th,
.pack-table td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.pack-table th {
  background: #f5eee6;
  color: var(--burgundy);
}

.message-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

.message-row p {
  margin: 0;
}

.premium-doc-header {
  border-bottom: 2px solid var(--burgundy);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.pack-document-footer {
  border-top: 2px solid var(--burgundy);
  padding-top: 1rem;
  color: var(--muted);
}

.trust-links,
.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.trust-links a,
.pricing-trust a {
  color: var(--burgundy);
  font-weight: 800;
  text-decoration: none;
}

.trust-links a:hover,
.pricing-trust a:hover {
  text-decoration: underline;
}

.pricing-trust {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  border-radius: 8px;
  text-align: left;
}

.result-block ul {
  padding-left: 1.2rem;
}

.supplier-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.9rem;
  background: #fffaf3;
}

.supplier-directory-card .button {
  margin-top: 0.6rem;
}

.supplier-detail ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.supplier-join-layout .side-note h2 + p {
  margin-top: 0.25rem;
}

.supplier-card h3 {
  margin: 0;
  font-size: 1rem;
}

.supplier-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.email-preview,
.invite-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f5eee6;
  padding: 1rem;
}

.price {
  margin: 0.5rem 0;
  color: var(--burgundy);
  font-size: 2rem;
  font-weight: 900;
}

.price-card.muted {
  background: #f6efe6;
}

.faq-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.guide-grid {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.8rem 1rem;
}

.guide-toc a {
  color: var(--burgundy);
  font-weight: 800;
  text-decoration: none;
}

.guide-card {
  box-shadow: none;
}

.guide-card h2 a,
.text-link,
.related-links a,
.guide-content a {
  color: var(--burgundy);
  text-decoration: none;
}

.guide-card h2 a:hover,
.text-link:hover,
.related-links a:hover,
.guide-content a:hover {
  text-decoration: underline;
}

.text-link {
  font-weight: 800;
}

.guide-intro {
  padding-bottom: 1rem;
}

.guide-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  padding-bottom: 3rem;
}

.guide-content {
  box-shadow: var(--shadow);
}

.guide-content section {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.guide-content section:first-child {
  padding-top: 0;
}

.guide-content section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-content ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.guide-content li + li {
  margin-top: 0.45rem;
}

.mini-faqs {
  display: grid;
  gap: 0.8rem;
}

.mini-faqs div,
.guide-cta {
  border-radius: 8px;
  background: #fffaf3;
  padding: 1rem;
}

.mini-faqs h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.mini-faqs p {
  margin: 0;
}

.guide-sidebar {
  display: grid;
  gap: 1rem;
}

.related-links {
  display: grid;
  gap: 0.7rem;
}

.related-bottom {
  padding-bottom: 3rem;
}

.legal-intro {
  padding-bottom: 0.5rem;
}

.legal-page {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.legal-page article {
  box-shadow: none;
}

.legal-page h2 {
  font-size: 1.2rem;
}

.legal-page p {
  margin-bottom: 0;
}

.notice {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf3;
  padding: 0.9rem 1rem;
  color: var(--ink) !important;
  font-weight: 700;
}

.form-status {
  min-height: 1.5rem;
  color: var(--green);
  font-weight: 800;
}

.admin-password-form {
  max-width: 420px;
  margin-top: 1rem;
}

.admin-table-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

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

.admin-table th {
  background: #f5eee6;
  color: var(--burgundy);
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.site-footer p {
  max-width: 650px;
  margin: 0.35rem 0 0;
}

.footer-links {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.site-footer nav {
  display: grid;
  gap: 0.35rem;
}

.site-footer h2 {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .site-header,
  .site-footer {
    padding: 1rem 2rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav {
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    padding-top: 5rem;
  }

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

  .card-grid.five {
    grid-template-columns: repeat(5, 1fr);
  }

  .premium-sections {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.two,
  .form-row,
  .contact-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .planner-layout {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .planner-form,
  .results-panel {
    padding: 1.25rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .planner-form,
  .lead-capture-form,
  .result-actions,
  .premium-cta-card .button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .planner-layout,
  .results-panel,
  .premium-preview {
    display: block;
    width: 100%;
    box-shadow: none;
  }

  .results-panel::before {
    content: "ClientCellar";
    display: block;
    margin-bottom: 1rem;
    color: black;
    font-size: 1.4rem;
    font-weight: 900;
  }

  .result-block,
  .supplier-card,
  .premium-cta-card {
    break-inside: avoid;
    box-shadow: none;
    background: white;
  }
}

@media (min-width: 920px) {
  .footer-links {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }
}

@media (max-width: 719px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: 100%;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav a {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
  }

  .header-actions {
    margin-left: auto;
  }
}
