/* ==========================================================================
   UtsavOS landing — "festival night" theme.
   Ink-dark base, marigold (the app icon's #E8590C) as the warm light source,
   teal (the icon's bead, #0F766E) reserved for "system / verified" signals.
   One cream section (#problem) breaks the dark rhythm.
   ========================================================================== */

:root {
  --bg: #0b0a10;
  --bg-2: #110f18;
  --bg-3: #17141f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f6f1ea;
  --muted: #aaa196;
  --faint: #776f66;

  --marigold: #ff7a1a;
  --marigold-deep: #e8590c;
  --saffron: #ffb347;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --rose: #ff5d73;

  --cream: #faf7f2;
  --ink: #1d1712;
  --ink-soft: #5e544a;
  --cream-line: #eadfce;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --deva: "Noto Sans Devanagari", "Sora", sans-serif;

  --r: 18px;
  --r-lg: 26px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:lang(hi), :lang(mr) { font-family: var(--deva); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--marigold); color: #1a0d03; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--marigold); color: #1a0d03; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 22px; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--saffron), var(--marigold) 45%, var(--marigold-deep));
  color: #1f0e02;
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.4) inset, 0 10px 30px -10px rgba(255, 122, 26, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.6) inset, 0 16px 40px -10px rgba(255, 122, 26, 0.9); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 179, 71, 0.5); transform: translateY(-2px); }
.btn--ghost[aria-pressed="true"] { border-color: var(--rose); color: #ffd2d8; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11, 10, 16, 0.72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; box-shadow: 0 0 24px -4px rgba(232, 89, 12, 0.7); }
.brand b { color: var(--marigold); font-weight: 700; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- shared type ---------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--saffron); margin-bottom: 18px;
}
.section--light .kicker { color: var(--marigold-deep); }
.h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; font-weight: 700; }
.h2--xl { font-size: clamp(32px, 4.6vw, 56px); }
.lede { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); margin-top: 18px; max-width: 640px; }
.section--light .lede { color: var(--ink-soft); }
.grad {
  background: linear-gradient(100deg, var(--saffron), var(--marigold) 40%, #ff4d6d 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6); animation: pulse 2s infinite; flex: none; }
.pulse-dot--teal { background: var(--teal); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); animation-name: pulseTeal; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
@keyframes pulseTeal { 70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--deep { background: radial-gradient(1200px 500px at 50% 0%, rgba(255, 122, 26, 0.07), transparent 70%), var(--bg-2); }
.section--light { background: var(--cream); color: var(--ink); }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 780px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lede { margin-left: auto; margin-right: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; padding: 150px 0 90px; overflow: hidden; isolation: isolate; }
.lights { position: absolute; top: 0; left: 0; width: 100%; height: 140px; z-index: 1; overflow: visible; }
.lights .wire { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.2; }
.lights .bulb { transform-box: fill-box; transform-origin: center; animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }

.hero__floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: floor 18s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none; }
.hero__glow--a { width: 620px; height: 620px; top: -160px; right: -120px; background: rgba(232, 89, 12, 0.32); }
.hero__glow--b { width: 520px; height: 520px; bottom: -200px; left: -160px; background: rgba(15, 118, 110, 0.28); }
.hero__glow--c { width: 700px; height: 500px; top: 10%; left: 50%; transform: translateX(-50%); background: rgba(232, 89, 12, 0.14); }

.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero__title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero__sub { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--muted); max-width: 560px; margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 36px 0 0; }
.hero__chips li {
  font-size: 13px; color: var(--muted); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}

/* event card */
.hero__stage { position: relative; perspective: 1400px; }
.event-card {
  position: relative; overflow: hidden;
  padding: 26px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 179, 71, 0.06) inset, 0 0 80px -30px rgba(255, 122, 26, 0.5);
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.event-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 179, 71, 0.7), transparent 35%, transparent 65%, rgba(45, 212, 191, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ec__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ec__status { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 600; }
.ec__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.ec__date { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.ec__title { font-size: 23px; margin-top: 14px; }
.ec__venue { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ec__guests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.ec__guests > div { padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.ec__guests small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ec__guests b { font-family: var(--display); font-size: 30px; font-weight: 700; display: block; margin-top: 2px; }
.ec__lock b { font-size: 21px; color: var(--saffron); margin-top: 8px; }
.ec__rows { margin-top: 18px; display: grid; gap: 14px; }
.ec__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.ec__row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ec__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; }
.ec__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--saffron), var(--marigold)); transform-origin: left; animation: grow 1.6s var(--ease) 0.6s both; }
.ec__bar--buy::after { background: linear-gradient(90deg, var(--marigold), var(--rose)); }
.ec__bar--teal::after { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }
@keyframes grow { from { transform: scaleX(0); } }
.ec__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }
.ec__foot b { color: var(--text); font-size: 16px; }
.ec__scan { position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(255, 179, 71, 0.08), transparent); animation: scan 5s linear infinite; }
@keyframes scan { to { top: 110%; } }

