/* Water Pledge · the page as approved on 26 Nov 2026.
   A plain white page with a whisper of cold-press paper (img/paper-light.webp). The pledge sits on a sky-gradient card
   with a luminous gold-to-sky edge. The hero is a hand-painted gold drop over blue ripples that keeps falling on a 4 s
   beat, and the painted water moves (hero-water.js); the one action that matters (the pledge button, later Share) is bright sun gold with deep-indigo words.
   Text is indigo and slate; "save water" is filled with a watercolour wash taken from the pond painting.
   Everything that moves stops under reduced motion (rule near the end). */

/* ---------- self-hosted faces (Latin subsets, ~100 KB in all). Telugu and Devanagari load only when chosen (app.js). ---------- */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/water-pledge/fonts/eb-garamond-400.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/water-pledge/fonts/eb-garamond-500.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/water-pledge/fonts/eb-garamond-400i.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(/water-pledge/fonts/eb-garamond-500i.woff2) format("woff2"); }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url(/water-pledge/fonts/mukta-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url(/water-pledge/fonts/mukta-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-matched fallbacks (widths measured against EB Garamond / Mukta), so the swap does not rewrap lines.
   Whichever local face exists is used: Times (iOS, Mac, Windows), Noto Serif / Roboto (Android), DejaVu (Linux). */
@font-face { font-family: "EBG Fallback T"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"); size-adjust: 93.6%; ascent-override: 107.6%; descent-override: 31.8%; line-gap-override: 0%; }
@font-face { font-family: "EBG Fallback N"; src: local("Noto Serif"), local("NotoSerif-Regular"), local("Droid Serif"); size-adjust: 79.3%; ascent-override: 127%; descent-override: 37.6%; line-gap-override: 0%; }
@font-face { font-family: "EBG Fallback D"; src: local("DejaVu Serif"); size-adjust: 73.6%; ascent-override: 136.8%; descent-override: 40.5%; line-gap-override: 0%; }
@font-face { font-family: "Mukta Fallback A"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Helvetica"); size-adjust: 93.4%; ascent-override: 120.9%; descent-override: 56.9%; line-gap-override: 0%; }
@font-face { font-family: "Mukta Fallback R"; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 94.3%; ascent-override: 119.9%; descent-override: 56.4%; line-gap-override: 0%; }
@font-face { font-family: "Mukta Fallback D"; src: local("DejaVu Sans"); size-adjust: 81.9%; ascent-override: 137.9%; descent-override: 64.9%; line-gap-override: 0%; }

:root {
  /* surfaces */
  --color-sky: #FFFFFF;          /* the page (theme-color) */
  --color-sheet: #FFFFFF;        /* the share tray */
  /* pigment (decoration only, never text) */
  --color-dusty: #7F98B2;
  --color-dusty-pale: #C7D3DF;
  /* text */
  --color-ink: #1C2340;          /* indigo-black: headings, body, vows, typed text */
  --color-slate: #4E6079;        /* slate blue: labels, hints, eyebrows */
  --color-accent: #41587A;       /* a number that just changed */
  --color-placeholder: #606B82;  /* format hints only, italic */
  /* action */
  --color-action: #25335E;       /* deep indigo: outlines, focus rings, quiet button borders */
  --color-action-deep: #1E2A52;
  --color-on-action: #F8FBFD;
  /* lines and states */
  --color-line: rgba(78,96,121,.22);
  --color-field-line: #768194;
  --color-error: #8C3A2A;        /* muted madder */
  --color-error-fill: rgba(252,247,245,.72);
  /* the sun's gold (the Art of Living logo) and clear water */
  --color-gold: #E0A013; --color-gold-deep: #B87A06;
  --ml-ocean: #1F5FD0;           /* clear water blue (white text 5.6:1) */
  --ml-ocean-deep: #1B3F94;
  --ml-aqua: #0A8AAD;            /* 3.9:1 on white: large text and icons only */
  --ml-sun: #F2B632;

  --radius-sm: 4px; --radius-full: 999px;

  --font-display: "EB Garamond", "EBG Fallback T", "EBG Fallback N", "EBG Fallback D", Georgia, serif;
  --font-body: "Mukta", "Mukta Fallback A", "Mukta Fallback R", "Mukta Fallback D", system-ui, sans-serif;
  --font-num: "EB Garamond", "EBG Fallback T", "EBG Fallback N", "EBG Fallback D", Georgia, serif;

  --gutter: 20px;
  --page: 1120px;
  --bar-x: 20px;

  /* a dry brush stroke (decorative), dusty blue and gold, used under the active language, dividers and "save water" */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12.5C14 9.2 30 8.4 52 8.9c24 .5 44-1.6 70-1.3 26 .3 50 1.4 74 2.6-1.5 2.4-5 4-9.5 4.3-22 1.3-46 1.6-70 2.1-26 .5-52 1.1-76 .9-12-.1-24-.6-36.5-1.6C1.6 15.2 1 13.8 2 12.5Z' fill='%237F98B2'/%3E%3Cpath d='M18 10.6c30-1.4 70-2.2 112-1.7' stroke='%237F98B2' stroke-width='1.2' fill='none' opacity='.6'/%3E%3C/svg%3E");
  --brush-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12.5C14 9.2 30 8.4 52 8.9c24 .5 44-1.6 70-1.3 26 .3 50 1.4 74 2.6-1.5 2.4-5 4-9.5 4.3-22 1.3-46 1.6-70 2.1-26 .5-52 1.1-76 .9-12-.1-24-.6-36.5-1.6C1.6 15.2 1 13.8 2 12.5Z' fill='%23F2B632'/%3E%3Cpath d='M18 10.6c30-1.4 70-2.2 112-1.7' stroke='%23E09A10' stroke-width='1.2' fill='none' opacity='.7'/%3E%3C/svg%3E");
  --drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1.5C9 7 3 13.5 3 20a9 9 0 0 0 18 0C21 13.5 15 7 12 1.5Z'/%3E%3C/svg%3E");
}
/* Devanagari: Tiro for display text (loaded on demand), regular weight, never letter-spaced */
html[lang="hi"] { --font-display: "Tiro Devanagari Hindi", "EB Garamond", "EBG Fallback T", Georgia, serif; --font-body: "Mukta", "Mukta Fallback A", "Mukta Fallback R", system-ui, sans-serif; }
/* Telugu: Noto Sans Telugu throughout (what most Telugu sites and Android use; loaded on demand), never letter-spaced */
html[lang="te"] { --font-display: "Noto Sans Telugu", "EB Garamond", "EBG Fallback T", Georgia, serif; --font-body: "Noto Sans Telugu", "Mukta", "Mukta Fallback A", "Mukta Fallback R", system-ui, sans-serif; }
/* letter-spacing pulls Telugu letter clusters apart: none anywhere on the Telugu page */
html[lang="te"] body, html[lang="te"] body * { letter-spacing: 0 !important; }

* { margin: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-x: clip;
  display: flex; flex-direction: column;
  color: var(--color-ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  /* white with a whisper of cold-press paper: the paper-grain photo reduced to +/- 1.6 levels around #FCFCFD, mirrored so it tiles */
  background: #FFFFFF url(/water-pledge/img/paper-light.webp) 0 0 / 512px 512px repeat;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ico { flex: none; width: 20px; height: 20px; }
/* every certificate face, set once in the page so the canvas can use it (see app.js FACES) */
.font-warm { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: .01; pointer-events: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* no z-index on page wrappers: the paintings multiply straight onto the paper (an isolated group would break that) */

/* ---------- BrandBar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; padding: 6px var(--bar-x) 0; max-width: var(--page); margin-inline: auto; width: 100%; }
.logo { height: 50px; width: auto; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.lang button {
  position: relative; min-height: 44px; min-width: 46px; padding: 4px 10px; border: 0;
  background: none; cursor: pointer; color: var(--color-slate); line-height: 1.1;
}
.lang button[aria-pressed="true"] { color: var(--color-ink); font-weight: 600; }
.lang button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: 8px; height: 5px; opacity: .6;
  background: var(--brush) center / 100% 100% no-repeat;
}
.lang button:focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; }
.sep { width: 1px; height: 16px; background: var(--color-line); }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--color-slate); }
/* the other script's name: system face, so English never downloads a Devanagari web font */
.eyebrow-alt { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 400; font-family: system-ui, sans-serif; }
html[lang="hi"] .eyebrow-alt, html[lang="te"] .eyebrow-alt { font-family: inherit; }
.display { font-family: var(--font-display); font-weight: 400; }
.display em { font-style: italic; }
h1.display { font-size: 44px; line-height: 1.02; letter-spacing: -.015em; margin-top: 10px; text-wrap: balance; }
.num { font-variant-numeric: lining-nums tabular-nums; }
html[lang="hi"] .eyebrow, html[lang="te"] .eyebrow, html[lang="hi"] .lbl, html[lang="te"] .lbl, html[lang="hi"] .stat .c, html[lang="te"] .stat .c, html[lang="hi"] .hold .t2, html[lang="te"] .hold .t2, html[lang="hi"] .btn, html[lang="te"] .btn { letter-spacing: 0; text-transform: none; }
html[lang="hi"] .eyebrow, html[lang="te"] .eyebrow { font-size: 14px; }
html[lang="hi"] .display, html[lang="te"] .display, html[lang="hi"] .display em, html[lang="te"] .display em, html[lang="hi"] .vows span, html[lang="te"] .vows span { font-weight: 400; font-style: normal; }

.view { animation: in .6s ease backwards; }   /* backwards only: once revealed, no lingering stacking context */
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ================= 1 · the pledge ================= */
.intro { padding: 6px var(--gutter) 0; }
/* the eyebrow carries a tiny gold drop, the same drop that falls into the water */
.intro > .eyebrow { color: #3A4E70; animation: ml-rise .8s cubic-bezier(.2,.8,.2,1) .05s both; }
.intro > .eyebrow::before {
  content: ""; display: inline-block; width: 9px; height: 12px; margin-right: 8px; vertical-align: -1px;
  background: linear-gradient(160deg, #F8D36A, var(--ml-sun) 55%, #C98A0A);
  -webkit-mask: var(--drop) center / contain no-repeat; mask: var(--drop) center / contain no-repeat;
}
@keyframes ml-rise { 0% { opacity: 0; transform: translateY(26px); filter: blur(3px); } 60% { opacity: 1; transform: translateY(-5px); filter: none; } 100% { opacity: 1; transform: none; } }
.intro h1.display { animation: ml-in .6s ease-out .1s both; }
@keyframes ml-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html[lang="hi"] .intro h1.display, html[lang="te"] .intro h1.display { font-size: 38px; line-height: 1.3; letter-spacing: 0; }

/* "save water", written in water: the letters are filled with a watercolour wash made from the pond painting
   (img/wash-text.webp: its ripples and streaks mapped to deep -> clear blue, 4.2:1 at its lightest, 6.2:1 typical, on white).
   Real text, so it stays sharp and works in every language. On first load it rolls in as a wave, letter by letter
   (app.js waveHeadline): each letter (.wl) carries its own slice of the same wash, so nothing jumps when they settle.
   A gold brush stroke paints in under it. */
.intro h1 em {
  position: relative; z-index: 0; display: inline-block; white-space: nowrap;
  color: var(--ml-ocean-deep);   /* fallback where background-clip text is missing */
  background: url(/water-pledge/img/wash-text.webp) 0 0 / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em; margin-right: -.08em;   /* the italic's last stroke stays inside the painted box; no extra width */
  animation: ml-hold .45s linear;   /* hidden for a moment until the wave starts; shows anyway if JS fails */
}
@keyframes ml-hold { from, to { opacity: 0; } }
.intro h1 em.waving { background: none; animation: none; }
.intro h1 em .wl {
  display: inline-block;
  background-image: url(/water-pledge/img/wash-text.webp);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: ml-wl .95s cubic-bezier(.3,.7,.3,1) both;
}
@keyframes ml-wl { 0% { opacity: 0; transform: translateY(.6em); } 45% { opacity: 1; transform: translateY(-.24em); } 75% { transform: translateY(.05em); } 100% { opacity: 1; transform: none; } }
.intro h1 em::after {
  content: ""; position: absolute; z-index: -1; left: -4%; right: -6%; bottom: -.16em; height: .3em; opacity: .55;
  background: var(--brush-gold) center / 100% 100% no-repeat;
  transform-origin: 0 50%; animation: ml-brush .7s cubic-bezier(.5,0,.2,1) 1.5s both;   /* painted in, left to right, once */
}
@keyframes ml-brush { from { transform: scaleX(0); opacity: 0; } 20% { opacity: .55; } }
/* Devanagari / Telugu: the stroke sits under the letters, not through their bottoms */
html[lang="hi"] .intro h1 em::after, html[lang="te"] .intro h1 em::after { bottom: -.12em; height: .3em; }

/* live count: set as text, with a small gold drop for the live dot. Hidden until the total reaches CONFIG.COUNT_FROM
   (app.js puts html.counts-on), together with the drop number and the stats on the pledged view. */
html:not(.counts-on) .live-count, html:not(.counts-on) .stats, html:not(.counts-on) [data-bind="dropNo"] { display: none; }
.live-count {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin-top: 8px;
  font-size: 15px; line-height: 1.3; color: var(--color-slate);
}
.live-count > span:not(.live) { flex: 0 1 auto; min-width: 0; }   /* the words wrap under a long number instead of running off the screen */
.live-count b {
  position: relative; font-family: var(--font-num); font-size: 22px; font-weight: 500; color: var(--color-ink); line-height: 1;
}
.live-count b::after {   /* brush underline */
  content: ""; position: absolute; left: -2px; right: -4px; bottom: -5px; height: 5px; opacity: .5;
  background: var(--brush) center / 100% 100% no-repeat;
}
.live { position: relative; flex: none; align-self: center; width: 9px; height: 12px;
  background: linear-gradient(160deg, #F6C84C, var(--color-gold) 55%, var(--color-gold-deep));
  -webkit-mask: var(--drop) center / contain no-repeat; mask: var(--drop) center / contain no-repeat; animation: live 2.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .45; } }
.num.bump { animation: bump .6s ease; }
@keyframes bump { 30% { color: var(--color-accent); } }

/* ---------- the hero painting: a gold drop over blue ripples ("Blue Droplet on Tranquil Ripples", design/watercolor/droplet-v2) ---------- */
.art { position: relative; margin-top: 4px; }
.hero {
  position: relative; width: 100%; height: 182px; overflow: hidden;
  /* a slightly deeper pool of water where the drop lands; it also shows before the painting arrives.
     Fades to nothing inside the box, so no straight edge shows under the ripple. */
  background: radial-gradient(44% 28% at 50% 76%, rgba(127,152,178,.18), rgba(127,152,178,0) 72%);
}
/* The painting in layers (the pond, the drop, rings, painted waves), so the water can move.
   No transform / opacity / z-index on .hero or .stage: the layers must multiply straight into the paper.
   A tap or click anywhere on the painting sends a ring out from that spot (app.js: tap ripples). */
.stage {
  position: relative; height: 100%; aspect-ratio: 3 / 2; max-width: 100%; margin: 0 auto;
  container-type: inline-size;   /* the small ripples are sized in cqw, so they scale with the painting */
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.stage img { position: absolute; mix-blend-mode: multiply; }

/* Continuous water on a 4 s beat, timed like a real drop in slow motion (design/watercolor/splash/README.md):
   the drop hangs and swells (1.2 s), its neck stretches, it lets go and falls under gravity (y = t², 0.42 s, stretching
   as it speeds up) and strikes 1.62 s into the beat (2.12 s after load). It is gone within 60 ms as a crown of water rises;
   the crater rebounds as a column that throws the gold up again, and the gold lands a second time 2.34 s into the beat.
   A new drop gathers from 2.8 s. The drop's animation is the clock: hero-water.js reads it.
   With WebGL (html.hero-gl) the painted water itself ripples, refracts and mirrors the drop (hero-water.js). Without it,
   CSS rings spread from each drop and the painted water sways, two soft copies drifting (.wa, .wb), a third spreading (.wc). */
.stage .ripple { inset: 0; width: 100%; height: 100%; transform-origin: 50% 46.4%;
  animation: ink .7s cubic-bezier(.25,.6,.3,1) .65s both, ml-sway 5s ease-in-out 1.4s infinite alternate; }
@keyframes ink { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: none; } }
@keyframes ml-sway { from { transform: none; } to { transform: translateY(-.5%) scale(1.008, 1.03); } }
.stage canvas.water { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
.hero-gl .stage .ripple, .hero-gl .stage .wave, .hero-gl .stage .ring { visibility: hidden; animation: none; }
.hero-nogl .stage .ripple { animation: ml-sway 5s ease-in-out infinite alternate; }   /* once WebGL has shown (hero-water.js): if the CSS painting comes back, it does not ink in again */

.stage .fall { left: 45.57%; top: 13.38%; width: 9.11%; height: 19.14%;   /* where the painter left the drop */
  transform-origin: 50% 0; animation: ml-drop5 4s .5s infinite both; }
/* translateY is in the drop's height; with the top as origin, the painted tip sits at top + 0.962 x height x scaleY */
@keyframes ml-drop5 {
  0%     { opacity: 1; transform: none; animation-timing-function: ease-in-out; }
  22%    { opacity: 1; transform: scale(1.02, 1.05); animation-timing-function: ease-in; }                     /* swells */
  30%    { opacity: 1; transform: translateY(3%) scale(.95, 1.1); animation-timing-function: cubic-bezier(.333, 0, .667, .333); } /* neck stretches, lets go */
  40.5%  { opacity: 1; transform: translateY(61%) scale(.86, 1.16); animation-timing-function: linear; }      /* falls (t²), strikes */
  42%    { opacity: 0; transform: translateY(142%) scale(1.5, .35); }                                         /* gone into the water */
  70%    { opacity: 0; transform: translateY(-24%) scale(.7, .8); animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
  80%    { opacity: 1; transform: translateY(2%) scale(.97, 1.04); animation-timing-function: ease-in-out; }  /* a new drop gathers */
  88%    { opacity: 1; transform: translateY(-1%) scale(1.01, .98); }
  95%, 100% { opacity: 1; transform: none; }
}

/* the splash (design/watercolor/splash): each sprite's base sits where the drop strikes (50%, 46.4%) */
.stage .splash { opacity: 0; pointer-events: none; animation-duration: 4s; animation-delay: .5s; animation-iteration-count: infinite; animation-fill-mode: both; }
.stage .crown { left: 35%; width: 30%; top: 31.9%; height: 19.83%; transform-origin: 50% 73%; animation-name: ml-crown;
  mix-blend-mode: normal; }   /* it stands in front of the water, so it covers it (its alpha is its silhouette) */
.stage .jet { left: 45.4%; width: 9.2%; top: 25.3%; height: 24%; transform-origin: 50% 88%; animation-name: ml-jet; }
.stage .bead { left: 48.5%; width: 3%; top: 20.1%; height: 5.68%; animation-name: ml-bead; }
@keyframes ml-crown {
  0%, 40.4% { opacity: 0; transform: scale(.3, .15); animation-timing-function: ease-out; }
  41.2%  { opacity: .95; transform: scale(.6, .45); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  45%    { opacity: .85; transform: scale(1, .85); animation-timing-function: ease-in; }
  49%, 100% { opacity: 0; transform: scale(1.15, .7); }
}
@keyframes ml-jet {
  0%, 43.5% { opacity: 0; transform: scale(.5, 0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  45%    { opacity: .9; }
  49.5%  { opacity: .9; transform: none; animation-timing-function: ease-in-out; }                              /* the column at its height */
  51%    { opacity: .85; transform: scale(.95, 1.02); animation-timing-function: ease-in; }
  56%    { opacity: .5; transform: scale(1.25, .06); }                                                         /* sinks back */
  57%, 100% { opacity: 0; transform: scale(1.25, 0); }
}
/* the gold rides the column up, flies free, and falls back (y = t²) */
@keyframes ml-bead {
  0%, 44% { opacity: 0; transform: translateY(372%) scale(.5); }
  46%    { opacity: 1; transform: translateY(230%) scale(.8); }
  49.5%  { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  53%    { opacity: 1; transform: translateY(-45%); animation-timing-function: cubic-bezier(.333, 0, .667, .333); }
  58.5%  { opacity: 1; transform: translateY(372%) scale(.92, 1.12); animation-timing-function: linear; }
  59.5%, 100% { opacity: 0; transform: translateY(400%) scale(1.6, .3); }
}

/* without WebGL: a ring of water spreading from the ripples' centre, in the painting's perspective (about 2.85 : 1):
   a bright crest and a clear-blue trough */
.ring {
  position: absolute; left: 14.1%; width: 72%; top: 29.55%; height: 33.7%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,0) 66%, rgba(255,255,255,.9) 77%, rgba(220,238,255,.45) 82%,
              rgba(31,95,208,.40) 88%, rgba(90,160,230,.22) 94%, rgba(90,160,230,0) 100%);
}
.stage .ring[data-ring="1"], .stage .ring[data-ring="2"] {
  background: radial-gradient(closest-side, rgba(255,255,255,0) 70%, rgba(255,255,255,.85) 80%, rgba(255,255,255,.3) 85%,
              rgba(35,80,160,.38) 90%, rgba(90,150,220,.15) 95%, rgba(90,150,220,0) 100%);
}
.stage .ring[data-ring="1"] { animation: ml-big4 4s linear 2.12s infinite both; }
.stage .ring[data-ring="2"] { animation: ml-big4b 4s linear 2.52s infinite both; }
.stage .ring[data-ring="soft"] { animation: ml-soft4 4s linear 4.12s infinite both;
  background: radial-gradient(closest-side, rgba(255,255,255,0) 72%, rgba(255,255,255,.7) 82%, rgba(35,80,160,.25) 90%, rgba(90,150,220,0) 100%); }
@keyframes ml-big4  { 0% { opacity: 0; transform: scale(.06); } 2% { opacity: .95; } 55% { opacity: .5; } 90% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes ml-big4b { 0% { opacity: 0; transform: scale(.06); } 2% { opacity: .6; } 55% { opacity: .3; } 90% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes ml-soft4 { 0% { opacity: 0; transform: scale(.06); } 4% { opacity: .5; } 60% { opacity: .2; } 90% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.08); } }
/* a tap on the painting without WebGL (app.js sets left / top) */
.ring.tap { width: 36%; height: 19%; transform: translate(-50%, -50%) scale(.05); animation: ml-tap 1.9s cubic-bezier(.2,.6,.3,1) both; }
@keyframes ml-tap { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.05); } 10% { opacity: .95; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

/* without WebGL the painted water moves */
.stage .wave {
  inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none;
  transform-origin: 50% 46.4%;                                 /* the ripples' centre in the painting */
  -webkit-mask: radial-gradient(ellipse 46% 30% at 50% 50%, #000 55%, transparent 100%);
          mask: radial-gradient(ellipse 46% 30% at 50% 50%, #000 55%, transparent 100%);
}
.stage .wave.wa { animation: ml-drift 7s ease-in-out .8s infinite alternate both; }
.stage .wave.wb { animation: ml-drift-b 9s ease-in-out .8s infinite alternate both; }
.stage .wave.wc { animation: ml-flow4 4s cubic-bezier(.2,.55,.35,1) 2.12s infinite both; }
@keyframes ml-drift   { from { opacity: .3; transform: translate(-2.2%, .5%) scaleY(1.02); } to { opacity: .3; transform: translate(2.2%, -.4%) scaleY(.98); } }
@keyframes ml-drift-b { from { opacity: .22; transform: translate(2%, -.3%) scale(1.03, .98); } to { opacity: .22; transform: translate(-2%, .4%) scale(.99, 1.03); } }
@keyframes ml-flow4 { 0% { opacity: 0; transform: scale(.94); } 8% { opacity: .5; } 85% { opacity: 0; transform: scale(1.24); } 100% { opacity: 0; transform: scale(1.24); } }

/* ---------- ways to save your bucket: five habits, each its own colour of water, sun and leaf ---------- */
/* sits under the painting: the 'how', kept apart so the pledge words lead straight into the signature */
.ways { margin-top: 6px; }
.ways-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-slate); }
html[lang="hi"] .ways-h, html[lang="te"] .ways-h { letter-spacing: 0; font-size: 14px; }
/* five pictogram bubbles in a row: a soft tint at rest, flat colour when tapped; the line below says what it saves.
   Plain rgba per colour (no color-mix), so older iPhones and Androids show the same. */
.bubbles { list-style: none; padding: 0; margin-top: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bub {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 48px; padding: 2px 0;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bub[data-way="1"] { --bc: #0A87A8; --bt: rgba(10,135,168,.12); --bh: rgba(10,135,168,.20); --br: rgba(10,135,168,.36); }  /* bath: aqua */
.bub[data-way="2"] { --bc: #1F5FD0; --bt: rgba(31,95,208,.11);  --bh: rgba(31,95,208,.19);  --br: rgba(31,95,208,.34); }   /* tap: clear blue */
.bub[data-way="3"] { --bc: #0E8A78; --bt: rgba(14,138,120,.12); --bh: rgba(14,138,120,.20); --br: rgba(14,138,120,.36); }  /* leaks: teal */
.bub[data-way="4"] { --bc: #2F8A3E; --bt: rgba(47,138,62,.12);  --bh: rgba(47,138,62,.20);  --br: rgba(47,138,62,.36); }   /* tank overflow: leaf (the green of a rooftop) */
.bub[data-way="5"] { --bc: #B87606; --bt: rgba(242,182,50,.20); --bh: rgba(242,182,50,.32); --br: rgba(184,118,6,.38); }   /* car wash: sun */
.bub svg {
  width: 52px; height: 52px; padding: 13px; border-radius: 50%;
  color: var(--bc); background: var(--bt); box-shadow: inset 0 0 0 1.5px var(--br);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
  animation: ml-wave 1s ease var(--d, 3.2s) both;   /* once, after the drop lands: a small wave across the five, saying "tap me" */
}
.bubbles li:nth-child(2) { --d: 3.32s; } .bubbles li:nth-child(3) { --d: 3.44s; }
.bubbles li:nth-child(4) { --d: 3.56s; } .bubbles li:nth-child(5) { --d: 3.68s; }
.bubbles.touched .bub:not([aria-pressed="true"]) svg { animation: none; }   /* never again after the first tap */
@keyframes ml-wave { 0%, 100% { transform: none; } 35% { transform: translateY(-5px) scale(1.06); } 70% { transform: translateY(1px); } }
.bub:hover svg { background: var(--bh); }
.bub[aria-pressed="true"] svg {
  color: #fff; background: var(--bc);
  box-shadow: 0 0 0 4px var(--bt), 0 8px 16px -10px var(--bc);
  animation: pop .35s ease;
}
@keyframes pop { 0% { transform: scale(.88); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
.bub:focus-visible { outline: none; }
.bub:focus-visible svg { outline: 2px solid var(--bc); outline-offset: 3px; }
.bub-l { font-size: 12.5px; line-height: 1.2; text-align: center; color: var(--color-slate); }
.bub[aria-pressed="true"] .bub-l { color: var(--color-ink); font-weight: 600; }
html[lang="hi"] .bub-l, html[lang="te"] .bub-l { font-size: 13px; line-height: 1.35; }
.ways-out { margin-top: 10px; min-height: 2.9em; font-size: 14.5px; line-height: 1.4; color: var(--color-slate); }
.ways-out .one { display: block; color: var(--color-ink); }
.ways-out b { font-family: var(--font-num); font-weight: 500; font-size: 18px; color: var(--ml-ocean); font-variant-numeric: lining-nums; }
.ways-out .why { display: block; margin-top: 4px; color: var(--color-slate); }   /* the plain-words explanation under the figure */
/* the tally: a small bucket filling one fifth per habit picked, and the count in words */
.ways-out .tot { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--color-ink); font-weight: 600; }
.ways-out .tally { flex: none; width: 30px; height: 30px; color: var(--ml-ocean); }
.ways-out .tally .lvl { fill: #4FA3E8; transform-box: fill-box; transform-origin: 50% 100%; animation: ml-fill .5s ease-out both; }
@keyframes ml-fill { from { opacity: .4; } }

/* ---------- the pledge card ("My pledge" + the signing form): a soft wash from light sky blue to near-white, with a
   luminous edge, gold on the sun's side fading into sky. Text inside is re-tuned so it holds its contrast on the wash. ---------- */
.sheet {
  --fs-top: #DAE6FF;
  --fs-mid: #E8F0FF;
  --fs-end: #EEF4FF;
  --color-slate: #34445F;                /* labels, eyebrows, hints in the card */
  --color-placeholder: #56617A;
  --color-field-line: #34437A;           /* strong indigo underline */
  --color-error: #8A2E1E;
  --color-error-fill: #FFF3EF;
  --color-line: rgba(52,67,122,.28);

  position: relative; margin-top: 10px; padding: 0 var(--gutter);
  border: 1px solid transparent; border-radius: 18px;
  background:
    linear-gradient(180deg, var(--fs-top) 0%, var(--fs-mid) 42%, var(--fs-end) 100%) padding-box,
    linear-gradient(150deg, #EBC56A 0%, #A9C4F5 35%, #9DB0D4 100%) border-box;
  box-shadow: 0 1px 2px rgba(37,51,94,.06), 0 24px 48px -26px rgba(31,95,208,.45), 0 10px 40px -30px rgba(242,182,50,.55);
}
.vow-lead { margin-top: 8px; font-size: 30px; line-height: 1.1; font-weight: 500; color: var(--color-ink); text-wrap: balance; }
.vow-intro { margin-top: 6px; font-size: 16px; color: var(--color-slate); }
html[lang="hi"] .vow-lead, html[lang="te"] .vow-lead { font-size: 28px; line-height: 1.35; }

/* three painted promises in a row: picture above the words */
.vows { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.vows li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
/* line pictograms in the same tinted circles as the habits above (reuse: aqua, protect: clear blue, inspire: sun), but still:
   no hover, no wave, nothing to tap */
.vows .vow-ic { flex: none; width: 52px; height: 52px; padding: 13px; border-radius: 50%;
  color: var(--vc); background: var(--vt); box-shadow: inset 0 0 0 1.5px var(--vr); }
.vows li:nth-child(1) { --vc: #0A87A8; --vt: rgba(10,135,168,.12); --vr: rgba(10,135,168,.36); }
.vows li:nth-child(2) { --vc: #1F5FD0; --vt: rgba(31,95,208,.11);  --vr: rgba(31,95,208,.34); }
.vows li:nth-child(3) { --vc: #B87606; --vt: rgba(242,182,50,.20); --vr: rgba(184,118,6,.38); }
.vows span { font-family: var(--font-display); font-weight: 400; font-size: 16.5px; line-height: 1.2; color: var(--color-ink); text-wrap: pretty; }
html[lang="hi"] .vows span, html[lang="te"] .vows span { font-size: 15.5px; line-height: 1.45; }

/* the "My pledge" label and its hairline mark where the pledge starts */
.pledge { position: relative; }
.pledge > .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--color-action); }
.pledge > .eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(37,51,94,.32), rgba(242,182,50,.55)); }

/* the signature: a short brush stroke where the pledge meets the form */
.sign { position: relative; margin-top: 20px; padding-top: 16px; scroll-margin-top: 12px; }
.sign::before { content: ""; position: absolute; left: 0; top: 0; width: 60px; height: 8px; opacity: .6; background: var(--brush) center / 100% 100% no-repeat; }
/* "Pledge for someone else": one calm line on white, above the fields */
.for-other {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(52,67,122,.16);
  font-size: 15px; line-height: 1.4; color: var(--color-ink);
}
.for-other img { flex: none; width: 28px; height: 28px; }
.fields { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.pair { display: flex; flex-direction: column; gap: 14px; }

/* Field: a white writing strip with a strong indigo underline */
.fld { display: block; min-width: 0; }
.lbl { display: block; font-size: 14px; font-weight: 400; color: var(--color-slate); margin-bottom: 2px; }
.row {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px; border-radius: 8px 8px 0 0;
  background: #FFFFFF; border-bottom: 2px solid var(--color-field-line); box-shadow: inset 0 0 0 1px rgba(52,67,122,.10);
  transition: border-color .2s ease, background-color .2s ease;
}
.pre { font-size: 18px; color: var(--color-slate); padding-right: 10px; border-right: 1px solid var(--color-line); line-height: 1.2; }
.fld input {
  flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font-family: var(--font-body); font-size: 18px; line-height: 1.3; color: var(--color-ink);
}
.fld input::placeholder { color: var(--color-placeholder); opacity: 1; font-style: italic; font-size: 16px; }
.hint { display: none; font-size: 13px; line-height: 1.35; color: var(--color-slate); margin-top: 6px; }
.fld:focus-within .hint { display: block; }
.err { display: none; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--color-error); margin-top: 6px; padding-left: 20px; position: relative; }
.err::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 50% 30% / 1.5px 4px no-repeat, radial-gradient(circle, currentColor 0 1px, transparent 1.2px) 50% 78% / 3px 3px no-repeat;
}
.fld:focus-within .row {
  background: #FFFFFF; border-bottom-color: var(--color-action);
  box-shadow: inset 0 0 0 1px rgba(37,51,94,.22), 0 2px 0 var(--color-action);
  outline: 2px solid #2F56C4; outline-offset: 2px;   /* visible focus ring: 6.2:1 on the card */
}
.fld:focus-within .lbl { color: var(--color-ink); }
.fld[data-state="error"] .lbl { color: var(--color-error); }
.fld[data-state="error"] .row { border-bottom-color: var(--color-error); background: var(--color-error-fill); box-shadow: inset 0 0 0 1px rgba(138,46,30,.35); }
.fld[data-state="error"]:focus-within .row { box-shadow: inset 0 0 0 1px rgba(138,46,30,.35), 0 2px 0 var(--color-error); outline-color: var(--color-error); }
.fld[data-state="error"] .hint { display: none; }
.fld[data-state="error"] .err { display: block; }
.fld.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

.banner {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--color-error-fill); border-left: 3px solid var(--color-error);
  font-size: 14px; line-height: 1.45; color: var(--color-ink);
}
/* the pledge is saved and waiting for the network: calm indigo, not the error red */
.banner[data-tone="wait"] { background: rgba(127,152,178,.12); border-left-color: var(--color-action); }

/* HoldToPledge, the pledge as an oath: sun gold (the gold actions block below), deep-indigo words, and in a night-indigo
   disc a raised palm holding a gold drop, the gesture of taking a sankalpa. Holding fills a ring around the disc and sweeps
   a warm light wash to the right. Contrast: ink on the gold >= 8:1, sub-line 6.3:1. */
.hold {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  width: 100%; height: 78px; margin-top: 22px; padding: 0 10px; border: 0; border-radius: var(--radius-full);
  text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(150,95,0,.45), 0 14px 30px -14px rgba(200,130,10,.85), 0 0 0 6px rgba(242,182,50,.16);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; transition: transform .2s ease, background-color .2s ease;
}
.hold:active { transform: scale(.985); }
.hold:focus-visible { outline: 3px solid #1B2858; outline-offset: 4px; }
.hold .fill {
  position: absolute; inset: 0; pointer-events: none;
  --front: calc(var(--p, 0) * 112%);
  background: linear-gradient(90deg, rgba(255,248,225,.28) 0, rgba(255,248,225,.38) calc(var(--front) - 70px),
    rgba(255,252,240,.75) calc(var(--front) - 10px), rgba(255,248,225,0) var(--front));
  opacity: min(1, calc(var(--p, 0) * 20));
}
.hold .drop {
  position: relative; flex: none; display: grid; place-items: center; width: 58px; height: 58px; isolation: isolate;
  border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2C3D7E, #1B2858); color: #FFF6E0;
}
.hold .drop::before {   /* progress ring around the disc */
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(#1B2858 calc(var(--p, 0) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.hold .drop::after {   /* a small sun glowing behind the palm, swelling and settling */
  content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,200,80,.62), rgba(255,214,120,.28) 55%, rgba(255,230,170,0));
  animation: ml-halo 6s ease-in-out 1.5s infinite both;
}
@keyframes ml-halo { 0%, 100% { opacity: .35; transform: scale(.8); } 45% { opacity: 1; transform: scale(1); } }
.hold[data-filling] .drop::after, .hold[data-busy] .drop::after { animation: none; opacity: 0; }
.hold .drop svg { position: relative; width: 34px; height: 34px; color: #FFF6E0; transform: scale(calc(.85 + var(--p, 0) * .35)); transition: transform .1s linear; }
.hold .drop .oath-drop { fill: #F2B632; stroke: #F2B632; }
.hold .txt { position: relative; display: flex; flex-direction: column; gap: 5px; }
.hold .t1 { font-family: var(--font-display); font-size: 26px; font-style: italic; font-weight: 500; line-height: 1; }
html[lang="hi"] .hold .t1, html[lang="te"] .hold .t1 { font-style: normal; font-weight: 400; font-size: 23px; line-height: 1.25; }
.hold .t2 { font-size: 13px; letter-spacing: .01em; color: #3A2A08; text-wrap: balance; }
.hold[data-busy] { cursor: progress; }
.hold[data-busy] .drop svg { animation: drip 1s ease-in-out infinite; }
@keyframes drip { 50% { transform: translateY(3px) scale(1.05); } }

/* the surprise: teased under the pledge button with a soft warm light under it, revealed on the pledge-taken view */
.gift-tease {
  margin: 16px auto 0; width: fit-content; max-width: 100%; padding: 6px 14px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255,214,120,.38), rgba(255,214,120,0));
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--color-ink); text-align: center; text-wrap: balance;
}
.gift-ico { width: 24px; height: 24px; flex: none; }
/* the gift gives a small wiggle every few seconds, so the surprise catches the eye */
.gift-tease .gift-ico { display: inline-block; vertical-align: -6px; margin-right: 7px; transform-origin: 50% 85%; animation: gift-nudge 3.4s ease-in-out 1s infinite; }
@keyframes gift-nudge { 0%, 68%, 100% { transform: none; } 73% { transform: rotate(-12deg) scale(1.12); } 78% { transform: rotate(10deg) scale(1.12); } 83% { transform: rotate(-6deg) scale(1.05); } 88% { transform: rotate(3deg); } 93% { transform: none; } }

/* phones: a call to action stays in reach while the form is off-screen */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(227,236,242,0), rgba(227,236,242,.94) 30%);
  animation: in .3s ease both;
}
.sticky-cta .btn {
  position: relative; overflow: hidden; height: 52px;
  font-family: var(--font-display); font-size: 21px; font-style: italic; font-weight: 500; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(150,95,0,.45), 0 10px 24px -12px rgba(200,130,10,.8);
}
html[lang="hi"] .sticky-cta .btn, html[lang="te"] .sticky-cta .btn { font-style: normal; font-weight: 400; font-size: 19px; }

/* ================= 2 · pledge taken ================= */
.done { display: flex; flex-direction: column; }
.done-main { display: contents; }   /* phones: one column, certificate right after the heading */
.done-head { order: 1; } .cert { order: 2; } .share { order: 3; } .gift { order: 3; } .done-count { order: 4; } .river-wrap { order: 5; }
.done-head { padding: 10px var(--gutter) 0; }
.done-head h1.display { font-size: 38px; font-weight: 400; line-height: 1.06; }
html[lang="hi"] .done-head h1.display, html[lang="te"] .done-head h1.display { font-size: 32px; line-height: 1.35; }
/* "Congratulations, X!" then "You've pledged to save water." a size smaller, in the first page's watercolour wash */
.done-head h1 em {
  display: block; font-size: .62em; line-height: 1.25; margin-top: 8px;
  color: var(--ml-ocean-deep);
  background: url(/water-pledge/img/wash-text.webp) 0 0 / 100% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em; margin-right: -.08em;
}
.note { margin-top: 10px; font-size: 14px; color: var(--color-slate); line-height: 1.45; }
/* the gift, revealed as one warm card under sharing */
.gift {
  display: flex; gap: 14px; align-items: flex-start; margin: 22px var(--gutter) 0; padding: 14px 16px;
  border: 1px solid transparent; border-radius: 14px;
  background: linear-gradient(135deg, #FFFBF1, #FFFFFF 60%) padding-box, linear-gradient(135deg, #F2C14E, #F6DFA0 40%, #C9D8F2) border-box;
  box-shadow: 0 12px 26px -18px rgba(200,140,20,.55);
}
.gift-disc { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFF8E6, #FFE6A8); box-shadow: 0 0 0 4px rgba(242,182,50,.14); }
.gift-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--color-ink); line-height: 1.3; }
.gift-body { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--color-slate); }

/* the certificate (landscape, 3:2); each share chip still sends the right shape for its app */
.cert { padding: 18px var(--gutter) 0; display: flex; flex-direction: column; align-items: center; }
.card {
  order: -1; overflow: hidden; width: 100%; max-width: 560px; aspect-ratio: 3 / 2; background: var(--color-sky); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(60,48,30,.10), 0 10px 22px -16px rgba(30,42,82,.35);
  transition: width .3s ease;
}
.card img { width: 100%; height: 100%; object-fit: cover; }

/* one way to share (the share tray), then inviting on WhatsApp */
.share { display: flex; flex-direction: column; gap: 12px; padding: 22px var(--gutter) 0; }
.btn.invite .wa-ico { flex: none; width: 26px; height: 26px; }
.done-count { align-self: center; justify-content: center; margin-top: 20px; }

#v-done { overflow-x: hidden; overflow-x: clip; }
/* your drop lands in the hero's painted ripple (painting 3:2 in a 3:1 band; the ripple's centre, 47% down the painting,
   lands 45% down the band) */
.river-wrap { margin-top: 34px; padding-top: 24px; position: relative; }
.river-wrap::before { content: ""; position: absolute; left: var(--gutter); top: 0; width: 60px; height: 8px; opacity: .6; background: var(--brush) center / 100% 100% no-repeat; }
.river-wrap > .eyebrow { padding: 0 var(--gutter); }
.river { position: relative; aspect-ratio: 3 / 1; margin: 4px 0 0; pointer-events: none; }
.river img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.river .river-art { object-position: 50% 49%; }
.river .you { position: absolute; left: 50%; top: 45%; width: 30px; height: 30px; margin: -26px 0 0 -15px; animation: fall .7s cubic-bezier(.55,0,.9,.45) .3s both; }
@keyframes fall { from { transform: translateY(-60px); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
/* your drop lands: its ring spreads through the painted ripple; later pledges (the live count rising) send a fainter one */
.river .ring { left: 14%; width: 72%; top: 11.3%; height: 67.4%; }
#v-done:not([hidden]) .river .ring[data-ring="land"] { animation: ring 1.9s cubic-bezier(.2,.6,.3,1) .95s both; }
@keyframes ring { 0% { opacity: 0; transform: scale(.06); } 8% { opacity: 1; } 55% { opacity: .7; } 100% { opacity: 0; transform: scale(1.08); } }
.ring.echo { animation: echo 2.4s cubic-bezier(.2,.6,.3,1) both; }
@keyframes echo { 0% { opacity: 0; transform: scale(.05); } 10% { opacity: .6; } 100% { opacity: 0; transform: scale(.85); } }
.you-tag {
  position: absolute; left: calc(50% + 22px); top: 12%; max-width: calc(50% - 30px); width: max-content;
  font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.05; color: var(--color-ink);
  text-shadow: 0 0 4px var(--color-sky), 0 0 10px var(--color-sky);   /* keeps the words clear of the ripple lines */
}
html[lang="hi"] .you-tag, html[lang="te"] .you-tag { font-style: normal; }
.you-tag small { display: block; font-family: var(--font-body); font-style: normal; font-size: 13px; color: var(--color-slate); margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }

/* StatLine (shown from CONFIG.COUNT_FROM) */
.stats { position: relative; display: grid; grid-template-columns: minmax(min-content, 1.35fr) 1fr 1fr; gap: 16px; padding: 8px var(--gutter) 0; }
.stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat .n { font-family: var(--font-num); font-size: clamp(26px, 8.6vw, 34px); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat .c { font-size: 13px; color: var(--color-slate); letter-spacing: .02em; line-height: 1.35; }
.ripple-note { margin: 20px var(--gutter) 0; font-size: 15px; line-height: 1.5; color: var(--color-slate); max-width: 44ch; }
.ripple-note b { color: var(--color-ink); font-weight: 600; }

/* ---------- Button ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 22px;
  border-radius: var(--radius-full); font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.3;
  letter-spacing: .01em; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--color-action); color: var(--color-on-action); border: 1px solid var(--color-action-deep);
  transition: transform .2s ease, border-color .2s ease; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { background: var(--color-action-deep); }
.btn:focus-visible { outline: 2px solid var(--color-action); outline-offset: 3px; }
.btn[data-tone="quiet"] { background: transparent; color: var(--color-ink); border: 1px solid var(--color-field-line); }
.btn[data-tone="quiet"]:hover { border-color: var(--color-action); }
/* Share: the main action on the pledged view */
#share-main { position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(150,95,0,.35), 0 12px 26px -14px rgba(200,130,10,.8); }
#share-main:focus-visible { outline-color: #1B2858; }
.sticky-cta .btn > *, #share-main > * { position: relative; }

/* ---------- pledge taken, phones and tablets: a compact floating "Share" pill ----------
   Bottom-right, auto width, no strip behind it: there it lands on the certificate's empty lower-right paper. Narrow or
   short phones get a smaller pill (two app marks). Shown only while the in-page Share button is off-screen (app.js
   watches that button); fades and slides away as the button comes near. Opens the share tray. */
.share-fab {
  --fab-h: 48px; --fab-gap: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: var(--fab-gap); z-index: 40;
  transition: transform .32s cubic-bezier(.3,.7,.3,1), opacity .25s ease, visibility 0s;
}
.share-fab.away { transform: translateY(14px); opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, .32s; }
.fab-btn {
  display: flex; align-items: center; gap: 10px; height: var(--fab-h); padding: 0 7px 0 20px; border: 1px solid;
  border-radius: var(--radius-full); cursor: pointer;
  font-family: var(--font-display); font-size: 20px; font-style: italic; font-weight: 500; line-height: 1; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(30,42,82,.6), 0 2px 6px -2px rgba(30,42,82,.3);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .15s ease;
}
.fab-btn:active { transform: scale(.97); }
.fab-btn:focus-visible { outline: 2px solid var(--color-action); outline-offset: 3px; }
html[lang="hi"] .fab-btn, html[lang="te"] .fab-btn { font-style: normal; font-weight: 400; font-size: 18px; }
.fab-label { padding-bottom: 1px; }
/* four small ivory discs, overlapping, each mark in its own brand colour */
.fab-apps { display: flex; }
.fab-apps .dot {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-on-action); box-shadow: 0 0 0 2px #F6B935;
}
.fab-apps .dot + .dot { margin-left: -5px; }
.fab-apps .dot svg { width: 16px; height: 16px; }
.fab-apps .dot:last-child svg { width: 13px; height: 13px; }   /* X: a lighter mark, a touch smaller so the four weigh the same */

/* ---------- the gold actions: the pledge button, the phones' "Take the pledge" bar, Share and the Share pill.
   Sun gold, deep-indigo words, and a band of light crossing the gold once every 12 s. ---------- */
.hold, .sticky-cta .btn, #share-main, .fab-btn {
  background: linear-gradient(115deg, #FFE08A 0%, #FAC53F 50%, #F2A920 100%);
  color: var(--color-ink); border-color: #C98A0A;
}
.hold:active, .sticky-cta .btn:active, #share-main:active, .fab-btn:active { background: linear-gradient(115deg, #FAD36A 0%, #F3B52C 50%, #E99C14 100%); }
.hold::before, .sticky-cta .btn::before, #share-main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(-130%); animation: ml-sheen 12s ease-in-out 4.4s infinite both;
}
@keyframes ml-sheen { 0% { transform: translateX(-130%); } 13%, 100% { transform: translateX(130%); } }
.hold[data-filling]::before, .hold[data-busy]::before { animation: none; opacity: 0; }

/* brand discs (share tray): the app's own colour, a white mark */
.disc { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.disc.wa { background: #25D366; }
.disc.ig { background: radial-gradient(circle at 28% 108%, #FEDA75 0, #FA7E1E 18%, #D62976 45%, #962FBF 70%, #4F5BD5 100%); }
.disc.fb { background: #1877F2; }
.disc.x  { background: #000; }
.disc.tool { background: var(--color-sky); color: var(--color-action); box-shadow: inset 0 0 0 1px var(--color-field-line); }

/* ---------- the share tray: a white sheet over a soft indigo scrim ---------- */
.tray { position: fixed; inset: 0; z-index: 50; }
.tray-scrim { position: absolute; inset: 0; background: rgba(28,35,64,.36); opacity: 0; transition: opacity .3s ease; -webkit-tap-highlight-color: transparent; }
.tray.open .tray-scrim { opacity: 1; }
.tray-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin-inline: auto; max-height: calc(100% - 24px);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(14px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0; outline: 0;
  background: var(--color-sheet);
  box-shadow: 0 -1px 0 rgba(78,96,121,.10), 0 -14px 34px -16px rgba(28,35,64,.45);
  transform: translateY(100%); transition: transform .36s cubic-bezier(.2,.8,.25,1);
}
.tray.open .tray-sheet { transform: none; }
.tray-head {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 20px 14px;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.tray-grab { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(78,96,121,.32); }
.tray-thumb {
  flex: none; height: 52px; width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: var(--color-sky);
  box-shadow: 0 1px 2px rgba(60,48,30,.14), 0 6px 12px -8px rgba(30,42,82,.4);
}
.tray-thumb:not([src]) { visibility: hidden; }
.tray-titles { flex: 1; min-width: 0; }
.tray-head h2 { font-size: 25px; line-height: 1.1; font-weight: 400; color: var(--color-ink); text-wrap: balance; }
html[lang="hi"] .tray-head h2, html[lang="te"] .tray-head h2 { font-size: 22px; line-height: 1.4; }
.tray-sub { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--color-slate); }
.tray-x {
  flex: none; align-self: flex-start; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px 0 0;
  border: 0; border-radius: 50%; background: none; color: var(--color-slate); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tray-x:hover { background: rgba(127,152,178,.14); }
/* a row of round app buttons; scrolls sideways if it ever runs out of room */
.tray-apps {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 4px;
  padding: 8px 14px 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  border-top: 1px solid var(--color-line);
}
.tray-apps::-webkit-scrollbar { display: none; }
.tray-tools { grid-auto-columns: minmax(64px, calc((100% - 16px) / 5)); justify-content: start; border-top: 0; padding-top: 2px; }
.tray-app {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 8px 0 6px;
  border: 0; border-radius: 12px; background: none; color: var(--color-ink); text-decoration: none; cursor: pointer;
  font-size: 13px; line-height: 1.2; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease;
}
.tray-app .disc { width: 56px; height: 56px; transition: transform .15s ease; }
.tray-app .disc svg { width: 30px; height: 30px; }
.tray-app .disc.x svg { width: 24px; height: 24px; }
.tray-app .disc.tool svg { width: 24px; height: 24px; }
.tray-app .disc.fb svg { width: 100%; height: 100%; }
.tray-app:active .disc { transform: scale(.94); }
@media (hover: hover) { .tray-app:hover { background: rgba(127,152,178,.10); } }   /* no tint left behind by a tap */
.tray-app:focus-visible, .tray-x:focus-visible { outline: 2px solid var(--color-action); outline-offset: -2px; }
.tray-app .tl { white-space: nowrap; }
/* Insta Story / Insta Post: a small badge on the disc's lower right shows the shape that goes out (9:16, square) */
.fmt-badge {
  position: absolute; top: 45px; left: calc(50% + 13px); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-sheet); color: var(--color-action); box-shadow: 0 0 0 1px rgba(78,96,121,.18), 0 1px 2px rgba(28,35,64,.18);
  pointer-events: none;
}
.fmt-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tray-hint { margin: 2px 20px 0; font-size: 12.5px; line-height: 1.4; color: var(--color-slate); }
/* last row: pledge again for a family member on the same phone */
.tray-row {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); min-height: 56px; margin: 12px 14px 0; padding: 6px 10px 6px 8px;
  border: 0; border-top: 1px solid var(--color-line); border-radius: 0; background: none; color: var(--color-ink); cursor: pointer;
  font-size: 15px; text-align: left; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease;
}
.tray-row img { flex: none; width: 36px; height: 36px; }
.tray-row span { flex: 1; }
.tray-row .chev { flex: none; color: var(--color-slate); }
@media (hover: hover) { .tray-row:hover { background: rgba(127,152,178,.10); } }
.tray-row:focus-visible { outline: 2px solid var(--color-action); outline-offset: -2px; }
html.tray-lock { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 40px); padding: 10px 18px; border-radius: var(--radius-sm); z-index: 60;
  background: var(--color-ink); color: var(--color-on-action); font-size: 14px; animation: in .3s ease both;
}
.toast.top { bottom: auto; top: calc(14px + env(safe-area-inset-top)); }

/* ---------- Footer: under a painted brush divider; the logo, AoL's links (as on artofliving.org/in-en), the year ---------- */
.site-foot { position: relative; margin-top: 56px; padding: 30px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--color-slate); font-size: 15px; }
.site-foot::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(calc(100% - 2 * var(--bar-x)), var(--page)); height: 12px; transform: translateX(-50%);
  opacity: .5; background: var(--brush) center / 100% 100% no-repeat;
}
.foot-in { max-width: var(--page); margin: 0 auto; padding: 0 var(--bar-x); display: grid; gap: 12px; }
.foot-logo { height: 40px; width: auto; }
.foot-end { display: grid; gap: 8px; }
.contact { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-ink); font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact svg { width: 20px; height: 20px; flex: none; color: var(--color-action); }
.site-foot :focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; }
.foot-links { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.foot-links .sep { color: var(--color-slate); opacity: .6; line-height: 1; position: relative; top: -1px; }
.foot-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(127,152,178,.7); text-underline-offset: 2px; }
.foot-fine { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-slate); }

/* ================= small phones ================= */
@media (max-width: 359px) {
  .vows { gap: 8px; }
  .vows span { font-size: 15px; }
  .bub svg { width: 46px; height: 46px; padding: 11px; }
  .bub-l { font-size: 11.5px; }
}
@media (min-width: 375px) { .pair { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; align-items: start; } }

/* ================= phones: the card inset from the page edge, the pledge and the first field above the fold ================= */
@media (max-width: 599px) {
  .sheet { margin: 18px 10px 0; padding: 22px 14px 20px; }
  .vow-lead { font-size: 26px; line-height: 1.15; }   /* the pledge itself: one bucket a day */
  html[lang="hi"] .vow-lead, html[lang="te"] .vow-lead { font-size: 24px; }
}
@media (max-width: 374px) {
  h1.display { font-size: 38px; }
  .hero { height: 140px; }
  .sheet { margin-inline: 8px; padding-inline: 12px; }
  .hold { gap: 12px; }
  .hold .drop { width: 52px; height: 52px; }
  .hold .drop svg { width: 30px; height: 30px; }
  .hold .t1 { font-size: 24px; }
  .tray-head { padding-inline: 16px; gap: 12px; }
  .tray-head h2 { font-size: 22px; }
  html[lang="hi"] .tray-head h2, html[lang="te"] .tray-head h2 { font-size: 20px; }   /* the Hindi title stays on one line at 320px */
  .tray-sub { font-size: 12px; letter-spacing: -.005em; }
  .tray-apps { padding-inline: 8px; gap: 0; grid-auto-columns: minmax(60px, 1fr); }
  .tray-tools { grid-auto-columns: minmax(60px, calc(100% / 5)); }
  .tray-app { font-size: 12px; }
  .tray-app .disc { width: 52px; height: 52px; }
  .tray-app .disc svg { width: 28px; height: 28px; }
  .fmt-badge { top: 41px; left: calc(50% + 11px); width: 19px; height: 19px; }
  .tray-app .tl { letter-spacing: -.01em; }
}
@media (max-width: 374px), (max-height: 700px) {
  .share-fab { --fab-h: 44px; }
  .fab-btn { gap: 8px; padding: 0 6px 0 16px; font-size: 18px; }
  html[lang="hi"] .fab-btn, html[lang="te"] .fab-btn { font-size: 16px; }
  .fab-apps .dot { width: 26px; height: 26px; }
  .fab-apps .dot svg { width: 15px; height: 15px; }
  .fab-apps .dot:nth-child(n+3) { display: none; }   /* WhatsApp and Instagram only */
}
/* phones and tablets: keep the page's last lines (footer) scrollable clear above the pill, and lift toasts over it */
@media (max-width: 959px) {
  body.on-done .site-foot { padding-bottom: calc(48px + max(16px, env(safe-area-inset-bottom) + 8px) + 24px); }
  body.fab-on .toast:not(.top) { bottom: calc(48px + max(16px, env(safe-area-inset-bottom) + 8px) + 12px); }
}

/* ================= tablet: one centred column ================= */
@media (min-width: 600px) {
  .sticky-cta { display: none !important; }
  .tray-apps { padding-inline: 20px; }
  .tray-row { width: calc(100% - 40px); margin-inline: 20px; }
  .tray-hint { margin-inline: 26px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .split { max-width: 560px; margin-inline: auto; }
  :root { --gutter: 0px; }
  .bar, .foot-in { max-width: 600px; }
  .intro { padding-top: 16px; }
  h1.display { font-size: 56px; }
  .hero { height: 260px; }
  .sheet { margin-top: 24px; padding: 32px 36px 28px; border-radius: 20px; }
  .vows span { font-size: 18px; }
  .river-wrap::before { left: 0; }
}
@media (min-width: 900px) { .gift { margin: 22px 0 0; max-width: 400px; } }   /* as wide as the share buttons */

/* ================= laptop: two columns ================= */
@media (min-width: 960px) {
  :root { --gutter: 0px; --bar-x: 48px; }
  .share-fab { display: none !important; }
  .bar { height: 92px; padding-top: 12px; max-width: calc(var(--page) + 2 * var(--bar-x)); }
  .logo { height: 62px; }
  .split {
    max-width: calc(var(--page) + 2 * var(--bar-x)); margin: 0 auto; padding: 0 var(--bar-x);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center;
  }
  .foot-in { max-width: calc(var(--page) + 2 * var(--bar-x)); grid-template-columns: auto 1fr; align-items: end; gap: 40px; }
  .foot-end { justify-items: end; text-align: right; }
  .foot-links { justify-content: flex-end; }

  /* page 1: pitch and painting left, the pledge card right; the columns balance on their centres */
  .intro { padding-top: 0; }
  h1.display { font-size: 64px; line-height: 1.0; }
  html[lang="hi"] .intro h1.display, html[lang="te"] .intro h1.display { font-size: 52px; line-height: 1.28; }
  .live-count { margin-top: 12px; }
  .art { width: min(100%, 520px); margin-top: 18px; }
  .ways { width: min(100%, 520px); margin-top: 8px; }
  .hero { height: auto; aspect-ratio: 3 / 2; }
  .stage { width: 100%; height: auto; }
  .sheet { margin: 0; padding: 32px 40px 26px; border-radius: 20px; }
  .bub svg { width: 56px; height: 56px; padding: 14px; }
  .bub-l { font-size: 13px; }
  .ways-out { font-size: 15px; }
  .vow-lead { font-size: 34px; }
  .vows { gap: 14px 24px; margin-top: 16px; }
  .vows li { gap: 12px; }
  .vows .vow-ic { width: 56px; height: 56px; padding: 14px; }
  .vows span { font-size: 19px; }
  html[lang="hi"] .vows span, html[lang="te"] .vows span { font-size: 17px; }
  .sign { margin-top: 22px; padding-top: 18px; }
  .hold { margin-top: 20px; }

  /* page 2: certificate and ripple on the left, words, sharing and the gift on the right; no empty column.
     (.river-wrap sits after .cert in the page; on phones the flex order still puts it last.) */
  .done {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start;
    column-gap: 64px; row-gap: 0; grid-template-rows: auto 1fr; grid-template-areas: "cert main" "river main";
  }
  .done-main { display: block; grid-area: main; }
  .cert { grid-area: cert; align-self: start; padding: 18px 0 0; }
  .done-head { padding-top: 18px; }
  .done-head h1.display { font-size: 54px; }
  html[lang="hi"] .done-head h1.display, html[lang="te"] .done-head h1.display { font-size: 44px; }
  .card { width: 100%; max-width: 100%; }
  .share { padding: 28px 0 0; max-width: 400px; }
  .done-count { justify-content: flex-start; margin-top: 22px; }
  .river-wrap { grid-area: river; margin-top: 30px; align-self: start; }
  .river-wrap::before { left: 0; }
  .ripple-note { margin-inline: 0; }

  /* the share tray as a centred dialog card, fading up a little instead of sliding from the bottom edge */
  .tray-sheet {
    top: 50%; bottom: auto; left: 50%; right: auto; width: min(520px, calc(100% - 48px)); max-width: none; max-height: calc(100% - 48px);
    margin: 0; padding-bottom: 14px; border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(78,96,121,.10), 0 24px 60px -24px rgba(28,35,64,.55);
    opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.98);
    transition: transform .3s cubic-bezier(.2,.8,.25,1), opacity .22s ease;
  }
  .tray.open .tray-sheet { opacity: 1; transform: translate(-50%, -50%); }
  .tray-grab { display: none; }
  .tray-head { padding-top: 20px; touch-action: auto; }
}
/* small laptops (1024 × 768): a narrower intro, so the button fits (the pledged view keeps its own columns) */
@media (min-width: 960px) and (max-width: 1199px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px; }
  .done { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 64px; }
  h1.display { font-size: 54px; }
  .sheet { padding: 26px 32px 22px; }
  .vow-lead { font-size: 30px; }
  .vows { gap: 10px 20px; margin-top: 12px; }
  .vows span { font-size: 17.5px; }
  .sign { margin-top: 18px; padding-top: 14px; }
  .fields { gap: 12px; }
  .hold { margin-top: 16px; }
}
@media (min-width: 960px) and (max-height: 820px) {
  .bar { height: 76px; }
  .logo { height: 54px; }
}

/* Telugu headings a little heavier than body text (Noto Sans Telugu 500), as Telugu news sites set them.
   Last in the file on purpose: it must win over the hi / te weight-400 rules above, which have the same specificity. */
html[lang="te"] .display, html[lang="te"] .display em, html[lang="te"] .vows span, html[lang="te"] .hold .t1,
html[lang="te"] .sticky-cta .btn, html[lang="te"] .fab-btn { font-weight: 500; }

/* ================= reduced motion: nothing moves ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
