/* ==========================================================================
   PayLink — modern UPI payment-link generator
   Design system: tokens, light/dark themes, components, utilities
   Author: original work (no third-party assets)
   ========================================================================== */

/* ---------- Fonts ---------- */
/* Plus Jakarta Sans for UI/display, JetBrains-ish mono via system fallback */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand-1: #7c3aed;   /* violet 600 */
  --brand-2: #4f46e5;   /* indigo 600 */
  --brand-3: #d946ef;   /* fuchsia 500 (accent sparks) */
  --pay:     #10b981;   /* emerald — money / success CTA */
  --pay-600: #059669;
  --warn:    #f59e0b;
  --danger:  #ef4444;

  --grad-brand: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124,58,237,.14), rgba(79,70,229,.14));
  --grad-text: linear-gradient(100deg, #8b5cf6 0%, #6366f1 45%, #d946ef 100%);

  /* Neutral ramp (light) */
  --bg:        #f6f7fb;
  --bg-2:      #eef0f7;
  --surface:   #ffffff;
  --surface-2: #fbfbfe;
  --border:    #e6e8f0;
  --border-2:  #d9dce8;
  --text:      #0e1119;
  --text-2:    #454b5a;
  --text-3:    #6b7280;
  --ring: rgba(124,58,237,.45);

  --shadow-sm: 0 1px 2px rgba(16,18,33,.06), 0 1px 3px rgba(16,18,33,.05);
  --shadow-md: 0 6px 18px -6px rgba(24,27,54,.18), 0 3px 8px -4px rgba(24,27,54,.12);
  --shadow-lg: 0 24px 60px -18px rgba(37,33,84,.32), 0 8px 24px -12px rgba(24,27,54,.18);
  --shadow-brand: 0 16px 40px -12px rgba(99,72,231,.55);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --maxw: 1160px;
  --gutter: clamp(18px, 5vw, 40px);
  --nav-h: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", "Consolas", monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #0a0b12;
  --bg-2:      #0e1020;
  --surface:   #14161f;
  --surface-2: #171a26;
  --border:    #262a3a;
  --border-2:  #333850;
  --text:      #f3f5fb;
  --text-2:    #b8bfd0;
  --text-3:    #8b93a7;
  --ring: rgba(167,139,250,.55);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  --shadow-brand: 0 18px 46px -14px rgba(124,92,246,.6);

  --grad-brand-soft: linear-gradient(135deg, rgba(139,92,246,.20), rgba(79,70,229,.18));
  --grad-text: linear-gradient(100deg, #a78bfa 0%, #818cf8 45%, #e879f9 100%);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color .4s var(--ease), color .3s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(124,58,237,.24); }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 116px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-1); padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--grad-brand-soft); border: 1px solid var(--border);
}
[data-theme="dark"] .eyebrow { color: #c4b5fd; }

.section-head { max-width: 660px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); margin-top: 16px; }
.section-head p { color: var(--text-2); font-size: clamp(16px, 2vw, 18px); margin-top: 14px; }

.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s, opacity .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(99,72,231,.7); }

.btn--pay { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 16px 40px -14px rgba(16,185,129,.6); }
.btn--pay:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(16,185,129,.72); }

.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-2px); }

