/* Shared styles for goal-specific landing pages (lose-weight.html / gain-weight.html) */

:root {
  --cream: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #5C5F5D;
  --green-900: #15382B;
  --green-700: #23624A;
  --green-600: #2C7558;
  --green-300: #9DC8B4;
  --green-100: #E4F0E9;
  --red-soft: #CF5A4A;
  --red-100: #FBEAE6;
  --line: #E5E9E6;
  --wa: #25D366;
  --wa-deep: #1DAA50;
  --shadow-sm: 0 1px 2px rgba(21, 56, 43, .06), 0 6px 18px rgba(21, 56, 43, .06);
  --shadow: 0 14px 36px rgba(21, 56, 43, .13);
  --shadow-lg: 0 26px 60px rgba(21, 56, 43, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Playfair (high stroke-contrast display serif) reserved for large display sizes only —
   its hairlines blur below ~22px on low-DPI screens (ch03). */
h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}

/* h3s all render <22px here, so set them in the body sans for crisp small-size rendering (ch03). */
h3 {
  font-family: "Poppins", sans-serif;
  color: var(--green-900);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.005em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 22px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none;
  touch-action: manipulation;
}

/* Pressed feedback for touch — :hover never fires on tap, so taps would otherwise feel dead. */
.btn:active { transform: scale(.97); opacity: .94; }

.btn svg { width: 22px; height: 22px; flex: none; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, .34);
  width: 100%;
}

.btn-wa:hover {
  transform: translateY(-2px);
  background: var(--wa-deep);
  box-shadow: 0 16px 30px rgba(37, 211, 102, .42);
}

.btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 11px; width: auto; min-height: 44px; }

.btn-big { font-size: 18px; padding: 18px 22px; }
.btn-big svg { width: 24px; height: 24px; }

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(21, 56, 43, .08);
}

header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 34px; width: auto; }

.brand b {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-900);
  line-height: 1;
  display: block;
}

.brand small {
  font-size: 9.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 22px 0 30px;
  background: radial-gradient(70% 60% at 50% -10%, rgba(157, 200, 180, .35), transparent 60%), radial-gradient(50% 50% at 92% 0%, rgba(35, 98, 74, .10), transparent 60%);
}

.hero .eyebrow { margin-bottom: 9px; }

.hero h1 { font-size: clamp(27px, 7vw, 38px); margin-bottom: 12px; }

.hero .sub { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }

/* ---- Form card ---- */
.formcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

.formcard h3 { font-size: 20px; margin-bottom: 3px; }
.formcard .fsub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 15px; }

.reassure {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.reassure svg { width: 16px; height: 16px; color: var(--wa); flex: none; margin-top: 2px; }

/* ---- Ticks ---- */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }

.tick { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; font-size: 14.5px; }

.tick .ic {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

.tick .ic svg { width: 13px; height: 13px; }

/* ---- Stats ---- */
.stats {
  background: var(--green-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Warm highlight from the top adds depth so the band isn't a flat slab (ch06 foreground/background, ch09 warm/cool). */
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 95% at 50% 0%, rgba(157, 200, 180, .20), transparent 65%);
  pointer-events: none;
}

.stat-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 4px;
  padding: 30px 0;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}

.stat-ic {
  height: 30px;
  color: var(--green-300);
  display: grid;
  place-items: center;
}

.stat-ic svg { width: 26px; height: 26px; }
.stat-ic.stars svg { width: auto; height: 18px; }

.stat b {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  line-height: 1;
}

.stat span {
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-300);
  font-weight: 600;
}

/* ---- Sections ---- */
section.blk { padding: 42px 0; }
.shead { margin-bottom: 24px; }
.shead .eyebrow { color: var(--green-600); margin-bottom: 8px; }
.shead h2 { font-size: clamp(23px, 5.5vw, 30px); }
.shead p { font-size: 15.5px; color: var(--ink-soft); margin: 8px 0 0; }

.alt { background: var(--green-100); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 13px;
}

.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }

.step .n {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 13px;
}

.quote .stars { color: var(--green-600); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.quote p { font-size: 14.5px; margin: 0 0 10px; }
.quote .result {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 7px;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.quote .who { font-weight: 700; font-size: 13.5px; color: var(--green-900); }

.t-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 2px 18px 14px;
  margin: 0 -18px;
}

.t-scroll .quote { flex: 0 0 auto; width: 260px; scroll-snap-align: start; margin-bottom: 0; }
.t-scroll::-webkit-scrollbar { height: 6px; }
.t-scroll::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: 3px; }

/* ---- Food gallery ---- */
.food-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 18px 16px;
  margin: 0 -18px;
}

.food-row::-webkit-scrollbar { height: 6px; }
.food-row::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: 3px; }

.food-slot {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  height: 172px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--green-100), var(--paper));
  scroll-snap-align: start;
  display: grid;
  place-items: center;
}

.food-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.food-slot img.miss { display: none; }

.food-ph {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-700);
  opacity: .6;
}

/* ---- Problem / agitation list ---- */
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }

.problem-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.problem-item .ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-soft);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  font-weight: 800;
  font-size: 13px;
}

.problem-flip {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 26px 22px 28px;
  border-radius: 18px;
  background: var(--green-900);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.problem-flip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 90% at 50% 0%, rgba(157, 200, 180, .22), transparent 65%);
  pointer-events: none;
}

.flip-badge {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-700);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(157, 200, 180, .14);
}

