/* Fluentbol website. Colours follow the app: the icon's blue gradient outside, Material 3 surfaces and the purple primary inside. */
:root {
  --brand-1: #2179e3;
  --brand-2: #1446a0;
  --primary: #6750a4;
  --on-primary: #ffffff;
  --surface: #fffbfe;
  --surface-2: #f3edf7;
  --card: #e7e0ec;
  --outline: #cac4d0;
  --text: #1c1b1f;
  --muted: #49454f;
  --good: #2e7d32;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(20, 70, 160, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #d0bcff;
    --on-primary: #381e72;
    --surface: #141218;
    --surface-2: #1d1b20;
    --card: #2b2930;
    --outline: #49454f;
    --text: #e6e0e9;
    --muted: #cac4d0;
    --good: #81c784;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 17px/1.6 "Roboto", "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(hi) body, body:lang(hi) { font-family: "Noto Sans Devanagari", "Roboto", system-ui, sans-serif; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; opacity: .92; }
.nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: #fff; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); font-size: 14px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: rgba(255,255,255,.16); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); min-width: 190px; }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--card); }
@media (max-width: 860px) { .nav a.navlink { display: none; } }
.lang .code { display: none; margin-left: 2px; }
@media (max-width: 480px) { .lang .full { display: none; } .lang .code { display: inline; } .brand { font-size: 18px; } }
.brand { flex: none; }

/* Buttons, modelled on the app's pill buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgba(103, 80, 164, .35); }
.btn.light { background: #fff; color: var(--brand-2); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn.outline { color: var(--primary); border-color: var(--outline); background: transparent; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand-1) 0%, var(--brand-2) 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.5px; }
.hero p.lead { font-size: clamp(18px, 2.1vw, 22px); margin: 0 0 22px; opacity: .95; max-width: 34ch; }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.points li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small { font-size: 14px; opacity: .85; margin-top: 16px; }
.stage { position: relative; justify-self: center; width: min(340px, 100%); }
.phone { border-radius: 34px; padding: 10px; background: #0d1b33; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.phone img { border-radius: 26px; width: 100%; height: auto; }
.float { position: absolute; left: -48px; bottom: 54px; width: 250px; background: var(--card); color: var(--text); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.45; }
.float b { display: block; font-size: 15px; }
.float .heard { color: var(--muted); margin: 4px 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.float .fix { font-weight: 600; }
.float .fix em { font-style: normal; color: var(--primary); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; }
  .float { left: auto; right: -8px; bottom: 30px; width: 220px; }
}

/* Sections */
section { padding: 84px 0; scroll-margin-top: 64px; }
section.alt { background: var(--surface-2); }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .8px; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.3px; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 60ch; }

/* Session steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 16px 16px 20px; box-shadow: 0 1px 0 var(--outline); display: flex; flex-direction: column; }
section.alt .step { background: var(--surface); }
.step img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--outline); aspect-ratio: 600 / 760; object-fit: cover; object-position: top; margin-bottom: 16px; background: #fff; }
.step h3 { margin: 0 0 6px; font-size: 19px; display: flex; gap: 10px; align-items: baseline; }
.step h3::before { counter-increment: step; content: counter(step); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step img { aspect-ratio: 600 / 640; } }

/* Feature cards, same shape as the app's cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Tracks: chips and session rows copy the app's Home screen */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
#t-daily, #t-job { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.chips label { cursor: pointer; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--outline); color: var(--muted); font-weight: 500; }
#t-daily:checked ~ .chips label[for="t-daily"],
#t-job:checked ~ .chips label[for="t-job"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
#t-daily:focus-visible ~ .chips label[for="t-daily"], #t-job:focus-visible ~ .chips label[for="t-job"] { outline: 3px solid var(--brand-1); outline-offset: 2px; }
.track { display: none; }
#t-daily:checked ~ .tracks .track.daily, #t-job:checked ~ .tracks .track.job { display: block; }
.track h3 { font-size: 26px; margin: 0 0 4px; font-weight: 500; }
.track .meta { color: var(--muted); margin: 0 0 18px; }
.sessions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sessions li { background: var(--card); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; }
.sessions li span.n { color: var(--muted); margin-right: 6px; }
.sessions li::after { content: "›"; color: var(--muted); font-size: 22px; line-height: 1; }
.js .sessions li.more { display: none; }
.js .track.open .sessions li.more { display: flex; }
.toggle { margin-top: 18px; display: none; }
.js .toggle { display: inline-flex; }
@media (max-width: 640px) { .sessions { grid-template-columns: 1fr; } }

/* Languages */
.langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.langs .card { background: var(--surface); border: 1px solid var(--outline); }
.langs .name { font-weight: 700; font-size: 18px; margin: 0 0 2px; }
.langs .native { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.hint { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.55; }
.hint .tag { display: block; font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 960px) { .langs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .langs { grid-template-columns: 1fr; } }

/* Screens gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 22px; border: 1px solid var(--outline); background: #fff; }
.gallery figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--outline); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Beta call to action */
.beta { background: linear-gradient(160deg, var(--brand-1), var(--brand-2)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.beta h2 { color: #fff; }
.beta p { opacity: .92; margin: 0 0 22px; }
.beta ol { margin: 0; padding-left: 22px; }
.beta ol li { margin-bottom: 10px; }
@media (max-width: 860px) { .beta { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
