/* Tatva landing — warm/luxury palette, Fraunces + Manrope */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #F8F4ED;
  --bg-warm: #F2EADF;
  --bg-card: #FFFDF8;
  --ink: #2A1F18;
  --ink-soft: #5A4A3E;
  --ink-muted: #8B7B6E;
  --accent: #B8794A;
  --accent-deep: #8C5631;
  --accent-soft: #D9A57C;
  --gut: #C28968;
  --liver: #9B7048;
  --sugar: #6B8E5A;
  --green-good: #5A7A4A;
  --amber: #C28A3A;
  --red-bad: #A14A3A;
  --border: #E8DECF;
  --border-soft: #F0E8DC;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.serif { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.01em; }
.italic { font-style: italic; }

/* nav */
.nav { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Mobile-specific tweaks (added after launch — the original layout
   left the nav links crowded and the store badges too wide on small
   phones like iPhone SE / SE2). */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .store-badge { min-width: 0; flex: 1 1 auto; justify-content: center; padding: 12px 16px; }
  .store-row { width: 100%; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .section-title { font-size: clamp(28px, 7vw, 36px); }
  .compare-table th, .compare-table td { padding: 10px 6px; }
  .qr-card { padding: 20px; }
}

/* hero */
.hero { padding: 50px 0 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 40px; padding: 30px 0 40px; } }
.hero-text .eyebrow { display: inline-block; padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 24px; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero-text > p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); margin-bottom: 32px; max-width: 540px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 460px; margin-left: auto; border-radius: var(--radius); }

/* cta */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; transition: all 0.18s; cursor: pointer; border: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(42,31,24,0.28); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card); color: var(--ink); }
.btn-disabled { background: var(--bg-warm); color: var(--ink-muted); cursor: not-allowed; border: 1px dashed var(--border); }

/* store badges */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; background: var(--ink); color: var(--bg); border-radius: 14px; min-width: 180px; transition: transform 0.15s, box-shadow 0.15s; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(42,31,24,0.28); color: var(--bg); }
.store-badge .icon { font-size: 28px; line-height: 1; }
.store-badge .label-row { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .label-row .top { font-size: 10px; opacity: 0.75; letter-spacing: 0.04em; }
.store-badge .label-row .bot { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; }
.store-badge.coming { background: var(--bg-warm); color: var(--ink-muted); border: 1px dashed var(--border); cursor: not-allowed; }
.store-badge.coming:hover { transform: none; box-shadow: none; color: var(--ink-muted); }

/* download / QR */
.download { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.download-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 800px) { .download-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; } .download-grid .store-row { justify-content: center; } }
.qr-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.qr-box { width: 200px; height: 200px; margin: 0 auto 16px; background: repeating-conic-gradient(var(--ink) 0% 25%, var(--bg) 0% 50%) 50% / 24px 24px; border-radius: 12px; border: 6px solid var(--bg); box-shadow: inset 0 0 0 1px var(--border); position: relative; opacity: 0.18; }
.qr-card .placeholder-label { display: inline-block; padding: 6px 12px; background: var(--bg-warm); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.qr-card h3 { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 6px; }
.qr-card p { font-size: 13px; color: var(--ink-muted); }
.final-cta .store-badge { background: var(--bg); color: var(--ink); }
.final-cta .store-badge:hover { color: var(--ink); }
.final-cta .store-badge.coming { background: rgba(248,244,237,0.1); color: rgba(248,244,237,0.6); border: 1px dashed rgba(248,244,237,0.25); }
.final-cta .store-badge.coming:hover { color: rgba(248,244,237,0.6); }

/* trust strip */
.trust { display: flex; gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-good); }

/* sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.section-title { font-family: 'Fraunces', serif; font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.section-title em { font-style: italic; color: var(--accent-deep); }
.section-sub { color: var(--ink-soft); font-size: 18px; }

/* pillars deep */
.pillars { background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar { padding: 32px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-soft); }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; margin-bottom: 18px; color: white; }
.pillar-icon.gut { background: var(--gut); }
.pillar-icon.liver { background: var(--liver); }
.pillar-icon.sugar { background: var(--sugar); }
.pillar h3 { font-family: 'Fraunces', serif; font-size: 24px; margin-bottom: 8px; }
.pillar .signal { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; font-weight: 500; }
.pillar p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.pillar .example { background: var(--bg-warm); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-soft); border-left: 3px solid currentColor; }
.pillar.gut .example { border-color: var(--gut); }
.pillar.liver .example { border-color: var(--liver); }
.pillar.sugar .example { border-color: var(--sugar); }

/* feature row alternating */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border-soft); }
.feature-row:last-of-type { border-bottom: none; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-mock { order: 1; }
@media (max-width: 860px) { .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; } .feature-row.reverse .feature-text, .feature-row.reverse .feature-mock { order: initial; } }
.feature-text .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.feature-text h2 { font-family: 'Fraunces', serif; font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; letter-spacing: -0.015em; line-height: 1.15; }
.feature-text > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 10px 0; color: var(--ink-soft); font-size: 15px; padding-left: 26px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 18px; width: 14px; height: 2px; background: var(--accent); }

