/* ===========================================================================
   04 — Hero: headline, trust strip, and the live phone
   The phone's contents are built by js/phone.js from js/data.js.
   The ledger rules in the background are the paper khata the app replaces —
   texture, not decoration.
   =========================================================================== */

.hero{position:relative;padding:clamp(40px,7vw,86px) 0 clamp(56px,8vw,104px);overflow:hidden}
.hero-bg{position:absolute;inset:0;pointer-events:none;z-index:0}
.hero-bg::before{
  content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(to bottom,transparent 0 37px,var(--rule) 37px 38px);
  opacity:.5;
  -webkit-mask-image:radial-gradient(120% 78% at 50% 18%,#000 25%,transparent 76%);
  mask-image:radial-gradient(120% 78% at 50% 18%,#000 25%,transparent 76%);
}
.glow{position:absolute;border-radius:50%;filter:blur(90px);opacity:.3}
.g1{width:520px;height:520px;background:var(--cobalt-2);top:-180px;inset-inline-start:-140px}
.g2{width:460px;height:460px;background:var(--papaya);bottom:-200px;inset-inline-end:-120px;opacity:.22}

.hero-in{position:relative;z-index:1;display:grid;grid-template-columns:1.08fr .92fr;gap:clamp(28px,5vw,64px);align-items:center}

.eyebrow{
  display:inline-block;font-size:12.5px;font-weight:650;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent-text);background:var(--cream);
  background:color-mix(in srgb,var(--cream) 60%,transparent);
  padding:6px 13px;border-radius:999px;
}
:root[data-theme="dark"] .eyebrow{background:rgba(252,128,69,.14)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .eyebrow{background:rgba(252,128,69,.14)}}

.hero h1{
  font-size:clamp(34px,5.6vw,60px);font-weight:800;margin:18px 0 0;
}
.hero h1 span{display:inline}
.hero h1 .hl{position:relative;color:var(--brand-text);white-space:nowrap}
.hero h1 .hl::after{
  content:"";position:absolute;left:-2px;right:-2px;bottom:.04em;height:.26em;
  background:var(--papaya);opacity:.3;border-radius:3px;z-index:-1;
  transform:scaleX(0);transform-origin:left;
  animation:draw .9s cubic-bezier(.2,.7,.3,1) .55s forwards;
}
@keyframes draw{to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.hero h1 .hl::after{animation:none;transform:scaleX(1)}}

.lede{margin-top:20px;font-size:clamp(16px,1.6vw,18.5px);color:var(--ink-2);max-width:56ch}

.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* Two by two: four reasons of different lengths wrapped as a ragged 1-2-1
   stack when this was a wrapping row. */
.trust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin-top:34px;padding-top:24px;border-top:1px solid var(--rule)}
.trust li{display:flex;flex-direction:column;gap:1px}
.trust b{font-size:14.5px;font-weight:650}
.trust span{font-size:12.5px;color:var(--ink-3)}

/* ── the phone ─────────────────────────────────────────────────────────────
   Deliberately light inside even in dark mode: it is a picture of the app,
   and the app itself has only a light theme. */
.hero-art{position:relative;display:flex;justify-content:center}
.phone{
  position:relative;width:min(304px,80vw);aspect-ratio:9/18.6;
  background:linear-gradient(170deg,#1B2538,#0A101D);
  border-radius:40px;padding:9px;
  box-shadow:var(--sh-3), 0 0 0 1.5px rgba(255,255,255,.07) inset;
  animation:float 7s ease-in-out infinite;
}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-13px)}}
@media (prefers-reduced-motion:reduce){.phone{animation:none}}

