/* Bengali Adda website: "a mela at dusk".
   Deep-teal evening sections with strings of lights, warm paper sections in between,
   marigold for every "get the app" button. Colours follow the app (lib/core/theme/app_theme.dart).
   Type: Anek Bangla for headings (English and Bengali drawn as one family, like Kolkata's
   hand-painted signs), Hind Siliguri for reading. Both are bundled in fonts/ (no Google request).
   Sections: fonts · base · header · footer · legal pages · home · download page.
   Breakpoints: 1100px, 860px (tablet → phone layout), 560px, 420px. */

/* ---------------------------------------------------------------- fonts (SIL Open Font License, see fonts/) */
/* Anek Bangla: width fixed at 112 (wide, sign-painter feel), weight 500–800 variable. */
@font-face {
  font-family: "Anek Bangla"; font-style: normal; font-display: swap; font-weight: 500 800;
  src: url("fonts/anek-bangla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Anek Bangla"; font-style: normal; font-display: swap; font-weight: 500 800;
  src: url("fonts/anek-bangla-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/hind-siliguri-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/hind-siliguri-bengali-400.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("fonts/hind-siliguri-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("fonts/hind-siliguri-bengali-600.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC;
}

/* ---------------------------------------------------------------- base */
:root {
  --dusk: #0B3B37;          /* evening sky: hero, header, footer, closing panel */
  --dusk-deep: #072B28;
  --teal: #0F766E;          /* the app's primary */
  --teal-deep: #115E59;
  --marigold: #F5B023;      /* every "get the app" button, the lights, highlights */
  --marigold-soft: #FFC64A;
  --sindoor: #D9482B;       /* tiny accents only */
  --paper: #FFFBF3;         /* reading sections */
  --haldi: #FCEBC1;         /* Adda Tables band */
  --mint: #E3F4F1;          /* safety band, chips */
  --ink: #13201E;
  --muted: #56625F;
  --line: #E4E8E2;
  --on-dusk: #FFF6E5;       /* text on dusk */
  --on-dusk-muted: #B9D6CF;
  --page: 1160px;
  --gutter: max(20px, calc((100% - var(--page)) / 2));
  --display: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --sans: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }   /* anchors land below the sticky header */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--sans); }
:lang(bn) { line-height: 1.78; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 8px;
}

/* Language: site.js sets <html data-lang>; only that language's copy is shown */
html[data-lang="en"] [lang="bn"].l, html[data-lang="bn"] [lang="en"].l { display: none !important; }

/* Headings: Anek Bangla. Latin is tightened a little; Bengali keeps normal spacing so the
   headline bar (matra) stays joined, and gets more line height for vowel signs above and below. */
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 [lang="bn"], h2 [lang="bn"] { letter-spacing: 0; }
h3 { text-wrap: balance; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; border: 0;
  font: 600 17px/1.3 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--marigold); color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(245, 176, 35, .75), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn-primary:hover { background: var(--marigold-soft); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn-quiet:hover { background: var(--mint); color: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--on-dusk); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 229, .5); }
.btn-ghost:hover { background: rgba(255, 246, 229, .1); color: var(--on-dusk); }
.btn-small { padding: 9px 20px; font-size: 15px; }
.btn-big { padding: 18px 38px; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* String of mela lights (art.py festoon): hangs from the top edge of dusk sections.
   On page load the bulbs switch on one after another, left to right, once. */
.festoon { position: absolute; top: 0; left: 0; width: 100%; height: clamp(64px, 8vw, 116px); pointer-events: none; }
.festoon .glow { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .festoon .bulb { animation: bulb-on .5s ease-out both; animation-delay: calc(250ms + var(--i) * 50ms); }
  @keyframes bulb-on { 0% { opacity: .12; } 55% { opacity: 1; } 75% { opacity: .55; } 100% { opacity: 1; } }
}

/* ---------------------------------------------------------------- header (every page)
   A floating glass capsule: logo, section links, language switch, Download. At the top of the page
   it sits on the dark first section; once the page scrolls (site.js adds .scrolled) only the
   capsule floats over the content. The link of the section being read is lit (.on), and a
   marigold line along the capsule's bottom edge shows how far down the page you are (--read). */
.top {
  position: sticky; top: 0; z-index: 30; padding: 12px 16px 6px;
  background: var(--dusk-deep); transition: background-color .3s;
}
.doc .top { background: var(--dusk); }
.top.scrolled { background: transparent; }
.top-inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 8px 8px 8px 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(7, 43, 40, .8); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 229, .14), 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.top-inner::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--marigold); transform: scaleX(var(--read, 0)); transform-origin: left; pointer-events: none;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  color: var(--on-dusk); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -.01em;
}
.brand [lang="bn"] { letter-spacing: 0; }
.brand:hover { color: var(--on-dusk); }
.brand svg { width: 38px; height: 38px; flex: none; }
.top-nav { display: flex; gap: 4px; font-size: 16px; font-weight: 600; }
.top-nav a {
  padding: 9px 16px; border-radius: 999px; color: var(--on-dusk-muted); text-decoration: none;
  white-space: nowrap; transition: color .2s, background-color .2s;
}
.top-nav a:hover { color: #fff; background: rgba(255, 246, 229, .06); }
.top-nav a.on { color: #fff; background: rgba(255, 246, 229, .12); }
.top-end { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: rgba(255, 246, 229, .08); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--on-dusk-muted); cursor: pointer;
  font: 600 14px/1.2 var(--sans); padding: 8px 14px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--on-dusk); color: var(--dusk); }