.btn--soft { background: var(--grad-brand-soft); color: var(--brand-1); border-color: var(--border); }
[data-theme="dark"] .btn--soft { color: #c4b5fd; }
.btn--soft:hover { transform: translateY(-2px); border-color: var(--brand-1); }

.btn--lg { --pad-y: 15px; --pad-x: 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { padding: 11px; border-radius: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 9px 14px; border-radius: var(--radius-pill); color: var(--text-2); font-weight: 600; font-size: 15px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.active { color: var(--brand-1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2);
  transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--brand-1); border-color: var(--brand-1); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(48px, 8vw, 96px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); letter-spacing: -.035em; }
.hero__sub { color: var(--text-2); font-size: clamp(17px, 2.2vw, 20px); margin-top: 22px; max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--pay); }

/* animated background blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; pointer-events: none; }
.blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, #a78bfa, transparent 70%); top: -160px; right: -120px; animation: float1 16s var(--ease) infinite; }
.blob--2 { width: 380px; height: 380px; background: radial-gradient(circle, #818cf8, transparent 70%); bottom: -180px; left: -120px; animation: float2 20s var(--ease) infinite; }
.blob--3 { width: 300px; height: 300px; background: radial-gradient(circle, #f0abfc, transparent 70%); top: 40%; left: 45%; opacity: .28; animation: float1 24s var(--ease) infinite reverse; }
@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-30px,40px) scale(1.08);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(40px,-30px) scale(1.12);} }

.grid-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.glass {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* Phone / preview mock */
.mock {
  position: relative; width: min(340px, 82vw); margin-inline: auto;
  border-radius: 34px; padding: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, var(--brand-1)), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.mock::before { content:""; position:absolute; top:16px; left:50%; transform:translateX(-50%); width:96px; height:6px; border-radius:99px; background: var(--border-2); }
.mock__screen { border-radius: 24px; background: var(--bg-2); padding: 26px 20px 22px; margin-top: 18px; border: 1px solid var(--border); }
.mock__badge { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:700; color: var(--pay); background: color-mix(in srgb, var(--pay) 14%, transparent); padding:6px 11px; border-radius:99px; }
.mock__amt { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 16px 0 4px; }
.mock__amt small { font-size: 22px; color: var(--text-3); font-weight: 700; }
.mock__to { color: var(--text-2); font-size: 14px; }
.mock__to b { color: var(--text); }
.mock__qr { margin: 18px auto; width: 150px; height: 150px; border-radius: 14px; background:#fff; display:grid; place-items:center; box-shadow: var(--shadow-sm); border:1px solid var(--border); }
.mock__qr img, .mock__qr canvas { width: 128px; height: 128px; }
.mock__apps { display:flex; justify-content:center; gap:10px; margin-top: 12px; }
.mock__apps span { width: 34px; height: 34px; border-radius: 10px; display:grid; place-items:center; font-size: 15px; font-weight:800; color:#fff; }

.floaty { animation: floaty 6s var(--ease) infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* Small floating chips around mock */
.chip-float {
  position: absolute; z-index: 3; display:inline-flex; align-items:center; gap:8px;
  padding: 9px 13px; border-radius: 14px; font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.chip-float svg { width: 16px; height: 16px; }
.chip-float--tl { top: 8%; left: -6%; animation: floaty 7s var(--ease) infinite; }
.chip-float--br { bottom: 12%; right: -8%; animation: floaty 8s var(--ease) infinite reverse; }

/* ---------- Generator ---------- */
.gen { position: relative; scroll-margin-top: 90px; }
.gen__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); align-items: start; }

.form-card { padding: clamp(22px, 3vw, 34px); }
.field { margin-bottom: 18px; }
.field label { display: flex; align-items:center; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field label .opt { font-weight: 600; font-size: 12px; color: var(--text-3); }
.input-shell {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 0 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input-shell:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 16%, transparent); background: var(--surface); }
.input-shell.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.input-shell.is-valid { border-color: var(--pay); }
.input-shell .lead { color: var(--text-3); font-weight: 700; }
.input-shell input, .input-shell textarea {
  flex: 1; border: none; background: none; outline: none; padding: 13px 0; font-size: 15.5px; width: 100%;
}
.input-shell textarea { resize: vertical; min-height: 44px; padding: 12px 0; }
.input-shell .lead svg { width: 18px; height: 18px; }
.hint { font-size: 12.5px; margin-top: 7px; color: var(--text-3); min-height: 1em; }
.hint.err { color: var(--danger); }
.hint.ok { color: var(--pay); }

.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.amount-chips button {
  padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border-2); background: var(--surface-2); color: var(--text-2);
  transition: .18s var(--ease);
}
.amount-chips button:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-1px); }

