/* ===== Design tokens ===== */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0.01 20);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.01 20);
  --primary: oklch(0.505 0.2 25);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.96 0.01 25);
  --secondary-foreground: oklch(0.4 0.18 25);
  --muted-foreground: oklch(0.5 0.02 25);
  --accent: oklch(0.93 0.06 85);
  --accent-foreground: oklch(0.3 0.05 60);
  --border: oklch(0.91 0.008 25);
  --radius: 0.75rem;
}

/* ===== Reset / base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 48rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.bg-base {
  background-color: var(--background);
}
.bg-soft {
  background-color: color-mix(in oklch, var(--secondary) 40%, var(--background));
}

.text-primary {
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Section heads ===== */
.section-head {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title.left {
  text-align: left;
}
.section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.section-lead.left {
  text-align: left;
}
@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, background-color 0.2s;
}
.btn-pill {
  border-radius: 9999px;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.25rem;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-outline {
  background-color: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover {
  background-color: color-mix(in oklch, var(--secondary) 60%, var(--background));
}
.btn-on-primary {
  background-color: var(--background);
  color: var(--primary);
}
.btn-on-primary:hover {
  background-color: color-mix(in oklch, var(--background) 90%, transparent);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* ===== Card ===== */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Check icon (css) ===== */
.check-ico {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.check-ico::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--primary);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.logo-primary,
.logo-dark {
  display: inline-block;
  letter-spacing: -0.06em;
}
.logo-dark {
  margin-left: -0.04em;
}
.logo-primary {
  color: var(--primary);
}
.logo-dark {
  color: var(--foreground);
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--foreground);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-cta {
  display: none;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.nav-mobile {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 1rem;
}
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a {
  display: block;
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.nav-mobile a:hover {
  background-color: color-mix(in oklch, var(--secondary) 50%, var(--background));
  color: var(--foreground);
}
.nav-mobile-cta {
  margin-top: 0.5rem;
}
.nav-mobile-cta a {
  text-align: center;
  color: var(--primary-foreground);
}
@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--background);
}
.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.hero-image-wrap {
  position: relative;
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2.5rem;
  background-color: var(--secondary);
}
.hero-image {
  margin: 0 auto;
  width: 100%;
  max-width: 32rem;
  object-fit: contain;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .hero-cta-row {
    flex-direction: row;
    width: auto;
  }
  .hero-title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .hero-title {
    font-size: 3.75rem;
  }
}

.ingredient-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--secondary) 50%, var(--background));
}
.ingredient-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.ingredient-bar-inner span {
  font-size: 0.875rem;
  font-weight: 500;
}
.ingredient-bar-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600 !important;
  color: var(--muted-foreground);
}

/* ===== Benefits ===== */
.benefits-grid {
  margin-top: 3.5rem;
}
.benefit-card {
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.benefit-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.benefit-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
}
.benefit-card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.benefit-card p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* ===== How it works ===== */
.how-grid {
  display: grid;
  gap: 3rem;
}
.results-card {
  margin-top: 2rem;
  padding: 1.5rem;
}
.results-title {
  font-size: 0.875rem;
  font-weight: 600;
}
.results-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.results-list li {
  display: flex;
  gap: 0.75rem;
}
.results-day {
  font-weight: 600;
  color: var(--primary);
}
.timeline {
  list-style: none;
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline li {
  position: relative;
}
.timeline-num {
  position: absolute;
  left: -42px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}
.timeline h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.timeline p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
  .how-intro {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}

/* ===== Ingredients ===== */
.ingredient-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--border);
}
.ingredient-cell {
  background-color: var(--card);
  padding: 1.75rem;
}
.ingredient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ingredient-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.tag {
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.ingredient-cell p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}
.ingredient-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .ingredient-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ingredient-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Safety ===== */
.safety-grid {
  display: grid;
  gap: 2rem;
}
.safety-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.safety-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
}
.safety-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--primary);
}
.safety-card h3 {
  font-weight: 600;
}
.safety-card p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.cautions-card {
  border-radius: 1rem;
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  background-color: color-mix(in oklch, var(--secondary) 50%, var(--background));
  padding: 1.5rem;
}
.cautions-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}
.cautions-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cautions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.alert-ico {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 9999px;
  border: 2px solid var(--primary);
}
.alert-ico::after {
  content: "!";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.cautions-note {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 1024px) {
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cautions-card {
    padding: 2rem;
  }
}

/* ===== Trust bar ===== */
.trustbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.trustbar .grid {
  gap: 2rem;
}
.trust-item {
  display: flex;
  gap: 1rem;
}
.trust-ico {
  position: relative;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: var(--secondary);
}
.trust-ico::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 7px;
  height: 13px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.trust-item h3 {
  font-weight: 600;
}
.trust-item p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Pricing ===== */
.pricing-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}
.price-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
}
.price-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.price-name {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
}
.price-image {
  margin-top: 1rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.price-body {
  margin-top: 1rem;
  text-align: center;
}
.price-old {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.price-old span {
  font-weight: 500;
  color: color-mix(in oklch, var(--foreground) 70%, transparent);
  text-decoration: line-through;
  text-decoration-color: var(--primary);
}
.price-amount {
  margin-top: 0.25rem;
  font-size: 2.25rem;
  font-weight: 700;
}
.price-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.price-total {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.price-perks {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.price-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
}
.perk-pill {
  border-radius: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.5rem;
  font-weight: 500;
}
.price-card .btn-block {
  margin-top: 1.5rem;
}
.price-foot {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .price-card.highlight {
    margin-top: -1rem;
    margin-bottom: 1rem;
  }
}

/* ===== Testimonials ===== */
.rating-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.stars {
  color: var(--primary);
  letter-spacing: 0.1em;
  font-size: 1rem;
}
.rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.testimonial-grid {
  margin-top: 3.5rem;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.testimonial blockquote {
  margin-top: 1rem;
  flex: 1;
}
.testimonial figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.testimonial figcaption strong {
  color: var(--foreground);
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
}
.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  font-family: inherit;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--primary);
}
.faq-icon::before {
  left: 50%;
  top: 2px;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
}
.faq-icon::after {
  top: 50%;
  left: 2px;
  height: 2px;
  width: 16px;
  transform: translateY(-50%);
}
.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted-foreground);
}
.faq-item.open .faq-a {
  display: block;
}

/* ===== Final CTA ===== */
.final-cta {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.final-cta-inner {
  text-align: center;
}
.final-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.final-cta p {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: color-mix(in oklch, var(--primary-foreground) 90%, transparent);
  text-wrap: pretty;
}
.final-cta .btn {
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .final-cta h2 {
    font-size: 2.25rem;
  }
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--background);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-nav a:hover {
  color: var(--foreground);
}
.footer-legal {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
