    :root {
      --green: #2f3728;
      --teal: #315f5c;
      --copper: #a65f32;
      --copper-dark: #963f12;
      --cream: #fbf7f2;
      --peach: #f6e8dc;
      --sage: #a3a99a;
      --gray: #67727c;
      --light-gray: #f7f6f5;
      --border: #e8e1da;
      --white: #ffffff;
      --shadow: 0 12px 32px rgba(76, 60, 45, 0.07);
      --radius-lg: 22px;
      --radius-md: 15px;
      --radius-sm: 10px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: #fdfcfa;
    }

    /* Scoped to .page so the shared app header keeps its own styling.
       Width matches Bootstrap's .container (used by the app header) so the
       page content lines up with the nav above it. */
    .page {
      width: min(1320px, calc(100% - 40px));
      margin: 0 auto;
      padding-top: 18px;
      color: var(--green);
      font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    }

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

    /* Kept as bare element selectors: the mockup's button/link classes are
       single-class rules, so a `.page a` reset would out-specify them. Header
       links are safe — their colors come from .navlink-text / .mn-text. */
    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      font: inherit;
    }

    button,
    a {
      cursor: pointer;
    }

    /* NOTE: the mockup's own header styles (.site-header/.nav/.nav-link/.brand)
       were removed — this page now renders the shared app header partial, which
       is styled by style.css like the rest of the app. */

    /* Shared cards */

    .card {
      display: block; /* beats Bootstrap's .card { display: flex } */
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--white);
      box-shadow: var(--shadow);
    }

    /* Hero */

    .hero {
      display: grid;
      grid-template-columns: 1fr 1.08fr;
      overflow: hidden;
    }

    .hero-left,
    .hero-right {
      padding: 32px 38px;
    }

    .hero-left {
      background:
        radial-gradient(
          circle at 8% 10%,
          rgba(244, 225, 207, 0.85),
          transparent 38%
        ),
        linear-gradient(135deg, #ffffff 0%, #fdf8f4 100%);
    }

    .hero-right {
      background:
        radial-gradient(
          circle at 100% 10%,
          rgba(222, 223, 211, 0.8),
          transparent 36%
        ),
        linear-gradient(135deg, #ffffff 0%, #f8f3ed 100%);
    }

    .hero h1 {
      margin: 0;
      max-width: 680px;
      font-size: clamp(38px, 4vw, 58px);
      line-height: 1.02;
      letter-spacing: -1.8px;
    }

    .hero h1 span {
      color: var(--copper-dark);
    }

    .hero-description {
      margin: 15px 0 0;
      color: #46535d;
      font-size: 17px;
      line-height: 1.55;
    }

    .trust-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 25px;
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 60px;
      padding: 10px 13px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.85);
    }

    .trust-icon {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      flex: 0 0 34px;
      border-radius: 50%;
      background: #edf3e9;
      color: #60805f;
      font-weight: 800;
    }

    .trust-item strong,
    .trust-item small {
      display: block;
    }

    .trust-item strong {
      font-size: 12px;
    }

    .trust-item small {
      margin-top: 2px;
      color: #71808b;
      font-size: 10px;
    }

    .search-label {
      display: block;
      margin-bottom: 9px;
      font-weight: 750;
    }

    .search-wrap {
      position: relative;
    }

    .search-input {
      width: 100%;
      height: 56px;
      padding: 0 52px 0 18px;
      border: 1px solid #d9d4ce;
      border-radius: 13px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--green);
      outline: none;
    }

    .search-icon {
      position: absolute;
      top: 50%;
      right: 18px;
      transform: translateY(-50%);
      color: #7b858d;
    }

    .assessment-banner {
      display: grid;
      grid-template-columns: 54px 1fr auto;
      gap: 17px;
      align-items: center;
      margin-top: 24px;
      padding: 18px;
      border: 1px solid #eedccc;
      border-radius: 17px;
      background: linear-gradient(90deg, #fff8f1, #f4e3d3);
    }

    .assessment-icon {
      display: grid;
      place-items: center;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: #fff;
      color: var(--copper-dark);
      font-size: 26px;
    }

    .assessment-banner strong {
      display: block;
      color: var(--copper-dark);
    }

    .assessment-banner p {
      margin: 5px 0 0;
      color: #5f6d77;
      font-size: 12px;
      line-height: 1.4;
    }

    .primary-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 23px;
      border: 0;
      border-radius: 11px;
      background: linear-gradient(180deg, #ae5d2d, #9b3f0e);
      color: #fff;
      font-weight: 750;
      box-shadow: 0 8px 19px rgba(155, 63, 14, 0.18);
    }

    /* Main marketplace */

    .marketplace {
      margin-top: 18px;
      padding: 22px 20px 0; /* .trust-footer supplies the bottom spacing */
    }

    .section-heading {
      margin: 0 0 14px;
      font-size: 23px;
    }

    .symptom-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr) 1.2fr;
      gap: 12px;
    }

    .symptom-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 116px;
      padding: 14px 10px;
      border: 1px solid var(--border);
      border-radius: 13px;
      background: #fff;
      color: var(--green);
      text-align: center;
      transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }

    .symptom-card:hover {
      transform: translateY(-3px);
      border-color: var(--copper);
      box-shadow: 0 10px 22px rgba(77, 61, 46, 0.09);
    }

    .symptom-icon {
      display: block;
      margin-bottom: 8px;
      font-size: 29px;
    }

    .symptom-card strong {
      font-size: 13px;
      line-height: 1.28;
    }

    .browse-all {
      padding: 20px;
      background: linear-gradient(135deg, #fff, #fbf5ee);
      text-align: left;
    }

    .browse-all strong {
      display: block;
      color: var(--copper-dark);
      font-size: 17px;
    }

    .browse-all small {
      display: block;
      margin-top: 8px;
      color: #5e6d77;
      line-height: 1.35;
    }

    .browse-all .arrow {
      display: block;
      margin-top: 10px;
      color: var(--copper-dark);
      text-align: right;
      font-size: 20px;
    }

    /* Featured solutions */

    .featured-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 20px;
      margin: 25px 0 11px;
    }

    .featured-header h2 {
      margin: 0;
      font-size: 22px;
    }

    .featured-header p {
      margin: 4px 0 0;
      color: #68747d;
      font-size: 12px;
    }

    .view-all {
      color: var(--copper-dark);
      font-size: 13px;
      font-weight: 750;
    }

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

    .product-card {
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #fff;
    }

    .product-content {
      display: grid;
      grid-template-columns: 132px 1fr;
      min-height: 235px;
    }

    .product-image-wrap {
      display: grid;
      place-items: center;
      padding: 16px;
      background:
        radial-gradient(
          circle at 50% 32%,
          rgba(245, 226, 210, 0.9),
          transparent 50%
        ),
        linear-gradient(#fff, #f5f1ec);
    }

    .product-image {
      width: 110px;
      height: 155px;
      object-fit: contain;
    }

    .product-info {
      padding: 16px 16px 12px 0;
    }

    .product-brand {
      display: inline-block;
      padding: 4px 8px;
      border-radius: 6px;
      background: #f8e9e3;
      color: var(--copper-dark);
      font-size: 11px;
      font-weight: 750;
    }

    .product-info h3 {
      margin: 8px 0 6px;
      color: var(--copper-dark);
      font-size: 20px;
    }

    .product-description {
      margin: 0;
      min-height: 68px;
      color: #47545e;
      font-size: 13px;
      line-height: 1.45;
    }

    .product-metrics {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 9px;
      margin-top: 13px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }

    .metric small,
    .metric strong {
      display: block;
    }

    .metric small {
      color: #899198;
      font-size: 9px;
    }

    .metric strong {
      margin-top: 4px;
      font-size: 10px;
    }

    .stars {
      color: var(--copper-dark);
      letter-spacing: 0.8px;
    }

    .product-footer {
      display: flex;
      justify-content: flex-end;
      padding: 11px 15px;
      border-top: 1px solid var(--border);
      background: #fdf7f2;
    }

    .details-link {
      color: var(--copper-dark);
      font-size: 12px;
      font-weight: 750;
    }

    /* Comparison / learning cards */

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 15px;
    }

    .resource-card {
      position: relative;
      min-height: 132px;
      overflow: hidden;
      padding: 20px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: linear-gradient(135deg, #fff, #f8f2ec);
    }

    .resource-card h3 {
      position: relative;
      z-index: 2;
      margin: 0 0 7px;
      font-size: 17px;
    }

    .resource-card p {
      position: relative;
      z-index: 2;
      max-width: 53%;
      margin: 0;
      color: #52606a;
      font-size: 12px;
      line-height: 1.45;
    }

    .resource-card a {
      position: relative;
      z-index: 2;
      display: inline-block;
      margin-top: 13px;
      color: var(--copper-dark);
      font-size: 12px;
      font-weight: 750;
    }

    .resource-image {
      position: absolute;
      right: 0;
      top: 0;
      width: 47%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      opacity: 0.94;
    }

    /* Personalization section */

    .personalization {
      margin-top: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: linear-gradient(90deg, #fff8f1, #f7e7da);
    }

    .personalization-top {
      display: grid;
      grid-template-columns: 1.4fr 0.8fr 1.15fr;
      gap: 15px;
      align-items: center;
      padding: 17px 18px;
    }

    .personalization-intro {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .personalization-logo {
      display: grid;
      place-items: center;
      width: 54px;
      height: 54px;
      flex: 0 0 54px;
      border-radius: 50%;
      background: #fff;
      color: var(--copper-dark);
      font-size: 28px;
    }

    .personalization-intro h2 {
      margin: 0;
      font-size: 21px;
    }

    .personalization-intro p {
      margin: 5px 0 0;
      color: #5e6b75;
      font-size: 12px;
    }

    .plan-button {
      min-height: 62px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 10px 16px;
      border: 1px solid #dcd6d0;
      border-radius: 11px;
      background: #fff;
      color: var(--green);
    }

    .plan-button strong,
    .plan-button small {
      display: block;
      text-align: left;
    }

    .plan-button strong {
      font-size: 13px;
    }

    .plan-button small {
      margin-top: 2px;
      color: #77818a;
      font-size: 10px;
    }

    .plan-button.premium {
      border: 0;
      background: linear-gradient(180deg, #b24c16, #9b3d0b);
      color: #fff;
    }

    .plan-button.premium small {
      color: rgba(255, 255, 255, 0.82);
    }

    /* Feature table */

    .comparison-table-wrap {
      overflow-x: auto;
      background: rgba(255, 255, 255, 0.68);
    }

    .comparison-table {
      width: 100%;
      min-width: 850px;
      border-collapse: collapse;
    }

    .comparison-table td {
      padding: 10px 18px;
      border-top: 1px solid #e7dfd8;
      vertical-align: middle;
      font-size: 12px;
    }

    .comparison-table td:first-child {
      width: 42%;
      color: #29322c;
      font-weight: 650;
    }

    .comparison-table td:nth-child(2) {
      width: 22%;
      text-align: center;
      background: rgba(232, 242, 241, 0.36);
    }

    .comparison-table td:nth-child(3) {
      width: 36%;
      background: rgba(253, 239, 229, 0.34);
    }

    .included {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #345c48;
      font-weight: 600;
    }

    .check {
      display: inline-grid;
      place-items: center;
      width: 17px;
      height: 17px;
      flex: 0 0 17px;
      border-radius: 50%;
      background: #3f7656;
      color: #fff;
      font-size: 11px;
      font-weight: 900;
    }

    .not-included {
      color: #5c6770;
      font-weight: 700;
    }

    .table-description {
      margin-left: 8px;
      color: #3f4b54;
      font-weight: 500;
    }

    .comparison-table .action-row td {
      padding-top: 16px;
      padding-bottom: 16px;
    }

    .table-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 46px;
      padding: 12px 22px;
      border-radius: 9px;
      font-weight: 750;
      text-align: center;
    }

    .free-table-button {
      border: 1px solid var(--teal);
      background: #fff;
      color: var(--teal);
    }

    .premium-table-button {
      border: 0;
      background: linear-gradient(180deg, #b34f1b, #9b3f0d);
      color: #fff;
    }

    /* Footer */

    .trust-footer {
      display: flex;
      justify-content: center;
      gap: 45px;
      flex-wrap: wrap;
      padding: 20px 20px 24px;
      color: #7c858d;
      font-size: 11px;
    }

    /* Responsive */

    @media (max-width: 1120px) {
      .hero {
        grid-template-columns: 1fr;
      }

      .symptom-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .browse-all {
        grid-column: span 2;
      }

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

      .personalization-top {
        grid-template-columns: 1fr 1fr;
      }

      .personalization-intro {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 760px) {
      .page {
        width: min(100% - 20px, 1480px);
      }

      .nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
      }

      .nav-link {
        flex: 0 0 auto;
      }

      .hero-left,
      .hero-right {
        padding: 25px 20px;
      }

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

      .assessment-banner {
        grid-template-columns: 46px 1fr;
      }

      .assessment-banner .primary-button {
        grid-column: 1 / -1;
      }

      .marketplace {
        padding: 18px 12px 0;
      }

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

      .browse-all {
        grid-column: 1 / -1;
      }

      .product-content {
        grid-template-columns: 105px 1fr;
      }

      .product-image {
        width: 90px;
      }

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

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

      .personalization-top {
        grid-template-columns: 1fr;
      }
    }

/* --- App-specific additions (not in the original mockup HTML) --- */

.symptom-card.selected {
  border-color: var(--copper);
  background: #fff8f2;
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  color: var(--gray);
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

.results-note {
  margin: 6px 0 18px;
  color: var(--gray);
  font-size: 14px;
}

.empty-products {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray);
  background: var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

/* Product detail page */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 36px;
  align-items: start;
  padding: 34px;
}

.detail-image-main img,
.detail-image-main .product-image-placeholder {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  object-fit: contain;
  max-height: 420px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail-info h1 {
  margin: 4px 0 10px;
  font-size: 30px;
}

.detail-brand {
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 13px;
}

.detail-description {
  color: var(--gray);
  line-height: 1.6;
  margin: 14px 0 20px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.visit-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--white);
  border: 0;
  border-radius: 12px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 16px;
}

.visit-button:hover {
  background: var(--copper-dark);
}

.back-to-marketplace {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 760px) {
  .detail-layout {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* Clear the app's fixed mobile bottom nav (shared header partial) */
@media (max-width: 767px) {
  .page {
    padding-bottom: 90px;
  }
}
