/* ChatMunim website (chatmunim.com). Plain CSS, no build step. Brand colours match the app logo. */
:root {
  --pine: #0f3a35;
  --pine-2: #15524b;
  --pine-soft: #e6efed;
  --amber: #e8962e;
  --amber-dark: #a8590f; /* amber text on light backgrounds (AA) */
  --amber-soft: #fbeedb;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #1d1b18;
  --muted: #5d5850;
  --line: #e8e2d6;
  --chat-bg: #efe9dd;
  --chat-out: #dcf5d3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 58, 53, .06), 0 12px 32px -12px rgba(15, 58, 53, .18);
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--pine); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-primary { background: var(--pine); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 58, 53, .7); }
.btn-primary:hover { background: var(--pine-2); }
.btn-ghost { color: var(--pine); border-color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine-soft); }
.btn-amber { background: var(--amber); color: var(--pine); }
.btn-amber:hover { background: #f0a645; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .88); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--pine); letter-spacing: -0.02em; }
.brand.light { color: #fff; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--muted); }
.nav a:hover { color: var(--pine); }
.nav .nav-login { display: none; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.link-login { text-decoration: none; font-weight: 600; color: var(--pine); font-size: .97rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--pine); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 56px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--amber-dark); background: linear-gradient(transparent 62%, var(--amber-soft) 62%); }
.lede { font-size: 1.15rem; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .93rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--pine-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3A35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 4% 0; border-radius: 40px;
  background: radial-gradient(120% 90% at 30% 10%, var(--amber-soft), transparent 60%), var(--pine-soft);
  transform: rotate(-3deg);
}
.phone {
  position: relative; width: min(340px, 100%); background: var(--chat-bg); border-radius: 30px;
  border: 8px solid var(--pine); box-shadow: 0 30px 60px -24px rgba(15, 58, 53, .55); overflow: hidden;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--pine); color: #fff; }
.phone-top strong { display: block; font-size: .95rem; }
.phone-top small { color: #b9d3ce; font-size: .78rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--pine); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.chat { padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; line-height: 1.45; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.msg.in { align-self: flex-end; background: var(--chat-out); border-bottom-right-radius: 4px; }
.msg.out { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.msg.sys { background: var(--amber-soft); font-weight: 600; color: var(--pine); }
.chips { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; width: 70%; }
.chips span { background: #fff; text-align: center; padding: 6px; border-radius: 10px; color: #0b7bb5; font-weight: 600; font-size: .82rem; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: var(--paper);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .85rem; border: 1px solid var(--line);
}
.float-card strong { display: block; color: var(--pine); }
.float-card small { color: var(--muted); font-size: .78rem; }
.hero-visual { padding: 64px 0 48px; }
.lead-card { right: -8px; top: 0; }
.assign-card { left: -8px; bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d94b2b; box-shadow: 0 0 0 4px #fbe1da; }
.initials { width: 32px; height: 32px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }

/* Munim strip */
.munim { background: var(--pine); color: #e9f1ef; padding: 44px 0; }
.munim-row { display: flex; align-items: center; gap: 40px; }
.munim-word { font-family: "Noto Serif Devanagari", serif; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; color: var(--amber); line-height: 1; flex: none; }
.munim-text { font-size: 1.12rem; max-width: 52em; }
.munim-text strong { color: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.small { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--amber-soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--amber-dark); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat;
}

.industries { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.industries-title { font-weight: 600; color: var(--pine); margin-bottom: 18px; }
.industries ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.industries li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.industries li.all { grid-column: 1 / -1; background: var(--pine); color: #fff; border-color: var(--pine); }
.industries .note { margin-top: 18px; color: var(--muted); font-size: .93rem; }

.funnel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.funnel-title { font-weight: 700; color: var(--pine); margin-bottom: 22px; font-family: var(--display); font-size: 1.15rem; }
.bar { position: relative; display: flex; justify-content: space-between; padding: 12px 16px; margin-bottom: 10px; border-radius: 10px; background: var(--cream); overflow: hidden; font-size: .95rem; }
.bar span { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #f6d9ae, var(--amber-soft)); }
.bar em, .bar b { position: relative; font-style: normal; }
.bar b { color: var(--pine); }
.funnel-skip { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.funnel-foot { margin-top: 6px; font-size: .78rem; color: #8b857a; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.steps h3 { margin: 18px 0 10px; }
.steps p { color: var(--muted); }
.step-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--pine); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; color: var(--pine); position: relative; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--amber-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { padding: 96px 0; }
.cta-box {
  background: var(--pine); color: #d7e6e3; border-radius: 28px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background-image: radial-gradient(60% 120% at 100% 0%, rgba(232, 150, 46, .22), transparent 60%);
}
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex: none; }

/* Footer */
.site-footer { background: #0b2b27; color: #a9c2bd; padding: 56px 0 28px; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand p { margin-top: 12px; max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal { padding-top: 24px; display: grid; gap: 6px; font-size: .82rem; color: #7f9b95; }

/* Legal and 404 pages */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page .updated { color: var(--muted); margin-bottom: 40px; }
.page h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.page p, .page li { color: #3c3832; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; display: grid; gap: 6px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound p { color: var(--muted); margin: 16px 0 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .cards.small { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 20px; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .funnel { order: 2; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .munim-row { flex-direction: column; align-items: flex-start; gap: 16px; }

  .menu-btn { display: block; }
  .link-login { display: none; }
  .header-cta { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .nav-login { display: block; color: var(--pine); font-weight: 600; border-bottom: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section, .cta { padding: 64px 0; }
  .hero { padding: 32px 0 56px; }
  .cards, .cards.small { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
  .hero-actions .btn { width: 100%; }
  .lead-card { right: 0; }
  .assign-card { left: 0; }
  .industries ul { grid-template-columns: 1fr; }
  .industries, .funnel { padding: 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}

/* Coming-soon page (coming-soon.html, shown on / while SITE_MODE=soon) */
.soon-body {
  min-height: 100vh; background: var(--pine); color: #d7e6e3;
  background-image: radial-gradient(70% 60% at 85% 10%, rgba(232, 150, 46, .25), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 255, 255, .06), transparent 60%);
}
.soon { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 16px 24px; }
.soon-card { width: min(720px, 100%); text-align: center; margin: auto 0; }
.soon-brand { display: flex; justify-content: center; font-size: 1.8rem; margin-bottom: 40px; }
.soon-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(232, 150, 46, .16); color: var(--amber); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.soon h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
.soon h1 span { font-family: "Noto Serif Devanagari", serif; color: var(--amber); }
.soon-lede { margin: 22px auto 36px; max-width: 34em; font-size: 1.12rem; color: #b9d3ce; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.soon-foot { margin-top: 56px; text-align: center; font-size: .82rem; color: #7f9b95; display: grid; gap: 4px; }
.soon-foot a { color: #b9d3ce; }
@media (max-width: 600px) { .soon-actions .btn { width: 100%; } }
