/* =========================================================================
   omsrtech.com/support — "support the development".
   One page. Choosing a project swaps the theme class on <body>, which only
   changes the colour variables below, plus the hero art and the tiers
   (support.js). Fonts are self-hosted in /fonts.
   ========================================================================= */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 800; font-display: swap; src: url("/fonts/Barlow-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 900; font-display: swap; src: url("/fonts/Barlow-900.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexMono-500.woff2") format("woff2"); }

/* ------------------------------------------------------------------ themes */

/* Default (All of it / Forge): studio dark with the OMSR lime. */
:root, .theme-hub {
  --bg: #111311; --bg-2: #181b18; --glow-a: #1f2a17; --glow-b: #182013;
  --line: rgba(200, 240, 160, .10); --line-strong: rgba(200, 240, 160, .24);
  --cream: #eef3e8; --cream-dim: #c2cbb8; --cream-faint: #7f8a74;
  --accent: #b7e36a; --accent-soft: #dcf5ad; --accent-deep: #86b43c; --on-accent: #1a2608;
  --accent-rgb: 183, 227, 106;
}
/* Sakhi: the app's own plum-black and pink. */
.theme-sakhi {
  --bg: #1a0f15; --bg-2: #24141d; --glow-a: #3a1028; --glow-b: #2b0f20;
  --line: rgba(255, 179, 209, .10); --line-strong: rgba(255, 179, 209, .24);
  --cream: #f6e3ec; --cream-dim: #d9bfcb; --cream-faint: #9f8390;
  --accent: #ff6fae; --accent-soft: #ffb3d1; --accent-deep: #e0457f; --on-accent: #3b0020;
  --accent-rgb: 255, 111, 174;
}
/* Lantern: the warm coal and flame of lantern.css. */
.theme-lantern {
  --bg: #0b0907; --bg-2: #17130f; --glow-a: #2a1d0e; --glow-b: #1d140a;
  --line: rgba(255, 226, 184, .10); --line-strong: rgba(255, 226, 184, .22);
  --cream: #f4ece2; --cream-dim: #b9ab99; --cream-faint: #7b6d60;
  --accent: #d9b56c; --accent-soft: #efd9a6; --accent-deep: #a8823f; --on-accent: #1a1206;
  --accent-rgb: 217, 181, 108;
}
/* OMSR Chess: a classic board, green and ivory. */
.theme-chess {
  --bg: #121411; --bg-2: #1a1d18; --glow-a: #1e2a19; --glow-b: #24221a;
  --line: rgba(238, 238, 210, .10); --line-strong: rgba(238, 238, 210, .22);
  --cream: #eeeed2; --cream-dim: #c4c4ad; --cream-faint: #858672;
  --accent: #8fb85f; --accent-soft: #c4e09a; --accent-deep: #6a9440; --on-accent: #142008;
  --accent-rgb: 143, 184, 95;
}

:root {
  --sans: "Barlow", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --max: 1040px;
}

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
[hidden] { display: none !important; } /* layout rules below must never un-hide hidden blocks */
button, input { font: inherit; color: inherit; }

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

body {
  min-height: 100vh;
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(1000px 600px at 50% -10%, var(--glow-a) 0%, transparent 62%),
    radial-gradient(700px 500px at 90% 110%, var(--glow-b) 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
header, main, footer { position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}

/* A short fade when the theme changes, so the swap feels deliberate. */
.swap { animation: swapin .45s ease both; }
@keyframes swapin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ chrome */

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 22px 20px; font-size: 15px;
}
.top a { color: var(--cream-dim); text-decoration: none; }
.top a:hover { color: var(--cream); }

/* -------------------------------------------------------------------- hero */

.hero { max-width: 760px; margin: 0 auto; padding: 26px 20px 0; text-align: center; }

.art { position: relative; width: 124px; height: 124px; margin: 0 auto 20px; }
.art svg { width: 100%; height: 100%; overflow: visible; }

/* chai: steam */
.steam path { fill: none; stroke: var(--accent-soft); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steam 3.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.2s; }
.steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .55; } 100% { opacity: 0; transform: translateY(-14px); } }

/* diya: a flickering flame and its glow */
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.8s ease-in-out infinite; }
.flame-glow { animation: glowpulse 2.8s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0deg); } 30% { transform: scale(1.06, .95) rotate(-3deg); } 60% { transform: scale(.95, 1.06) rotate(3deg); } }
@keyframes glowpulse { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }

/* pawn: a crown settles onto it */
.crown { animation: crown 4s ease-in-out infinite; }
@keyframes crown { 0%, 15% { opacity: 0; transform: translateY(-14px); } 45%, 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }

/* hub: a sprout that sways */
.leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