/* phone mockup */
.phone { width: 100%; max-width: 320px; margin: 0 auto; background: var(--ink); border-radius: 40px; padding: 14px; box-shadow: 0 30px 80px rgba(42,31,24,0.18); }
.phone-screen { background: var(--bg); border-radius: 28px; padding: 22px 18px; min-height: 580px; }
.phone-statusbar { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink); font-weight: 600; margin-bottom: 18px; }

/* meal verdict mock */
.mock-meal-photo { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #D4A574 0%, #8C5631 100%); border-radius: var(--radius-sm); margin-bottom: 14px; position: relative; overflow: hidden; }
.mock-meal-photo::after { content: '🍛'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 56px; }
.mock-verdict-banner { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; background: linear-gradient(135deg, #E8B97A 0%, #C28A3A 100%); color: white; }
.mock-verdict-banner .label { font-size: 11px; opacity: 0.85; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.mock-verdict-banner .verdict { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.mock-pillar-row { display: flex; gap: 8px; padding: 10px 12px; background: var(--bg-card); border-radius: 10px; margin-bottom: 6px; font-size: 12px; align-items: center; border: 1px solid var(--border-soft); }
.mock-pillar-row .dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-pillar-row .dot.amber { background: var(--amber); }
.mock-pillar-row .dot.green { background: var(--green-good); }
.mock-pillar-row .dot.red { background: var(--red-bad); }
.mock-pillar-row .name { font-weight: 600; color: var(--ink); flex: 1; }
.mock-pillar-row .why { color: var(--ink-muted); font-size: 11px; }
.mock-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.mock-macro { background: var(--bg-card); padding: 8px 6px; border-radius: 8px; text-align: center; border: 1px solid var(--border-soft); }
.mock-macro .v { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink); font-weight: 500; }
.mock-macro .k { font-size: 9px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* chat mock */
.mock-chat-header { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 14px; color: var(--ink); }
.mock-msg { padding: 12px 14px; border-radius: 16px; font-size: 13px; margin-bottom: 10px; max-width: 88%; line-height: 1.5; }
.mock-msg.user { background: var(--ink); color: var(--bg); margin-left: auto; border-bottom-right-radius: 4px; }
.mock-msg.bot { background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--ink-soft); border-bottom-left-radius: 4px; }

/* weekly insight mock */
.mock-insight-hero { background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%); padding: 22px; border-radius: var(--radius-sm); color: white; margin-bottom: 14px; }
.mock-insight-hero .week { font-size: 11px; opacity: 0.8; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.mock-insight-hero .headline { font-family: 'Fraunces', serif; font-size: 22px; line-height: 1.2; font-weight: 500; }
.mock-insight-body { padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-soft); font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.55; }
.mock-swap { padding: 14px; background: var(--bg-warm); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink); border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; }
.mock-swap .arrow { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent-deep); font-size: 20px; line-height: 1; }
.mock-swap .swap-label { font-size: 10px; color: var(--accent-deep); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }

/* comparison table */
.compare-wrap { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 18px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.compare-table th { background: var(--bg-warm); font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; color: var(--ink); }
.compare-table th.tatva { background: var(--ink); color: var(--bg); }
.compare-table td.tatva { background: rgba(184,121,74,0.06); color: var(--ink); font-weight: 600; }
.compare-table td { color: var(--ink-soft); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--green-good); font-weight: 700; }
.compare-table .no { color: var(--ink-muted); }
.compare-table .feat { font-weight: 600; color: var(--ink); }
@media (max-width: 720px) { .compare-table { font-size: 12px; } .compare-table th, .compare-table td { padding: 12px 8px; } }

/* conditions strip */
.conditions { background: var(--bg-warm); }
.condition-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 700px; margin: 0 auto; }
.chip { padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--ink); font-weight: 500; }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
.faq-item h3 { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.faq-item p { color: var(--ink-soft); font-size: 15px; }

/* final cta */
.final-cta { text-align: center; padding: 100px 0; background: var(--ink); color: var(--bg); }
.final-cta h2 { font-family: 'Fraunces', serif; font-size: clamp(34px, 5vw, 52px); margin-bottom: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.final-cta h2 em { color: var(--accent-soft); font-style: italic; }
.final-cta p { color: rgba(248,244,237,0.7); font-size: 18px; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { background: var(--bg); color: var(--ink); }
.final-cta .btn-ghost { color: var(--bg); border-color: rgba(248,244,237,0.3); }
.final-cta .btn-ghost:hover { background: rgba(248,244,237,0.06); color: var(--bg); }
.final-cta .btn-disabled { background: rgba(248,244,237,0.1); color: rgba(248,244,237,0.5); border: 1px dashed rgba(248,244,237,0.2); }

/* footer */
.footer { padding: 50px 0 36px; text-align: center; background: var(--ink); color: rgba(248,244,237,0.6); border-top: 1px solid rgba(248,244,237,0.08); }
.footer a { color: rgba(248,244,237,0.85); }
.footer a:hover { color: var(--bg); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 18px; font-size: 14px; flex-wrap: wrap; }
.footer p { font-size: 13px; }

/* doc pages */
.doc { padding: 60px 0 120px; max-width: 720px; }
.doc h1 { font-family: 'Fraunces', serif; font-size: 44px; margin-bottom: 8px; letter-spacing: -0.01em; }
.doc .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-family: 'Fraunces', serif; font-size: 24px; margin: 40px 0 16px; color: var(--accent-deep); }
.doc h3 { font-size: 17px; margin: 24px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
