/* Launch-page chrome, tuned for light. The chat app inside #app keeps its own look (app.css). */
:root {
  --lp-bg: #ffffff; --lp-ink: #26215c; --lp-ink-2: #4a4580; --lp-muted: #6b6790; --lp-line: #e7e5f4; --lp-soft: #f6f5fd;
  --lp-accent: #534ab7; --lp-accent-hover: #463ea0; --lp-on-accent: #ffffff; --lp-hl: #fac775; --lp-hl-ink: #26215c;
  --lp-bar: rgba(255, 255, 255, .94); --lp-band: #26215c;
  --lp-shadow: 0 30px 60px -28px rgba(38, 33, 92, .38), 0 12px 24px -16px rgba(38, 33, 92, .22);
  --lp-radius: 20px; --lp-gutter: 16px; --lp-max: 1200px;
  --kirana-bg: #faeeda; --kirana-ink: #633806; --realty-bg: #e6f1fb; --realty-ink: #0c447c;
  --jobs-bg: #eeedfe; --jobs-ink: #3c3489; --custom-bg: #fbeaf0; --custom-ink: #72243e;
  --card-example: rgba(255, 255, 255, .72);
}
@media (prefers-color-scheme: dark) {
  :root {
    --lp-bg: #14122a; --lp-ink: #eeedfe; --lp-ink-2: #c9c6ec; --lp-muted: #9c98c6; --lp-line: #2c2950; --lp-soft: #1b1838;
    --lp-accent: #8f87f0; --lp-accent-hover: #a59ef4; --lp-on-accent: #14122a; --lp-bar: rgba(20, 18, 42, .94); --lp-band: #2c2950;
    --lp-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
    --kirana-bg: #3d2a0e; --kirana-ink: #faeeda; --realty-bg: #0f2c4d; --realty-ink: #e6f1fb;
    --jobs-bg: #2a2660; --jobs-ink: #eeedfe; --custom-bg: #4a1a2d; --custom-ink: #fbeaf0;
    --card-example: rgba(0, 0, 0, .22);
  }
}
body { background: var(--lp-bg); color: var(--lp-ink); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.wrap { max-width: var(--lp-max); margin: 0 auto; padding-left: var(--lp-gutter); padding-right: var(--lp-gutter); }
section[id], #app { scroll-margin-top: 76px; }
::selection { background: var(--lp-hl); color: var(--lp-hl-ink); }
.hero-title, .sec-title, .step-title, .cta-band .cta-q { text-wrap: balance; }
.hero-sub, .bc-try, .step-body, .faq-a, .privacy { text-wrap: pretty; }

/* Focus: page chrome rings in the accent (the chat app keeps its own ring). */
.site-top :focus-visible, .hero :focus-visible, .demo-head :focus-visible, .how :focus-visible, .faq :focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 3px; }
.site-foot :focus-visible { outline: 2px solid var(--lp-hl); outline-offset: 3px; }

/* Top bar: brand, links, language toggle, WhatsApp CTA. Two rows under 768 px. */
.site-top { background: var(--lp-bar); border-bottom: 1px solid var(--lp-line); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--lp-ink); text-decoration: none; border-radius: 8px; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--lp-accent); }
.brand-mark path { fill: none; stroke: var(--lp-hl); stroke-width: 3; stroke-linecap: round; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.top-links { display: flex; gap: 20px; }
.top-links a { color: var(--lp-ink-2); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 6px; transition: color .15s; }
.top-links a:hover { color: var(--lp-accent); }
.lang { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lp-bg); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lang-btn { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--lp-muted); transition: background .15s, color .15s; }
.lang-btn:hover { color: var(--lp-ink); }
.lang-btn[aria-pressed="true"] { background: var(--lp-accent); color: var(--lp-on-accent); }
.cta-q { margin: 0; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px;
  background: var(--lp-accent); color: var(--lp-on-accent); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, transform .12s; }
