/* =========================================================
   Webphiser — Business Growth Analyzer (/business-form)
   Mobile-first: on phones the wizard fills the screen like an
   app; on larger screens it sits in a centred card.
========================================================= */
:root {
  --navy: #0b2a5b;
  --blue: #1e73d8;
  --blue-dark: #0d4fa8;
  --accent: #1a9fe8;
  --green: #22a34a;
  --green-soft: #e8f7ee;
  --wa: #25d366;
  --orange: #f97316;
  --red: #e5484d;
  --ink: #0b2a5b;
  --ink-soft: #4a5b74;
  --muted: #7b8aa3;
  --line: #dce8f6;
  --lavender: #eef5fd;
  --white: #fff;
  --radius: 16px;
  --font: 'Poppins', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
:lang(hi) body, html[lang^="hi"] body { font-family: 'Noto Sans Devanagari', 'Poppins', system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1:focus, h2:focus { outline: none; }

.bf-ic { width: 22px; height: 22px; fill: currentColor; flex: none; }
.bf-ic--sm { width: 16px; height: 16px; }

/* ---------- Shell ---------- */
.bf-shell { min-height: 100vh; min-height: 100dvh; }
.bf-brand, .bf-legal { display: none; }

.bf-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--white);
}

/* ---------- Top bar ---------- */
.bf-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 0;
  padding-top: max(8px, env(safe-area-inset-top));
}
.bf-top__row { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.bf-top__title { flex: 1; min-width: 0; }
.bf-top__title strong {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-top__title span { display: block; font-size: 12px; color: var(--muted); }

.bf-iconbtn {
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--navy);
  display: grid; place-items: center; flex: none;
}
.bf-iconbtn:active { background: var(--lavender); }

.bf-lang {
  min-width: 44px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--blue-dark);
  font-size: 13px; font-weight: 600; flex: none;
}

.bf-progress { height: 4px; margin: 6px -12px 0; background: var(--lavender); }
.bf-progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 0 4px 4px 0;
  transition: width .35s ease;
}

