/* ReSet Global Styles - mobile-first, fast, accessible */
:root {
  /* Lychee light theme */
  --bg: #fff8f7;
  --bg-alt: #fff3f2;
  --surface: #ffffff;
  --text: #1b1d24;
  --muted: #5c6473;
  --primary: #ff6b8a; /* lychee pink */
  --primary-600: #e65878;
  --secondary: #76c98f; /* fresh leaf green */
  --accent: #ffd6a3; /* soft fruit tint */
  --danger: #e84e4e;
  --shadow: 0 8px 28px rgba(18, 22, 33, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 700px at 10% -10%, #ffe9ee 0%, transparent 60%),
              radial-gradient(800px 600px at 120% 0%, #e9fde8 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(10px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(18,22,33,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  letter-spacing: 0.2px;
}
/* Header brand set in Times New Roman and doubled in size */
.site-header .logo {
  font-family: "Times New Roman", Times, serif;
  font-size: 2em;
}
/* Remove background colors on the leading R block */
.site-header .logo .logo-mark {
  background: none;
  color: inherit;
  width: auto;
  height: auto;
  margin-right: 0;
  border-radius: 0;
  display: inline;
  font-weight: 700;
}
/* Match footer logo to header: no colorful background on the R */
.site-footer .logo .logo-mark {
  background: none;
  color: inherit;
  width: auto;
  height: auto;
  margin-right: 0;
  border-radius: 0;
  display: inline;
  font-weight: 700;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-radius: 8px;
  font-weight: 800;
}
.site-nav { display: flex; gap: 16px; align-items: center; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(18,22,33,0.12);
  color: var(--text);
  background: #ffffff;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(18,22,33,0.2); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border: none;
}
.btn-secondary { background: #ffffff; }
.btn-ghost { background: transparent; border-color: rgba(18,22,33,0.2); }
.btn-small { padding: 8px 12px; font-weight: 600; }
.btn-large { padding: 14px 22px; font-size: 18px; }

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 20px;
  min-height: 105vh;
  /* Background moved to ::before so it sits above the overlay */
  overflow: hidden; /* prevent subpixel gaps at edges on some mobile browsers */
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../productmain.png');
  background-size: cover; /* fully cover the hero */
  background-position: left calc(100% + 20px); /* shift down 20px so cap isn't at the top */
  background-repeat: no-repeat;
  z-index: 1; /* above overlay */
  pointer-events: none;
}
/* On small screens, re-center the background so the product stays in frame */
@media (max-width: 480px) {
  .hero::before {
    background-image: url('../../mobileversion.png');
    background-position: 50% 35%;
    inset: -1px; /* extend by 1px to avoid right-edge seam on some DPRs */
  }
}

/* Ultra-small phones: nudge a bit more left to keep product fully in frame */
@media (max-width: 380px) {
  .hero::before {
    background-image: url('../../mobileversion.png');
    background-position: 50% 35%;
    inset: -1px; /* extend by 1px to avoid right-edge seam on some DPRs */
  }
}

/* Ensure hero fully bleeds edge-to-edge on all mobile widths */
@media (max-width: 720px) {
  .hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hero::before {
    inset: -3px; /* slightly overextend to eliminate device-specific right gaps */
    background-size: cover;
    background-position: 50% 35%;
  }
  /* Add breathing room between logo and nav on mobile */
  .site-header .logo { margin-right: 12px; }
  .site-nav { margin-left: 8px; gap: 14px; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 32%, rgba(255,255,255,0.35) 58%, rgba(255,255,255,0.0) 82%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero .product-main { display: none; }
.hero-inner {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
/* Anchor-based bubble placements */
.anchor-lychee { position: relative; display: inline-block; z-index: 1; }
.anchor-fresh { position: relative; display: inline-block; z-index: 1; }
.anchor-how { position: relative; z-index: 1; }
.anchor-lychee .bubble,
.anchor-fresh .bubble,
.anchor-how .bubble { position: absolute; pointer-events: none; z-index: -1; }

/* b2 = green near left of L in Lychee */
.anchor-lychee .b2 {
  width: 18px; height: 18px;
  left: -14px; top: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #c9f8d8, #6ecf8b);
  filter: blur(0.2px);
  animation: float 8s ease-in-out infinite;
  transform: translateY(-1in);
}

/* b1 = pink above Fresh */
.anchor-fresh .b1 {
  width: 26px; height: 26px;
  left: 8px; top: -22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffd1dc, #ff8ca7);
  filter: blur(0.2px);
  animation: float 9s ease-in-out -2s infinite;
  transform: translateY(-1in);
}

/* b3 = orange to the right of "How it works" */
.anchor-how .b3 {
  width: 20px; height: 20px;
  right: -14px; top: -6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe6bf, #ffc48a);
  filter: blur(0.2px);
  animation: float 10s ease-in-out -4s infinite;
  transform: translateY(-1in);
}
.display {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px; line-height: 1.1; letter-spacing: -0.4px;
  margin: 0 0 12px 0;
}
.lead { font-size: 16px; color: var(--muted); margin: 0 0 16px 0; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }

.trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.trust-item {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18,22,33,0.05);
  color: var(--muted);
  font-size: 13px;
  border: 1px solid rgba(18,22,33,0.08);
}

.hero-art {
  position: relative;
  min-height: 240px;
}
.bubble { position: absolute; border-radius: 999px; filter: blur(6px); opacity: 0.8; }
.bubble.b1 { width: 180px; height: 180px; left: 2%; top: 20px; background: radial-gradient(circle at 30% 30%, #ffd1dc, #ff8ca7); animation: float 8s ease-in-out infinite; }
.bubble.b2 { width: 120px; height: 120px; left: 10%; top: 0; background: radial-gradient(circle at 30% 30%, #c9f8d8, #6ecf8b); animation: float 10s ease-in-out -2s infinite; }
.bubble.b3 { width: 90px; height: 90px; left: 20%; top: 140px; background: radial-gradient(circle at 30% 30%, #ffe6bf, #ffc48a); animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-10px)} }

.pouch {
  position: absolute; right: 10%; bottom: 10px;
  padding: 16px 20px; border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(18,22,33,0.12);
  box-shadow: var(--shadow);
  font-weight: 700; letter-spacing: 0.5px;
}

/* Product imagery */
.product-main, .product-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(18,22,33,0.15);
  background: #fff;
}

/* Sections */
.section { padding: 36px 0; }
.section.alt { background: linear-gradient(180deg, rgba(18,22,33,0.03), rgba(18,22,33,0.02)); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
.center { text-align: center; }

h2 { font-size: 26px; margin: 0 0 10px 0; letter-spacing: -0.2px; }
h3 { font-size: 18px; margin: 0 0 6px 0; }

.card {
  background: var(--surface);
  border: 1px solid rgba(18,22,33,0.12);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: stretch; position: relative; overflow: hidden; }
.stat { text-align: center; display: flex; flex-direction: column; justify-content: center; padding: 10px 6px; gap: 4px; }
.stat-num { font-size: 26px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; color: transparent; }
.stat-icon { font-size: 24px; line-height: 1; }
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 160px at 10% 10%, rgba(255, 107, 138, 0.08), transparent 60%),
              radial-gradient(180px 120px at 90% 80%, rgba(118, 201, 143, 0.08), transparent 60%);
  pointer-events: none;
}
.stat-label { color: var(--muted); font-size: 12.5px; }

.features .feature { min-height: 100px; }

.quote { font-style: italic; position: relative; }
.quote cite { display: block; margin-top: 8px; color: var(--muted); font-style: normal; font-size: 13px; }

.cta-wide .btn { margin-top: 4px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(18,22,33,0.08); padding: 28px 0; background: rgba(255,255,255,0.7); }
.footer-grid { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.footer-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-legal { color: var(--muted); }

/* Product page */
.product-hero { padding: 36px 0 10px; }
.price { font-size: 22px; font-weight: 800; }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.subtotal { margin-left: auto; font-weight: 700; background: rgba(18,22,33,0.06); padding: 6px 10px; border-radius: 999px; color: #1b1d24; }
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(18,22,33,0.05); border: 1px solid rgba(18,22,33,0.14); color: var(--muted); font-size: 13px; }
.badge { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #0a0d1c; padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.stack { display: grid; gap: 12px; }
.qty { display: grid; gap: 8px; align-items: center; justify-self: start; }
.qty label { font-weight: 700; font-size: 14px; }
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 44px;
  padding: 0 10px;
  width: max-content;
  border: 1px solid rgba(18,22,33,0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18,22,33,0.08);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.qty-controls:focus-within {
  border-color: rgba(230, 88, 120, 0.6);
  box-shadow: 0 0 0 3px rgba(230, 88, 120, 0.25), 0 10px 28px rgba(18,22,33,0.12);
}
.qty-controls .btn {
  width: 25px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-600);
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
/* Align the plus sign to the far right within its bubble */
.qty-controls .qty-increase {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.qty-controls .btn:hover { background: rgba(18,22,33,0.05); }
.qty-controls .btn:active { transform: scale(0.96); }
.qty-controls input {
  width: 46px;
  height: 44px;
  text-align: center;
  padding: 0 8px;
  border: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: #1b1d24;
}
/* Remove number input spinners */
.qty-controls input::-webkit-outer-spin-button,
.qty-controls input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-controls input[type=number] { -moz-appearance: textfield; }
@media (min-width: 720px) {
  .qty-controls { height: 48px; padding: 0 10px; }
  .qty-controls .btn { width: 29px; height: 48px; font-size: 22px; }
  .qty-controls input { width: 58px; height: 48px; font-size: 20px; }
}

/* Extra-small mobile optimizations */
@media (max-width: 400px) {
  .display { font-size: 32px; }
  .lead { font-size: 15px; }
  .price { font-size: 20px; }
  .subtotal { font-size: 12px; padding: 4px 8px; }
  .btn-large { font-size: 16px; padding: 12px 18px; }
  .qty label { font-size: 13px; }
  .qty-controls { height: 42px; padding: 0 8px; }
  .qty-controls .btn { height: 42px; font-size: 18px; }
  .qty-controls input { height: 42px; font-size: 17px; }
}

.k-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.product-hero-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
.product-left, .product-right { padding: 14px; }
.product-combined { padding: 0; overflow: hidden; }
.product-combined .product-left { padding: 18px; }
.product-combined .product-right { padding: 18px; }
.k-panel { padding: 14px; border-radius: var(--radius); border: 1px solid rgba(18,22,33,0.12); background: rgba(255,255,255,0.8); }
.k-list { margin: 8px 0 0; padding-left: 18px; }
.k-list li { margin: 4px 0; }

.nutrition { width: 100%; border-collapse: collapse; }
.nutrition th, .nutrition td { border: 1px solid rgba(18,22,33,0.12); padding: 8px; text-align: left; }
.nutrition th { background: rgba(18,22,33,0.04); }

/* FAQ */
.accordion { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(18,22,33,0.12); }
.accordion-item + .accordion-item { border-top: 1px solid rgba(255,255,255,0.1); }
.accordion-trigger { width: 100%; text-align: left; background: rgba(18,22,33,0.04); color: var(--text); padding: 12px; border: none; font-size: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.accordion-panel { padding: 12px; color: var(--muted); display: none; background: rgba(18,22,33,0.03); }
.accordion-item[aria-expanded="true"] .accordion-panel { display: block; }

/* Contact */
form { display: grid; gap: 10px; }
input, textarea { background: #ffffff; border: 1px solid rgba(18,22,33,0.12); color: var(--text); padding: 10px 12px; border-radius: 10px; font: inherit; width: 100%; }
textarea { resize: vertical; max-width: 100%; }
label { font-weight: 600; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-backdrop[aria-hidden="false"] { display: flex; }
.modal { background: #fff; color: #1b1d24; width: min(520px, 92vw); border-radius: 16px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.modal header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal h3 { margin: 0; font-size: 20px; }
.modal p { margin: 8px 0 12px; color: #4b5565; }
.modal .actions { display: flex; gap: 8px; align-items: center; }
.modal .close { background: transparent; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: #666; }
.modal .field { display: grid; gap: 6px; margin: 8px 0 12px; }
.modal .hint { font-size: 12px; color: #6b7280; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (min-width: 720px) {
  .hero { padding: 74px 0 24px; min-height: 110vh; }
  .hero::before { background-position: left calc(100% + 20px); }
  .display { font-size: 54px; }
  .lead { font-size: 18px; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .hero-copy { transform: translate(-54px, 60px); }
  .bubbles-left { margin-left: -12px; width: 260px; height: 300px; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr auto auto; }
  .product-hero-grid { grid-template-columns: 0.9fr 1.1fr; }
  /* Shrink product right content to content width so qty doesn't extend past CTA */
  .product-right .stack { display: inline-grid; max-width: 100%; }
  .product-right .price-row,
  .product-right .trust { width: max-content; }
}

/* Use mobile hero image for tablets (iPad, Surface, similar touch devices) */
@media (min-width: 721px) and (max-width: 1368px) and (pointer: coarse) {
  .hero::before {
    background-image: url('../../mobileversion.png');
    background-size: cover;
    background-position: 50% 35%;
    inset: -2px;
  }
  /* Prevent hero text from being cut off on the left on tablets */
  .hero-copy {
    transform: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