.btn-cta:hover { background: var(--lp-accent-hover); }
.btn-cta:active { transform: scale(.98); }
.btn-cta svg { width: 20px; height: 20px; }
.cta-short { display: none; }
.list-foot .btn-cta, .owner-foot .btn-cta { width: 100%; white-space: normal; background: var(--lp-accent); color: var(--lp-on-accent); }
.list-foot .btn-cta:hover, .owner-foot .btn-cta:hover { background: var(--lp-accent-hover); }
@media (max-width: 767.98px) {
  .top-row { gap: 0 14px; }
  .top-links { order: 3; gap: 16px; }
  .top-links, .top-cta { margin-top: 8px; }
  .top-cta { order: 4; margin-left: auto; min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .top-cta .cta-long { display: none; }
  .top-cta .cta-short { display: inline; }
  /* Brand + language always share row 1; links + CTA start row 2. */
  .top-row::after { content: ""; order: 2; flex-basis: 100%; }
}
/* Small phones: the Hinglish links + CTA cannot share a row, so the CTA gets its own full-width row in both languages. */
@media (max-width: 519.98px) { .top-cta { flex: 1 1 100%; margin-left: 0; } }
@media (max-width: 419.98px) { .brand-mark { display: none; } .lang-btn { padding: 5px 10px; font-size: 12.5px; } }
@media (min-width: 1024px) { :root { --lp-gutter: 32px; } body { font-size: 17px; } .site-top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); } }

/* The paid-QR banner sits at page level, inset like the page content (the phone overlay hides it). */
.demo-banner { width: calc(100% - 2 * var(--lp-gutter)); max-width: calc(var(--lp-max) - 2 * var(--lp-gutter)); margin: 12px auto 0; border-radius: 12px; }

