/* LiteWait clay design system. Loaded after each page's own styles on the site, the app and the legal pages.
   Colours: sky background, clay cards, orange buttons, mint, lilac and pink accents.
   Contrast: body text is navy on pale blue; button text is white on orange of at least 3.3:1 at 18.7px bold. */
:root {
  --sky-1: #E6F1FC; --sky-2: #C6DCF5; --card-1: #F4F9FF; --card-2: #DCEAFA;
  --ink: #1E2A44; --body: #4A5878; --muted: #5A6A88; --line: #CFDDF0;
  --orange-1: #E8661A; --orange-2: #C24A06; --orange-text: #A63F05;
  --blue: #2456A6; --mint: #5ED3A8; --mint-deep: #1F8F66; --lilac: #A78BFA; --pink: #F7A1C4;
  --ok: #1F7A55; --warn: #A63F05; --bad: #B4232A;
  --green: var(--blue); --green-dark: var(--ink); --green-tint: #E3EEFB; --saffron: var(--orange-1);
  --primary: var(--blue); --primary-2: var(--blue); --navy: var(--ink); --slate: var(--body); --paper: transparent; --white: var(--card-1);
  --clay-shadow: 14px 14px 30px rgba(91,127,184,.26), -10px -10px 24px rgba(255,255,255,.85), inset 2px 2px 5px rgba(255,255,255,.9), inset -3px -3px 8px rgba(91,127,184,.10);
  --clay-shadow-sm: 7px 7px 16px rgba(91,127,184,.24), -6px -6px 14px rgba(255,255,255,.85), inset 1px 1px 3px rgba(255,255,255,.9);
  --clay-press: inset 4px 4px 10px rgba(91,127,184,.25), inset -4px -4px 10px rgba(255,255,255,.8);
  --head: 'Poppins', 'Noto Sans Devanagari', 'Noto Sans Gujarati', Arial, sans-serif;
  --text: 'Nunito Sans', 'Noto Sans Devanagari', 'Noto Sans Gujarati', Arial, sans-serif;
}
html { background: var(--sky-1); }
body { background: linear-gradient(165deg, var(--sky-1) 0%, #D6E7FA 45%, var(--sky-2) 100%) fixed; color: var(--ink); font-family: var(--text); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); letter-spacing: -0.01em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 3px; }

/* Buttons */
.btn, .big, .lw-submit, .shutter { border-radius: 999px; }
.btn-primary, .big, .invite .btn {
  background: linear-gradient(180deg, var(--orange-1), var(--orange-2)); color: #fff; border: 0;
  font-size: 1.1rem; font-weight: 800; text-shadow: 0 1px 1px rgba(110,35,0,.35);
  box-shadow: 0 10px 22px rgba(194,74,6,.32), inset 0 2px 3px rgba(255,255,255,.45), inset 0 -4px 6px rgba(120,40,0,.25);
}
.btn-primary:hover, .big:hover { background: linear-gradient(180deg, #F0702A, #B54405); }
.btn-primary:active, .big:active { transform: translateY(1px); box-shadow: 0 5px 12px rgba(194,74,6,.3), inset 0 2px 6px rgba(120,40,0,.3); }
.btn-ghost, .btn2, .hbtn, .lang-btn {
  background: linear-gradient(145deg, var(--card-1), var(--card-2)); color: var(--ink); border: 0;
  box-shadow: var(--clay-shadow-sm); font-weight: 700;
}
.btn-ghost:hover, .btn2:hover, .hbtn:hover, .lang-btn:hover { background: linear-gradient(145deg, #FFFFFF, #E3EEFB); }
.btn2 { border-radius: 999px; color: var(--blue); }
.btn2.danger { color: var(--bad); box-shadow: var(--clay-shadow-sm), inset 0 0 0 2px rgba(180,35,42,.35); }
.big.danger-fill { background: linear-gradient(180deg, #CC3A40, #9E1C22); box-shadow: 0 10px 22px rgba(158,28,34,.3), inset 0 2px 3px rgba(255,255,255,.35); }
.lang-btn.active, .hbtn.lang { color: var(--orange-text); }

/* Clay surfaces */
.card, .lw-modal-box, .col, .plate, .prog, .tablewrap, .faq, .step-shot, .notdo, main.legal, .legal-card {
  background: linear-gradient(145deg, var(--card-1), var(--card-2)); border: 0; box-shadow: var(--clay-shadow);
}
.card { border-radius: 28px; padding: 20px; margin-bottom: 18px; }
.lw-modal-box { border-radius: 32px; }
.lw-modal { background: rgba(30,42,68,.45); backdrop-filter: blur(3px); }

/* Inputs */
input:not([type=checkbox]):not([type=file]), select, .val input, #joinForm input:not([type=checkbox]), #joinForm select {
  background: #F7FBFF; border: 0; border-radius: 16px; box-shadow: var(--clay-press); color: var(--ink); padding: 12px 14px;
}

/* ---------- Landing page ---------- */
.top { background: rgba(236,244,253,.82); backdrop-filter: blur(10px); border-bottom: 0; box-shadow: 0 6px 20px rgba(91,127,184,.15); }
.brand { font-family: var(--head); font-weight: 800; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; font-family: var(--text); font-size: .74rem; font-weight: 700; color: var(--orange-text); letter-spacing: .01em; line-height: 1.1; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.menu a { color: var(--body); }
.menu a:hover { color: var(--orange-text); }
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero .wrap { position: relative; z-index: 1; }
.pill { background: linear-gradient(145deg, var(--card-1), var(--card-2)); color: var(--orange-text); border-radius: 999px; padding: 8px 16px; box-shadow: var(--clay-shadow-sm); }
.hero h1 { font-weight: 800; }
.hero h1 em { color: var(--orange-text); }
.shape { position: absolute; z-index: 0; pointer-events: none; }
.shape.ball { width: 120px; height: 120px; border-radius: 50%; right: 4%; top: 30px; background: radial-gradient(circle at 34% 28%, #FFE4F0, var(--pink) 55%, #DE77A3); box-shadow: 0 18px 30px rgba(222,119,163,.35); }
.shape.ring { width: 130px; height: 130px; border-radius: 50%; left: -30px; bottom: 30px; border: 30px solid var(--mint); background: transparent; box-shadow: 0 14px 26px rgba(47,165,123,.3), inset 4px 6px 10px rgba(255,255,255,.55); }
.shape.cube { width: 92px; height: 92px; border-radius: 26px; right: 40%; bottom: 20px; transform: rotate(14deg); background: radial-gradient(circle at 34% 28%, #EBE3FF, var(--lilac) 60%, #7A5CE0); box-shadow: 0 16px 28px rgba(122,92,224,.35); }
.shape.pearl { width: 34px; height: 34px; border-radius: 50%; right: 18%; top: 52%; background: radial-gradient(circle at 34% 28%, #FFFFFF, #DCE8F7 70%, #B9CDEA); box-shadow: 0 8px 14px rgba(91,127,184,.3); }
@media (max-width: 860px) { .shape.cube, .shape.pearl { display: none; } .shape.ball { width: 80px; height: 80px; right: -20px; top: 10px; } .shape.ring { width: 90px; height: 90px; border-width: 22px; left: -40px; } }
.phone, .step-shot { border: 0; border-radius: 40px; box-shadow: 18px 18px 40px rgba(91,127,184,.35), -10px -10px 26px rgba(255,255,255,.8); padding: 8px; background: linear-gradient(145deg, #2B3A5E, #1E2A44); }
.phone img, .step-shot img { border-radius: 32px; }
.phone-cap, .fine { color: var(--muted); }
.facts { background: transparent; color: var(--body); }
.facts .wrap { background: linear-gradient(145deg, var(--card-1), var(--card-2)); border-radius: 32px; box-shadow: var(--clay-shadow); padding: 26px 30px; }
.fact b { color: var(--orange-text); font-family: var(--head); }
.fact span, .facts .src { color: var(--body); }
section.alt { background: transparent; }
.eyebrow { color: var(--blue); }
.step h3 span { color: var(--orange-text); }
.plate { border-radius: 28px; }
.plate img { border-radius: 22px 22px 0 0; }
.diets span { background: linear-gradient(145deg, var(--card-1), var(--card-2)); border: 0; border-radius: 999px; box-shadow: var(--clay-shadow-sm); color: var(--ink); padding: 8px 14px; }
.progs { border-top: 0; gap: 18px; }
.prog, .prog:nth-child(odd), .prog:nth-child(even) { border: 0; border-radius: 26px; padding: 22px 24px; }
.col { border-radius: 28px; }
.col.plan { border: 0; }
.col.live h3::before, .col.plan h3::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
.col.live h3::before { background: radial-gradient(circle at 35% 30%, #B7F2DC, var(--mint) 60%, var(--mint-deep)); }
.col.plan h3::before { background: radial-gradient(circle at 35% 30%, #EBE3FF, var(--lilac) 60%, #7A5CE0); }
.notfor { margin-top: 22px; padding: 16px 20px; border-radius: 24px; background: linear-gradient(145deg, #FFF6EE, #FFE6D3); color: var(--ink); font-weight: 600; box-shadow: var(--clay-shadow-sm); }
details.more summary { font-size: .95rem; }
.notdo { border-left: 0; border-radius: 24px; color: var(--ink); }
.tablewrap { border-radius: 28px; padding: 8px; }
.plans { background: transparent; }
.plans th { background: transparent; color: var(--body); font-family: var(--head); border-bottom: 2px solid var(--line); }
.plans td { border-bottom: 1px solid var(--line); }
.plans tr:last-child td { border-bottom: 0; }
.plans .now { color: var(--ok); }
.faq { border-radius: 28px; padding: 8px 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary::after { color: var(--orange-text); }
.invite { background: transparent; padding: 30px 0 64px; }
.invite .wrap { background: linear-gradient(150deg, #2B4F8C, #1E2A44); border-radius: 36px; padding: 40px; box-shadow: 18px 18px 40px rgba(30,42,68,.35), inset 2px 2px 6px rgba(255,255,255,.15); }
.invite h2 { color: #fff; } .invite p { color: #D7E4F7; }
footer { background: #1E2A44; color: #C8D4EA; }
footer a { color: #fff; }
footer .base { border-top-color: #34466B; color: #A9B8D3; }
.sticky { background: rgba(236,244,253,.95); border-top: 0; box-shadow: 0 -6px 18px rgba(91,127,184,.2); }
#quizForm .lw-opt { border: 0; border-radius: 16px; background: linear-gradient(145deg, var(--card-1), var(--card-2)); box-shadow: var(--clay-shadow-sm); }
#quizForm .lw-opt:has(input:checked) { box-shadow: var(--clay-press); background: #E3EEFB; }
.lw-result { border-radius: 20px; }
.lw-link { color: var(--blue); }
.lw-msg.ok { color: var(--ok); }

/* ---------- Member app ---------- */
body > header { background: rgba(236,244,253,.85); backdrop-filter: blur(10px); border-bottom: 0; box-shadow: 0 6px 20px rgba(91,127,184,.15); }
.logo { font-family: var(--head); font-weight: 800; color: var(--ink); }
.logo img { width: 36px; height: 36px; }
.hbtn { border-radius: 999px; }
select.hbtn { padding-right: 28px; }
.chip, .step {
  border: 0; border-radius: 20px; background: linear-gradient(145deg, var(--card-1), var(--card-2)); box-shadow: var(--clay-shadow-sm); color: var(--ink);
}
.chip:active, .chip.sel, .step:active { box-shadow: var(--clay-press); background: #DCEAFB; border: 0; color: var(--ink); }
.chip.sel { outline: 3px solid var(--orange-1); outline-offset: -3px; }
.chip small { color: var(--muted); }
.bar, .progress { background: #D3E2F5; box-shadow: inset 2px 2px 4px rgba(91,127,184,.25); height: 14px; }
.bar i, .progress i { background: linear-gradient(90deg, #7FB1EC, var(--blue)); }
.bar i.over { background: linear-gradient(90deg, #E77A7F, var(--bad)); }
.note { background: rgba(255,255,255,.55); border-radius: 16px; color: var(--body); }
.verdict { border-radius: 24px; box-shadow: var(--clay-shadow-sm); }
.verdict.eat { background: linear-gradient(145deg, #EFFBF5, #D5F2E5); }
.verdict.eat_less { background: linear-gradient(145deg, #FFF6EE, #FFE3CC); }
.verdict.limit { background: linear-gradient(145deg, #FFF1F1, #FBD9DA); }
.verdict.eat h3 { color: var(--ok); } .verdict.eat_less h3 { color: var(--warn); } .verdict.limit h3 { color: var(--bad); }
.pie { border: 0; box-shadow: 6px 6px 12px rgba(91,127,184,.3), -4px -4px 10px rgba(255,255,255,.8); }
summary { color: var(--blue); }
th, td, .logrow, .hist, .eaten { border-color: var(--line); }
.hist img, .preview { border-radius: 18px; }
.tag.eat, .tag.ok { background: #D5F2E5; color: var(--ok); }
.tag.eat_less, .tag.high { background: #FFE3CC; color: var(--warn); }
.tag.limit, .tag.low, .tag.very_high { background: #FBD9DA; color: var(--bad); }
.alert { border-radius: 20px; }
.alert.low, .alert.very_high { background: #FFF1F1; border: 2px solid var(--bad); }
.alert.high { background: #FFF3E8; } .alert.ok { background: #EAF8F1; }
.tipcard { background: linear-gradient(145deg, #F1FBF7, #D9F2E7); }
.tip { border-bottom-color: #C3E6D6; }
.tip b { color: var(--mint-deep); }
.spinner { border-color: #D3E2F5; border-top-color: var(--orange-1); }
.shutter { background: linear-gradient(180deg, #CC3A40, #9E1C22); box-shadow: 0 10px 22px rgba(158,28,34,.3); }
.ok-msg { color: var(--ok); }
body > footer { background: transparent; color: var(--body); }
body > footer a { color: var(--blue); }

.invcode .c { display: block; white-space: nowrap; font-size: 1.35rem; }
.invbtns { display: flex; gap: 10px; margin-top: 4px; }
.invbtns .btn2 { flex: 1; }
.onplate { background: rgba(255,255,255,.6); border-radius: 20px; padding: 12px 14px; margin: 0 0 12px; box-shadow: var(--clay-press); }
.onplate h4 { font-family: var(--head); font-size: 1rem; margin-bottom: 4px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.prow:last-child { border-bottom: 0; }
.prow .tag { font-size: .85rem; padding: 4px 10px; white-space: nowrap; }
.invcode { font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .04em; color: var(--ink); background: #F7FBFF; border-radius: 16px; padding: 10px 14px; box-shadow: var(--clay-press); margin: 10px 0 4px; text-align: center; }
a.big.wa { background: linear-gradient(180deg, #1FA855, #128C4A); box-shadow: 0 10px 22px rgba(18,140,74,.3), inset 0 2px 3px rgba(255,255,255,.4); margin-top: 8px; }

.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 16px 26px; font: inherit; font-family: var(--head); font-size: 1.1rem; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(180deg, var(--orange-1), var(--orange-2)); text-shadow: 0 1px 1px rgba(110,35,0,.35); box-shadow: 0 12px 28px rgba(194,74,6,.38), inset 0 2px 3px rgba(255,255,255,.45), inset 0 -4px 6px rgba(120,40,0,.25); white-space: nowrap; }
.fab[hidden] { display: none; }
body:has(#snapFab:not([hidden])) main { padding-bottom: 96px; }

/* ---------- Legal pages and 404 ---------- */
body > header.legal-top { background: rgba(236,244,253,.85); backdrop-filter: blur(10px); border-bottom: 0; box-shadow: 0 6px 20px rgba(91,127,184,.15); display: flex; align-items: center; }
body > header.legal-top a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--head); font-weight: 800; }
body > header.legal-top img { width: 36px; height: 36px; }
main.legal { max-width: 820px; margin: 28px auto 40px; border-radius: 32px; padding: 34px 28px 40px; }
@media (max-width: 600px) { main.legal { margin: 16px 12px 28px; padding: 24px 18px 30px; } }

section[id], [id].block { scroll-margin-top: 86px; }
.top .btn, .lang-btn { white-space: nowrap; }
@media (max-width: 600px) { .brand small { display: none; } .brand img { width: 36px; height: 36px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Where you eat, menu check, one-tap fixes and AI coach (8 Nov 2026) */
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.where .small { width: 100%; margin: 0; }
.menubtn { margin-top: 10px; }
.pname { flex: 1 1 auto; min-width: 0; }
.pact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fixbtn { min-height: 36px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--navy, #1E2A44); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fixbtn:focus-visible { outline: 3px solid var(--orange-1); outline-offset: 2px; }
.fixbox { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; }
.fixbox[hidden] { display: none; }
.tag.unsure { background: #E9E2FB; color: #5B3FA8; font-size: .78rem; padding: 2px 8px; }
.coachchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
#coachChips details.more { width: 100%; }
.coachans { margin: 12px 0; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.7); box-shadow: var(--clay-press); }
.coachans .q { font-weight: 700; font-family: var(--head); margin-bottom: 6px; }
.coachans p { margin: 0 0 6px; }
.coachans.safety { border-left: 6px solid var(--orange-1); }
.coachtype { margin: 8px 0; }
.coachform { display: flex; gap: 8px; margin-top: 8px; }
.coachform input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.coachform .btn2 { flex: 0 0 auto; width: auto; margin: 0; padding: 0 18px; }
.pkcal { display: block; font-size: .8rem; color: var(--muted, #4A5878); font-weight: 600; margin-top: 2px; }
.plantotal { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--ink, #1E2A44); }
.tag.avoid { background: #FBD9DA; color: var(--bad); }

/* Body twin effect under a meal result */
.twinimp { margin-top: 14px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.55); }
.twinimp h4 { margin-bottom: 4px; }
.twinimp .tirow { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.twinimp .tirow .tag { justify-self: start; }
/* My plan card */
#planCard label { display: block; margin-top: 10px; font-weight: 600; }
#planCard input[type=email] { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
#planCard .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
#planCard .check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
#planCard .big, #planCard .btn2 { margin-top: 12px; }
#planCard ul.plain { list-style: none; padding: 0; margin: 6px 0 0; }
#planCard ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
#plQr img { display: block; margin: 10px auto; background: #fff; padding: 8px; border-radius: 12px; }
