/* Tokens from the Mayowish farmer app (quick-app/src/lib/theme.ts) so the site and app look like one product. */
:root {
  --ground: #F6F4EC;
  --surface: #FFFFFF;
  --ink: #15231A;
  --ink-soft: #3F4F44;
  --muted: #5B6B60;
  --line: #E2DFD3;
  --line-soft: #EFEDE3;
  --brand: #1B5E3B;
  --brand-ink: #17582F;
  --brand-tint: #E3F0E7;
  --brand-on-dark: #D6EBDD;
  --gold: #F4B223;
  --gold-ink: #3A2500;
  --danger: #B3261E;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(21, 35, 26, .06), 0 8px 24px rgba(21, 35, 26, .08);
  --font: "Noto Sans Devanagari", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); }
/* Devanagari needs more line height than Latin for its matras. */
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--brand); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 14px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.1rem; line-height: 1.1;
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-btn-outline { background: transparent; color: var(--ink); }
.store-btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.store-btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.3rem; }
.brand img { height: 32px; width: auto; }
.brand-light { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--brand); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand); font-weight: 700; font-size: .95rem; }
.eyebrow-light { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--brand); margin-right: 6px; font-weight: 800; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -10% 8% -10%;
  background: radial-gradient(closest-side, rgba(244, 178, 35, .35), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(27, 94, 59, .25), transparent 70%);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 290px; padding: 12px;
  background: #0f1a13; border-radius: 42px;
  box-shadow: 0 30px 60px rgba(21, 35, 26, .3);
  transform: rotate(-3deg);
}
.phone-screen {
  background: var(--ground); border-radius: 32px; overflow: hidden;
  font-size: 12px; line-height: 1.35;
  padding-bottom: 14px;
}
.ph-top { display: flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; padding: 22px 14px 14px; }
.ph-top img { height: 22px; width: auto; }
.ph-loc { font-weight: 700; font-size: 12px; }
.ph-loc small { display: block; font-weight: 400; color: var(--brand-on-dark); font-size: 10px; }
.ph-search { margin: 10px 12px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.ph-banner { margin: 0 12px 10px; padding: 14px; border-radius: 12px; background: linear-gradient(120deg, var(--gold), #f7c95e); color: var(--gold-ink); }
.ph-banner strong { display: block; font-size: 15px; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px 10px; }
.ph-tiles div { background: var(--bg); color: var(--ink); padding: 14px 10px; border-radius: 10px; font-weight: 700; color: var(--ink); }
.ph-card { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line-soft); }
.ph-pack { width: 44px; height: 54px; border-radius: 8px; background: #E7F0DC; position: relative; flex: none; }
.ph-pack::after { content: ""; position: absolute; left: 12px; right: 12px; top: 10px; bottom: 10px; background: var(--brand); border-radius: 5px 5px 3px 3px; }
.ph-info { flex: 1; min-width: 0; }
.ph-info small { color: var(--muted); font-size: 10px; display: block; }
.ph-info span { display: block; }
.ph-info s { color: var(--muted); }
.ph-info em { font-style: normal; color: #17703A; font-weight: 700; }
.ph-add { background: var(--brand); color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.ph-tox { display: flex; gap: 4px; margin: 10px 12px 0; }
.ph-tox i { flex: 1; height: 5px; border-radius: 3px; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-dark { background: var(--brand); color: #fff; }
.section-dark h2 { color: #fff; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.prose { color: var(--ink-soft); font-size: 1.08rem; }
.prose strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stats b { display: block; font-size: 1.7rem; color: var(--brand); line-height: 1.1; }
.stats span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--ground); border-radius: var(--radius-lg); padding: 28px 24px; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem;
}

/* Divisions */
.divisions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.division { background: var(--bg); color: var(--ink); border-radius: var(--radius-lg); padding: 28px 24px; }
.division h3 { color: var(--ink); margin-bottom: 0; }
.division .sub { color: var(--ink); font-family: "Noto Sans", var(--font); font-weight: 600; font-size: .9rem; margin-bottom: 12px; opacity: .7; }
.division p:last-child { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.div-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: rgba(255,255,255,.7); }
.div-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.feature { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; }
.feature h3 { color: #fff; }
.feature p { color: var(--brand-on-dark); margin: 0; font-size: .98rem; }
.tox-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tox-legend span { color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

/* Service point flow */
.flow { display: flex; align-items: center; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.flow div { flex: 1; min-width: 120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.flow b { display: block; color: var(--brand); }
.flow span { font-size: .9rem; color: var(--muted); }
.flow i { font-style: normal; color: var(--gold); font-size: 1.4rem; font-weight: 800; }
.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout a { font-weight: 700; white-space: nowrap; }

/* Download */
.download { padding-top: 0; }
.download-card {
  display: flex; align-items: center; gap: 36px;
  background: linear-gradient(135deg, var(--brand) 0%, #124128 100%);
  color: #fff; border-radius: 32px; padding: 48px;
  position: relative; overflow: hidden;
}
.download-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(244, 178, 35, .18); }
.download-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 12px 30px rgba(0,0,0,.25); flex: none; position: relative; z-index: 1; }
.download-copy { position: relative; z-index: 1; }
.download-copy h2 { color: #fff; }
.download-copy p { color: var(--brand-on-dark); }
.download-copy .store-buttons { margin-bottom: 0; }
.soon-note { margin: 12px 0 0; font-weight: 600; color: var(--gold) !important; }

/* FAQ */
.faq { margin-top: 32px; }
.faq details { background: var(--ground); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.contact-list a { font-weight: 700; text-decoration: none; word-break: break-word; }
.ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-size: 1.2rem; flex: none; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { margin: 12px 0 0; max-width: 28em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--gold); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.site-footer .legal-links { gap: 8px 20px; }
.site-footer .legal-links a { color: rgba(255,255,255,.75); font-weight: 500; }
.site-footer .legal-links a[aria-current="page"] { color: var(--gold); }

/* Policy pages (privacy, terms, returns) */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.updated { color: var(--muted); font-size: .95rem; }
.summary { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 28px 0 8px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; }
.toc a:hover { text-decoration: underline; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; }
.contact-card p { margin: 0 0 .4em; }
.contact-card p:last-child { margin: 0; }
/* Details still to be filled in before launch; loud on purpose so none go live unnoticed. */
.fill { background: #FFF6D6; color: #6B4A00; border: 1px dashed #EBD58A; border-radius: 4px; padding: 0 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal th { background: var(--brand-tint); color: var(--brand-ink); }
.legal td { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1000px) {
  .steps, .divisions, .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 14px; min-height: 48px; }

  .hero { padding: 32px 0 56px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .download-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; width: auto; margin: 0 20px; }
  .download-icon { width: 88px; height: 88px; border-radius: 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  /* Restate padding: the .wrap rule above would otherwise zero its top and bottom. */
  .download-card { margin: 0 16px; border-radius: 24px; padding: 28px 20px; }
  .section { padding: 56px 0; }
  .steps, .divisions, .features { grid-template-columns: 1fr; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .phone { width: 260px; }
  .flow { flex-direction: column; align-items: stretch; }
  .toc { grid-template-columns: 1fr; }
  .legal { padding: 36px 0 56px; }
  .flow i { transform: rotate(90deg); align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