/* Hero: headline with highlighter, sub line, 4 bot cards; tilted preview phone on desktop. */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero-title { margin: 0; max-width: 16ch; font-size: clamp(34px, 2.6vw + 24px, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; color: var(--lp-ink); }
/* The highlighted phrase always starts its own line, in both languages. */
.hero-title > span:first-child { display: block; }
.hl { background: linear-gradient(180deg, transparent 58%, var(--lp-hl) 58%, var(--lp-hl) 92%, transparent 92%); color: inherit; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl em { font-style: italic; }
/* Dark: light ink cannot sit on amber, so the mark becomes a full block with the highlighter's own ink. */
@media (prefers-color-scheme: dark) { .hl { background: var(--lp-hl); color: var(--lp-hl-ink); border-radius: .08em; padding: 0 .1em; } }
.hero-sub { margin: 16px 0 0; max-width: 52ch; font-size: 18px; line-height: 1.5; color: var(--lp-ink-2); }
.bot-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.bot-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 0; border-radius: var(--lp-radius); text-align: left; cursor: pointer; }
.bot-card[data-bot="kirana"] { background: var(--kirana-bg); color: var(--kirana-ink); }
.bot-card[data-bot="realty"] { background: var(--realty-bg); color: var(--realty-ink); }
.bot-card[data-bot="jobs"] { background: var(--jobs-bg); color: var(--jobs-ink); }
.bot-card[data-bot="custom"] { background: var(--custom-bg); color: var(--custom-ink); }
.bot-card:hover { box-shadow: inset 0 0 0 2px currentColor; }
.bot-card:focus-visible { outline-offset: 3px; }
.bc-top { display: flex; align-items: center; gap: 10px; }
.bot-card .avatar[data-bot] { background: var(--card-example); }
.bc-name { font-weight: 600; font-size: 17px; }
.bc-try { font-size: 15px; line-height: 1.4; }
.bc-example { align-self: stretch; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--card-example); font-size: 14.5px; font-style: italic; }
.bc-go { margin-top: auto; font-weight: 600; font-size: 14.5px; }
.hero-phone { display: none; }
@media (min-width: 600px) { .bot-cards { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 56px; }
  .hero-sub { font-size: 19px; }
  .hero-phone { display: flex; justify-content: center; }
}
.pv-device { width: 300px; height: 600px; padding: 10px; border-radius: 46px; background: linear-gradient(150deg, #3a3466 0%, #1a1733 40%, #24204a 100%); box-shadow: var(--lp-shadow); transform: rotate(-4deg); }
.pv-screen { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 37px; background-color: var(--wa-wall); background-image: var(--wa-doodle); background-size: 170px 170px; }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 30px 14px 12px; background: var(--wa-head); color: #fff; }
.pv-name { display: block; font-weight: 600; font-size: 14.5px; }
.pv-status { display: block; font-size: 12px; color: var(--wa-head-sub); }
.pv-thread { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; overflow: hidden; transition: opacity .4s; }
.pv-thread.is-fading { opacity: 0; }
.pv-msg { display: flex; }
.pv-msg.out { justify-content: flex-end; }
.pv-bubble { max-width: 84%; padding: 7px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; color: var(--wa-ink); background: var(--wa-in); box-shadow: var(--shadow-1); }
.pv-msg.out .pv-bubble { background: var(--wa-out); }
.pv-sheet { align-self: center; display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: var(--lp-hl); color: var(--lp-hl-ink); font-size: 12.5px; font-weight: 600; }
.pv-sheet-ic { width: 14px; height: 14px; border-radius: 3px; background: #1f9d6b; }
@media (prefers-reduced-motion: no-preference) {
  .pv-device { animation: rock 6s ease-in-out infinite alternate; }
  .pv-msg, .pv-sheet { animation: pop .24s cubic-bezier(.2, .9, .3, 1.15) both; }
  @keyframes rock { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(-3deg) translateY(-6px); } }
  .bot-card { transition: transform .18s ease, box-shadow .18s ease; }
  .bot-card:hover { transform: translateY(-2px); }
  .bot-card:active { transform: translateY(0) scale(.99); }
  .bc-go { transition: transform .18s ease; }
  .bot-card:hover .bc-go { transform: translateX(3px); }
}

/* Live demo section around the v1 app */
.demo { padding: 56px 0; background: var(--lp-soft); }
.demo-head { text-align: center; }
.sec-title { margin: 0; font-size: clamp(26px, 1.4vw + 20px, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; color: var(--lp-ink); }
.demo-line { margin: 8px 0 0; font-size: 17px; color: var(--lp-ink-2); }
/* The button's class is not "demo-open": that is the overlay state class on <html> (app.css). */
.open-demo-btn { margin-top: 20px; }
@media (min-width: 1024px) { .demo { padding: 72px 0 96px; } .demo-head { margin-bottom: 28px; } .open-demo-btn { display: none; } }

/* How it works */
.how { padding: 56px 0; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.how-step { padding: 22px; border-radius: var(--lp-radius); background: var(--lp-soft); }
.step-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--lp-bg); color: var(--lp-accent); box-shadow: inset 0 0 0 1px var(--lp-line); }
.step-ic svg { width: 26px; height: 26px; }
.step-title { margin: 14px 0 6px; font-size: 19px; font-weight: 600; }
.step-body { margin: 0; line-height: 1.5; color: var(--lp-ink-2); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .how { padding: 96px 0; } }

/* FAQ accordion (native details/summary) */
.faq { padding: 56px 0; background: var(--lp-soft); }
.faq-wrap { max-width: 820px; }
.faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq-item { border-radius: 16px; background: var(--lp-bg); box-shadow: inset 0 0 0 1px var(--lp-line); transition: box-shadow .15s; }
.faq-item[open] { box-shadow: inset 0 0 0 1.5px var(--lp-accent); }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; font-weight: 600; font-size: 17px; transition: color .15s; }
.faq-q:hover { color: var(--lp-accent); }
.faq .faq-q:focus-visible { outline-offset: -2px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] .faq-q::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { margin: 0; padding: 0 20px 18px; line-height: 1.55; color: var(--lp-ink-2); }
@media (min-width: 1024px) { .faq { padding: 96px 0; } }

/* Footer CTA band */
.site-foot { padding: 56px 0 40px; }
.cta-band { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 24px; border-radius: 24px; background: var(--lp-band); color: #fff; }
.cta-band .cta-q { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.cta-band .btn-cta { background: var(--lp-hl); color: var(--lp-hl-ink); }
.cta-band .btn-cta:hover { background: #f7b955; }
.site-foot .privacy { margin-top: 18px; color: var(--lp-muted); }
@media (max-width: 519.98px) { .cta-band .btn-cta { align-self: stretch; white-space: normal; text-align: center; } }
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; } }

/* One colour per bot: chat avatars and the owner's-view header */
.avatar[data-bot="kirana"] { background: var(--kirana-bg); color: var(--kirana-ink); }
.avatar[data-bot="realty"] { background: var(--realty-bg); color: var(--realty-ink); }
.avatar[data-bot="jobs"] { background: var(--jobs-bg); color: var(--jobs-ink); }
.avatar[data-bot="custom"] { background: var(--custom-bg); color: var(--custom-ink); }
.op-head[data-bot="kirana"] { --bot-bg: var(--kirana-bg); --bot-ink: var(--kirana-ink); }
.op-head[data-bot="realty"] { --bot-bg: var(--realty-bg); --bot-ink: var(--realty-ink); }
.op-head[data-bot="jobs"] { --bot-bg: var(--jobs-bg); --bot-ink: var(--jobs-ink); }
.op-head[data-bot="custom"] { --bot-bg: var(--custom-bg); --bot-ink: var(--custom-ink); }
.op-head[data-bot] .op-title-row { padding: 10px 12px; border-radius: 14px; background: var(--bot-bg); }
.op-head[data-bot] .op-title, .op-head[data-bot] .op-sub { color: var(--bot-ink); }
.op-head[data-bot] .avatar { background: var(--card-example); }
