/* Besok Diet marketing site styles. Layered on top of tokens.css */

html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { background: var(--bg); color: var(--ink-900); overflow-x: hidden; }

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.container--narrow {
  max-width: 760px;
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s-6); }
}

/* ============================================================
   Site header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 245, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  /* Vertical-only padding — horizontal padding comes from .container so
     it stays consistent with the rest of the page grid. Using the shorthand
     `padding: var(--s-4) 0` here would clobber .container's horizontal
     padding and slam the icon + CTA into the viewport edges. */
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}
@media (max-width: 480px) {
  .site-header__inner {
    padding-top: var(--s-3);
    padding-bottom: var(--s-3);
  }
  .brand__mark { width: 30px; height: 30px; box-shadow: 0 4px 10px rgba(31, 138, 91, 0.18); }
  .brand__name { font-size: 16px; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-900);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: block;
  /* The icon SVG provides its own gradient + glyph */
  box-shadow: 0 6px 14px rgba(31, 138, 91, 0.22);
}
.brand__name {
  font: var(--text-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
@media (max-width: 720px) {
  /* On mobile, only the brand and the primary CTA show in the header.
     "Bantuan" lives in the footer; section anchors are already on the page. */
  .site-nav a:not(.btn) { display: none; }
  .site-nav { gap: var(--s-3); }
}
.site-nav a {
  color: var(--ink-700);
  font: var(--text-body);
  font-weight: 600;
}
.site-nav a:hover { color: var(--green-700); text-decoration: none; }

@media (max-width: 720px) {
  .site-nav .site-nav__link--hide-sm { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font: var(--text-body-l);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green-600);
  color: white;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--green-700); }

.btn--ghost {
  background: white;
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
}
.btn--ghost:hover { border-color: var(--ink-300); }

.btn--sm { padding: 9px 14px; font: var(--text-body); font-weight: 700; }
@media (max-width: 480px) {
  .btn--sm { padding: 8px 12px; font-size: 13px; }
}

/* "Coming soon" pill */
.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--amber-300);
  color: var(--ink-900);
  font: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: var(--s-16) 0 var(--s-12);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 880px) {
  .hero { padding: var(--s-8) 0 var(--s-6); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-8); }
}
@media (max-width: 480px) {
  .hero { padding: var(--s-6) 0 var(--s-5); }
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn { width: 100%; }
}
.hero__title {
  font: var(--text-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: var(--s-4) 0 var(--s-5);
}
.hero__title em {
  color: var(--green-600);
  font-style: normal;
}
.hero__sub {
  font: var(--text-body-l);
  font-size: 18px;
  color: var(--ink-600);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 var(--s-6);
}
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center;
}
.hero__fine {
  margin-top: var(--s-4);
  font: var(--text-caption);
  color: var(--ink-500);
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.blob--amber { width: 320px; height: 320px; background: var(--amber-300); top: -80px; right: -60px; }
.blob--green { width: 280px; height: 280px; background: var(--green-200); bottom: -100px; left: -100px; }
.hero__grid, .hero > .container { position: relative; z-index: 1; }

/* Phone mockup */
.phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: var(--ink-900);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 881px) {
  .phone { aspect-ratio: 9 / 19; max-width: 320px; }
}
@media (max-width: 480px) {
  .phone { max-width: 280px; border-radius: 36px; }
  .phone__notch { width: 90px; height: 22px; }
  .phone__screen { border-radius: 26px; }
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: var(--ink-900);
  border-radius: 14px;
  z-index: 2;
}
.phone__mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 44px 18px 18px;
}
.phone__greet { font: var(--text-caption); color: var(--ink-500); }
.phone__hello { font: var(--text-h2); }
.phone__ring-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.phone__ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 12px solid var(--ink-100);
  border-top-color: var(--green-500);
  border-right-color: var(--green-500);
  display: grid; place-items: center;
  transform: rotate(-45deg);
}
.phone__ring-inner { transform: rotate(45deg); text-align: center; }
.phone__ring-num { font: var(--text-h1); font-size: 32px; font-weight: 800; color: var(--ink-900); }
.phone__ring-lbl { font: var(--text-micro); color: var(--ink-500); margin-top: 2px; }

