/* demo.frontly.in: Frontly Experience Centre. Tokens follow frontly.in (navy, green, amber; Inter + Plus Jakarta Sans). */
:root {
  color-scheme: light;
  --blue-50: #eef4fc; --blue-100: #dbe8f8; --blue-200: #b7cef0; --blue-300: #7fa9e0; --blue-400: #4d7fc4;
  --blue-500: #2f5a92; --blue-600: #244673; --blue-700: #1b3557; --blue-800: #13253d; --blue-900: #0d1a2b;
  --green-100: #e7f2da; --green-200: #cde4b3; --green-400: #8dbb61; --green-600: #587c39; --green-700: #44612c;
  --amber-100: #fdece2; --amber-200: #fbd6c2; --amber-400: #ee8a58; --amber-600: #c3612f; --amber-700: #9a4a22;
  --ink: #101a26; --ink-2: #3a4657; --muted: #5b6676; --line: #e3e8ef; --line-2: #d3dae4;
  --bg: #ffffff; --bg-soft: #f6f8fb; --bg-tint: #f1f5fb;
  --good: #1f7a34; --good-bg: #e6f4e8; --warm: #8a5a00; --warm-bg: #fdf3dc; --info-bg: var(--blue-50);
  --muted-bg: #eef1f5; --bad: #a33a2b; --bad-bg: #fbe9e6;
  --wa: #1f8f4e;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --shadow-sm: 0 1px 2px rgba(16, 26, 38, .06), 0 1px 1px rgba(16, 26, 38, .04);
  --shadow-md: 0 6px 24px -8px rgba(19, 37, 61, .18), 0 2px 6px rgba(19, 37, 61, .06);
  --shadow-lg: 0 24px 60px -20px rgba(19, 37, 61, .28);
  --ease: cubic-bezier(.22, .68, .36, 1);
  --header-h: 64px;
  --gradient-text: linear-gradient(90deg, #2f5a92 0%, #3f7f86 34%, #78ad57 62%, #e08a54 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(227, 232, 239, .8); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-tag { font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-full); white-space: nowrap; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-full); }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 520px) { .brand-tag { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn { --b: var(--blue-600); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-full); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -10px rgba(36, 70, 115, .7); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 12px 26px -12px rgba(36, 70, 115, .8); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 143, 78, .7); }
.btn-wa:hover { background: #187a42; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue-300); background: var(--blue-50); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 44px 0 56px; background:
  radial-gradient(800px 420px at 8% -10%, rgba(127, 169, 224, .22), transparent 60%),
  radial-gradient(700px 420px at 100% 10%, rgba(238, 138, 88, .13), transparent 60%),
  radial-gradient(600px 400px at 60% 110%, rgba(141, 187, 97, .14), transparent 60%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(19, 37, 61, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 37, 61, .045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero .wrap { position: relative; display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 12px 6px 10px; border-radius: var(--r-full); box-shadow: var(--shadow-sm); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa84f; box-shadow: 0 0 0 0 rgba(47, 168, 79, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 168, 79, .45); } 70% { box-shadow: 0 0 0 8px rgba(47, 168, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 168, 79, 0); } }
.hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.035em; }
.grad { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 18px; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 36em; }
.cta-row { margin-top: 28px; display: grid; gap: 12px; }
.cta-row .btn { width: 100%; }
.cta-sub { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.cta-sub span { display: inline-flex; align-items: center; gap: 6px; }
.cta-sub svg { width: 16px; height: 16px; color: var(--green-600); }
.privacy-note { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; max-width: 40em; }
.privacy-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
@media (min-width: 640px) { .cta-row { grid-template-columns: repeat(3, auto); justify-content: start; } .cta-row .btn { width: auto; } }

/* Scan card (desktop and presenter screens) */
.scan-card { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 26px; align-self: center; }
.scan-card h2 { font-size: 20px; }
.scan-card .num { margin-top: 6px; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--blue-700); }
.scan-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr { text-align: center; text-decoration: none; color: var(--ink); }
.qr-img { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: #fff; transition: border-color .2s, transform .2s var(--ease); }
.qr:hover .qr-img { border-color: var(--blue-300); transform: translateY(-2px); }
.qr-label { margin-top: 10px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.qr-label svg { width: 18px; height: 18px; }
.scan-foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 980px) {
  .hero { padding: 72px 0 84px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: center; gap: 56px; }
  .scan-card { display: block; }
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head h2 { margin-top: 8px; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }

/* Channels */
.channels { display: grid; gap: 16px; }
@media (min-width: 640px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .channels { grid-template-columns: repeat(4, 1fr); } }
.channel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.channel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-2); }
.ch-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.ch-icon svg { width: 22px; height: 22px; }
.ch-icon.wa { background: #e5f5ec; color: var(--wa); }
.ch-icon.voice { background: var(--amber-100); color: var(--amber-700); }
.ch-icon.chat { background: var(--green-100); color: var(--green-700); }
.channel h3 { margin-top: 16px; font-size: 19px; }
.channel p { margin-top: 6px; color: var(--ink-2); font-size: 15px; flex: 1; }
.channel .btn { margin-top: 18px; align-self: flex-start; }

/* Things to try */
.tries { display: grid; gap: 14px; }
@media (min-width: 700px) { .tries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tries { grid-template-columns: repeat(3, 1fr); } }
.try { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 18px; position: relative; }
.try .say { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.try .say::before { content: "“"; color: var(--blue-300); }
.try .say::after { content: "”"; color: var(--blue-300); }
.try .does { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.try .does svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--green-600); }
.tries-foot { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* After the conversation */
.after { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .after { grid-template-columns: 1fr 1fr; gap: 56px; } }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100); }
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 15px; }
.after .btn { margin-top: 28px; }

/* Example analysis card (shared look with the live insights cards) */
.sample { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 24px; }
.sample-tag { position: absolute; top: -12px; right: 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); }

/* Built for India */
.facts { display: grid; gap: 16px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.fact svg { width: 26px; height: 26px; color: var(--blue-500); }
.fact h3 { margin-top: 12px; font-size: 17px; }
.fact p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* Closing band */
.band { padding: 0 0 72px; }
.band-inner { border-radius: var(--r-xl); padding: 40px 28px; background: radial-gradient(600px 300px at 0% 0%, rgba(127, 169, 224, .35), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(238, 138, 88, .25), transparent 60%), var(--blue-800); color: #fff; display: grid; gap: 20px; align-items: center; }
.band-inner h2 { color: #fff; font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.3rem); font-weight: 800; }
.band-inner p { color: rgba(255, 255, 255, .8); margin-top: 8px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.band .btn-light { background: #fff; color: var(--blue-700); }
.band .btn-light:hover { background: var(--blue-50); }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1fr auto; padding: 48px 52px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }

/* Mobile action bar (call / WhatsApp always in reach on phones) */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s var(--ease); }
.mobile-bar.show { transform: none; }
.mobile-bar .btn { min-height: 46px; width: 100%; font-size: 15px; padding: 0 12px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
/* The Frontly widget's round launcher sits bottom-right on phones: keep that corner free for it. */
@media (max-width: 899px) { .mobile-bar { padding-right: 88px; } }
body.has-mobile-bar { padding-bottom: 0; }

/* ── Shared analysis bits (example card + live insights) ── */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warm { background: var(--warm-bg); color: var(--warm); }
.chip.info { background: var(--info-bg); color: var(--blue-600); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.live { background: #e8f6ec; color: var(--good); }
.meter { display: grid; gap: 6px; min-width: 150px; }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.meter-top b { font-size: 22px; font-family: var(--font-display); color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.meter-track { height: 8px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--blue-500); }
.ch-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.ch-badge .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.ch-badge .ico svg { width: 16px; height: 16px; }
.ch-badge .ico.wa { background: #e5f5ec; color: var(--wa); }
.ch-badge .ico.voice { background: var(--amber-100); color: var(--amber-700); }
.ch-badge .ico.chat { background: var(--green-100); color: var(--green-700); }
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.bullets li::marker { color: var(--blue-300); }

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