.toast {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 11px 15px 11px 11px; border-radius: 14px;
  background: rgba(23, 20, 31, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 13.5px; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.toast b { display: block; font-weight: 600; }
.toast small { color: var(--muted); font-size: 12px; }
.toast__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.toast__ic--wa { background: rgba(37, 211, 102, 0.16); color: #4ade80; }
.toast__ic--ok { background: rgba(45, 212, 191, 0.14); color: var(--teal); }
.toast__ic--warn { background: rgba(255, 122, 26, 0.16); color: var(--saffron); }
.toast--1 { top: -26px; left: -54px; }
.toast--2 { bottom: -58px; right: -28px; animation-delay: -2s; }
.toast--3 { bottom: -30px; left: -20px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker__track span { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--faint); padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker__track span::after { content: "→"; color: var(--marigold); opacity: 0.7; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================================
   PROBLEM (cream)
   ========================================================================== */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain { background: #fff; border: 1px solid var(--cream-line); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 1px 2px rgba(29, 23, 18, 0.04), 0 20px 40px -28px rgba(29, 23, 18, 0.3); transition: transform 0.4s var(--ease); }
.pain:hover { transform: translateY(-6px); }
.pain__time { font-size: 12px; color: var(--marigold-deep); letter-spacing: 0.06em; }
.pain__bubble {
  margin: 12px 0 22px; padding: 14px 16px; border-radius: 4px 16px 16px 16px;
  background: #e7f7ef; color: #183a2a; font-size: 15px; line-height: 1.5; position: relative;
}
.pain h3 { font-size: 20px; color: var(--ink); }
.pain p { color: var(--ink-soft); font-size: 15.5px; margin-top: 8px; }

/* ==========================================================================
   ENGINE (signature interactive)
   ========================================================================== */
.panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.panel__label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); margin-bottom: 14px; }
.engine__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; align-items: stretch; }

.guests { display: flex; align-items: baseline; gap: 12px; }
.guests__num { font-size: clamp(58px, 7vw, 84px); font-weight: 600; line-height: 1; background: linear-gradient(180deg, #fff, var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guests__unit { color: var(--muted); font-size: 16px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 14px 0 4px; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--marigold) var(--fill, 30%), rgba(255, 255, 255, 0.1) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--marigold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--marigold); box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.2), 0 0 24px rgba(255, 122, 26, 0.8); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--marigold); box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.2), 0 0 24px rgba(255, 122, 26, 0.8); cursor: grab; }
.range__ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-bottom: 30px; }

.dishes { display: flex; flex-wrap: wrap; gap: 10px; }
.dish {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 14.5px; color: var(--muted);
  transition: all 0.25s var(--ease);
}
.dish i { width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid currentColor; transition: inherit; }
.dish[data-veg="false"] i { border-radius: 50%; }
.dish[aria-pressed="true"] { color: var(--text); border-color: rgba(255, 122, 26, 0.7); background: rgba(255, 122, 26, 0.12); box-shadow: 0 0 24px -8px rgba(255, 122, 26, 0.8); }
.dish[aria-pressed="true"][data-veg="true"] i { background: #22c55e; border-color: #22c55e; }
.dish[aria-pressed="true"][data-veg="false"] i { background: #ef4444; border-color: #ef4444; }

.learned { display: flex; gap: 12px; margin-top: 30px; padding: 16px; border-radius: 14px; border: 1px solid rgba(45, 212, 191, 0.25); background: rgba(15, 118, 110, 0.12); font-size: 14px; color: #b9ece4; }
.learned b { color: #e7fffb; font-weight: 600; }
.learned__dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px var(--teal); flex: none; }

.out__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.lg--stock::before { background: var(--teal); }
.lg--buy::before { background: var(--marigold); }

.mats { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mat { display: grid; grid-template-columns: 130px 1fr 92px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mat.is-new { animation: matIn 0.45s var(--ease) both; }
.mat:last-child { border-bottom: 0; }
@keyframes matIn { from { opacity: 0; transform: translateX(-8px); } }
.mat__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat__track { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.mat__stock { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transition: width 0.5s var(--ease); }
.mat__buy { background: linear-gradient(90deg, var(--marigold), var(--rose)); transition: width 0.5s var(--ease); box-shadow: 0 0 14px rgba(255, 122, 26, 0.6); }
.mat__qty { text-align: right; font-family: var(--mono); font-size: 13px; }
.mat__qty small { display: block; color: var(--saffron); font-size: 11.5px; }
.mat__qty small.ok { color: var(--teal); }

.pos { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.pos__list { display: flex; flex-wrap: wrap; gap: 10px; min-height: 52px; }
.po { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; animation: matIn 0.4s var(--ease) both; }
.po__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 122, 26, 0.15); color: var(--saffron); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.po small { display: block; color: var(--muted); font-size: 12px; }
.po--none { color: var(--muted); background: transparent; border-style: dashed; }
.engine__note { margin-top: 20px; font-size: 12.5px; color: var(--faint); }

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; }
.card__tag { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--saffron); margin-bottom: 12px; }
.card h3 { font-size: 22px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.card > [aria-hidden] { margin-top: auto; padding-top: 26px; }
.glow-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 26, 0.13), transparent 45%);
}
.glow-card:hover::after { opacity: 1; }
.glow-card:hover { border-color: var(--line-2); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 6px; background: rgba(255, 255, 255, 0.05); position: relative; transition: transform 0.2s; }
.cal span[data-l="1"] { background: rgba(255, 122, 26, 0.18); }
.cal span[data-l="2"] { background: rgba(255, 122, 26, 0.38); }
.cal span[data-l="3"] { background: rgba(255, 122, 26, 0.65); }
.cal span[data-l="4"] { background: var(--marigold); box-shadow: 0 0 16px rgba(255, 122, 26, 0.7); }
.cal span.is-flag { outline: 2px solid var(--rose); outline-offset: 2px; animation: flag 1.6s ease-in-out infinite; }
.cal span.is-flag::after {
  content: "Chairs 96% committed"; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 11.5px; font-family: var(--mono); padding: 5px 9px; border-radius: 8px;
  background: var(--rose); color: #2a0008; font-weight: 600;
}
@keyframes flag { 50% { outline-color: rgba(255, 93, 115, 0.3); } }

/* chat */
.chat { display: grid; gap: 6px; justify-items: end; }
.chat__msg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px 14px 4px 14px; background: #134d37; color: #dcfce7; font-size: 14px; max-width: 100%; }
.chat__msg small { color: #9fe0bd; display: block; font-size: 12px; }
.chat__doc { width: 38px; height: 44px; border-radius: 6px; display: grid; place-items: center; background: #fff; color: var(--marigold-deep); font-family: var(--mono); font-size: 10px; font-weight: 700; flex: none; }
.chat__ticks { font-size: 12px; color: var(--muted); }
.chat__ticks i { font-style: normal; color: #38bdf8; margin-left: 4px; }

/* meter */
.meter { display: grid; place-items: center; }
.meter__ring {
  --p: 50; width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--bg-3) 78%, transparent 79% 100%), conic-gradient(var(--marigold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 40px -10px rgba(255, 122, 26, 0.6);
}
.meter__ring b { font-size: 26px; }
.meter__ring small { color: var(--muted); font-size: 12px; }

/* chain */
.chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chain span { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.chain i { flex: 1; min-width: 14px; height: 1px; background: var(--line-2); }
.chain .is-done { color: var(--teal); border-color: rgba(45, 212, 191, 0.5); background: rgba(45, 212, 191, 0.1); }
.chain .is-live { color: var(--saffron); border-color: rgba(255, 179, 71, 0.6); box-shadow: 0 0 20px -6px rgba(255, 122, 26, 0.8); }

/* P&L bars */
.pl { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.pl > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.pl i { width: 100%; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(255, 179, 71, 0.6), rgba(255, 122, 26, 0.15)); transform-origin: bottom; }
.pl span { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.pl--margin i { background: linear-gradient(180deg, var(--teal), rgba(15, 118, 110, 0.3)); box-shadow: 0 0 20px -4px var(--teal); }
.is-in .pl i { animation: rise 1.2s var(--ease) both; }
@keyframes rise { from { transform: scaleY(0); } }

/* FEFO */
.card__split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.card--full .card__split > [aria-hidden] { padding-top: 0; }
.fefo { display: flex; gap: 12px; }
.fefo__batch { flex: 1; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; position: relative; }
.fefo__batch small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fefo__batch em { position: absolute; top: -10px; right: 12px; font-style: normal; font-size: 11px; font-family: var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--teal); color: #042522; font-weight: 600; }
.fefo__batch.is-next { border-color: rgba(45, 212, 191, 0.55); background: rgba(15, 118, 110, 0.14); box-shadow: 0 0 30px -12px var(--teal); }

/* ==========================================================================
   ROLES
   ========================================================================== */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.roles__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.role-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--muted);
  transition: all 0.25s var(--ease);
}
.role-btn i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: 13px; color: #1f0e02; background: var(--c); }
.role-btn[aria-selected="true"] { color: var(--text); border-color: var(--c); box-shadow: 0 0 26px -8px var(--c); background: rgba(255, 255, 255, 0.07); }

.roles__screen {
  padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.rs__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rs__head b { font-family: var(--display); font-size: 20px; display: block; }
.rs__head small { color: var(--muted); font-size: 14px; }
.rs__avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #1f0e02; background: var(--c, var(--marigold)); box-shadow: 0 0 30px -6px var(--c, var(--marigold)); transition: background 0.3s; }
.rs__label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); margin: 20px 0 12px; }
.rs__menu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs__menu li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); transition: all 0.35s var(--ease); }
.rs__menu li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); flex: none; transition: inherit; }
.rs__menu li.is-off { opacity: 0.32; filter: saturate(0); border-style: dashed; }
.rs__menu li.is-off::before { background: transparent; box-shadow: none; border: 1.5px solid var(--faint); }
.rs__menu li.is-off span { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }
.rs__foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   FIELD / PHONE
   ========================================================================== */
.field { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.phone {
  width: 300px; max-width: 100%; justify-self: center; position: relative;
  padding: 12px; border-radius: 44px; background: linear-gradient(160deg, #2a2633, #121017);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(255, 122, 26, 0.55);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.phone__screen { border-radius: 33px; background: var(--cream); color: var(--ink); padding: 18px 18px 22px; min-height: 520px; display: flex; flex-direction: column; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; padding: 0 8px 26px; }
.signal { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.signal i { width: 3px; background: var(--ink); border-radius: 1px; transition: opacity 0.3s; }
.signal i:nth-child(1) { height: 4px; } .signal i:nth-child(2) { height: 6px; } .signal i:nth-child(3) { height: 8px; } .signal i:nth-child(4) { height: 11px; }
.phone.is-offline .signal i { opacity: 0.18; }
.phone__eyebrow { font-size: 12px; color: var(--marigold-deep); font-weight: 600; }
.phone__title { font-size: 21px; margin-top: 4px; }
.phone__progress { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.checklist { list-style: none; padding: 0; margin: 18px 0 auto; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 11px; padding: 11px 12px; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; font-size: 14px; cursor: pointer; user-select: none; transition: background 0.25s; }
.checklist li em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--ink-soft); }
.checklist li i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c8bba6; flex: none; display: grid; place-items: center; transition: all 0.25s var(--ease); }
.checklist li.is-done i { background: var(--teal-deep); border-color: var(--teal-deep); }
.checklist li.is-done i::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; font-style: normal; }
.checklist li.is-done span { color: var(--ink-soft); }
.checklist li.is-pending { background: #fff6ec; border-color: #f6c99a; }
.sync { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #e3f4f1; color: var(--teal-deep); font-size: 13px; font-weight: 600; transition: all 0.3s; }
.sync__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.phone.is-offline .sync { background: #fdeee0; color: #a5410a; }
.phone.is-offline .sync__dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.field__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); font-weight: 600; transition: all 0.2s; }
.seg button.is-active { background: var(--marigold); color: #1f0e02; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15.5px; }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--teal); background: radial-gradient(circle, var(--teal) 30%, transparent 34%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 9vw, 110px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stats > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: clamp(40px, 4.5vw, 56px); font-weight: 600; line-height: 1; background: linear-gradient(180deg, #fff, var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   MADE FOR INDIA — GST invoice + India-specific cards, under a marigold toran
   ========================================================================== */
.india { overflow: hidden; }
/* a toran across the top: marigolds strung edge to edge, mango leaves hanging between */
.toran {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; pointer-events: none;
  background:
    radial-gradient(circle at 13px 11px, var(--saffron) 0 4px, var(--marigold) 5px 8px, var(--marigold-deep) 9px 10px, transparent 11px) 0 0 / 26px 24px repeat-x,
    radial-gradient(6px 13px at 26px 30px, #3f8f4a 0 96%, transparent 100%) 0 0 / 52px 44px repeat-x;
  opacity: 0.9;
}
.toran::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgba(255, 179, 71, 0.35); }

.india__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.india__gst { grid-row: span 2; }
.india__gst .seg { align-self: flex-start; margin-top: 24px; }
.india__note { font-size: 12.5px !important; color: var(--faint) !important; margin-top: 14px !important; }

.gst { margin-top: 18px; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.gst__head { padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.gst__head b { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--saffron); }
.gst__head small { color: var(--muted); font-size: 12.5px; }
.gst__rows { margin: 10px 0 0; display: grid; font-size: 13.5px; }
.gst__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.gst__rows dt { color: var(--muted); }
.gst__rows dd { margin: 0; }
.gst__intra, .gst__inter { animation: matIn 0.4s var(--ease) both; }
.gst__intra dd, .gst__inter dd { color: var(--teal); }
.gst__inter, .gst.is-inter .gst__intra { display: none !important; }
.gst.is-inter .gst__inter { display: flex !important; }
.gst__total { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--line-2); font-size: 15.5px; font-weight: 600; }
.gst__total dt { color: var(--text) !important; }

.trust { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); }
.trust__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 122, 26, 0.14); color: var(--saffron); }
.trust__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust__ic--rupee { font-family: var(--display); font-size: 21px; font-weight: 700; }
.trust h3 { font-size: 18px; line-height: 1.25; letter-spacing: -0.015em; }
.trust p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.india__strip { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.india__strip li { font-size: 13.5px; color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.india__strip li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; vertical-align: middle; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 8px var(--marigold); }

/* ==========================================================================
   BEHIND THE MARK (cream)
   ========================================================================== */
.mark__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "stage head" "stage parts"; gap: 28px 72px; align-items: center; }
.mark__head { grid-area: head; }
.mark__head .h2 { max-width: 20ch; }
.mark__stage { grid-area: stage; display: grid; justify-items: center; }
.mark__tile {
  width: 260px; aspect-ratio: 1; border-radius: 22%; overflow: hidden;
  box-shadow: 0 0 0 10px rgba(232, 89, 12, 0.07), 0 0 0 22px rgba(232, 89, 12, 0.04), 0 30px 60px -20px rgba(232, 89, 12, 0.6);
  transition: box-shadow 0.35s var(--ease);
}
.tent { width: 100%; height: 100%; cursor: pointer; }
.tent .part { transition: opacity 0.35s var(--ease), filter 0.35s; }
.part--ridge { opacity: 0.42; }

/* focus: the chosen part stays lit, the rest step back */
.tent.has-focus .part { opacity: 0.22; }
/* the field darkens rather than fades, so the tile never washes out on cream */
.tent.has-focus .part--field { opacity: 1; filter: brightness(0.62) saturate(0.85); }
.tent.has-focus .part.is-focus { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.85)); }
.tent.has-focus .part--field.is-focus { filter: brightness(1.08) saturate(1.1); }
.tent.has-focus .part--bead.is-focus { filter: drop-shadow(0 0 7px rgba(45, 212, 191, 0.95)); }
.mark__tile:has(.part--field.is-focus) { box-shadow: 0 0 0 10px rgba(232, 89, 12, 0.16), 0 0 0 22px rgba(232, 89, 12, 0.09), 0 30px 70px -14px rgba(232, 89, 12, 0.85); }

/* assembly: ground line → canopy draws → inner ridge draws → finial drops in */
.part--ground { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(0); }
.part--canopy, .part--ridge { stroke-dasharray: 1; stroke-dashoffset: 1; }
.part--bead { transform-box: fill-box; transform-origin: 50% 50%; transform: translateY(-30px) scale(0); }
.mark__stage.is-in .part--ground { transform: none; transition: transform 0.6s var(--ease) 0.2s, opacity 0.35s; }
.mark__stage.is-in .part--canopy { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) 0.6s, opacity 0.35s, filter 0.35s; }
.mark__stage.is-in .part--ridge { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s var(--ease) 1.4s, opacity 0.35s, filter 0.35s; }
.mark__stage.is-in .part--bead { transform: none; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2s, opacity 0.35s, filter 0.35s; }
.mark__stage.is-in .bead__core { animation: beadGlow 3.2s ease-in-out 2.8s infinite; }
.tent.has-focus .part { transition-delay: 0s !important; }
@keyframes beadGlow { 50% { fill: #14b8a6; } }

.parts { grid-area: parts; align-self: start; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.parts li { border-top: 1px solid var(--cream-line); }
.parts li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--cream-line); }
.parts li:last-child { grid-column: 1 / -1; }
.parts button {
  position: relative; width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: none; border: 0; padding: 13px 4px 13px 0; color: var(--ink-soft);
  font-size: 14.5px; line-height: 1.5; transition: color 0.25s;
}
.parts button::before { content: ""; position: absolute; left: -12px; top: 13px; bottom: 13px; width: 2px; background: var(--marigold-deep); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.parts i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--marigold-deep); padding-top: 3px; flex: none; }
.parts b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; margin-bottom: 3px; }
.parts button:hover, .parts button.is-active { color: var(--ink); }
.parts button.is-active::before { transform: scaleY(1); }

