/* V8 — reference-matched customer experience. Visual only; order/session/chat behavior stays unchanged. */
html,body{max-width:100%;overflow-x:hidden!important;overscroll-behavior-x:none!important}
body.customer-mode{background:#eee5d4!important}
body.customer-mode .app{width:100%!important;min-width:0!important;overflow-x:hidden!important}
body.customer-mode #home[hidden],body.customer-mode #onboard[hidden],body.customer-mode #chat[hidden]{display:none!important}

/* Header — cream paper, green brand, compact navigation, reference-like proportions. */
body.customer-mode .top{position:relative!important;z-index:40!important;background:linear-gradient(180deg,#fffef9,#fff9ec)!important;border-bottom:1px solid #d7aa4b!important;box-shadow:0 5px 20px rgba(61,44,16,.08)!important;color:#123f31!important}
body.customer-mode .top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:4px;background:linear-gradient(90deg,#0d6445 0 48%,#e4a629 48% 72%,#b83e2f 72% 100%)}
body.customer-mode .seal{border-radius:50%!important;box-shadow:0 0 0 2px #d7a63b,0 5px 14px rgba(61,44,16,.12)!important}
body.customer-mode .brand h1{font-family:var(--f-display)!important;color:#0b4d36!important;font-weight:800!important;letter-spacing:-.02em!important}
body.customer-mode .brand small{color:#a26d14!important;font-weight:800!important;letter-spacing:.09em!important;text-transform:uppercase!important;overflow:visible!important;text-overflow:clip!important}
body.customer-mode .brand small::after{content:" · VINDHU ASSISTANT";color:#0b5a40;margin-left:5px}
body.customer-mode .tab{color:#48574f!important}
body.customer-mode .tab[aria-current=true],body.customer-mode .tab.active{background:#e7f0e7!important;color:#0b5b40!important}
body.customer-mode .theme-toggle{background:#fff9e7!important;border-color:#d8b45d!important;color:#a47117!important}
.header-order-v8{display:none;align-items:center;gap:8px;border:0;border-radius:999px;background:linear-gradient(180deg,#116846,#094d35);color:#fff;padding:10px 17px;font-weight:800;box-shadow:0 8px 18px rgba(11,86,59,.18)}
body.customer-mode:has(#home:not([hidden])) .header-order-v8{display:inline-flex}

@media(min-width:760px){
  body.customer-mode:has(#home:not([hidden])) .app,body.customer-mode:has(#onboard:not([hidden])) .app{max-width:1400px!important;height:auto!important;min-height:calc(100dvh - 24px)!important;overflow:visible!important}
  body.customer-mode:has(#home:not([hidden])),body.customer-mode:has(#onboard:not([hidden])){overflow-y:auto!important;overflow-x:hidden!important}
  body.customer-mode .top{min-height:74px!important;padding:10px 24px!important;gap:14px!important}
  body.customer-mode .seal{width:54px!important;height:54px!important}
  body.customer-mode .brand h1{font-size:28px!important}
  body.customer-mode .brand small{font-size:10.5px!important}
  body.customer-mode .tabs{margin-left:auto!important}
  body.customer-mode .tab{min-width:68px!important;font-size:11.5px!important}
  body.customer-mode .header-order-v8{margin-left:8px}
}

/* HOME — same composition as the approved reference: cream copy + rich image, then 3 image cards. */
body.customer-mode .customer-home{padding:0 0 calc(20px + env(safe-area-inset-bottom))!important;background:radial-gradient(circle at 18px 18px,rgba(205,151,45,.06) 1px,transparent 1.3px) 0 0/34px 34px,linear-gradient(180deg,#fffaf0,#f8ecd6 72%,#fff9ec)!important;overflow:visible!important}
body.customer-mode .home-hero{position:relative!important;display:grid!important;grid-template-columns:minmax(430px,.88fr) minmax(540px,1.12fr)!important;min-height:455px!important;margin:0!important;padding:48px 0 0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#fff9ec!important;box-shadow:none!important;color:#173d2e!important;isolation:isolate!important}
body.customer-mode .home-hero::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:48px!important;z-index:8!important;pointer-events:none!important;background:radial-gradient(ellipse at 50% -4%,#276f47 0 52%,transparent 55%) 0 0/44px 36px repeat-x!important}
body.customer-mode .home-hero::after{content:""!important;position:absolute!important;inset:12px!important;z-index:0!important;border:1px solid rgba(204,156,61,.18)!important;border-radius:24px!important;pointer-events:none!important}
body.customer-mode .home-copy{position:relative!important;z-index:4!important;min-width:0!important;align-self:stretch!important;justify-content:center!important;padding:30px 28px 30px 70px!important;background:linear-gradient(90deg,rgba(255,252,244,.995) 0%,rgba(255,250,238,.98) 80%,rgba(255,250,238,.88) 100%)!important}
body.customer-mode .home-eyebrow{color:#a06b12!important;background:transparent!important;border:0!important;padding:0!important;font-size:12px!important;font-weight:900!important;letter-spacing:.2em!important;text-transform:uppercase!important}
body.customer-mode .home-copy h2{color:#0a4a33!important;text-shadow:none!important;font-size:clamp(46px,4.7vw,66px)!important;line-height:.96!important;max-width:600px!important;margin:12px 0 11px!important;letter-spacing:-.035em!important}
body.customer-mode .home-copy>p{color:#4f5e55!important;max-width:560px!important;font-size:16px!important;line-height:1.42!important}
body.customer-mode .home-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;max-width:590px!important;margin-top:20px!important}
body.customer-mode .home-primary,body.customer-mode .home-secondary{min-height:58px!important;border-radius:17px!important}
body.customer-mode .home-primary{background:linear-gradient(180deg,#126a48,#095038)!important;color:#fff!important;border:1px solid #08452f!important;box-shadow:0 10px 22px rgba(11,86,59,.18)!important}
body.customer-mode .home-secondary{background:#fffdf8!important;color:#123f31!important;border:1px solid #d5b777!important;box-shadow:0 7px 18px rgba(70,52,20,.06)!important}
body.customer-mode .home-annuwrap{display:block!important;position:relative!important;right:auto!important;top:auto!important;width:100%!important;min-height:407px!important;margin:0!important;align-self:stretch!important;visibility:visible!important;opacity:1!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
body.customer-mode .home-annuwrap .home-motion-stage,body.customer-mode .home-annuwrap>.home-bubble{display:none!important}

body.customer-mode .home-section{margin:0!important;padding:12px 28px 0!important}
body.customer-mode .home-section-head{display:none!important}
body.customer-mode .home-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
body.customer-mode .home-tile{position:relative!important;overflow:hidden!important;display:grid!important;grid-template-columns:50px minmax(0,1fr) 38px!important;align-items:center!important;gap:12px!important;min-height:250px!important;padding:162px 16px 16px!important;border:1px solid #dec38a!important;border-radius:20px!important;background:linear-gradient(180deg,#fffefa,#fff6e5)!important;box-shadow:0 10px 24px rgba(71,54,28,.08)!important}
body.customer-mode .home-tile::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:154px!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;opacity:1!important}
body.customer-mode .home-tile::after{content:""!important;position:absolute!important;left:0!important;right:0!important;top:125px!important;height:31px!important;background:linear-gradient(to bottom,transparent,rgba(255,253,248,.98))!important}
body.customer-mode .tile-menu{display:none!important}
body.customer-mode .tile-icon{position:relative!important;z-index:2!important;width:50px!important;height:50px!important;border-radius:16px!important;background:#edf4e9!important;color:#0f5b40!important}
body.customer-mode .tile-copy,body.customer-mode .tile-arrow{position:relative!important;z-index:2!important}
body.customer-mode .tile-copy b{color:#133c2d!important;font-size:23px!important;line-height:1.05!important}
body.customer-mode .tile-copy small{color:#5f685f!important;font-size:12.5px!important;line-height:1.25!important}
body.customer-mode .tile-arrow{width:38px!important;height:38px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#0c6343!important;color:#fff!important;font-size:22px!important}
body.customer-mode .home-active{margin-inline:28px!important}
body.customer-mode .home-promise{margin:12px 28px 0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;border-top:1px solid #e2c98f!important;border-bottom:1px solid #e2c98f!important;background:#fffaf0!important}
body.customer-mode .home-promise>div{padding:12px 18px!important;border:0!important;border-right:1px solid #e3c991!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.customer-mode .home-promise>div:last-child{border-right:0!important}
body.customer-mode .heritage-signoff{margin:10px 28px 0!important;padding:10px 14px!important;border-radius:14px!important;background:linear-gradient(90deg,#0b4f37,#126849,#0b4f37)!important;border:1px solid #d4a84f!important;color:#f6d98d!important;font-weight:700!important}

/* ONBOARDING / SESSION — compact and image-rich; no giant empty green block. */
body.customer-mode .onboard{background:radial-gradient(circle at 18px 18px,rgba(206,151,42,.06) 1px,transparent 1.4px) 0 0/34px 34px,linear-gradient(180deg,#fff9ec,#f6ead5)!important;gap:12px!important;overflow:visible!important}
body.customer-mode #onboard #bubble{color:#173d2e!important;-webkit-text-fill-color:#173d2e!important;opacity:1!important;text-shadow:none!important;mix-blend-mode:normal!important;background:#fffaf0!important;border:1px solid #dfc58d!important}
body.customer-mode #onboard #bubble::selection{background:#dce9ff!important;color:#173d2e!important;-webkit-text-fill-color:#173d2e!important}
body.customer-mode .onboard .hero{position:relative!important;overflow:hidden!important;min-height:390px!important;padding:210px 42% 26px 28px!important;border:1.5px solid #d5a443!important;border-radius:26px!important;color:#fff!important;background-image:linear-gradient(0deg,rgba(8,77,52,.99) 0%,rgba(8,77,52,.94) 35%,rgba(8,77,52,.60) 52%,rgba(8,77,52,.08) 74%),url('/assets/heritage-hero-v5.svg')!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;box-shadow:0 16px 34px rgba(68,49,18,.12)!important}
body.customer-mode .onboard .hero::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:36px!important;background:radial-gradient(ellipse at 50% -5%,#2b7147 0 52%,transparent 55%) 0 0/40px 31px repeat-x!important;border-radius:26px 26px 0 0!important}
body.customer-mode .onboard .hero::after{content:""!important;position:absolute!important;inset:13px!important;border:1px solid rgba(247,218,151,.18)!important;border-radius:20px!important;pointer-events:none!important}
body.customer-mode .onboard .heroTop{position:absolute!important;left:26px!important;top:52px!important;width:46%!important;display:flex!important;align-items:center!important;gap:10px!important;z-index:5!important}
body.customer-mode .onboard .mascotBtn{flex:none!important;width:72px!important;height:72px!important;border-radius:22px!important;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,227,164,.4)!important}
body.customer-mode .onboard .mascotBtn .mascot{width:68px!important}
body.customer-mode .onboard .bubble{margin:0!important;padding:10px 13px!important;border-radius:16px 16px 16px 5px!important;font-size:12px!important;line-height:1.3!important;box-shadow:0 7px 18px rgba(0,0,0,.12)!important}
body.customer-mode .onboard .kick{position:relative!important;z-index:4!important;color:#ffe19c!important;background:rgba(255,255,255,.11)!important;border:1px solid rgba(247,218,151,.25)!important}
body.customer-mode .onboard .hero h2{position:relative!important;z-index:4!important;color:#fff!important;font-size:36px!important;line-height:1.02!important;margin:11px 0 8px!important;max-width:450px!important}
body.customer-mode .onboard .hero>p{position:relative!important;z-index:4!important;color:rgba(255,255,255,.92)!important;font-size:14px!important;line-height:1.45!important;max-width:440px!important}
body.customer-mode .steps{gap:9px!important}
body.customer-mode .steps li{border:1px solid #dec48b!important;background:linear-gradient(180deg,#fffdf8,#fff6e6)!important;box-shadow:0 6px 14px rgba(67,51,24,.04)!important}
body.customer-mode .steps b{background:#e5efe8!important;color:#0d5a3e!important}
body.customer-mode .assistant-trust{border-color:#b8cfbd!important;background:#eef6ec!important;color:#53665a!important}
body.customer-mode #startForm{border:1.5px solid #d8bb79!important;border-radius:24px!important;background:#fffdf8!important;box-shadow:0 16px 34px rgba(68,49,18,.09)!important;padding:20px!important;gap:12px!important}
body.customer-mode #startForm::before{content:"Start your private ordering session";display:block;color:#0d5138;font:700 24px/1.15 var(--f-display);margin-bottom:2px}
body.customer-mode #startForm::after{content:"Vindhu remembers this chat only in this browser. Annapurna reviews every placed order before cooking.";display:block;order:20;border-top:1px solid #eadabb;padding-top:10px;margin-top:2px;color:#687169;font-size:11.5px;line-height:1.4}
body.customer-mode #startForm input[type=text]{background:#fffaf0!important;border-color:#d8c297!important}
body.customer-mode #startForm #startBtn{background:linear-gradient(180deg,#146b49,#0d543a)!important;color:#fff!important;min-height:50px!important}

@media(min-width:760px){
  body.customer-mode .onboard{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(400px,.92fr)!important;grid-template-areas:"hero form" "steps form" "trust form" "tiny form"!important;gap:12px 16px!important;padding:16px 18px 20px!important;align-items:start!important}
  body.customer-mode .onboard>.hero{grid-area:hero!important}
  body.customer-mode .onboard>.steps{grid-area:steps!important}
  body.customer-mode .onboard>.assistant-trust{grid-area:trust!important}
  body.customer-mode .onboard>#startForm{grid-area:form!important;position:sticky!important;top:12px!important}
  body.customer-mode .onboard>.tiny{grid-area:tiny!important;margin-top:0!important}
}

/* Mobile/iPhone — normal page scrolling, no sideways drift, compact stacking. */
@media(max-width:759px){
  body.customer-mode:has(#home:not([hidden])),body.customer-mode:has(#onboard:not([hidden])){overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
  body.customer-mode:has(#home:not([hidden])) .app,body.customer-mode:has(#onboard:not([hidden])) .app{height:auto!important;min-height:100dvh!important;overflow:visible!important;border-radius:0!important}
  body.customer-mode:has(#chat:not([hidden])) .app{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  body.customer-mode .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand theme" "tabs tabs"!important;gap:6px!important;padding:calc(7px + env(safe-area-inset-top)) 10px 6px!important}
  body.customer-mode .brand-home{grid-area:brand!important;min-width:0!important}
  body.customer-mode .theme-toggle{grid-area:theme!important;width:42px!important;height:42px!important}
  body.customer-mode .tabs{grid-area:tabs!important;justify-content:center!important;gap:2px!important;border-top:1px solid #ead8af!important;padding-top:4px!important}
  body.customer-mode .tab{min-width:55px!important;padding:5px 6px 3px!important;font-size:10px!important}
  body.customer-mode .seal{width:46px!important;height:46px!important}
  body.customer-mode .brand h1{font-size:21px!important}
  body.customer-mode .brand small{font-size:8.8px!important;white-space:nowrap!important}
  body.customer-mode .brand small::after{font-size:8.8px!important;margin-left:3px!important}
  body.customer-mode .header-order-v8{display:none!important}

  body.customer-mode .home-hero{display:flex!important;flex-direction:column!important;min-height:0!important;padding:42px 0 0!important}
  body.customer-mode .home-annuwrap{order:1!important;min-height:225px!important;width:100%!important;background-position:center!important}
  body.customer-mode .home-copy{order:2!important;width:100%!important;padding:18px 16px 18px!important;text-align:left!important;background:#fffaf0!important}
  body.customer-mode .home-eyebrow{font-size:9.5px!important}
  body.customer-mode .home-copy h2{font-size:36px!important;line-height:.99!important;margin:8px 0 9px!important;max-width:360px!important}
  body.customer-mode .home-copy>p{font-size:13.5px!important;line-height:1.42!important}
  body.customer-mode .home-hero-actions{grid-template-columns:1fr!important;gap:8px!important;margin-top:14px!important}
  body.customer-mode .home-primary,body.customer-mode .home-secondary{width:100%!important;min-height:53px!important;border-radius:15px!important}
  body.customer-mode .home-section{padding:9px 10px 0!important}
  body.customer-mode .home-grid{grid-template-columns:1fr!important;gap:9px!important}
  body.customer-mode .home-tile{min-height:190px!important;padding:118px 13px 13px!important;grid-template-columns:44px minmax(0,1fr) 32px!important;border-radius:18px!important}
  body.customer-mode .home-tile::before{height:112px!important}
  body.customer-mode .home-tile::after{top:86px!important;height:28px!important}
  body.customer-mode .tile-icon{width:44px!important;height:44px!important;border-radius:14px!important}
  body.customer-mode .tile-copy b{font-size:19px!important}
  body.customer-mode .tile-copy small{font-size:11.5px!important}
  body.customer-mode .tile-arrow{width:32px!important;height:32px!important;font-size:18px!important}
  body.customer-mode .home-promise{margin:9px 10px 0!important;grid-template-columns:1fr 1fr!important;gap:0!important}
  body.customer-mode .home-promise>div{padding:9px!important;border-right:0!important;border-bottom:1px solid #e4d1a6!important}
  body.customer-mode .heritage-signoff{margin:9px 10px 0!important;font-size:10.5px!important;padding:9px 7px!important}

  body.customer-mode .onboard{display:flex!important;flex-direction:column!important;padding:9px 9px calc(20px + env(safe-area-inset-bottom))!important;gap:9px!important}
  body.customer-mode .onboard[hidden]{display:none!important}
  body.customer-mode .onboard .hero{min-height:390px!important;padding:228px 16px 20px!important;border-radius:23px!important;background-position:center top!important;background-size:auto 250px!important;background-color:#0b563b!important}
  body.customer-mode .onboard .heroTop{left:14px!important;right:14px!important;top:160px!important;width:auto!important;justify-content:center!important}
  body.customer-mode .onboard .mascotBtn{width:61px!important;height:61px!important;border-radius:18px!important}
  body.customer-mode .onboard .mascotBtn .mascot{width:58px!important}
  body.customer-mode .onboard .bubble{max-width:220px!important;font-size:11px!important;text-align:left!important}
  body.customer-mode .onboard .kick{display:flex!important;width:max-content!important;max-width:100%!important;margin:0 auto!important;font-size:9.5px!important}
  body.customer-mode .onboard .hero h2{font-size:29px!important;line-height:1.02!important;text-align:center!important;margin:10px 0 6px!important}
  body.customer-mode .onboard .hero>p{font-size:12.8px!important;text-align:center!important;line-height:1.4!important}
  body.customer-mode .steps{grid-template-columns:1fr!important;gap:7px!important}
  body.customer-mode .steps li{display:grid!important;grid-template-columns:29px 1fr!important;column-gap:9px!important;align-items:center!important;padding:9px 11px!important}
  body.customer-mode .steps li b{grid-row:1/3!important;margin:0!important}
  body.customer-mode #startForm{position:relative!important;top:auto!important;padding:16px!important;border-radius:21px!important}
  body.customer-mode #startForm::before{font-size:21px!important}
}

@media(max-width:380px){
  body.customer-mode .brand h1{font-size:19px!important}
  body.customer-mode .brand small{font-size:8px!important}
  body.customer-mode .brand small::after{font-size:8px!important}
  body.customer-mode .home-copy h2{font-size:32px!important}
  body.customer-mode .home-promise{grid-template-columns:1fr!important}
}

/* Dark theme preserves layout and imagery. */
html[data-theme="dark"] body.customer-mode{background:#08120c!important}
html[data-theme="dark"] body.customer-mode .top{background:linear-gradient(180deg,#15251b,#111e16)!important;border-bottom-color:#6a572d!important}
html[data-theme="dark"] body.customer-mode .customer-home,html[data-theme="dark"] body.customer-mode .onboard{background:linear-gradient(180deg,#101a13,#0c1510)!important}
html[data-theme="dark"] body.customer-mode .home-copy{background:linear-gradient(90deg,#17241b,#18261c)!important}
html[data-theme="dark"] body.customer-mode .home-copy h2,html[data-theme="dark"] body.customer-mode .tile-copy b{color:#edf4e9!important}
html[data-theme="dark"] body.customer-mode .home-copy>p,html[data-theme="dark"] body.customer-mode .tile-copy small{color:#aebbad!important}
html[data-theme="dark"] body.customer-mode .home-tile,html[data-theme="dark"] body.customer-mode #startForm,html[data-theme="dark"] body.customer-mode .steps li{background:linear-gradient(180deg,#1a281e,#152119)!important;border-color:#6b5832!important}