/* Preview panel */
.preview-card { padding: clamp(22px, 3vw, 30px); position: sticky; top: 90px; overflow: hidden; }
.preview-card::after { content:""; position:absolute; inset:0; background: var(--grad-brand-soft); opacity:.5; z-index:-1; }
.preview-title { font-size: 13px; font-weight:700; text-transform: uppercase; letter-spacing:.05em; color: var(--text-3); }
.pay-preview { text-align:center; padding-top: 8px; }
.pay-preview__avatar { width: 60px; height: 60px; border-radius: 50%; display:grid; place-items:center; margin: 10px auto 12px; font-weight:800; font-size:24px; color:#fff; background: var(--grad-brand); box-shadow: var(--shadow-md); }
.pay-preview__name { font-weight: 800; font-size: 19px; }
.pay-preview__vpa { font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-top: 2px; word-break: break-all; }
.pay-preview__amt { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 16px 0 2px; }
.pay-preview__amt.is-open { font-size: 22px; color: var(--text-3); font-weight: 700; }
.pay-preview__note { color: var(--text-2); font-size: 14px; margin-top: 6px; min-height: 1.2em; }
.qr-box { width: 190px; height: 190px; margin: 20px auto 8px; background:#fff; border-radius: 18px; display:grid; place-items:center; box-shadow: var(--shadow-md); border: 6px solid #fff; }
.qr-box canvas, .qr-box img { width: 100%; height: 100%; border-radius: 8px; }
.qr-box.empty { color: #9aa3b2; font-size: 13px; text-align:center; padding: 20px; box-shadow: var(--shadow-sm); border: 2px dashed var(--border-2); background: var(--surface-2); }

/* Result / link output */
.result { margin-top: 18px; display: none; }
.result.show { display: block; animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform: none;} }
.link-row { display:flex; align-items:center; gap: 8px; background: var(--surface-2); border:1.5px solid var(--border-2); border-radius: var(--radius-sm); padding: 6px 6px 6px 14px; }
.link-row input { flex:1; border:none; background:none; outline:none; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.share-row { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.share-row .btn { flex: 1 1 auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); counter-reset: step; }
.step { position: relative; padding: 30px 26px; }
.step__num { width: 46px; height: 46px; border-radius: 14px; display:grid; place-items:center; font-weight:800; font-size:20px; color:#fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }
.step__line { position:absolute; top: 52px; right: -13px; width: 26px; height: 2px; background: var(--border-2); }
.steps .step:last-child .step__line { display:none; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 22px); }
.feature { padding: 28px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.feature__ic { width: 50px; height: 50px; border-radius: 14px; display:grid; place-items:center; margin-bottom: 16px; background: var(--grad-brand-soft); color: var(--brand-1); }
[data-theme="dark"] .feature__ic { color: #c4b5fd; }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 7px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Stats band ---------- */
.stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align:center; padding: clamp(28px,4vw,44px); background: var(--grad-brand); border-radius: var(--radius-xl); box-shadow: var(--shadow-brand); color:#fff; }
.stat b { display:block; font-size: clamp(28px, 4vw, 42px); font-weight:800; letter-spacing:-.02em; }
.stat span { opacity:.85; font-size: 14px; font-weight:600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline:auto; display:flex; flex-direction:column; gap: 12px; }
.acc { border:1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow:hidden; transition: border-color .2s, box-shadow .2s; }
.acc[open] { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.acc summary { list-style:none; cursor:pointer; padding: 20px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-weight:700; font-size: 16.5px; }
.acc summary::-webkit-details-marker { display:none; }
.acc summary .plus { flex-shrink:0; width:26px; height:26px; position:relative; transition: transform .3s var(--ease); }
.acc summary .plus::before, .acc summary .plus::after { content:""; position:absolute; inset:0; margin:auto; background: var(--brand-1); border-radius: 2px; }
.acc summary .plus::before { width: 14px; height: 2.5px; }
.acc summary .plus::after { width: 2.5px; height: 14px; transition: transform .3s var(--ease); }
.acc[open] summary .plus::after { transform: rotate(90deg); opacity:0; }
.acc__body { padding: 0 22px 22px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position:relative; text-align:center; padding: clamp(40px,6vw,72px); border-radius: var(--radius-xl); overflow:hidden; border:1px solid var(--border); background: var(--surface); }
.cta-band::before { content:""; position:absolute; inset:0; background: var(--grad-brand-soft); z-index:-1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 42px); }
.cta-band p { color: var(--text-2); max-width: 52ch; margin: 14px auto 26px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: clamp(44px, 6vw, 70px) 30px; background: var(--surface); }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand p { color: var(--text-2); font-size: 14.5px; margin-top: 14px; max-width: 34ch; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing:.05em; color: var(--text-3); margin-bottom: 14px; }
.footer ul { list-style:none; padding:0; display:flex; flex-direction:column; gap: 10px; }
.footer a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.footer a:hover { color: var(--brand-1); }
.footer__bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top: 40px; padding-top: 24px; border-top:1px solid var(--border); color: var(--text-3); font-size: 13.5px; }
.socials { display:flex; gap: 10px; }
.socials a { width: 38px; height:38px; border-radius: 11px; display:grid; place-items:center; border:1px solid var(--border); color: var(--text-2); transition: .2s var(--ease); }
.socials a:hover { color:#fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); }
.socials svg { width: 18px; height:18px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 999; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
.toast {
  display:flex; align-items:center; gap:10px; padding: 12px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight:600; font-size:14px; box-shadow: var(--shadow-lg);
  animation: toastIn .4s var(--ease-out); pointer-events:auto;
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width:18px; height:18px; color: var(--pay); }
@keyframes toastIn { from{ opacity:0; transform: translateY(20px) scale(.95);} to{ opacity:1; transform:none;} }
@keyframes toastOut { to { opacity:0; transform: translateY(10px) scale(.97);} }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Prose (legal / blog) ---------- */
.prose { max-width: 760px; margin-inline:auto; }
.prose h1 { font-size: clamp(30px,4.5vw,44px); }
.prose .lead { font-size: 18px; color: var(--text-2); margin: 14px 0 8px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--brand-1); font-weight:600; text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { color: var(--text-3); font-size: 14px; font-weight:600; }

/* Blog cards */
.post-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post { overflow:hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); display:flex; flex-direction:column; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post__cover { aspect-ratio: 16/9; background: var(--grad-brand); position:relative; }
.post__cover span { position:absolute; inset:0; display:grid; place-items:center; font-size: 40px; }
.post__body { padding: 20px 22px 24px; }
.post__tag { font-size:12px; font-weight:700; color: var(--brand-1); text-transform:uppercase; letter-spacing:.04em; }
.post h3 { font-size: 18px; margin: 8px 0; }
.post p { color: var(--text-2); font-size: 14.5px; }

/* contact form grid */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items:start; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline:auto; }
  .hero__cta, .hero__trust { justify-content:center; }
  .hero__mock-col { order: -1; }
  .gen__grid { grid-template-columns: 1fr; }
  .preview-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step__line { display:none; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display:none; }
  .hide-sm { display: none !important; }
  .nav__links.open {
    display:flex; position:absolute; top: var(--nav-h); left: var(--gutter); right: var(--gutter);
    flex-direction:column; align-items:stretch; padding: 12px; gap: 4px;
    background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .nav__burger { display: grid; place-items:center; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .share-row .btn { flex-basis: 100%; }
}
@media (max-width: 380px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PAY PAGE (recipient view)
   ========================================================================== */
.pay-main { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: clamp(20px, 5vw, 56px) var(--gutter); position: relative; overflow: clip; }
.pay-card { width: 100%; max-width: 440px; padding: clamp(26px, 4vw, 40px); text-align: center; position: relative; z-index: 1; }
.pay-card__badge { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700; color: var(--pay); background: color-mix(in srgb, var(--pay) 14%, transparent); padding:7px 14px; border-radius:99px; }
.pay-card__avatar { width: 76px; height: 76px; border-radius: 50%; display:grid; place-items:center; margin: 20px auto 14px; font-weight:800; font-size:30px; color:#fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.pay-card__name { font-size: 22px; font-weight: 800; letter-spacing:-.02em; }
.pay-card__vpa { display:inline-flex; align-items:center; gap:8px; font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-top: 6px; cursor:pointer; padding: 5px 10px; border-radius: 8px; transition: background-color .2s; }
.pay-card__vpa:hover { background: var(--surface-2); color: var(--text-2); }
.pay-card__vpa svg { width: 14px; height:14px; }
.pay-amount { font-size: clamp(40px, 9vw, 56px); font-weight: 800; letter-spacing:-.03em; margin: 22px 0 4px; }
.pay-note { color: var(--text-2); font-size: 15px; margin-bottom: 8px; }
.amount-input { display:flex; align-items:center; justify-content:center; gap:6px; margin: 16px 0; }
.amount-input .cur { font-size: 40px; font-weight:800; color: var(--text-3); }
.amount-input input { width: 200px; font-size: 44px; font-weight:800; text-align:center; border:none; background:none; outline:none; border-bottom: 2.5px dashed var(--border-2); padding-bottom: 4px; letter-spacing:-.02em; }
.amount-input input:focus { border-bottom-color: var(--brand-1); }

.pay-qr { width: 210px; height: 210px; margin: 22px auto 18px; background:#fff; border-radius: 20px; display:grid; place-items:center; box-shadow: var(--shadow-md); border: 8px solid #fff; }
.pay-qr canvas { width: 100%; height: 100%; border-radius: 8px; }
.pay-qr__label { color: var(--text-3); font-size: 13px; margin-bottom: 18px; display:flex; align-items:center; justify-content:center; gap:7px; }
.pay-qr__label svg { width:15px; height:15px; }

.pay-apps { display:flex; align-items:center; justify-content:center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap:wrap; }
.pay-apps small { width:100%; color: var(--text-3); font-size:12px; margin-bottom: 4px; }
.pay-app { width: 40px; height: 40px; border-radius: 11px; display:grid; place-items:center; font-weight:800; font-size:14px; color:#fff; box-shadow: var(--shadow-sm); }

.pay-invalid { text-align:center; max-width: 440px; }
.pay-invalid .feature__ic { margin: 0 auto 20px; width:64px; height:64px; }
.pay-invalid .feature__ic svg { width:30px; height:30px; }

.pay-back { position: absolute; top: 18px; left: var(--gutter); z-index: 5; }
.powered { margin-top: 22px; font-size: 13px; color: var(--text-3); }
.powered a { color: var(--brand-1); font-weight: 700; }

/* ==========================================================================
   UpiLinks — Laravel integration additions
   (kept separate from the base design system above)
   ========================================================================== */

/* Alerts — styles the shared resources/views/alerts.blade.php markup
   (.alert / .alert-success / .alert-danger) without changing that partial */
.alert { border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; text-align: center; }
.alert-success { color: var(--pay-600); background: color-mix(in srgb, var(--pay) 12%, transparent); border-color: color-mix(in srgb, var(--pay) 40%, transparent); }
.alert-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-danger { color: #fca5a5; }

/* Homepage ad banners (AdsBanner TOP / BOTTOM) */
.ad-banner { display:block; margin: 0 auto 16px; max-width: 100%; }
.ad-banner img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* Google Play badge */
.play-badge { display:inline-flex; }
.play-badge img { height: 58px; width:auto; }

/* Generator on the landing page uses a real server POST form.
   Single-column layout that keeps the live preview beneath the fields. */
.gen__grid--single { grid-template-columns: 1fr; max-width: 560px; margin-inline:auto; }

/* reCAPTCHA spacing */
.g-recaptcha { margin-top: 4px; }

/* Pay page: server-rendered SVG QR (werneckbh/laravel-qr-code) */
.pay-qr svg { width: 100%; height: 100%; display:block; }
.pay-qr--svg { padding: 8px; }

/* Misc helpers used by the Blade views */
.text-muted-sm { color: var(--text-3); font-size: 13px; }
.text-muted-sm a { color: var(--brand-1); font-weight: 700; }
.mt-note { margin-top: 14px; }
.center-col { display:flex; flex-direction:column; align-items:center; }

/* Footer Google Play badge */
.footer__store { display:inline-flex; margin-top: 14px; }
.footer__store img { height: 46px; width:auto; }

