/* The KnoBee questions page. Colours are the website's tokens (apps/web/src/styles.css). */
:root {
  --bg: #F5F2FB; --surface: #FFFFFF; --surface-2: #EEEAF8; --line: #E4DEF3; --text: #221C35; --muted: #766E8C;
  --brand: #7B61FF; --brand-deep: #6247E6; --brand-soft: #ECE7FF; --heart: #FF6B8A; --honey: #F5A623;
  --wa: #25D366; --wa-deep: #1DA851; --glass: rgba(255, 255, 255, 0.84);
  --page: linear-gradient(135deg, #EDE7FF 0%, #FFE8F0 50%, #FFF1D6 100%);
  --radius: 28px; --shadow: 0 10px 30px rgba(34, 28, 53, 0.08);
  --font: "Outfit", var(--font-script,) "Baloo 2", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120F1D; --surface: #1C1830; --surface-2: #251F3D; --line: #2F2849; --text: #EEEAFB; --muted: #A79FC0;
    --brand-soft: #2A2250; --glass: rgba(28, 24, 48, 0.86);
    --page: linear-gradient(135deg, #1B1530 0%, #2A1A2E 50%, #2C2416 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); background-image: var(--page); background-attachment: fixed; line-height: 1.55; font-size: 17px; }
a { color: var(--brand-deep); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; border-radius: 9px; }
.word { font-family: "Baloo 2", var(--font); font-weight: 800; font-size: 25px; letter-spacing: -0.2px; line-height: 1; }
.langwrap { position: relative; display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); }
.langwrap > svg { width: 18px; height: 18px; flex: none; }
.langwrap::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 15px; color: var(--text); padding: 0 18px 0 0; cursor: pointer; }
select:focus { outline: none; }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.hero { padding: 26px 4px 10px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
h1 { margin: 0 0 14px; font-size: clamp(27px, 6vw, 42px); line-height: 1.14; font-weight: 800; letter-spacing: -0.5px; }
.sub { margin: 0 0 22px; font-size: 19px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 10px 24px rgba(123, 97, 255, 0.32); border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.big { min-height: 60px; font-size: 19px; padding: 0 34px; }
.note, .small { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.hook { margin: 6px 0 18px; padding: 22px; background: var(--text); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.hookq { margin: 0 0 6px; font-size: 17.5px; font-weight: 700; line-height: 1.4; }
.hooksub { margin: 0 0 16px; font-size: 15px; opacity: 0.8; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: inherit; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.thumb svg { width: 22px; height: 22px; }
.thumb:hover { background: rgba(255, 255, 255, 0.16); }
.thumb:disabled { opacity: 0.55; cursor: default; }
.thumb.mine { opacity: 1; background: var(--brand); border-color: var(--brand); color: #fff; }
.poll { margin-top: 16px; }
.bars { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.bar-yes { height: 100%; width: 0; background: linear-gradient(90deg, var(--honey), #FFC95C); border-radius: 999px; transition: width 0.6s; }
.pollline { margin: 8px 0 0; font-size: 15px; opacity: 0.9; }
@media (prefers-color-scheme: dark) { .hook { background: var(--surface); color: var(--text); } .thumb { border-color: var(--line); background: var(--surface-2); } .bars { background: var(--surface-2); } }
.elders { margin: 18px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.elders h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.elders p { margin: 0 0 16px; font-size: 17px; }
.why, .share, .about { margin: 18px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.why { background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); }
.why h2, .share h2, .about h2, .group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.ico { width: 26px; height: 26px; color: var(--brand-deep); flex: none; }
.why .ico { color: var(--heart); }
.share .ico { color: var(--wa-deep); }
.about .ico { color: var(--honey); }
.why p, .share p, .about p { margin: 0; font-size: 17px; }
.wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--wa); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3); }
.wa svg { width: 24px; height: 24px; }
.wa:hover { background: var(--wa-deep); }

.faqhead { margin: 36px 4px 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.group { margin: 22px 0 0; }
.group h2 { padding: 0 4px; margin-bottom: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin: 0 0 10px; overflow: hidden; box-shadow: var(--shadow); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 700; font-size: 17.5px; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--brand-deep); border-bottom: 2.5px solid var(--brand-deep); transform: rotate(45deg); transition: transform 0.2s; margin: -5px 6px 0 0; }
details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
details[open] summary { background: var(--brand-soft); }
.a { padding: 14px 18px 18px; }
.a p { margin: 0; font-size: 16.5px; }
.a img { display: block; width: min(240px, 70%); margin: 16px auto 0; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 720px) {
  .a { display: flex; gap: 20px; align-items: flex-start; }
  .a p { flex: 1; }
  .a img { width: 190px; margin: 0; flex: none; }
}

.end { margin: 40px 0 0; padding: 30px 24px 52px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.end h2 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.4px; line-height: 1.15; }
.end p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 18px; }

main { padding-bottom: 0; }
.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; text-align: center; }
.foot > .btn { margin: 0 16px; position: relative; top: -30px; }
.foot .small { margin-top: -18px; }
.foot nav { margin-top: 18px; color: var(--muted); font-size: 14px; }
.foot nav a { color: var(--muted); text-decoration: none; margin: 0 4px; }

[dir="rtl"] summary::after { margin: -5px 0 0 6px; }
[dir="rtl"] .langwrap::after { right: auto; left: 13px; }
[lang="ur"] body { line-height: 2; }
[lang="ur"] summary, [lang="ur"] h1, [lang="ur"] h2 { line-height: 1.9; }
.btn { text-align: center; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; }
[lang="ta"] h1, [lang="ml"] h1, [lang="kn"] h1, [lang="te"] h1 { font-size: clamp(23px, 5.6vw, 36px); line-height: 1.3; }

/* share this page (owner, 2026-10-12) */
.tools { display: flex; align-items: center; gap: 8px; }
.sharetop { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--brand-deep); cursor: pointer; }
.sharetop svg { width: 20px; height: 20px; }
.sharebtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand-deep); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.sharebtn svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 140%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 15px; box-shadow: var(--shadow); transition: transform 0.3s; }
.toast.on { transform: translate(-50%, 0); }


/* Classic look (owner, 2026-10-12): the app's Classic style: cream paper, burnt orange, dark brown buttons,
   squarer corners, an orange bar on the left of cards, hexagon icons. ?look=classic, or the visitor's own app style. */
:root[data-look="classic"] {
  --bg: #F4F1EA; --surface: #FCFBF8; --surface-2: #ECE7DC; --line: #E2DCCF; --text: #2B1D0E; --muted: #6E6253;
  --brand: #C2410C; --brand-deep: #A8380A; --brand-soft: #F8E5D9; --heart: #E2647A; --honey: #F5A623;
  --glass: rgba(252, 251, 248, 0.92); --page: none; --radius: 14px; --shadow: 0 2px 6px rgba(92, 69, 32, 0.08);
  --font: "Baloo 2", var(--font-script,) "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root[data-look="classic"] {
    --bg: #2A251D; --surface: #1E1A14; --surface-2: #353026; --line: #433A2C; --text: #F3EBDD; --muted: #B8AA95;
    --brand: #E8743F; --brand-deep: #EE8758; --brand-soft: #4A2C1E; --glass: rgba(30, 26, 20, 0.92); --shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}
[data-look="classic"] body { background-image: none; line-height: 1.5; }
[data-look="classic"] h1 { font-weight: 800; letter-spacing: 0; line-height: 1.2; }
[data-look="classic"] .eyebrow { color: var(--brand); }
[data-look="classic"] .btn { background: #2B1D0E; color: #FFFFFF; border-radius: 12px; box-shadow: none; }
[data-look="classic"] .btn.share { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
[data-look="classic"] .why, [data-look="classic"] .share, [data-look="classic"] .about, [data-look="classic"] .elders, [data-look="classic"] .end,
[data-look="classic"] details { border-radius: var(--radius); border-left: 4px solid var(--brand); box-shadow: var(--shadow); }
[data-look="classic"] .why { background: var(--surface); }
[data-look="classic"] .share { border-left-color: var(--wa); }
[data-look="classic"] details[open] summary { background: var(--brand-soft); }
[data-look="classic"] summary::after { border-color: var(--brand); }
[data-look="classic"] .hook { background: #2B1D0E; color: #F4F1EA; border-radius: var(--radius); }
[data-look="classic"] .thumb { border-radius: 10px; }
[data-look="classic"] .thumb.mine { background: var(--brand); border-color: var(--brand); }
[data-look="classic"] .group h2 .ico, [data-look="classic"] .why h2 .ico, [data-look="classic"] .about h2 .ico, [data-look="classic"] .elders h2 .ico, [data-look="classic"] .share h2 .ico {
  box-sizing: content-box; padding: 7px; width: 22px; height: 22px; background: var(--brand-soft); color: var(--brand-deep);
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
[data-look="classic"] .a img { border-radius: 10px; }
[data-look="classic"] .langwrap { border-radius: 10px; }
[data-look="classic"] .wa { border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  [data-look="classic"] .btn { background: #F3EBDD; color: #1E1A14; }
  [data-look="classic"] .hook { background: var(--surface); color: var(--text); }
}

/* the first button and "share with someone close" one under the other, each its usual size (owner, 2026-10-12) */
.ctarow { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn.share { background: var(--surface); color: var(--brand-deep); border: 1.5px solid var(--brand); box-shadow: none; }
