/* Only Food — v7 "Trust" landing page. Self-contained: does not load /style.css. */
:root {
  --leaf: #1f5a3d;
  --leaf-dark: #154530;
  --leaf-soft: #e8f1ea;
  --turmeric: #d99a1b;
  --turmeric-soft: #fbf0d6;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #1c2620;
  --ink-2: #47554c;
  --line: #e4ddd0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 38, 32, .06), 0 8px 24px rgba(28, 38, 32, .07);
  --font: 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--leaf); }
del { color: #8a8f8b; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.nowrap { white-space: nowrap; }

/* ---------- Offer bar & header ---------- */
.offer-bar {
  background: var(--leaf-dark);
  color: #f3efe4;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  line-height: 1.5;
}
.offer-bar del { color: #b9c7bd; }
.offer-bar strong { color: #ffd77a; font-size: 15px; }

.header { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; font-family: Georgia, 'Times New Roman', serif; }
.logo span { color: var(--turmeric); }
.logo-sm { font-size: 20px; }
.header-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--leaf); }
.header-secure svg { width: 18px; height: 18px; fill: var(--leaf-soft); stroke: var(--leaf); stroke-width: 1.6; stroke-linejoin: round; }
.header-secure .tick { fill: none; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn-primary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--leaf);
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--leaf-dark), 0 10px 22px rgba(31, 90, 61, .25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary:hover, .button:hover { background: #246a47; }
.btn-primary:active, .button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--leaf-dark), 0 4px 10px rgba(31, 90, 61, .2); }
.btn-primary:focus-visible, .button:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }
.button[disabled], .btn-primary[disabled] { opacity: .75; cursor: progress; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 28px; padding-top: 8px; padding-bottom: 36px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa866; box-shadow: 0 0 0 4px rgba(47, 168, 102, .18); flex: none; }
.hero h1 { font-size: 25px; font-weight: 800; color: var(--ink); }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--turmeric-soft) 58%); color: var(--leaf); padding: 0 2px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 34px; font-size: 17px; color: var(--ink-2); font-weight: 500; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%231f5a3d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.hero .btn-primary { width: 100%; }
.cta-sub { text-align: center; font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.cta-sub strong { color: var(--ink); }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pay-row img { width: 44px; height: 26px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px; }

.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { padding: 12px 16px; font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 18px; padding-bottom: 18px; }
.trust-grid div { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
.trust-grid div + div { border-left: 1px solid var(--line); }
.trust-grid strong { font-size: 20px; font-weight: 800; color: var(--leaf); line-height: 1.3; }
.trust-grid span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Generic sections ---------- */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-tint { background: var(--leaf-soft); }
.section-head { margin-bottom: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 6px; }
.section h2, .form-title { font-size: 23px; font-weight: 800; }
.lead { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }

/* Who it's for */
.for-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.for-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.for-card p { font-size: 15px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.ic-sugar { background: #fdecec; }
.ic-bp { background: #fdf0f3; }
.ic-weight { background: var(--turmeric-soft); }
.ic-chol { background: #ecf2fb; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: 14px; padding: 18px 16px; box-shadow: var(--shadow); }
.step-no { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--leaf); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px; }
.steps h3 { font-size: 17px; font-weight: 700; }
.steps p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* Portal preview */
.portal { display: grid; gap: 28px; }
.portal-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.portal-points li { padding-left: 16px; border-left: 3px solid var(--turmeric); font-size: 15.5px; color: var(--ink-2); }
.portal-points strong { color: var(--ink); }
.device { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.device-bar { background: #f3f0e8; border-bottom: 1px solid var(--line); padding: 10px 14px; font-size: 13px; color: var(--ink-2); font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.device-bar .lock { font-family: var(--font); }
.lessons { list-style: none; margin: 0; padding: 6px 0; }
.lessons li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 11px 14px; font-size: 14.5px; line-height: 1.55; border-bottom: 1px dashed var(--line); }
.lessons li:last-child { border-bottom: 0; }
.lessons .day { font-size: 12px; font-weight: 800; color: var(--leaf); background: var(--leaf-soft); border-radius: 6px; padding: 3px 0; text-align: center; height: fit-content; }
.lessons .more { background: var(--turmeric-soft); font-weight: 600; grid-template-columns: 1fr; }
.lessons .more .day { background: var(--turmeric); color: #fff; width: fit-content; padding: 3px 10px; }

/* What you get */
.get-grid { display: grid; gap: 14px; }
.get-card { background: var(--paper); border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.get-main { border: 2px solid var(--leaf); box-shadow: var(--shadow); }
.get-card h3 { font-size: 19px; font-weight: 800; margin: 10px 0 6px; }
.get-card p { font-size: 15.5px; color: var(--ink-2); }
.get-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--leaf); color: #fff; border-radius: 999px; padding: 3px 12px; }
.get-tag-bonus { background: var(--turmeric); }

/* Member messages */
.chat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: thin;
}
.chat-rail img { scroll-snap-align: start; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #efe7dc; }
.chat-rail:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.rail-hint { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.quotes { display: grid; gap: 14px; margin-top: 28px; }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.quote-tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--leaf); background: var(--leaf-soft); border-radius: 999px; padding: 3px 12px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.75; }
.quote figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.quote figcaption strong { font-size: 15.5px; }
.quote figcaption small { font-size: 13px; color: var(--ink-2); }
.initial { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; overflow: hidden; }
.c1 { background: #1f5a3d; } .c2 { background: #a4572a; } .c3 { background: #2f5d8a; } .c4 { background: #7a5a12; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- Checkout ---------- */
.join-section { background: linear-gradient(180deg, var(--leaf-soft), var(--cream)); padding: 48px 0; }
.join-grid { display: grid; gap: 18px; }
.plan-card { background: var(--leaf); color: #f4f1e8; border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow); }
.plan-tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .05em; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 12px; }
.plan-price { margin-top: 14px; display: flex; align-items: baseline; gap: 12px; }
.plan-price del { font-size: 22px; color: #a9c2b2; }
.plan-price strong { font-size: 46px; font-weight: 800; color: #fff; line-height: 1.1; }
.plan-sub { font-size: 14.5px; color: #d6e3da; margin-top: 4px; }
.plan-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan-perks li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; }
.plan-perks li::before { content: '✔'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #ffd77a; color: var(--leaf-dark); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }

.join-form { background: var(--paper); border-radius: 20px; padding: 24px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.form-title { font-size: 20px !important; margin-bottom: 4px; }
.preview-notice { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.join-form label { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.join-form input {
  width: 100%; height: 54px; border: 1.5px solid #cfc7b8; border-radius: 12px; padding: 0 14px;
  font-family: var(--font); font-size: 17px; color: var(--ink); background: #fff; outline: none; -webkit-appearance: none; appearance: none;
}
.join-form input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(31, 90, 61, .14); }
.phone-input { display: flex; align-items: stretch; height: 54px; border: 1.5px solid #cfc7b8; border-radius: 12px; overflow: hidden; background: #fff; }
.phone-input:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(31, 90, 61, .14); }
.phone-input .country-code { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f6f3ec; border-right: 1.5px solid #e2dbcd; font-weight: 700; font-size: 16px; color: var(--ink); }
.india-flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.phone-input input { border: 0 !important; height: 100% !important; border-radius: 0; box-shadow: none !important; flex: 1; min-width: 0; }
.field-hint { font-size: 13px; color: var(--ink-2); margin: 6px 0 16px; }
.join-form .btn-primary { margin-top: 4px; }
.pay-row-center { margin-top: 14px; }
.payment-note { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.after-pay { margin-top: 16px; background: var(--leaf-soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; }
.after-pay ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); }
/* Elements payment.js appends to the form */
.join-form [role=status] { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--leaf-dark); }
.join-form [role=status]:empty { display: none; }
.join-form > a.button, .join-form > button.button { margin-top: 12px; width: 100%; }
.join-form > a.button[hidden], .join-form > button[hidden] { display: none !important; }

/* ---------- Support ---------- */
.support-card { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.support-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--turmeric-soft); display: grid; place-items: center; font-size: 24px; }
.support-card h2 { font-size: 19px !important; }
.support-card p { font-size: 15.5px; color: var(--ink-2); margin-top: 6px; }
.support-mail { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 16px; word-break: break-all; }

/* ---------- FAQ ---------- */
.faq { padding-top: 8px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 700; font-size: 16px; line-height: 1.55; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-size: 20px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 16px 16px; font-size: 15.5px; color: var(--ink-2); }
.faq-cta { width: 100%; margin-top: 14px; }

/* ---------- Sticky bar ---------- */
.mobile-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28, 38, 32, .1);
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-sticky-bar.show { transform: translateY(0); }
.sticky-price { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-price strong { font-size: 21px; font-weight: 800; }
.sticky-price small { font-size: 12px; color: var(--ink-2); }
.button-sticky { background: var(--leaf); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 10px; padding: 12px 16px; white-space: nowrap; flex: none; }

/* ---------- Footer & policy pages (rendered by app.js) ---------- */
.site-footer { background: var(--ink); color: #c9d1cb; padding: 32px 0 96px; margin-top: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; }
.site-footer a { color: #e7ece8; font-size: 14px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: #fff; }
.footer-mail { font-size: 14px; }
.policy { padding-top: 24px; padding-bottom: 48px; max-width: 760px; }
.policy h1 { font-size: 26px; margin: 12px 0 16px; }
.policy p { margin-bottom: 14px; color: var(--ink-2); }
.policy .back { font-weight: 700; text-decoration: none; }
.policy .draft { display: none; }
dialog#preview-dialog { border: 0; border-radius: 16px; padding: 24px; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .hero h1 { font-size: 32px; }
  .for-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chat-rail { grid-auto-columns: 40%; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .get-grid { grid-template-columns: 1fr 1fr; }
  .hero .btn-primary { width: auto; }
  .cta-sub, .hero .pay-row { text-align: left; justify-content: flex-start; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 56px; }
  .hero h1 { font-size: 38px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section h2 { font-size: 30px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .portal { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .chat-rail { grid-auto-columns: calc(25% - 9px); margin: 0; padding-left: 2px; padding-right: 2px; }
  .rail-hint { display: none; }
  .join-section { padding: 72px 0; }
  .join-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; }
  .faq { max-width: 820px; }
  .mobile-sticky-bar { display: none; }
  .site-footer { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
