/* Tokens copied from the Android/desktop app (android-app/src/theme/variables.scss, light theme). */
:root {
  --paper: #ffffff;
  --band: #fafafa;
  --rule: #dbdbdb;
  --ink: #000000;
  --muted: #737373;
  --accent: #0074cc;
  --accent-fill: #e0efff;
  --on-accent: #0a4a8a;
  --blue-soft: #e7f1fd;
  --yellow-soft: #fdf6dc;
  --pink-soft: #fce8f1;
  --green-soft: #e6f4ea;
  --radius: 14px;
  --pill: 100px;
  --shadow: 0 1px 2px #0000000d, 0 4px 16px #0000000a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 "Noto Sans Devanagari", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 600; margin: 48px 0 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: 15px; }
.lead { font-size: 19px; margin: 0; max-width: 62ch; }

/* App-style mask icons: an SVG drawn in the text colour. */
.icon {
  display: inline-block; width: 24px; height: 24px; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--paper); padding: 6px 12px; border-radius: var(--pill); }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 10; background: #ffffffeb; border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: var(--pill); }
.topbar nav a:hover { background: var(--band); }
.topbar nav a.pill { background: var(--accent); color: #fff; padding: 6px 16px; }
@media (max-width: 560px) {
  .topbar nav a:not(.pill) { display: none; }
}

/* ---- Buttons (the app's pill controls) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: var(--pill); background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s, box-shadow .15s;
}
.btn:hover { background: #0063b0; box-shadow: 0 4px 14px #0074cc33; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--band); box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[aria-disabled="true"] { background: #ececec; border-color: #ececec; color: #8a8a8a; cursor: default; box-shadow: none; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Hero ---- */
.hero { padding: 40px 0 56px; background: radial-gradient(ellipse 70% 60% at 75% 45%, var(--blue-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px; }
.place { font-size: 20px; margin: 10px 0 0; }
.motto { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
  .hero { padding-top: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { order: 2; text-align: center; }
  .cta { justify-content: center; }
}

/* ---- 3D stages: a canvas over a still picture or soft background ---- */
.stage { position: relative; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .6s; }
.stage.live canvas { opacity: 1; }
/* multiply drops the picture's white backdrop into the hero's soft blue. */
.stage .still { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .6s; }
.stage.live .still { opacity: 0; }
.stage.no-3d canvas, .stage.no-3d .drag-hint { display: none; }
.building { aspect-ratio: 1 / .85; }
.drag-hint { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; text-align: center; color: var(--muted); font-size: 13px; opacity: 0; transition: opacity .6s; }
.stage.live .drag-hint { opacity: 1; }
@media (max-width: 860px) { .building { aspect-ratio: 1 / .72; } }

/* ---- Sections ---- */
.block { padding: 80px 0; }
.band { background: var(--band); }
.block.band { border-top: 1px solid #efefef; border-bottom: 1px solid #efefef; }

.stats { list-style: none; margin: 0 auto; padding: 32px 16px; display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.stats li { border-radius: var(--radius); padding: 20px; }
.stats b { display: block; font-size: 34px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats span { color: #3d3d3d; font-size: 15px; }
.soft-blue { background: var(--blue-soft); } .soft-yellow { background: var(--yellow-soft); }
.soft-pink { background: var(--pink-soft); } .soft-green { background: var(--green-soft); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 20px 16px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; color: #262626; }

.founder { margin-top: 48px; }
.founder .name { font-size: 22px; font-weight: 700; margin: 0; }
.founder .tag { display: inline-block; margin: 6px 0 4px; padding: 2px 12px; border-radius: var(--pill); background: var(--accent-fill); color: var(--on-accent); font-size: 14px; font-weight: 600; }
.founder p { margin: 6px 0 0; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; transition: box-shadow .2s, transform .2s; }
.cards li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
/* Icon on a soft tile: the tile is the element, the icon its ::after (a mask can't have a background). */
.cards .icon { grid-row: span 2; position: relative; width: 44px; height: 44px; border-radius: 12px;
  background-color: var(--accent-fill); -webkit-mask: none; mask: none; }
.cards .icon::after { content: ""; position: absolute; inset: 10px; background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.cards b { font-weight: 600; }
.cards span:not(.icon) { color: var(--muted); font-size: 15px; }

.chips, .dewey { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 16px; border-radius: var(--pill); background: #efefef; font-size: 15px; }
.dewey { margin-top: 24px; }
.dewey li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--rule); font-size: 15px; }
.dewey li i { width: 10px; height: 22px; border-radius: 3px; background: var(--c); }
.dewey li b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }

.shelf { aspect-ratio: 2 / 1; max-height: 480px; width: 100%; margin-top: 28px; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 40%, #fff, #f1f3f6); border: 1px solid #efefef; overflow: hidden; }
.tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 6px 14px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: 15px; white-space: nowrap; opacity: 0; transform: translate(-50%, -140%); transition: opacity .15s; }
.tip.show { opacity: 1; }
.tip b { font-weight: 500; opacity: .7; margin-right: 6px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.2fr 1fr; }
.split.reverse .stage { order: 2; }
.split .btn { margin-top: 24px; }
.split .small { margin: 10px 0 0; }
.phone, .pin { height: 440px; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 16px; }
  .split.reverse .stage { order: 0; }
  .phone, .pin { height: 300px; }
}

.contact { display: grid; gap: 12px; margin-top: 20px; }
.contact .card > .icon { color: var(--accent); margin-bottom: 8px; }
.contact address { font-style: normal; margin-bottom: 14px; }
.contact p { margin: 0; }
.phone-link { display: inline-block; font-size: 26px; font-weight: 700; color: var(--ink); text-decoration: none; margin: 4px 0; font-variant-numeric: tabular-nums; }

footer { padding: 32px 0 40px; border-top: 1px solid var(--rule); }
footer p { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
footer p.small { font-weight: 400; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