.phone-notch{position:absolute;top:9px;left:50%;transform:translateX(-50%);width:98px;height:21px;background:#0A101D;border-radius:0 0 13px 13px;z-index:3}
.screen{position:relative;height:100%;background:#F7F8FB;border-radius:32px;overflow:hidden;display:flex;flex-direction:column;text-align:start}

.sc-top{background:var(--cobalt);color:#fff;padding:34px 16px 15px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.sc-shop{font-family:var(--ff-display);font-weight:700;font-size:14.5px;line-height:1.25}
.sc-sub{font-size:10.5px;color:#A9BEEA;margin-top:2px}
.sc-av{width:28px;height:28px;border-radius:50%;background:var(--papaya);color:var(--ember);display:grid;place-items:center;font-size:13px;font-weight:700;flex:none}

.sc-body{flex:1;padding:13px 13px 0;overflow:hidden}
.sc-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.sc-card{background:#fff;border:1px solid #E5E9F2;border-radius:11px;padding:10px}
.sc-card span{display:block;font-size:10px;color:#6C7489}
.sc-card b{display:block;font-size:15px;font-weight:700;margin-top:3px;letter-spacing:-.02em}
.sc-card.red b{color:#DC2626}
.sc-card.green b{color:#16A34A}

.sc-h{font-size:10.5px;font-weight:650;color:#6C7489;margin:15px 0 7px;text-transform:uppercase;letter-spacing:.07em}
.sc-list{display:flex;flex-direction:column;gap:7px}
.sc-list li{
  display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #E5E9F2;
  border-radius:10px;padding:8px 10px;
  opacity:0;transform:translateY(10px);
}
.sc-list li.in{animation:row .5s cubic-bezier(.2,.7,.3,1) forwards}
.sc-ava{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none;background:#DAE2FF;color:#00327D}
.sc-meta{flex:1;min-width:0;display:block}
.sc-nm{display:block;font-size:11.5px;font-weight:600;color:#141821;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.sc-tg{display:block;font-size:9.5px;color:#6C7489;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.sc-amt{font-size:12px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.sc-amt.r{color:#DC2626}
.sc-amt.g{color:#16A34A}

.sc-nav{display:flex;justify-content:space-around;align-items:center;height:46px;background:#fff;border-top:1px solid #E5E9F2}
.sc-nav span{width:18px;height:4px;border-radius:3px;background:#CFD6E6}
.sc-nav span.on{background:var(--papaya);width:24px}
.sc-fab{
  position:absolute;inset-inline-end:14px;bottom:60px;width:44px;height:44px;border-radius:50%;
  background:var(--papaya);color:var(--ember);display:grid;place-items:center;
  font-size:26px;font-weight:600;line-height:0;box-shadow:0 7px 18px rgba(252,128,69,.45);
}

.offpill{
  position:absolute;top:-15px;inset-inline-start:-20px;z-index:4;
  display:flex;align-items:center;gap:8px;
  background:var(--surface);color:var(--ink);
  border:1px solid var(--rule);border-radius:999px;
  padding:9px 15px;font-size:12.5px;font-weight:600;
  box-shadow:var(--sh-2);
  opacity:0;transform:translateY(8px) scale(.95);
}
.offpill.in{animation:pill .6s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes pill{to{opacity:1;transform:none}}
.offpill svg{width:15px;height:15px;color:var(--udhaar);flex:none}

/* ── narrow: one column, phone under the copy ──────────────────────────── */
@media (max-width:1000px){
  .hero-in{grid-template-columns:1fr;text-align:center}
  .hero-copy .lede{margin-inline:auto}
  .cta,.trust{justify-content:center}
  .trust{max-width:560px;margin-inline:auto}
  .hero-art{margin-top:16px}
  .offpill{inset-inline-start:50%;inset-inline-end:auto;top:-16px;margin-inline-start:-125px}
}
@media (max-width:620px){
  .trust{gap:14px 20px}
  .trust li{min-width:calc(50% - 10px)}
}
@media (max-width:380px){
  .hero h1{font-size:30px}
}

/* The laptop route: a quiet line under the buttons, not a third button competing with
   the install one. */
.laptop-note { margin-top: 14px; font-size: .92rem; color: var(--ink-2); }
.laptop-note a { color: var(--cobalt); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; }

/* "Free · no card · no ads" — answers the three things a shopkeeper checks
   before tapping, right under the button that asks them to. */
.cta-fine{margin-top:12px;font-size:13px;font-weight:600;color:var(--ink-3);letter-spacing:.01em}
@media (max-width:1000px){.cta-fine{text-align:center}}