h1 {
  font-weight: 900; text-transform: lowercase; letter-spacing: -.035em; line-height: .92;
  font-size: clamp(46px, 9.5vw, 92px); margin: 0 0 16px;
}
h1 .accent { color: var(--accent); }
.lede { color: var(--cream-dim); font-size: clamp(17px, 2.2vw, 20px); margin: 0 auto 6px; max-width: 52ch; }

/* ---------------------------------------------------------------- the tip box */

.tipbox {
  max-width: 760px; margin: 40px auto 0; padding: 30px;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .07) 0%, rgba(var(--accent-rgb), .015) 55%), var(--bg-2);
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .05) inset;
}

.step-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-faint); margin: 0 0 12px; }
.step-label + * { margin-bottom: 26px; }

.projects { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--cream-dim);
  font-weight: 600; font-size: 15px; transition: all .18s ease;
}
.pill:hover { color: var(--cream); border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.tiers { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.tier {
  display: grid; gap: 2px; justify-items: center; align-content: start; text-align: center;
  padding: 16px 8px 14px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.tier:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tier[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .14); }
.tier .emoji { font-size: 26px; line-height: 1.25; min-height: 34px; }
/* Chess glyphs are text symbols, not emoji, so they take the accent colour. */
.tier .emoji.glyph { font-size: 36px; line-height: 1; color: var(--accent-soft); font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", "Apple Symbols", serif; }
.tier .amt { font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.tier .what { font-size: 13px; color: var(--cream-dim); line-height: 1.3; }

.custom { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.custom label { font-size: 14px; color: var(--cream-dim); }
.custom .field {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .22);
}
.custom input { width: 92px; border: 0; background: transparent; outline: none; font-weight: 800; font-size: 17px; }
.custom input::-webkit-outer-spin-button, .custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom input[type=number] { -moz-appearance: textfield; }

.pay { display: grid; gap: 26px; grid-template-columns: 220px 1fr; align-items: center; }
.qr {
  width: 220px; height: 220px; padding: 14px; border-radius: 20px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 60px -20px rgba(var(--accent-rgb), .55);
}
.qr svg { width: 100%; height: 100%; }
.qr-cap { font-size: 13px; color: var(--cream-faint); text-align: center; margin-top: 10px; }

.pay-side { display: grid; gap: 12px; }
.summary { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.summary .hl { color: var(--accent); }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  font-weight: 800; font-size: 17px; color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: 0 18px 40px -18px rgba(var(--accent-rgb), .8), 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--cream-dim);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: all .18s ease;
}
.btn-ghost:hover { color: var(--cream); border-color: var(--accent); }
.btn-ghost.done { color: var(--accent-soft); border-color: var(--accent-soft); }

.upi-id { font-family: var(--mono); font-size: 14px; color: var(--cream-dim); }
.hint { font-size: 13.5px; color: var(--cream-faint); margin: 0; }

/* The app button only on touch devices; the QR stays everywhere. */
.only-phone { display: none; }
@media (hover: none) and (pointer: coarse) { .only-phone { display: inline-flex; } }

.soon { padding: 26px; border-radius: 20px; text-align: center; border: 1px dashed var(--line-strong); color: var(--cream-dim); }
.soon b { color: var(--cream); display: block; font-size: 20px; margin-bottom: 4px; }

/* ------------------------------------------------------------------ sections */

.section { max-width: var(--max); margin: 84px auto 0; padding: 0 20px; }
h2 {
  font-weight: 900; text-transform: lowercase; letter-spacing: -.025em; line-height: 1;
  font-size: clamp(32px, 5vw, 48px); margin: 0 0 22px;
}
h2 .accent { color: var(--accent); }

.uses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.use { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.use .ic { font-size: 26px; }
.use h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 800; }
.use p { margin: 0; color: var(--cream-dim); font-size: 15px; }

.made { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.made a {
  display: block; padding: 20px 22px; border-radius: 18px; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s ease, transform .2s ease;
}
.made a:hover { border-color: var(--accent); transform: translateY(-2px); }
.made b { display: block; font-size: 20px; font-weight: 800; }
.made span { font-size: 14.5px; color: var(--cream-dim); }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--cream-dim); font-size: 15.5px; }
.faq a { color: var(--accent); }

/* ------------------------------------------------------------------ footer */

footer {
  max-width: var(--max); margin: 90px auto 0; padding: 26px 20px 60px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: var(--cream-faint);
}
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--cream); }

/* ------------------------------------------------------------------ phone */

@media (max-width: 640px) {
  .tipbox { padding: 22px 18px; border-radius: 22px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .pay { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pay-side { justify-items: center; }
  .qr { width: 200px; height: 200px; }
  .btn { width: 100%; }
}