/* ==========================================================================
   DEMO / FORM
   ========================================================================== */
.demo { overflow: hidden; isolation: isolate; }
.demo__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; position: relative; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 16px; }
.checks li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.direct { display: grid; gap: 10px; margin-top: 36px; max-width: 420px; }
.direct__link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: all 0.25s var(--ease); }
.direct__link:hover { border-color: rgba(255, 179, 71, 0.5); transform: translateX(4px); }
.direct__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 122, 26, 0.14); flex: none; }
.direct__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--saffron); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.direct__ic--wa { background: rgba(37, 211, 102, 0.14); }
.direct__ic--wa svg { stroke: #4ade80; }
.direct__txt b { display: block; font-size: 15px; }
.direct__txt small { color: var(--muted); font-size: 12.5px; }

.form {
  position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line-2); backdrop-filter: blur(18px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(255, 122, 26, 0.6);
}
.form__head h3 { font-size: 26px; }
.form__head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 7px; font-size: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; color: #ddd5ca; font-size: 13.5px; padding: 0; }
.field em { color: var(--marigold); font-style: normal; }
.field input, .field select, .field textarea, .field__phone {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus, .field__phone:focus-within { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18); }
.field__phone { display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; }
.field__phone > span { color: var(--muted); font-family: var(--mono); font-size: 14px; }
.field__phone input { border: 0; background: transparent; padding-left: 0; box-shadow: none !important; }
.field__err { display: none; color: #ff98a6; font-size: 12.5px; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid .field__phone { border-color: var(--rose); }
.field--chips { margin-top: 20px; }
.field--chips legend { margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.chips input:checked + span { color: #1f0e02; background: var(--saffron); border-color: var(--saffron); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.form > .field:not(.field--chips) { margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--marigold); flex: none; }
.field__err--consent { margin: 6px 0 0 29px; }
.consent-invalid .field__err--consent { display: block; }
.form .btn--block { margin-top: 22px; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(31, 14, 2, 0.3); border-top-color: #1f0e02; animation: spin 0.7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.ts { margin: 10px 0 6px; min-height: 65px; border-radius: 10px; }
.ts[hidden] { display: none; }
.ts.is-invalid { box-shadow: 0 0 0 1.5px var(--rose); }
.form__status { margin-top: 12px; font-size: 14px; color: #ffb4bf; min-height: 1em; }
.form__status a { color: var(--saffron); text-decoration: underline; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: rgba(17, 15, 24, 0.97); display: grid; place-content: center; text-align: center; padding: 32px; animation: matIn 0.4s var(--ease); }
.form__done[hidden] { display: none; }
.done__ic { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #042522; background: var(--teal); box-shadow: 0 0 50px -6px var(--teal); }
.form__done h3 { font-size: 26px; }
.form__done p { color: var(--muted); margin-top: 8px; max-width: 320px; }

/* ---------- footer + mobile bar ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__tag { color: var(--muted); font-size: 14px; }
.footer__copy { margin-left: auto; color: var(--faint); font-size: 13px; }
.mbar { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 80px; }
  .hero__stage { max-width: 480px; width: 100%; margin: 0 auto; }
  .engine__grid, .roles, .demo__inner { grid-template-columns: 1fr; gap: 40px; }
  .field { grid-template-columns: 1fr; gap: 56px; }
  .field__copy { order: -1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .india__grid { grid-template-columns: 1fr 1fr; }
  .india__gst { grid-row: auto; grid-column: 1 / -1; }
  .card--full .card__split { grid-template-columns: 1fr; gap: 24px; }
  /* mark: stacked, and the tile sticks under the nav while the parts list
     scrolls past, so a tapped part is always visible lighting up */
  .mark__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "parts"; gap: 24px; }
  .mark__stage { position: sticky; top: 72px; z-index: 2; margin-inline: -24px; padding: 14px 24px 20px; background: linear-gradient(var(--cream) 82%, rgba(250, 247, 242, 0)); }
  .mark__tile { width: 140px; box-shadow: 0 0 0 8px rgba(232, 89, 12, 0.07), 0 20px 40px -16px rgba(232, 89, 12, 0.6); }
  .parts { grid-template-columns: 1fr; }
  .parts li:nth-last-child(-n + 2) { border-bottom: 0; }
  .parts li:last-child { border-bottom: 1px solid var(--cream-line); }
}

/* six menu labels stop fitting on one line below ~1100px */
@media (max-width: 1100px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: rgba(11, 10, 16, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
}

@media (max-width: 860px) {
  .pains { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { padding: 0 16px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero { padding: 120px 0 70px; min-height: 0; }
  .hero__ctas .btn { width: 100%; }
  .event-card { transform: none; padding: 20px; }
  .toast { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .india__grid { grid-template-columns: 1fr; }
  .trust { padding: 22px; }
  .card { padding: 24px; }
  .cal { grid-template-columns: repeat(10, 1fr); }
  .cal span:nth-child(n + 41) { display: none; }
  .mat { grid-template-columns: 96px 1fr 80px; gap: 10px; font-size: 13.5px; }
  .rs__menu { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .fefo { flex-direction: column; }
  .footer__copy { margin-left: 0; }
  .mark__stage { margin-inline: -16px; padding-inline: 16px; }
  .parts button { padding-left: 12px; }
  .parts button::before { left: 0; }
  .mbar {
    display: flex; gap: 10px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 10, 16, 0.92);
    backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); flex: none; }
  .mbar__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--saffron); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mbar__cta { flex: 1; padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