.phone__meal {
  background: white;
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.phone__meal-thumb {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--amber-400), var(--green-500));
}
.phone__meal-name { font: var(--text-body); font-weight: 700; }
.phone__meal-meta { font: var(--text-micro); color: var(--ink-500); margin-top: 2px; }
.phone__meal-kcal {
  margin-left: auto;
  font: var(--text-h3);
  font-weight: 800;
  color: var(--green-700);
}

/* ============================================================
   Features
   ============================================================ */

.section { padding: var(--s-12) 0; }
@media (max-width: 480px) {
  .section { padding: var(--s-8) 0; }
  .blob--amber { width: 220px; height: 220px; }
  .blob--green { width: 200px; height: 200px; }
}
.section__eyebrow {
  font: var(--text-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--s-3);
}
.section__title {
  font: var(--text-h1);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  color: var(--ink-900);
}
.section__sub {
  font: var(--text-body-l);
  color: var(--ink-600);
  margin: 0 0 var(--s-8);
  max-width: 620px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: white;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 22px;
}
.feature__title { font: var(--text-h3); font-weight: 800; }
.feature__body { font: var(--text-body); color: var(--ink-600); line-height: 1.6; }

/* ============================================================
   How it works
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: white;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px; left: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-600);
  color: white;
  display: grid; place-items: center;
  font: var(--text-h3);
  font-weight: 800;
  box-shadow: var(--shadow-brand);
}
.step__title { font: var(--text-h3); font-weight: 800; margin: var(--s-3) 0 var(--s-2); }
.step__body { font: var(--text-body); color: var(--ink-600); line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: white;
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-xs);
}
.faq summary {
  font: var(--text-body-l);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px;
  color: var(--ink-400);
  font-weight: 400;
}
.faq details[open] summary::after { content: '−'; }
.faq details > div {
  font: var(--text-body);
  color: var(--ink-600);
  margin-top: var(--s-3);
  line-height: 1.65;
}

/* ============================================================
   CTA strip
   ============================================================ */

.cta-strip {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: white;
  border-radius: var(--r-2xl);
  padding: var(--s-10) var(--s-8);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--s-4);
  margin: var(--s-12) auto;
}
@media (max-width: 480px) {
  .cta-strip { padding: var(--s-8) var(--s-5); margin: var(--s-8) auto; }
  .cta-strip .btn { width: 100%; }
}
.cta-strip h2 {
  font: var(--text-h1);
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0;
  color: white;
}
.cta-strip p { font: var(--text-body-l); margin: 0; opacity: 0.92; max-width: 540px; }
.cta-strip .btn--primary { background: white; color: var(--green-700); box-shadow: none; }
.cta-strip .btn--primary:hover { background: var(--ink-50); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--ink-100);
  background: white;
  padding: var(--s-8) 0;
  margin-top: var(--s-8);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } }

.site-footer__col h4 {
  font: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin: 0 0 var(--s-3);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer__col a { color: var(--ink-700); font: var(--text-body); }
.site-footer__col a:hover { color: var(--green-700); }
.site-footer__brand { font: var(--text-body); color: var(--ink-500); margin: var(--s-3) 0 0; max-width: 320px; line-height: 1.55; }
.site-footer__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-100);
  font: var(--text-caption);
  color: var(--ink-500);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
}

/* ============================================================
   Legal / long-form page
   ============================================================ */

.legal {
  padding: var(--s-10) 0 var(--s-16);
}
.legal h1 {
  font: var(--text-h1);
  font-size: clamp(32px, 4.5vw, 44px);
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}
.legal .updated {
  font: var(--text-caption);
  color: var(--ink-500);
  margin-bottom: var(--s-6);
}
.legal h2 {
  font: var(--text-h2);
  margin: var(--s-8) 0 var(--s-3);
  color: var(--ink-900);
}
.legal p, .legal li {
  font: var(--text-body-l);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  margin: 0 0 var(--s-3);
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--green-700); text-decoration: underline; }