/* ---------- Body & footer ---------- */
.bf-body {
  flex: 1;
  padding: 22px 18px 28px;
  animation: bf-in .28s ease both;
}
@keyframes bf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bf-foot {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: 0 -6px 20px -10px rgba(11,42,91,.2);
}
.bf-foot__note { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Buttons ---------- */
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 18px;
  border: 0; border-radius: 14px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.bf-btn:active { transform: scale(.985); }
.bf-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 10px 22px -12px rgba(30,115,216,.8);
}
.bf-btn--primary .bf-ic { width: 18px; height: 18px; }
.bf-btn--wa { color: #fff; background: var(--wa); }
.bf-btn--ghost { color: var(--blue-dark); background: var(--lavender); }
.bf-btn--link { min-height: 40px; color: var(--muted); background: none; font-weight: 500; font-size: 14px; }

/* ---------- Typography ---------- */
.bf-q { margin: 0 0 18px; font-size: 20px; line-height: 1.4; font-weight: 600; }
.bf-q__alt { font-size: 15px; font-weight: 400; color: var(--muted); }
.bf-sub { margin: -10px 0 16px; font-size: 13px; color: var(--muted); }
.bf-h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.3; font-weight: 700; }
.bf-h1 em { font-style: normal; color: var(--blue); }
.bf-h2 { margin: 0 0 18px; font-size: 19px; line-height: 1.4; font-weight: 600; }
.bf-h3 { margin: 22px 0 10px; font-size: 15px; font-weight: 600; }
.bf-lede { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Welcome ---------- */
.bf-welcome { text-align: center; padding-top: max(18px, env(safe-area-inset-top)); }
.bf-welcome__top { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.bf-hero-art {
  margin: 0 auto 14px; max-width: 280px;
  padding: 16px 12px 6px;
  border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 0%, #e3f0ff 0%, #f6faff 70%);
}
.bf-hero-art svg { display: block; width: 100%; height: auto; }
.bf-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 12.5px; font-weight: 600;
}
.bf-perks {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.bf-perks li {
  display: grid; justify-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px; background: var(--lavender);
  font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink-soft);
}
.bf-perks .bf-ic { color: var(--blue); }

/* ---------- Language ---------- */
.bf-langs { display: grid; gap: 12px; }
.bf-langcard {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px; text-align: left;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.bf-langcard__glyph {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lavender); color: var(--blue); font-size: 22px; font-weight: 700;
}
.bf-langcard__name { flex: 1; font-size: 18px; font-weight: 600; }
.bf-langcard__name small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.bf-langcard .bf-ic { color: var(--muted); }
.bf-langcard.is-on { border-color: var(--blue); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.bf-langcard.is-on .bf-langcard__glyph { background: rgba(255,255,255,.18); color: #fff; }
.bf-langcard.is-on small, .bf-langcard.is-on .bf-ic { color: rgba(255,255,255,.85); }

/* ---------- Category grid ---------- */
.bf-search { position: relative; margin-bottom: 14px; }
.bf-search .bf-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.bf-search input {
  width: 100%; height: 48px; padding: 0 14px 0 42px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #f8fbff;
  font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
.bf-search input:focus { border-color: var(--blue); background: #fff; }

.bf-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bf-cat {
  display: grid; justify-items: center; align-content: start; gap: 8px;
  min-height: 104px; padding: 14px 6px 10px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.bf-cat:active { transform: scale(.97); }
.bf-cat__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, white);
}
.bf-cat.is-on { border-color: var(--blue); box-shadow: 0 8px 18px -10px rgba(30,115,216,.7); background: #f4f9ff; }
.bf-empty { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Options ---------- */
.bf-opts { display: grid; gap: 10px; }
.bf-opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--white);
  font-size: 15.5px; line-height: 1.4; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bf-opt__mark {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  border: 2px solid #b9cbe3; display: grid; place-items: center; color: transparent;
  transition: all .15s;
}
.bf-opt--multi .bf-opt__mark { border-radius: 7px; }
.bf-opt__mark .bf-ic { width: 15px; height: 15px; }
.bf-opt:has(input:checked) { border-color: var(--blue); background: #f2f8ff; }
.bf-opt input:checked + .bf-opt__mark { background: var(--blue); border-color: var(--blue); color: #fff; }
.bf-opt input:focus-visible + .bf-opt__mark { outline: 3px solid rgba(30,115,216,.35); outline-offset: 2px; }

/* ---------- Form fields ---------- */
.bf-form { display: grid; gap: 16px; }
.bf-field { display: grid; gap: 6px; }
.bf-field label, .bf-fieldset legend { font-size: 14px; font-weight: 500; color: var(--ink); }
.bf-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bf-fieldset legend { padding: 0; margin-bottom: 6px; }
.bf-req { color: var(--red); }
.bf-opt-tag { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.bf-input {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #f8fbff;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background .15s;
}
.bf-input::placeholder { color: #9aabc2; }
.bf-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30,115,216,.1); }
.bf-input.is-invalid { border-color: var(--red); background: #fff6f6; }
.bf-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237b8aa3' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.bf-phone { display: flex; }
.bf-phone span {
  display: grid; place-items: center; padding: 0 12px;
  border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--lavender); font-weight: 500; color: var(--ink-soft);
}
.bf-phone .bf-input { border-radius: 0 12px 12px 0; }
.bf-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.bf-err { display: none; margin: 0; font-size: 13px; color: var(--red); }
.bf-err.is-shown { display: block; }
.bf-opts + .bf-err.is-shown, .bf-cats ~ .bf-err.is-shown { margin-top: 12px; }
.bf-privacy { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bf-ready {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 600;
}
.bf-ready .bf-ic { width: 20px; height: 20px; }

/* segmented contact method */
.bf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bf-seg label { position: relative; }
.bf-seg input { position: absolute; opacity: 0; }
.bf-seg span {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border: 2px solid var(--line); border-radius: 12px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.bf-seg .bf-ic { color: var(--muted); }
.bf-seg input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.bf-seg input:checked + span .bf-ic { color: #fff; }
.bf-seg input:focus-visible + span { outline: 3px solid rgba(30,115,216,.35); outline-offset: 2px; }

/* ---------- Analyzing ---------- */
.bf-analyzing { display: flex; flex-direction: column; justify-content: center; text-align: center; padding-top: 40px; }
.bf-pulse {
  width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lavender);
  animation: bf-pulse 1.4s ease-in-out infinite;
}
@keyframes bf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,115,216,.28); }
  50% { box-shadow: 0 0 0 18px rgba(30,115,216,0); }
}
.bf-checks { list-style: none; margin: 0 auto 26px; padding: 0; max-width: 320px; display: grid; gap: 12px; text-align: left; }
.bf-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); transition: color .2s; }
.bf-checks .bf-ic {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--lavender); color: transparent; transition: all .25s;
}
.bf-checks li.is-done { color: var(--ink); }
.bf-checks li.is-done .bf-ic { background: var(--green); color: #fff; }
.bf-meter { max-width: 320px; width: 100%; height: 10px; margin: 0 auto; border-radius: 99px; background: var(--lavender); overflow: hidden; }
.bf-meter i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width .45s ease; }
.bf-meter__pct { margin: 8px 0 0; font-weight: 600; color: var(--blue); }

/* ---------- Score ---------- */
.bf-score {
  --tone: var(--blue);
  position: relative; text-align: center;
  padding: 18px 16px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #f2f8ff, #fff);
  border: 1px solid var(--line);
}
.bf-score--great { --tone: var(--green); }
.bf-score--good { --tone: #3a9d5d; }
.bf-score--fair { --tone: var(--orange); }
.bf-score--low { --tone: var(--red); }
.bf-score__biz { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.bf-gauge { display: block; width: 100%; max-width: 240px; margin: 0 auto; }
.bf-gauge__track, .bf-gauge__fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.bf-gauge__track { stroke: var(--lavender); }
.bf-gauge__fill { stroke: var(--tone); transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.bf-score__num { margin-top: -58px; line-height: 1; }
.bf-score__num b { font-size: 46px; font-weight: 700; }
.bf-score__num span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.bf-score__label { margin: 12px 0 0; font-size: 18px; font-weight: 600; color: var(--tone); }

.bf-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bf-bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.bf-bars__name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bf-bars__name i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bf-bars__val { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.bf-bars__track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--lavender); overflow: hidden; }
.bf-bars__track i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.bf-bars__track i.is-in { width: var(--w); }

/* ---------- Report cards ---------- */
.bf-card {
  margin-bottom: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  box-shadow: 0 6px 18px -12px rgba(11,42,91,.18);
}
.bf-card p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.bf-card p:last-child { margin-bottom: 0; }
.bf-card--left { text-align: left; }
.bf-card__h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.bf-card__h span {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--lavender); color: var(--blue); font-size: 13px;
}
.bf-card__h--warn span { background: #fff1e6; color: var(--orange); }
.bf-card__h--ok span { background: var(--green-soft); color: var(--green); }
.bf-callout { padding: 10px 12px; border-radius: 10px; background: #f6f9fe; }
.bf-callout b { color: var(--ink); }

.bf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bf-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-soft); }
.bf-list li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; }
.bf-list--warn li::before { background: var(--orange); }
.bf-list--ok li::before { background: var(--green); }

/* ---------- Roadmap ---------- */
.bf-weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bf-weeks li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.bf-weeks__n {
  width: 56px; flex: none; padding: 6px 0; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  font-size: 11px; line-height: 1.2;
}
.bf-weeks__n b { display: block; font-size: 20px; }
.bf-weeks strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.bf-weeks p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Solutions ---------- */
.bf-pack {
  padding: 18px 16px; border-radius: 20px;
  border: 2px solid #cfe6d7; background: linear-gradient(180deg, #f3fbf6, #fff 40%);
}
.bf-pack__tag { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; }
.bf-pack__name { margin: 10px 0 14px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.bf-pack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bf-pack__list li { display: flex; gap: 10px; align-items: flex-start; }
.bf-pack__list .bf-ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; margin-top: 1px; }
.bf-pack__list strong { display: block; font-size: 15px; font-weight: 600; }
.bf-pack__list p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.bf-pack__price { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--lavender); font-size: 13.5px; color: var(--blue-dark); font-weight: 500; }
.bf-more { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.bf-more summary { padding: 14px 0; font-weight: 600; color: var(--blue-dark); cursor: pointer; list-style: none; }
.bf-more summary::-webkit-details-marker { display: none; }
.bf-more[open] { padding-bottom: 16px; }

/* ---------- Thank you ---------- */
.bf-thanks { text-align: center; padding-top: max(40px, env(safe-area-inset-top)); }
.bf-tick {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff;
  box-shadow: 0 0 0 10px var(--green-soft);
  animation: bf-pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.bf-tick .bf-ic { width: 44px; height: 44px; }
@keyframes bf-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.bf-next { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.bf-thanks .bf-h3 { margin-top: 0; }

/* ---------- Small phones ---------- */
@media (max-width: 350px) {
  .bf-cats { grid-template-columns: repeat(2, 1fr); }
  .bf-h1 { font-size: 23px; }
  .bf-perks li { font-size: 11px; }
}

/* ---------- Tablet & desktop: centred card ---------- */
@media (min-width: 640px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #dcebff 0%, #eef5fd 45%, #f7faff 100%); }
  .bf-shell { padding: 20px 16px 28px; }
  .bf-brand {
    display: flex; align-items: center; gap: 10px;
    width: 100%; max-width: 480px; margin: 0 auto 14px;
    text-decoration: none; color: var(--navy);
  }
  .bf-brand b { display: block; font-size: 20px; line-height: 1.1; }
  .bf-brand small { display: block; font-size: 11.5px; color: var(--ink-soft); }
  .bf-app {
    max-width: 480px; margin: 0 auto;
    min-height: min(820px, calc(100dvh - 120px));
    border-radius: 26px; overflow: clip; /* clip, not hidden — hidden would break the sticky bars */
    box-shadow: 0 30px 60px -30px rgba(11,42,91,.35), 0 0 0 1px rgba(11,42,91,.05);
  }
  .bf-top { padding-top: 10px; }
  .bf-body { padding: 26px 26px 30px; }
  .bf-foot { padding: 14px 22px 18px; }
  .bf-legal { display: block; margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