@media (max-width: 1180px) { .top-nav a { padding: 9px 12px; } }
@media (max-width: 1060px) { .top-nav { display: none; } }
@media (max-width: 560px) { .top { padding: 10px 10px 4px; } .top-inner { padding: 6px 6px 6px 12px; } .top-inner::after { left: 22px; right: 22px; } }
/* The smallest phones (about 320 px, e.g. the first iPhone SE): a little tighter so Download still fits */
@media (max-width: 340px) {
  .top-inner { padding-left: 8px; gap: 8px; }
  .brand { font-size: 17px !important; gap: 7px; }
  .brand svg { width: 30px !important; height: 30px !important; }
  .lang-switch button { padding: 7px 9px !important; font-size: 13px; }
  .top-cta { padding: 8px 11px !important; font-size: 14px; }
}
@media (max-width: 480px) {
  .lang-switch { padding: 0; background: none; }
  .lang-switch button[aria-pressed="true"] { display: none; }   /* show only the language to switch to */
  .lang-switch button { padding: 8px 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 246, 229, .3); color: var(--on-dusk); }
  .top-end { gap: 8px; }
  .top-cta { padding: 9px 14px; }
  .brand { font-size: 19px; }
  .brand svg { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------- footer (every page)
   Alpana border, then brand + Download and three link groups, then the closing scene: mela lights
   over a huge বাঙালি আড্ডা that fades into the dark, and the copyright line with Back to top. */
.site-foot { background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%); color: var(--on-dusk-muted); font-size: 16px; overflow: hidden; }
.alpana { height: 56px; background: var(--teal-deep) url("img/alpana.svg") repeat-x center / auto 56px; }
.foot-inner {
  max-width: calc(var(--page) + 40px); margin: 0 auto; padding: 72px 20px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px;
}
.foot-brand .brand { font-size: 32px; gap: 12px; }
.foot-brand .brand svg { width: 48px; height: 48px; }
.foot-brand p { margin: 16px 0 26px; max-width: 15em; font-size: 19px; line-height: 1.5; color: var(--on-dusk); }
.foot-get {
  display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--marigold); color: var(--ink);
  font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(245, 176, 35, .8); transition: background-color .2s;
}
.foot-get:hover { background: #FFC444; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.9fr; gap: 32px; }
.site-foot h2 { margin: 0 0 16px; font: 600 15px/1.2 var(--sans); letter-spacing: 0; color: var(--marigold); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--on-dusk); text-decoration: none; }
.foot-col li a:hover { color: var(--marigold); }
.foot-mail { display: inline-block; padding-bottom: 2px; font-size: 18px; font-weight: 600; border-bottom: 1.5px solid rgba(245, 176, 35, .6); }
.foot-mail:hover { color: var(--marigold); }
.foot-write p { margin: 12px 0 22px; font-size: 15px; }
/* Instagram / Facebook: the name and handle on a quiet button; the icon in marigold */
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-social a {
  display: grid; grid-template-columns: 28px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(255, 246, 229, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 229, .18); transition: background-color .2s, box-shadow .2s, translate .2s;
}
.foot-social a:hover { background: rgba(255, 246, 229, .1); box-shadow: inset 0 0 0 1px var(--marigold); translate: 0 -2px; }
.foot-social svg { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--marigold); }
.foot-social span { font-size: 15px; font-weight: 600; line-height: 1.2; }
.foot-social small { font-size: 13px; line-height: 1.2; color: var(--on-dusk-muted); }
.foot-night { position: relative; height: clamp(150px, 19vw, 300px); margin-top: 64px; }
.foot-lights { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; justify-content: center; pointer-events: none; }
.foot-lights .festoon { position: static; flex: none; width: 1800px; height: 120px; }   /* the whole string, glow included */
.foot-word {
  position: absolute; left: 0; right: 0; bottom: -.32em; margin: 0; text-align: center; white-space: nowrap;
  font: 800 clamp(40px, 14vw, 230px)/1 var(--display);   /* "বাঙালি আড্ডা" is about 6.6x as wide as the font size: 14vw fills ~93% */
  background: linear-gradient(180deg, rgba(255, 246, 229, .2) 0%, rgba(255, 246, 229, .07) 50%, rgba(255, 246, 229, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-base {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--page); margin: 0 auto; padding: 20px 0 84px; border-top: 1px solid rgba(255, 246, 229, .12); font-size: 14px;   /* room for the music button */
}
.foot-base p { margin: 0; }
.foot-up { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dusk); font-weight: 600; text-decoration: none; }
.foot-up svg {
  width: 38px; height: 38px; padding: 9px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; box-shadow: inset 0 0 0 1.5px rgba(255, 246, 229, .35); transition: background-color .2s, color .2s;
}
.foot-up:hover { color: var(--on-dusk); }
.foot-up:hover svg { background: var(--marigold); color: var(--ink); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .foot-social a, .foot-get, .foot-up svg { transition: none; } .foot-social a:hover { translate: none; } }
@media (max-width: 1200px) { .foot-base { margin: 0 20px; } }
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr; gap: 44px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .foot-write { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-inner { padding-top: 56px; }
  .foot-brand .brand { font-size: 28px; }
  .foot-night { height: 140px; margin-top: 40px; }
  .foot-lights .festoon { width: 1100px; height: 73px; }
  .foot-base { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
}

/* ---------------------------------------------------------------- legal pages (body.doc) */
.hero { background: var(--dusk); color: var(--on-dusk); padding: clamp(40px, 6vw, 72px) 0 96px; }
.hero-inner { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(36px, 6vw, 60px); line-height: 1.08; color: var(--on-dusk); }
html[data-lang="bn"] .hero h1 { line-height: 1.25; }
.hero p { margin: 0; color: var(--on-dusk-muted); }
.doc main { max-width: 820px; margin: -56px auto 0; padding: 0 16px 72px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(22px, 5vw, 48px); box-shadow: 0 24px 50px -24px rgba(11, 59, 55, .25);
}
.card > .l[lang="bn"] { font-size: 17px; }
.card h2 {
  font: 600 22px/1.35 var(--sans); letter-spacing: 0; margin: 34px 0 8px; color: var(--teal-deep);
}
.card h2:first-child { margin-top: 0; }
.card h3 { font-size: 17px; margin: 20px 0 6px; }
.card ul, .card ol { padding-left: 22px; }
.card li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; }
.note { background: var(--mint); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.warn { background: #FFF4D9; border-left-color: var(--marigold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- home + download: shared section layout */
.home section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.home section h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; margin: 0 0 36px; color: var(--teal-deep); }
html[data-lang="bn"] .home section h2 { line-height: 1.22; }

/* ---------- hero: dusk, a string of lights, the Ganga ghat window with two app cards on it */
.home .hero-k {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: 56px;
  padding: clamp(104px, 11vw, 150px) var(--gutter) clamp(64px, 8vw, 110px);
  color: var(--on-dusk);
  background:
    radial-gradient(55% 60% at 80% 58%, rgba(245, 176, 35, .16), transparent 70%),
    linear-gradient(180deg, var(--dusk-deep) 0%, var(--dusk) 55%, #0D4440 100%);
}
.hero-k h1 { font-size: clamp(42px, 5.8vw, 82px); line-height: 1.18; margin: 0 0 26px; color: var(--on-dusk); }   /* Bengali on both language versions */
/* Phones and small tablets: the headline on one line, sized to the screen. The line is about 9.7x
   as wide as the font size, and the page has 20 px on each side, so (screen - 40 px) / 9.7, less 3%. */
@media (max-width: 860px) {
  .hero-k h1 { white-space: nowrap; font-size: min(64px, calc((100vw - 40px) * .1)); line-height: 1.25; }
  .hero-k h1 br { display: none; }
}
/* Every screen (browsers with container units): one line, sized to the text column itself.
   10cqi = 10% of the column's width, the same 9.7x rule as above; 82 px at most on big screens. */
@supports (width: 1cqi) {
  .hero-k-text { container-type: inline-size; }
  .hero-k h1 { white-space: nowrap; font-size: min(82px, 10cqi); line-height: 1.25; }
  .hero-k h1 br { display: none; }
  @media (max-width: 860px) { .hero-k h1 { font-size: min(64px, 10cqi); } }   /* tablets: not bigger than before */
}
.hero-k .lede { color: var(--on-dusk-muted); font-size: clamp(18px, 1.5vw, 21px); max-width: 30em; margin: 0; text-wrap: pretty; }
.hero-k .btn-quiet { color: var(--on-dusk); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 229, .5); }
.hero-k .btn-quiet:hover { background: rgba(255, 246, 229, .1); color: var(--on-dusk); }
.hero-k-art { position: relative; justify-self: end; width: min(100%, 470px); }
/* The picture: a painted image, with live SVG (kites, stitched frame) laid exactly on top */
.hero-art { position: relative; display: block; width: 100%; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .frame { stroke: #12524C; }
/* Kites sway gently on their strings, each pivoting where its string leaves the frame */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .kite { transform-box: view-box; animation: kite-sway 7s ease-in-out infinite alternate; }
  .hero-art .kite-a { transform-origin: 610px 470px; }
  .hero-art .kite-b { transform-origin: -10px 480px; animation-duration: 9s; animation-direction: alternate-reverse; }
  @keyframes kite-sway { from { transform: rotate(-1.3deg); } to { transform: rotate(1.5deg); } }
}
/* Floating cards on the picture: a match card (frosted glass, a ring that fills to the match %)
   and an Adda Tables chip. motion.js counts the % up while the ring fills. */
.float-card {
  position: absolute; z-index: 2; margin: 0; color: var(--ink);
  background: rgba(255, 251, 243, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.match-card { left: -8%; top: 44%; width: 250px; padding: 14px; border-radius: 22px; transform: rotate(-3deg); }
.match-card p { margin: 0; }
.mc-top { display: flex; align-items: center; gap: 12px; }
.mc-ring { flex: none; width: 64px; height: 64px; }
.mc-ring circle { fill: none; stroke-width: 6; }
.mc-ring .track { stroke: var(--mint); }
.mc-ring .fill { stroke: var(--marigold); stroke-linecap: round; stroke-dasharray: 86 100; transform: rotate(-90deg); transform-origin: center; }
.mc-pct { text-anchor: middle; font: 700 15px var(--display); fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .mc-ring .fill { animation: mc-fill 1.4s cubic-bezier(.3, .7, .3, 1) .5s both; }
  @keyframes mc-fill { from { stroke-dasharray: 0 100; } }
}
.mc-who { font: 700 17px/1.2 var(--display); }
.mc-who [lang="bn"] { line-height: 1.4; }
.mc-why { margin-top: 2px !important; font-size: 13px; color: var(--muted); }
.mc-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mc-chips li { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--teal-deep); background: var(--mint); }
.seat-card {
  right: -10%; top: 4%; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px;
  border-radius: 999px; font-size: 14px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.seat-card b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--haldi); font-size: 16px; font-weight: 400; }
.seat-card em { font-style: normal; font-weight: 700; color: var(--teal-deep); }
/* the seat card hangs off the picture's right edge; keep it inside the page margin (gutter) */
@media (max-width: 1240px) { .seat-card { right: -4%; } }
@media (max-width: 1100px) { .match-card { left: -4%; } }
@media (max-width: 860px) {
  .home .hero-k { grid-template-columns: 1fr; gap: 44px; padding-top: 96px; }
  .hero-k-art { justify-self: center; width: min(80%, 380px); }
  /* Up in the sky, so the four friends at the bottom stay in view */
  .match-card { left: -8%; top: 30%; width: 232px; padding: 12px; }
  .mc-why { font-size: 12px; }
  .seat-card { right: -8%; top: 3%; font-size: 13px; }
}
@media (max-width: 480px) {
  .hero-k-art { width: 84%; }
  .match-card { left: -7%; top: 30%; width: 222px; padding: 11px; border-radius: 18px; }
  .mc-ring { width: 54px; height: 54px; }
  .mc-who { font-size: 15px; }
  .mc-why { font-size: 12px; }
  .mc-chips { gap: 4px; margin-top: 10px; }
  .mc-chips li { font-size: 12px; padding: 2px 8px; }
  .seat-card { right: -6%; top: 2%; font-size: 12.5px; padding: 7px 13px 7px 7px; }
  .seat-card b { width: 26px; height: 26px; font-size: 14px; }
}

/* ---------- match: the Venn diagram on the app's teal */
.home .match { background: var(--teal); color: #fff; overflow: clip; }
.match-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.home .match h2 { color: #fff; }
.match-text p { color: #D2EEE9; font-size: 20px; max-width: 25em; margin: -14px 0 0; }
.venn { margin: 0; }
.venn svg { display: block; width: 100%; max-width: 500px; margin: 0 auto; overflow: visible; }
.venn text { text-anchor: middle; font-family: var(--sans); }
.venn .ring { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .92); stroke-width: 2; }
.venn .lens circle { fill: var(--marigold); }
.venn .who text { fill: #fff; font-size: 15px; font-weight: 600; }
.venn .side text { fill: #C7EAE4; font-size: 15px; }
.venn .shared text { fill: var(--ink); font-size: 15px; font-weight: 600; }
.venn .score text { fill: var(--teal-deep); font: 700 17px var(--display); }
.venn figcaption { margin-top: 16px; text-align: center; font-size: 15px; color: rgba(255, 255, 255, .78); }
/* match.js draws the figure itself (.live): answers start as plain text (.t) in each circle and
   turn dark and bold once they land in the overlap (.landed). */
.venn .t { fill: #C7EAE4; font-size: 15px; transition: fill .35s; }
.venn .t.landed { fill: var(--ink); font-weight: 600; }
.venn .t[lang="bn"]:not(.landed) { font-size: 14px; }   /* Bengali runs wider; keep it inside the circles */
.venn .spark { fill: none; stroke: #FFF6E5; stroke-width: 2; }
.venn .them { transition: opacity .3s; }
.venn.live figcaption { opacity: 0; transition: opacity .5s; }
.venn.live.told figcaption { opacity: 1; }
.venn-next {
  display: flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 10px 20px; border: 0; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); transition: background-color .2s, box-shadow .2s, opacity .2s;
}
.venn-next[hidden] { display: none; }
.venn-next:hover { box-shadow: inset 0 0 0 1.5px var(--marigold); background: rgba(255, 255, 255, .16); }
.venn-next:disabled { opacity: .5; cursor: default; }
@media (max-width: 860px) {
  .match-inner { grid-template-columns: 1fr; gap: 32px; }
  .venn svg { max-width: 400px; }
}

/* ---------- a story of friendship: six chapters (pictures: _src/tools/make_story.py).
   Phones / no JavaScript: a picture card per chapter. Wide screens with story.js (.is-live):
   one sticky frame on the right cross-fades as each chapter reaches the middle of the screen. */
.home .story {
  color: var(--on-dusk);
  background: linear-gradient(180deg, var(--dusk-deep) 0%, var(--dusk) 45%, var(--dusk-deep) 100%);
}
.home .story h2 { color: var(--on-dusk); margin-bottom: 12px; }
.story-head { text-align: center; max-width: 34em; margin: 0 auto clamp(44px, 6vw, 80px); }
.story-head p { margin: 0; color: var(--on-dusk-muted); font-size: 19px; }
/* Music buttons (music.js): one under the story's title, and one floating at the bottom-right of
   every page (hidden while the story's own button is on screen). */
.music-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px 10px 15px;
  border: 0; border-radius: 999px; cursor: pointer; font: 600 16px/1.2 var(--sans);
  color: var(--on-dusk); background: rgba(255, 246, 229, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 229, .32);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.music-btn[hidden], .music-tune[hidden] { display: none; }
.music-btn:hover { box-shadow: inset 0 0 0 1.5px var(--marigold); }
.music-float:hover { background: var(--dusk); }
/* The nudge: when a page opens and sound isn't allowed yet, the floating button says "Tap for
   music" for a few seconds, with a marigold ring pulsing around it (music.js adds .nudge). */
.music-btn .mb-nudge, .music-btn.nudge .mb-play { display: none; }
.music-btn.nudge .mb-nudge { display: inline; }
.music-btn.nudge { color: var(--marigold); }
.music-btn.nudge::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--marigold);
}
@media (prefers-reduced-motion: no-preference) {
  .music-btn.nudge::after { animation: mb-ring 1.4s ease-out infinite; }
  .music-btn.nudge .mb-icon i { animation: mb-bar .7s ease-in-out infinite alternate; }
  .music-btn.nudge .mb-icon i:nth-child(2) { animation-delay: -.25s; }
  .music-btn.nudge .mb-icon i:nth-child(3) { animation-delay: -.5s; }
}
@keyframes mb-ring { 0% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.35 1.7; } }
.music-btn[aria-pressed="true"] { background: var(--marigold); color: var(--ink); box-shadow: none; }
.music-btn .mb-pause, .music-btn[aria-pressed="true"] .mb-play { display: none; }
.music-btn[aria-pressed="true"] .mb-pause { display: inline; }
.mb-icon { display: flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.mb-icon i { width: 3px; height: 40%; border-radius: 2px; background: currentColor; }
.mb-icon i:nth-child(2) { height: 100%; }
.mb-icon i:nth-child(3) { height: 65%; }
@media (prefers-reduced-motion: no-preference) {
  .music-btn[aria-pressed="true"] .mb-icon i { animation: mb-bar .8s ease-in-out infinite alternate; }
  .music-btn[aria-pressed="true"] .mb-icon i:nth-child(2) { animation-delay: -.3s; }
  .music-btn[aria-pressed="true"] .mb-icon i:nth-child(3) { animation-delay: -.55s; }
}
@keyframes mb-bar { from { height: 25%; } to { height: 100%; } }
.story-head .music-tune { margin: 10px 0 0; font-size: 14px; color: rgba(255, 246, 229, .55); }
.music-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; margin: 0; background: var(--dusk-deep);   /* solid: it floats over light sections too */
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .6) !important;
  opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity .3s, translate .3s, visibility .3s;
}
.music-float[hidden] { display: none; }
.music-float:not([hidden]) { opacity: 1; visibility: visible; translate: none; }
.head-music-on-screen .music-float { opacity: 0; visibility: hidden; translate: 0 14px; }   /* the story's own button is showing */

.story-chapters { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(56px, 9vw, 80px); max-width: 520px; }
.ch-pic, .sf-pics {
  position: relative; margin: 0; overflow: hidden; border-radius: 28px; aspect-ratio: 5 / 6; background: var(--dusk-deep);
  box-shadow: 0 44px 70px -36px rgba(0, 0, 0, .85);
}
.ch-pic::after, .sf-pics::after {   /* kantha running stitch just inside the edge */
  content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(245, 176, 35, .45); border-radius: 20px; pointer-events: none;
}
.ch-pic { margin-bottom: 24px; }
.ch-pic img, .sf-pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.ch-text h3 { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.ch-bn { font: 700 clamp(36px, 5vw, 56px)/1.2 var(--display); color: var(--marigold); }
.ch-en { font: 600 18px/1.4 var(--sans); color: var(--on-dusk); }
.ch-text p { margin: 0; max-width: 26em; font-size: 19px; color: var(--on-dusk-muted); }
.chapter .actions { margin-top: 28px; }
.story-frame { display: none; }
/* Phones (no sticky frame): the chapters are a row of cards to swipe through, one per screen width,
   with the next one peeking in; story.js adds dots that follow the swipe. */
.story-dots { display: none; }
@media (max-width: 899px) {
  .story-chapters {
    max-width: none; grid-auto-flow: column; grid-auto-columns: min(80%, 340px); gap: 16px; align-items: start;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px;
  }
  .story-chapters::-webkit-scrollbar { display: none; }
  .chapter { scroll-snap-align: start; }
  .ch-pic { margin-bottom: 18px; }
  .ch-bn { font-size: 34px; }
  .ch-en { font-size: 16px; }
  .ch-text p { font-size: 17px; }
  .chapter .actions { margin-top: 20px; }
  .story-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
  .story-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255, 246, 229, .3); transition: width .3s, background-color .3s;
  }
  .story-dots button.on { width: 28px; background: var(--marigold); }
}
.story.is-live .story-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start;
}
.story.is-live .story-chapters { max-width: none; margin: 0; gap: 0; }
.story.is-live .chapter { display: flex; align-items: center; min-height: 80vh; opacity: .26; transition: opacity .6s ease; }
.story.is-live .chapter.is-current { opacity: 1; }
.story.is-live .ch-pic { display: none; }
.story.is-live .story-frame { display: block; position: sticky; top: 96px; }
.sf-pics { width: min(100%, calc(min(76vh, 680px) * 5 / 6)); margin-left: auto; }
.sf-pic { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.sf-pic.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {   /* a slow push-in on the picture that just arrived */
  .sf-pic { transform: scale(1.07); transition: opacity 1s ease, transform 7s cubic-bezier(.2, .7, .2, 1); }
  .sf-pic.on { transform: scale(1); }
}
.sf-dots { display: flex; justify-content: center; gap: 10px; width: min(100%, calc(min(76vh, 680px) * 5 / 6)); margin: 20px 0 0 auto; }
.sf-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 246, 229, .3); transition: width .3s, background-color .3s; }
.sf-dots span.on { width: 28px; background: var(--marigold); }

/* ---------- how it works: four numbered steps joined by a running (kantha) stitch */
.how-row {
  --how-gap: clamp(20px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0; counter-reset: how;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--how-gap);
}
.home .how { --how-bg: #F3DECB; background: var(--how-bg); }   /* terracotta clay, as on Bishnupur's temples */
.home .how h2 { color: #7A3417; }
.how-item { counter-increment: how; position: relative; padding-top: 68px; text-align: center; }
.how-item::before {
  content: counter(how); position: absolute; z-index: 1; top: 0; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--marigold); color: var(--ink); font: 700 22px/1 var(--display);
  box-shadow: 0 0 0 6px var(--how-bg, var(--paper));
}
html[data-lang="bn"] .how-item::before { content: counter(how, bengali); }
.how-thread {                      /* the stitch to the next step (motion.js sews it in) */
  position: absolute; top: 23px; left: 50%; width: calc(100% + var(--how-gap)); height: 3px; pointer-events: none;
}
.how-thread::before { content: ""; position: absolute; inset: 0; border-top: 2.5px dashed rgba(122, 52, 23, .45); }
.how-item .phone { width: min(100%, 248px); margin: 0 auto 24px; }
.how-cap h3 { margin: 0 0 6px; font: 600 20px/1.35 var(--sans); color: #3B2418; }
.how-cap p { margin: 0 auto; max-width: 17em; color: #6E4B38; font-size: 16px; }
.how-then {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: fit-content; margin: 56px auto 0; padding: 12px 22px 12px 14px; border-radius: 999px;
  background: #FBEFE4; font-size: 18px;
}
.how-then .icon { width: 40px; height: 40px; padding: 9px; }

/* Phone frame around an app screenshot */
.phone {
  position: relative; padding: 8px; background: #10201E; border-radius: 42px;
  box-shadow: inset 0 0 0 1.5px #34494A, 0 44px 60px -34px rgba(11, 59, 55, .6), 0 14px 26px -14px rgba(11, 59, 55, .35);
}
.phone .screen { position: relative; aspect-ratio: 720 / 1520; border-radius: 35px; overflow: hidden; background: var(--paper); }
.phone .screen::after {            /* camera punch-hole */
  content: ""; position: absolute; z-index: 2; top: 3.1%; left: 50%; width: 4.2%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #10201E;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .how-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72%, 270px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px;
  }
  .how-item { scroll-snap-align: start; }
  .how-item .phone { width: 100%; }
  .how-then { margin-top: 36px; font-size: 16px; text-align: left; }
}

/* ---------- Adda Tables: haldi band, two table cards in the app's style */
.home .adda {
  background: var(--haldi); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.adda h2 { max-width: 12em; }
.adda-lede { margin: -16px 0 28px; font-size: 20px; color: #4F4A37; max-width: 28em; }
.adda-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.adda-points li { display: flex; align-items: center; gap: 14px; }
.adda-points p { margin: 0; }
.adda-art { position: relative; min-height: 510px; }
.adda-card {
  position: absolute; width: min(340px, 86%); padding: 22px; border-radius: 24px; background: #fff;
  box-shadow: 0 30px 50px -28px rgba(80, 55, 0, .55), 0 2px 8px rgba(80, 55, 0, .08);
}
.adda-card p { margin: 0; }
.adda-card.back { right: 0; top: 0; width: min(300px, 76%); transform: rotate(5deg); }
.adda-card.front { left: 2%; bottom: 0; transform: rotate(-2.5deg); }
.ac-tag {
  display: inline-block; margin-bottom: 10px !important; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #8A2E1B; background: #FBE1DA;
}
.ac-title { font: 700 23px/1.2 var(--display); letter-spacing: -.01em; }
.ac-title [lang="bn"] { letter-spacing: 0; line-height: 1.35; }
.ac-when { margin-top: 6px !important; color: var(--muted); font-size: 15px; }
.ac-seats { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 14px; color: var(--muted); }
.ac-dots { display: flex; gap: 5px; }
.ac-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--teal); }
.ac-dots i.on { background: var(--teal); }
.ac-host { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--teal-deep); }
.ac-host .icon { width: 28px; height: 28px; padding: 5px; box-shadow: none; background: var(--mint); }
.ac-btn {
  position: relative; display: grid; margin-top: 16px; padding: 12px; border-radius: 14px; text-align: center;
  background: var(--teal-deep); color: #fff; font-weight: 600; transition: background-color .4s, color .4s, scale .15s;
}
.ac-note { display: grid; margin-top: 10px !important; font-size: 13px; color: var(--muted); text-align: center; }
.ac-count { display: grid; }
/* A full card holds every state of its button, count and note in one grid cell; only "ask" shows
   until motion.js sets data-state on the section (wait, then in). */
.ac-btn > .st, .ac-note > .st, .ac-count > .st { grid-area: 1 / 1; transition: opacity .35s, translate .35s; }
.adda-card .st-wait, .adda-card .st-in { opacity: 0; translate: 0 8px; }
.ac-btn .st-wait { display: flex; align-items: center; justify-content: center; gap: 9px; }
.ac-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sindoor); }
@media (max-width: 860px) {
  .home .adda { grid-template-columns: 1fr; gap: 40px; }
  .adda-art { min-height: 450px; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 420px) { .adda-art { min-height: 430px; } .adda-card { padding: 18px; } }

/* ---------- safety: mela night, with marigold icons and a soft glow (between haldi Adda Tables and mint Questions) */
.home .safety {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px; color: var(--on-dusk);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(245, 176, 35, .10), transparent 70%),
    linear-gradient(180deg, var(--dusk-deep), var(--dusk));
}
.home .safety h2 { color: var(--on-dusk); }
.safety-head p { margin: -18px 0 0; color: var(--on-dusk-muted); font-size: 19px; max-width: 18em; }
.safety ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.safety li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid rgba(255, 246, 229, .12); }
.safety li p { margin: 0; }
.safety .icon { background: rgba(245, 176, 35, .12); stroke: var(--marigold); box-shadow: none; }
.icon {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: #fff;
  box-shadow: 0 6px 14px -8px rgba(11, 59, 55, .5);
  fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.icon text { fill: var(--teal); stroke: none; font: 700 7.5px var(--sans); }
@media (max-width: 860px) { .home .safety { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) { .safety ul { grid-template-columns: 1fr; } }

/* ---------- questions (native <details>, works without JavaScript) */
.home .faq { display: grid; grid-template-columns: 1fr 2fr; column-gap: 56px; align-items: start; }
.faq h2 { grid-row: span 8; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 52px 22px 0;
  font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; margin-top: -18px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint); color: var(--teal-deep); font: 400 26px/1 var(--sans); transition: transform .2s, background-color .2s;
}
.faq summary:hover::after { background: #CBE9E3; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--marigold); color: var(--ink); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 36em; }
@media (max-width: 860px) {
  .home .faq { grid-template-columns: 1fr; }
  .faq h2 { grid-row: auto; margin-bottom: 20px !important; }
  .faq summary { font-size: 17px; }
}

/* ---------- questions on the home page (.ask): a chat with Bengali Adda. Each question is a message
   to tap; open, it becomes a sent bubble and Bengali Adda "types" for a moment (motion.js), then replies
   next to the logo. Still native <details>: works without JavaScript, and search engines read every answer. */
.home .ask {
  background: var(--mint); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-areas: "head chat" "more chat"; grid-template-rows: auto 1fr; align-content: start; row-gap: 22px;
}
.ask-head { grid-area: head; }
.ask-chat { grid-area: chat; }
.ask .ask-head h2 { grid-row: auto; margin-bottom: 12px; }
.ask-lede { margin: 0; max-width: 16em; color: var(--muted); font-size: 18px; }
.ask-more {
  grid-area: more; align-self: start; max-width: 18em; margin: 0; padding: 16px 18px; border-radius: 18px;
  background: #fff; color: var(--muted); font-size: 15px; box-shadow: 0 10px 26px -18px rgba(11, 59, 55, .5);
}
.ask-more a { display: block; margin-top: 4px; font-weight: 600; color: var(--teal-deep); }
.ask details, .ask details:last-child { display: grid; gap: 10px; margin: 0 0 12px; border: 0; }
.ask summary {
  justify-self: end; max-width: 80%; padding: 11px 20px; border-radius: 22px 22px 6px 22px;
  font-size: 17px; font-weight: 600; color: var(--teal-deep); background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(15, 118, 110, .45); transition: background-color .2s, color .2s, box-shadow .2s;
}
.ask summary::after { display: none; }
.ask summary:hover { background: #F2FAF8; box-shadow: inset 0 0 0 1.5px var(--teal); }
.ask details[open] summary { color: #fff; background: var(--teal-deep); box-shadow: 0 10px 20px -14px rgba(11, 59, 55, .7); }
.ask details p, .ask-typing {
  position: relative; justify-self: start; margin: 0 0 8px 52px; border-radius: 22px 22px 22px 6px;
  background: #fff; box-shadow: 0 10px 24px -16px rgba(11, 59, 55, .45);
}
.ask details p { max-width: 80%; padding: 14px 18px; color: var(--ink); }
.ask details p a { color: var(--teal-deep); font-weight: 600; }
.ask details p::before, .ask-typing::before {      /* Bengali Adda's picture next to its reply */
  content: ""; position: absolute; left: -50px; bottom: 0; width: 38px; height: 38px; border-radius: 50%;
  background: #fff url("favicon.svg") center / 30px no-repeat; box-shadow: 0 4px 10px -4px rgba(11, 59, 55, .4);
}
.ask-typing { display: none; gap: 5px; padding: 15px 16px; }
.ask-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9BB8B3; }
.ask details.typing .ask-typing { display: flex; }
.ask details.typing p { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ask-typing i { animation: ask-dot .9s ease-in-out infinite; }
  .ask-typing i:nth-child(2) { animation-delay: .15s; }
  .ask-typing i:nth-child(3) { animation-delay: .3s; }
  .ask details.replied p { animation: ask-in .35s ease-out both; }
}
@keyframes ask-dot { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -4px; opacity: 1; } }
@keyframes ask-in { from { opacity: 0; translate: 0 8px; scale: .97; } to { opacity: 1; translate: none; scale: none; } }
@media (max-width: 860px) {
  .home .ask { grid-template-columns: 1fr; grid-template-areas: "head" "chat" "more"; grid-template-rows: none; }
  .ask summary, .ask details p { max-width: 90%; }
  .ask details p, .ask-typing { margin-left: 44px; }
  .ask details p::before, .ask-typing::before { left: -42px; width: 32px; height: 32px; background-size: 25px; }
}

/* ---------------------------------------------------------------- download page (body.home.dl) */
.home .intro {
  position: relative; overflow: hidden; color: var(--on-dusk);
  padding-top: clamp(104px, 11vw, 140px);
  background:
    radial-gradient(50% 60% at 78% 60%, rgba(245, 176, 35, .14), transparent 70%),
    linear-gradient(180deg, var(--dusk-deep), var(--dusk) 60%, #0D4440);
}
.intro-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.intro h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; margin: 0 0 20px; color: var(--on-dusk); }
html[data-lang="bn"] .intro h1 { line-height: 1.22; }
.intro .lede { font-size: 20px; color: var(--on-dusk-muted); max-width: 30em; margin: 0 0 30px; }
.not-dating { margin: 24px 0 0; font-size: 15px; color: var(--on-dusk-muted); }
.dl-meta { margin: 12px 0 0; font-size: 15px; color: var(--on-dusk-muted); }
/* Notes on the dusk intro: in-app browser, iPhone, "coming soon" */
.dl-note {
  background: rgba(255, 246, 229, .08); border-left: 4px solid var(--marigold);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 24px;
}
.dl-note p { margin: 0 0 12px; }
.dl-note p:last-child, p.dl-note { margin-bottom: 0; }
.dl-note input {
  display: block; width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .18); color: #fff; font: inherit;
}
/* Right column: the app on a phone; on computers a QR card sits on it */
.dl-visual { position: relative; justify-self: center; width: min(300px, 100%); }
.dl-visual .phone { box-shadow: 0 50px 80px -34px rgba(0, 0, 0, .75), inset 0 0 0 1.5px #34494A; }
.dl-qr {
  display: none; position: absolute; left: -48%; bottom: 8%; width: 214px; margin: 0; padding: 16px;
  background: #fff; border-radius: 22px; color: var(--ink); text-align: center; transform: rotate(-3deg);
  box-shadow: 0 28px 50px -20px rgba(0, 0, 0, .55);
}
.dl-qr svg { display: block; width: 100%; height: auto; }
.dl-qr figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (min-width: 861px) and (pointer: fine) { .dl-qr { display: block; } }
/* Install steps: five short ones in columns that wrap on their own */
.steps ol {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px;
}
.steps li { counter-increment: step; border-top: 2.5px dashed var(--teal); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; font: 700 44px/1 var(--display); color: var(--teal); }
html[data-lang="bn"] .steps li::before { content: counter(step, bengali); }
.steps li p { margin: 0; }
@media (max-width: 860px) {
  .intro-inner { grid-template-columns: 1fr; gap: 44px; }
  .dl-visual { width: min(240px, 66vw); }
}

/* Download page: Google Play test, two numbered steps; the APK becomes a small fallback */
.play-steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: ps; display: grid; gap: 12px; max-width: 34em; }
.play-steps li {
  counter-increment: ps; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 16px 15px 58px; position: relative; border-radius: 18px; background: rgba(255, 246, 229, .08);
}
.play-steps li::before {
  content: counter(ps); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--marigold); color: var(--ink); font: 700 16px/1 var(--display);
}
html[data-lang="bn"] .play-steps li::before { content: counter(ps, bengali); }
.play-steps .btn { flex: none; padding: 10px 18px; font-size: 15px; }
/* With download.js: one big button at a time; the steps above show what's done (✓) and what's next */
.flow.js-flow .step-btn { display: none; }
.flow .play-steps li.current { box-shadow: inset 0 0 0 2px var(--marigold); }
.flow .play-steps li.done { opacity: .75; }
.flow .play-steps li.done::before { content: "✓"; background: #9BE3B5; }
#flow-btn { margin: 0; }
.link-btn {
  background: none; border: 0; padding: 0; margin-left: 4px; cursor: pointer;
  color: var(--on-dusk); font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
/* "Can't use Google Play?": the APK and its install steps, folded away */
.apk-more { margin-top: 24px; }
.apk-more summary {
  list-style: none; cursor: pointer; font-size: 15px; color: var(--on-dusk-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.apk-more summary::-webkit-details-marker { display: none; }
.apk-more[open] summary { margin-bottom: 16px; }
.apk-steps { margin: 18px 0 0; padding-left: 20px; font-size: 15px; color: var(--on-dusk-muted); max-width: 34em; }
.apk-steps li { margin: 0 0 8px; }
.apk-steps p { margin: 0; }
@media (max-width: 480px) { .play-steps li { flex-direction: column; align-items: flex-start; } }

/* ---------- motion (motion.js). It arms a section (its start state) only while that section is
   still below the fold, then plays it once it scrolls in. With reduced motion or no JavaScript
   nothing here applies and everything shows in its final state. */

/* How it works: the bulbs are off, the thread is unsewn, the phones are asleep. As each step
   lights (.lit), its bulb glows on, its phone wakes and the thread sews on to the next step. */
.how-row.armed .how-item { perspective: 1100px; }
.how-row.armed .how-item::before {
  background: var(--how-bg); color: rgba(122, 52, 23, .5);
  box-shadow: 0 0 0 6px var(--how-bg), inset 0 0 0 2px rgba(122, 52, 23, .35);
}
.how-row.armed .how-item.lit::before {
  background: var(--marigold); color: var(--ink); box-shadow: 0 0 0 6px var(--how-bg);
  animation: how-bulb .8s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes how-bulb {
  0% { scale: .7; box-shadow: 0 0 0 6px var(--how-bg), 0 0 0 0 rgba(245, 176, 35, .75); }
  45% { scale: 1.2; }
  100% { scale: 1; box-shadow: 0 0 0 6px var(--how-bg), 0 0 0 26px rgba(245, 176, 35, 0); }
}
.how-row.armed .how-thread::before { clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.65, 0, .35, 1) .2s; }
.how-row.armed .how-item.lit .how-thread::before { clip-path: inset(0); }
.how-row.armed .how-thread::after {   /* the needle running ahead of the thread */
  content: ""; position: absolute; top: -4.5px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--sindoor); box-shadow: 0 0 10px 2px rgba(217, 72, 43, .45); opacity: 0;
}
.how-row.armed .how-item.lit .how-thread::after { animation: how-needle .6s cubic-bezier(.65, 0, .35, 1) .2s both; }
@keyframes how-needle {
  0% { left: 0; opacity: 0; } 12%, 80% { opacity: 1; } 100% { left: calc(100% - 11px); opacity: 0; }
}
.how-row.armed .how-item .phone {
  opacity: 0; translate: 0 70px; rotate: x 28deg; scale: .92;
  transition: opacity .45s, translate 1s cubic-bezier(.2, .9, .25, 1), rotate 1s cubic-bezier(.2, .9, .25, 1), scale 1s cubic-bezier(.2, .9, .25, 1);
}
.how-row.armed .how-item.lit .phone { opacity: 1; translate: none; rotate: none; scale: none; }
.how-row.armed .how-item .phone img { filter: brightness(.12) saturate(.4); transition: filter .9s ease .45s; }
.how-row.armed .how-item.lit .phone img { filter: none; }
.how-row.armed .how-cap { opacity: 0; translate: 0 12px; transition: opacity .5s .4s, translate .5s .4s; }
.how-row.armed .how-item.lit .how-cap { opacity: 1; translate: none; }

/* Adda Tables: the two cards are dealt onto the table like playing cards; then the front card
   acts out asking for a seat (data-state on the section: aim, press, wait, in). */
.home .adda { overflow: clip; }
.adda-art.armed .adda-card { opacity: 0; }
.adda-art.armed .adda-card.back { transform: translate(140px, 260px) rotate(32deg); }
.adda-art.armed .adda-card.front { transform: translate(300px, 200px) rotate(-34deg); }
.adda-art.armed.dealt .adda-card { opacity: 1; transition: transform 1s cubic-bezier(.2, 1.2, .35, 1), opacity .25s; }
.adda-art.armed.dealt .adda-card.back { transform: rotate(5deg); }
.adda-art.armed.dealt .adda-card.front { transform: rotate(-2.5deg); transition-delay: .2s; }

.ac-btn::before {                 /* a finger tap, like a screen recording's touch dot */
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px;
  border-radius: 50%; background: rgba(255, 255, 255, .3); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75);
  opacity: 0; scale: 1.6; transition: opacity .3s, scale .3s;
}
.adda[data-state="aim"] .ac-btn::before { opacity: 1; scale: 1; }
.adda[data-state="press"] .ac-btn::before { opacity: 1; scale: .8; }
.adda[data-state="press"] .ac-btn { scale: .95; }
.ac-btn::after {                  /* the ripple when it's pressed */
  content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px;
  border-radius: 50%; background: rgba(245, 176, 35, .55); opacity: 0;
}
.adda[data-state="wait"] .ac-btn::after { animation: ac-ripple .8s ease-out both; }
@keyframes ac-ripple { 0% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 16; } }
.adda[data-state="wait"] .ac-btn { background: var(--haldi); color: var(--ink); }
.adda[data-state="in"] .ac-btn { background: var(--mint); color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--teal); }
.adda[data-state="wait"] .ac-btn .st-ask, .adda[data-state="in"] .st-ask { opacity: 0; translate: 0 -8px; }
.adda[data-state="wait"] .ac-btn .st-wait, .adda[data-state="in"] .st-in { opacity: 1; translate: none; }
.adda[data-state="wait"] .ac-pulse { animation: ac-pulse 1s ease-in-out infinite alternate; }
@keyframes ac-pulse { from { scale: .6; opacity: .5; } to { scale: 1.15; opacity: 1; } }
.ac-dots i { transition: background-color .3s, box-shadow .3s; }
.adda[data-state="wait"] .ac-dots i.yours { box-shadow: inset 0 0 0 2px var(--marigold); animation: ac-pulse .9s ease-in-out infinite alternate; }
.adda[data-state="in"] .ac-dots i.yours {
  background: var(--marigold); box-shadow: inset 0 0 0 2px var(--marigold);
  animation: seat-pop .55s cubic-bezier(.3, 1.9, .5, 1) both;
}
@keyframes seat-pop { 0% { scale: .3; } 100% { scale: 1; } }
.adda-points .icon { transition: background-color .4s, stroke .4s, scale .4s; }
.adda[data-state="wait"] .pt-wait .icon, .adda[data-state="in"] .pt-in .icon { background: var(--marigold); stroke: var(--ink); scale: 1.1; }

/* Phones tilt toward the pointer, with a glint across the glass (mouse and trackpad only). */
.phone .screen::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .32), transparent 50%);
}
.phone.tilting .screen::before { opacity: 1; }
