/* BuyFromKhet landing site — palette pulled directly from the app theme
   (mobile/src/theme.tsx, light mode). Keep these in sync with the app. */
:root {
  --bg: #FFFBF2;          /* warm cream background */
  --surface: #FFFFFF;     /* cards */
  --surface-alt: #FFF6E1; /* light beige */
  --border: #EAE1C6;      /* tan border */
  --text: #222222;
  --text-muted: #666666;
  --brand: #2E6B2E;       /* primary forest green */
  --brand-dark: #235023;  /* darker green */
  --pill: #EFE8D6;        /* language pill bg */
  --badge-yellow: #FFE9A8;
  --badge-yellow-fg: #8B6F00;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Mukta Mahee", "Noto Sans Gurmukhi", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Punjabi text uses a Gurmukhi-friendly font stack */
.pa, [lang="pa"] {
  font-family: "Mukta Mahee", "Noto Sans Gurmukhi", -apple-system, sans-serif;
}

/* --- language visibility: controlled by data-lang on <html> --- */
html[data-lang="en"] .lang-pa { display: none; }
html[data-lang="pa"] .lang-en { display: none; }

a { color: var(--brand-dark); }

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

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span b { color: var(--brand); }

/* Language toggle pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--pill);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  font: inherit;
  gap: 2px;
}
.lang-toggle .opt {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}
html[data-lang="en"] .lang-toggle .opt-en,
html[data-lang="pa"] .lang-toggle .opt-pa {
  background: var(--brand);
  color: #fff;
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}
.hero .logo-big {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 8px 24px var(--shadow);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  margin: 0 0 6px;
  letter-spacing: -1px;
  font-weight: 800;
}
.hero h1 b { color: var(--brand); }
.hero .tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--brand-dark);
  font-weight: 600;
  margin: 8px auto 22px;
  max-width: 640px;
}
.hero .desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.free-pill {
  display: inline-block;
  margin-top: 22px;
  background: var(--badge-yellow);
  color: var(--badge-yellow-fg);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------------- Screenshots / mockups ---------------- */
.shots {
  padding: 30px 0 50px;
}
.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 8px;
  font-weight: 800;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 36px;
}
.shot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: flex-start;
}
.shot {
  width: 250px;
  text-align: center;
}
.shot .caption {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

/* Phone frame */
.phone {
  width: 250px;
  height: 510px;
  background: var(--surface);
  border: 9px solid #1c1c1c;
  border-radius: 38px;
  box-shadow: 0 14px 40px var(--shadow);
  overflow: hidden;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.phone .notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 20px;
  background: #1c1c1c;
  border-radius: 0 0 14px 14px;
  z-index: 5;
}
.scr-head {
  background: var(--brand);
  color: #fff;
  padding: 26px 14px 12px;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scr-head .mini-pill {
  background: rgba(255,255,255,0.22);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.scr-body { padding: 12px; flex: 1; background: var(--bg); overflow: hidden; }

/* produce/farm cards inside mockup */
.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 10px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.m-thumb {
  width: 48px; height: 48px;
  border-radius: 9px;
  flex: none;
  background: linear-gradient(135deg, #8ec98e, var(--brand));
}
.m-thumb.t2 { background: linear-gradient(135deg, #f3c969, #e0972f); }
.m-thumb.t3 { background: linear-gradient(135deg, #e88f8f, #c25151); }
.m-thumb.t4 { background: linear-gradient(135deg, #9ad0a0, #4f9d5b); }
.m-lines { flex: 1; min-width: 0; }
.m-title { font-weight: 700; font-size: 13px; color: var(--text); }
.m-sub { font-size: 11px; color: var(--text-muted); }
.m-price { font-size: 12px; font-weight: 700; color: var(--brand); }
.m-tag {
  font-size: 10px; font-weight: 700;
  background: var(--surface-alt); color: var(--brand-dark);
  padding: 2px 7px; border-radius: 999px;
  display: inline-block; margin-top: 2px;
}

/* chat mockup */
.m-bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 12px;
  margin-bottom: 9px;
  line-height: 1.4;
}
.m-bubble.them { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.m-bubble.me { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }

/* big image hero in detail mockup */
.m-hero-img {
  height: 130px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8ec98e, var(--brand));
  margin-bottom: 10px;
}
.m-detail-title { font-weight: 800; font-size: 16px; margin: 2px 0; }
.m-btn {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 11px;
  margin-top: 10px;
}
.m-row { display: flex; gap: 6px; margin-top: 8px; }
.m-row .m-tag { margin: 0; }

/* ---------------- Store badges ---------------- */
.stores {
  padding: 20px 0 60px;
  text-align: center;
}
.badge-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1c1c1c;
  color: #fff;
  border-radius: 13px;
  padding: 12px 22px;
  min-width: 210px;
  text-decoration: none;
  position: relative;
  opacity: 0.92;
  cursor: default;
}
.store-badge .ic { width: 30px; height: 30px; flex: none; }
.store-badge .bt { text-align: left; line-height: 1.2; }
.store-badge .bt small { font-size: 11px; opacity: 0.85; display: block; }
.store-badge .bt strong { font-size: 18px; font-weight: 700; }
.store-badge .soon {
  position: absolute;
  top: -10px; right: -8px;
  background: var(--badge-yellow);
  color: var(--badge-yellow-fg);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------------- Footer ---------------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { color: var(--text-muted); font-size: 14px; }

/* ---------------- Legal pages ---------------- */
.legal {
  padding: 50px 0 70px;
}
.legal .container { max-width: 760px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--text-muted); margin: 0 0 30px; }
.legal-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  white-space: pre-wrap;
  font-size: 16px;
  box-shadow: 0 6px 20px var(--shadow);
}
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-dark);
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .brand span { font-size: 18px; }
}
