:root {
  /* Sampled from the Taartary logo */
  --orange: #F9A129;
  --orange-deep: #EE8E12;
  --ink: #26160F;
  --ink-soft: #462B13;
  --cream: #FFF4E2;
  --cream-2: #FDE7C4;
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--orange);
  color: var(--ink);
  font-family: "Ubuntu", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 96px 16px 72px;
  isolation: isolate;
}
/* soft warm glow + faint dotted texture so the logo sits "inside" the page */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 50% 42%, #FFB84D 0%, transparent 70%),
    radial-gradient(40% 35% at 85% 90%, var(--orange-deep) 0%, transparent 70%),
    radial-gradient(35% 30% at 10% 10%, var(--orange-deep) 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: radial-gradient(var(--ink) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 60% at 50% 45%, transparent 35%, #000 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, transparent 35%, #000 100%);
}
.topbar {
  position: absolute; top: 20px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  width: min(1080px, 100% - 32px); margin-inline: auto;
  font-weight: 500; font-size: 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,244,226,.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.topbar a.ig { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

.eyebrow {
  font-family: "Baloo 2", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3em; font-size: clamp(12px, 1.6vw, 15px);
  color: var(--ink-soft); margin-bottom: 22px;
}
.wordmark {
  width: min(760px, 88vw); height: auto; display: block;
  filter: drop-shadow(0 5px 0 rgba(38,22,15,.12));
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.tagline {
  font-family: "Ubuntu", sans-serif; font-weight: 700;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.8vw, 28px);
  margin-top: clamp(14px, 2.4vw, 28px);
  letter-spacing: .02em;
  animation: rise .9s .15s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.launch {
  margin-top: 36px;
  animation: rise .9s .3s cubic-bezier(.2,.8,.2,1) both;
}
.launch h1 {
  font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: clamp(26px, 4.4vw, 44px); line-height: 1.1;
}
.launch p { margin-top: 6px; font-size: clamp(15px, 1.8vw, 18px); color: var(--ink-soft); }

.countdown {
  display: flex; gap: clamp(8px, 2vw, 16px); justify-content: center;
  margin-top: 26px; flex-wrap: wrap;
}
.cd {
  background: var(--ink); color: var(--cream);
  border-radius: 18px; min-width: clamp(68px, 16vw, 104px);
  padding: 12px 10px 10px;
  box-shadow: 0 6px 0 rgba(38,22,15,.25);
}
.cd b {
  display: block; font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: clamp(30px, 6vw, 48px); line-height: 1; font-variant-numeric: tabular-nums;
}
.cd span { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; opacity: .8; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 17px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 rgba(38,22,15,.3); }
.btn-light { background: var(--cream); color: var(--ink); box-shadow: 0 5px 0 rgba(38,22,15,.3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(38,22,15,.3); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(38,22,15,.3); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

.scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.scroll-hint svg { width: 18px; animation: bob 1.6s infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink); color: var(--orange);
  overflow: hidden; white-space: nowrap;
  transform: rotate(-1.5deg); margin: 0 -20px;
  border-block: 3px solid var(--ink);
}
.marquee-track { display: inline-flex; animation: scroll 26s linear infinite; }
.marquee span {
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(20px, 3vw, 30px);
  padding: 12px 22px; letter-spacing: .04em;
}
.marquee span.alt { color: var(--cream); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section.block { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.kicker {
  font-family: "Baloo 2", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .25em; font-size: 13px; color: var(--ink-soft);
}
.section-head h2 {
  font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin-top: 8px;
}
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }

.trust { background: var(--cream); }
.trust .section-head h2 em { font-style: normal; color: var(--orange-deep); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 6px 6px 0 var(--ink);
}
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; background: var(--orange);
  display: grid; place-items: center; margin-bottom: 16px; border: 2px solid var(--ink);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- ORDER ---------- */
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.order {
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  transition: transform .15s;
}
a.order:hover { transform: translateY(-3px); }
.order .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--cream); padding: 3px 10px; border-radius: 999px;
}
.order h3 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; margin-top: 6px; }
.order p { color: var(--ink-soft); font-size: 15px; }

/* ---------- NOTIFY FORM ---------- */
.notify { background: var(--ink); color: var(--cream); }
.notify .kicker, .notify .section-head p { color: var(--cream-2); }
.notify .section-head h2 { color: var(--orange); }
form.nf {
  max-width: 620px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--cream-2); }
.field input, .field select {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 2px solid var(--cream); border-radius: 14px;
  padding: 13px 14px; width: 100%;
}
.field input::placeholder { color: #9b8672; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nf .btn { grid-column: 1 / -1; background: var(--orange); color: var(--ink); border-color: var(--orange); font-size: 19px; padding: 14px; box-shadow: 0 5px 0 #000; }
.nf .btn[disabled] { opacity: .6; cursor: progress; }
.form-msg { grid-column: 1 / -1; text-align: center; min-height: 1.5em; font-weight: 500; }
.form-msg.ok { color: #9BE59B; }
.form-msg.err { color: #FFB3A1; }
.fineprint { grid-column: 1 / -1; text-align: center; font-size: 13px; color: #cbb8a2; }

/* ---------- FOOTER ---------- */
footer { padding: 56px 0 40px; text-align: center; }
footer .wm { width: min(480px, 80vw); height: auto; margin: 0 auto 14px; display: block; filter: drop-shadow(0 4px 0 rgba(38,22,15,.12)); }
footer .tl { font-weight: 700; color: var(--ink-soft); }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0; }
.contacts a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500;
  border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; background: rgba(255,244,226,.3);
}
.contacts svg { width: 18px; height: 18px; }
footer small { color: var(--ink-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  form.nf { grid-template-columns: 1fr; }
  .topbar { font-size: 12px; }
  .topbar .ig span { display: none; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- PRE-LAUNCH / LIVE SWITCH (body.is-live set by js/app.js) ---------- */
body:not(.is-live) .live-only,
body.is-live .pre-only { display: none !important; }
body.is-live .countdown { display: none; }

/* ---------- MENU ---------- */
.menu-status { font-weight: 500; }
.menu-status.is-closed {
  display: inline-block; background: var(--ink); color: var(--cream);
  padding: 6px 14px; border-radius: 999px; font-size: 15px;
}
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px;
  scrollbar-width: none; justify-content: safe center;
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; background: var(--cream);
}
.chip:hover { background: var(--ink); color: var(--cream); }
.menu-cat { scroll-margin-top: 20px; margin-top: 26px; }
.cat-title { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; margin-bottom: 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dish {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column;
}
.dish.is-soldout { opacity: .6; }
.dish-img { width: 100%; height: 170px; object-fit: cover; display: block; border-bottom: 2px solid var(--ink); background: var(--cream-2); }
.dish-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.badge { font-size: 12px; font-weight: 700; background: var(--orange); border-radius: 999px; padding: 2px 9px; border: 1.5px solid var(--ink); }
.dish-name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.15; }
.dish-desc {
  color: var(--ink-soft); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; }
.skeleton { height: 190px; background: linear-gradient(90deg, #fff 0%, var(--cream) 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; box-shadow: none; opacity: .7; }
@keyframes shimmer { to { background-position: -200% 0; } }
.menu-error { text-align: center; font-weight: 700; }

/* Indian veg / non-veg mark */
.veg { width: 16px; height: 16px; border: 2px solid; border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.veg::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.veg.is-veg { color: #1B8A3A; }
.veg.is-nonveg { color: #B3261E; }
.veg.is-nonveg::after { border-radius: 0; width: 0; height: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }

.add-btn {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
  padding: 6px 16px; box-shadow: 0 3px 0 var(--ink);
}
.add-btn:disabled { background: #eee; color: #8a7a6c; box-shadow: none; cursor: not-allowed; }
.sold-out { font-size: 13px; font-weight: 700; color: #B3261E; text-transform: uppercase; letter-spacing: .06em; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: var(--orange); overflow: hidden; }
.stepper button { font: inherit; font-weight: 800; font-size: 18px; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }

/* ---------- CART BAR ---------- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cart-bar[hidden] { display: none; }
.cart-bar-btn {
  pointer-events: auto; width: min(620px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  background: var(--ink); color: var(--cream); border: 2px solid var(--ink); border-radius: 18px;
  padding: 14px 20px; box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 10px 30px rgba(38,22,15,.35);
  animation: rise .35s ease both;
}
.cart-bar-btn > span:last-child { font-weight: 700; color: var(--orange); }
body:has(.cart-bar:not([hidden])) footer { padding-bottom: 110px; }

/* ---------- CHECKOUT SHEET ---------- */
.sheet {
  border: 2px solid var(--ink); border-radius: 24px; padding: 0; color: var(--ink); background: var(--cream);
  width: min(560px, calc(100% - 24px)); max-height: min(88vh, 820px);
  margin: auto; overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(38,22,15,.55); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px solid var(--ink); background: var(--orange); }
.sheet-head h2 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.icon-btn { font: inherit; font-size: 18px; font-weight: 700; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); cursor: pointer; color: var(--ink); }
.sheet-body { padding: 18px 20px 22px; overflow-y: auto; }
.sheet-body > [data-step] { display: flex; flex-direction: column; gap: 14px; }
.sheet-body > [hidden] { display: none; }
.cart-lines { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cart-lines li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; }
.cart-lines li.empty { display: block; text-align: center; color: var(--ink-soft); padding: 20px 0; }
.cl-name { font-weight: 700; line-height: 1.2; }
.cl-name small { display: block; font-weight: 400; color: var(--ink-soft); }
.cl-sum { font-weight: 700; min-width: 56px; text-align: right; }
.totals { border-top: 2px dashed rgba(38,22,15,.35); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.totals > div { display: flex; justify-content: space-between; color: var(--ink-soft); }
.totals .grand { color: var(--ink); font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; }
.sheet-note { font-size: 14px; color: var(--ink-soft); }
.sheet-note:empty { display: none; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wa-btn { background: #1FAF55; color: #fff; border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.linkish { font: inherit; background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; align-self: center; font-weight: 500; }
.checkout .field label { color: var(--ink); }
.checkout .field input { border-color: var(--ink); background: #fff; }
.checkout .form-msg:empty { display: none; }
.checkout .form-msg.err { color: #B3261E; }
.opt { opacity: .6; font-weight: 400; }
.done { text-align: center; }
.done-id { font-family: "Baloo 2", sans-serif; font-size: 20px; }
.upi-box { border: 2px solid var(--ink); border-radius: 18px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.upi-box h3 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; }
.upi-qr img, .upi-qr canvas { display: block; margin: 0 auto; }

@media (max-width: 560px) {
  .sheet { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .cart-lines li { grid-template-columns: auto 1fr auto; }
  .cl-sum { display: none; }
}
