:root {
  --green: #0f5d3f;
  --green-dark: #0a3a2a;
  --yellow: #ffc700;
  --orange: #d94b31;
  --ink: #1c2520;
  --muted: #66736b;
  --line: #e7e7e7;
  --soft: #f4f6f7;
  --cream: #fbf7ef;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(16, 34, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }

.site-header {
  height: 74px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4ba3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 70px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid var(--yellow);
  border-radius: 999px;
  color: var(--green);
  background: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
  font-size: 0.78rem;
}

.site-nav a {
  position: relative;
  padding: 28px 0 24px;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--yellow);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: var(--yellow);
}

.nav-cta,
.primary-action,
.secondary-action,
.product-footer a {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 4px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-cta,
.primary-action,
.product-footer a {
  color: #101a15;
  background: var(--yellow);
}

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

.secondary-action.light {
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 392px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-image: url("/assets/market_place/market-place-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  z-index: -1;
  background: rgba(8, 76, 48, 0.72);
}

.hero-content {
  width: min(760px, calc(100% - 28px));
  padding-top: 12px;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
}

.hero-copy {
  margin: 0 auto 24px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 72px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.slider-dots .active-dot {
  background: var(--yellow);
}

.quick-strip {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-strip div {
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.quick-strip div:last-child { border-right: 0; }
.quick-strip strong,
.quick-strip span { display: block; }
.quick-strip strong { color: var(--green); font-size: 0.9rem; }
.quick-strip span { color: var(--muted); font-size: 0.78rem; }

.section-inner,
.shop-section,
.cycle-section,
.pricing-section,
.why-section,
.checkout-section,
.final-cta {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 14px;
}

.promise {
  background: var(--cream);
}

.shop-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 14px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
}

.shop-hero h1 {
  max-width: 680px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 0.98;
}

.shop-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.shop-summary {
  padding: 18px;
  display: grid;
  gap: 5px;
  border-top: 4px solid var(--yellow);
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.shop-summary strong {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-summary span {
  font-size: 1.1rem;
  font-weight: 700;
}

.shop-summary small {
  color: rgba(255, 255, 255, 0.74);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.section-kicker {
  margin-bottom: 10px;
  color: #d99a32;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise h2,
.pricing-copy h2,
.checkout-panel h2,
.final-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  font-weight: 500;
}

.promise p,
.pricing-copy p,
.checkout-panel p,
.final-cta p {
  color: var(--muted);
}

.section-title {
  margin-bottom: 24px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 6px;
  color: #3b3b3b;
  font-size: 1.95rem;
  font-weight: 400;
}

.section-title span {
  display: block;
  width: 34px;
  height: 2px;
  margin: 0 auto 8px;
  background: var(--yellow);
}

.section-title p {
  margin-bottom: 0;
  color: #707070;
  font-size: 0.84rem;
}

.shop-section,
.cycle-section,
.why-section {
  background: var(--soft);
}

.compact-shop {
  min-height: calc(100vh - 260px);
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.product-image {
  height: 132px;
  background-position: center;
  background-size: cover;
}

.stew-pack { background-image: url("/assets/market_place/farm-yatch-stew-pack.png"); }
.family-pack { background-image: url("/assets/market_place/farm-yatch-family-pack.png"); }
.topup-pack { background-image: url("/assets/market_place/farm-yatch-topup-pack.png"); }

.product-body {
  padding: 17px 18px 16px;
}

.product-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: #777;
  font-size: 0.68rem;
}

.product-meta span:first-child::before {
  content: "●";
  margin-right: 5px;
  color: var(--green);
}

.product-meta span:last-child::before {
  content: "▥";
  margin-right: 5px;
  color: #2b8ee8;
}

.product-card h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
}

.product-card p {
  min-height: 58px;
  margin-bottom: 16px;
  color: #666;
  font-size: 0.82rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-label {
  display: inline;
  margin-right: 4px;
  color: var(--green);
  font-size: 0.78rem;
}

.product-footer strong {
  color: #0074ff;
  font-size: 0.98rem;
}

.product-footer a {
  min-height: 34px;
  padding: 0 18px;
  font-size: 0.72rem;
}

.order-strip {
  margin-top: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.order-strip strong,
.order-strip span { display: block; }
.order-strip span { color: var(--muted); font-size: 0.86rem; }

.cycle-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cycle-step,
.why-grid article {
  min-height: 174px;
  padding: 22px 18px;
  text-align: center;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(16, 34, 27, 0.08);
}

.cycle-step strong,
.why-grid strong {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #fff4c9;
  font-size: 0.95rem;
}

.cycle-step h3,
.why-grid h3 {
  color: #034ea8;
  font-size: 1.08rem;
  font-weight: 400;
}

.cycle-step p,
.why-grid p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.82rem;
}

.pricing-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
  background: var(--white);
}

.price-panel {
  padding: 20px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.price-row span,
.price-panel p { color: rgba(255, 255, 255, 0.76); }
.price-row strong { font-size: 1.1rem; }
.price-row.total strong { color: var(--yellow); font-size: 1.35rem; }
.price-panel p { margin: 14px 0 0; font-size: 0.82rem; }

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

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

.checkout-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: center;
  padding: 26px;
  background: var(--cream);
  border-radius: 6px;
}

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

.checkout-steps span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: var(--green);
  background: var(--white);
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-strip {
  background: var(--green-dark);
}

.trust-grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  color: var(--white);
}

.trust-grid strong,
.trust-grid span { display: block; }
.trust-grid strong { color: var(--yellow); font-size: 0.94rem; }
.trust-grid span { color: rgba(255, 255, 255, 0.78); font-size: 0.82rem; }

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: var(--white);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
  }

  .site-nav a { padding: 8px 0; }
  .site-nav a.active::after,
  .site-nav a:hover::after { bottom: 3px; }

  .hero { min-height: 360px; }
  .hero-actions { margin-bottom: 42px; }

  .quick-strip,
  .shop-hero,
  .product-grid,
  .cycle-list,
  .why-grid,
  .trust-grid,
  .promise-grid,
  .pricing-section,
  .checkout-panel,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pricing-section,
  .shop-hero,
  .final-cta {
    display: grid;
  }

  .order-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: stretch;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 112px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .nav-cta {
    width: 100%;
  }
}