.flip-badge svg { width: 24px; height: 24px; color: #fff; }

.problem-flip p {
  position: relative;
  margin: 0 auto;
  max-width: 32ch;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
}

.problem-flip p span { color: var(--green-300); }

.flip-kicker {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--green-300);
}

/* ---- About / authority section ---- */
.about-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.about-row .photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--green-100);
}

.about-row .photo img { width: 100%; height: 100%; object-fit: cover; }

.about-row h3 { font-size: 19px; margin-bottom: 4px; }
.about-row .role { font-size: 13px; color: var(--green-600); font-weight: 700; margin-bottom: 6px; }
.about-row p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.cred-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.5px;
  font-weight: 600;
}

.cred-list .ic {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

.cred-list .ic svg { width: 13px; height: 13px; }

/* ---- Urgency banner ---- */
.urgency {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-100);
  border: 1.5px solid var(--green-300);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 22px 0 0;
}

.urgency .ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 14px;
}

.urgency p { margin: 0; font-size: 14px; font-weight: 700; color: var(--green-900); }
.urgency p span { font-weight: 500; color: var(--ink-soft); }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--green-900);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--green-600);
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

.faq .a { padding: 0 18px 15px; color: var(--ink-soft); font-size: 14.5px; }

.cta-block { text-align: center; padding: 18px 0 4px; }

/* ---- Final ---- */
.final {
  background: var(--green-900);
  color: #fff;
  text-align: center;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(157, 200, 180, .22), transparent 60%);
}

.final .wrap { position: relative; }
.final h2 { color: #fff; font-size: clamp(24px, 6vw, 32px); margin-bottom: 10px; }
.final p { color: rgba(255, 255, 255, .82); font-size: 15.5px; margin: 0 auto 20px; max-width: 36ch; }

/* ---- Footer ---- */
footer {
  position: relative;
  overflow: hidden;
  background: #11271E;
  color: rgba(255, 255, 255, .66);
  padding: 26px 0 90px;
  font-size: 13px;
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(157, 200, 180, .12), transparent 62%);
  pointer-events: none;
}

footer .wrap { position: relative; }

footer a { color: rgba(255, 255, 255, .82); margin: 0 4px; display: inline-block; padding: 6px 6px; }

footer .disc { margin-top: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .45); line-height: 1.6; }

/* ---- Sticky mobile bar ---- */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 16px rgba(21, 56, 43, .12);
}

.reveal { opacity: 0; transform: translateY(14px); transition: .45s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media(prefers-reduced-motion:reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- Larger screens ---- */
@media(min-width:780px) {
  .wrap { max-width: 1000px; }

  .hero .inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: start;
  }

  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 46px; }
  .formcard { padding: 26px 24px; }

  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid3 .card { margin-bottom: 0; }

  .stat-row { grid-template-columns: repeat(4, 1fr); padding: 40px 0; }
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }

  .stickybar { display: none; }

  section.blk { padding: 64px 0; }

  .about-row { grid-template-columns: 200px 1fr; padding: 26px; }
}

/* ====================================================================
   ADDED: conversion components
==================================================================== */

/* ---- Deal-clarity chips (under the hero CTA) ---- */
.deal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 0;
}

.deal li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 999px;
  padding: 5px 11px;
}

.deal li::before {
  content: "✓";
  font-size: 11px;
  color: var(--green-600);
}

/* ---- Guarantee badge ---- */
.guarantee {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--paper);
  border: 1.5px solid var(--green-300);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  margin: 18px 0 0;
}

.guarantee .ic {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
}

.guarantee .ic svg { width: 22px; height: 22px; }
.guarantee p { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.guarantee p b { color: var(--green-900); }

/* ---- Sample plan ---- */
.sample {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--green-900);
  color: #fff;
  padding: 13px 18px;
}

.sample-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sample-kcal {
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 4px 11px;
}

.sample-meals { list-style: none; margin: 0; padding: 6px 18px; }

.sample-meals li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.sample-meals li:last-child { border-bottom: 0; }
.sample-meals .m { font-weight: 800; font-size: 13px; color: var(--green-700); text-transform: uppercase; letter-spacing: .03em; }
.sample-meals .d { font-size: 14.5px; color: var(--ink); }

.sample-note {
  background: var(--green-100);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  text-align: center;
}

/* Screenshot slot for a real plan / WhatsApp grab */
.shot {
  position: relative;
  border: 1.5px dashed var(--green-300);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--paper));
  min-height: 220px;
  display: grid;
  place-items: center;
}

.shot img { width: 100%; display: block; }
.shot.miss img { display: none; }
.shot.miss { padding: 28px 22px; }
.shot-ph {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  text-align: center;
  max-width: 30ch;
  line-height: 1.5;
}
.shot.miss .shot-ph { display: block; }

/* ---- Testimonial faces ---- */
.quote .who {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
}

.quote .ava {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 17px;
  overflow: hidden;
}

.quote .ava img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote .who b { display: block; font-size: 13.5px; color: var(--green-900); line-height: 1.2; }
.quote .who small { font-size: 12px; color: var(--ink-soft); }

/* ---- Payment methods strip ---- */
.pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}

.pay > span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .03em; }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Each chip shows the brand name; if its logo image loads, the image covers the chip. */
.pay-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 78px;
  padding: 0 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.pay-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px 11px;
  background: #fff;
  border-radius: 9px;
}
