/* Panda landing. Brand: charcoal + mint from the app icon, app green #2D9D78, warm paper background.
   Fonts: Google Sans (text), Comfortaa (numbers, the wordmark's rounded feel). Both SIL OFL, see assets/fonts. */

@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Comfortaa"; src: url("../fonts/comfortaa-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #293239;
  --ink-deep: #1f262c;
  --mint: #2fedad;
  --green: #2d9d78;
  --green-dark: #1a6f53;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --white: #fff;
  --muted: #6a7277;
  --line: rgba(41, 50, 57, .14);
  --tilt: -3deg;
  --radius: 22px;
  --wrap: 1180px;
  --sans: "Google Sans", "Segoe UI", system-ui, sans-serif;
  --round: "Comfortaa", "Google Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.sprite { position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-deep); }
.btn--mint { background: var(--mint); color: var(--ink); box-shadow: 0 0 0 0 var(--ink); }
.btn--mint:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 0 var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow svg { width: 18px; height: 18px; transform: rotate(90deg); }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 242, 236, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top__row { display: flex; align-items: center; gap: 32px; height: 76px; }
.top__logo img { width: 110px; height: auto; transition: transform .25s; }
.top__logo:hover img { transform: rotate(2deg) scale(1.03); }
.top__nav { display: flex; gap: 28px; margin-right: auto; }
.top__nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s; }
.top__nav a:hover { color: var(--ink); }
.top__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.lang button { border: 0; background: none; font: 700 13px var(--sans); color: var(--muted); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.hero__kicker { font-weight: 500; font-size: 15px; color: var(--green-dark); margin-bottom: 22px; }
.hero__title { font-size: clamp(48px, 7vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -.04em; right: -.06em; bottom: .04em; height: .26em; background: var(--mint); z-index: -1; transform: rotate(var(--tilt)); border-radius: 4px; }
.hero__title { position: relative; z-index: 0; }
.hero__lead { max-width: 30em; margin-top: 28px; font-size: 19px; color: #4b5459; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero__cards { display: flex; gap: 8px; margin-top: 40px; }
.hero__cards span { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 10px; }

.hero__stage { position: relative; height: 640px; }
.hero__p { position: absolute; left: -30px; top: -6px; height: 660px; width: auto; color: var(--ink); }
.hero__p-paw { fill: var(--mint); }

.phone { position: absolute; left: 236px; top: 30px; width: 290px; padding: 10px; border-radius: 46px; background: #0f1316; box-shadow: 0 30px 60px -20px rgba(31, 38, 44, .55); transform: rotate(4deg); }
.phone__screen { position: relative; height: 560px; border-radius: 36px; overflow: hidden; background: #f2f2f4; padding: 14px 14px 0; font-size: 12px; }
.phone__status { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; padding: 0 10px 12px; }
.phone__status i { width: 54px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 0 38%, transparent 38% 46%, var(--ink) 46% 70%, transparent 70% 78%, var(--ink) 78%); opacity: .85; }
.phone__title { text-align: center; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 14px; padding: 4px; margin-bottom: 10px; }
.seg span { text-align: center; padding: 8px 2px; border-radius: 11px; color: #8a9094; font-weight: 500; font-size: 11.5px; }
.seg .is-on { background: #eceef1; color: var(--ink); }
.field { display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 16px; padding: 10px; margin-bottom: 16px; }
.field__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #f2f2f4 linear-gradient(#8f969b, #6f777c) center / 22px 15px no-repeat; }
.field__body { display: grid; min-width: 0; }
.field__label { font-size: 11px; color: var(--ink); font-weight: 500; }
.field__value { font-size: 14.5px; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-height: 22px; white-space: nowrap; }
.field__value .ph { color: #b3b8bb; }
.field__value .caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--green); animation: blink 1s steps(1) infinite; }
.field__owner { font-size: 10.5px; font-weight: 700; color: var(--green); letter-spacing: .03em; min-height: 14px; }
@keyframes blink { 50% { opacity: 0; } }
.recent__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.recent__head b { font-size: 13.5px; }
.recent__head > span { display: flex; align-items: center; font-weight: 500; }
.recent__head svg { width: 14px; height: 14px; }
.recent { display: flex; gap: 8px; margin-right: -14px; }
.tile { flex: none; display: grid; gap: 2px; width: 108px; padding: 10px; border-radius: 14px; background: var(--white); }
.tile__bank { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 700 12px var(--round); font-style: normal; color: var(--white); margin-bottom: 14px; }
.tile__bank--a { background: #c79a2b; }
.tile__bank--b { background: #1f6fd1; }
.tile__bank--c { background: var(--green); }
.tile b { font-size: 12.5px; }
.tile small { color: #8a9094; font-size: 11px; }
.phone__btn { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 46px; border-radius: 14px; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.toast { position: absolute; left: 118px; bottom: 34px; display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 18px; padding: 14px 20px 14px 14px; box-shadow: 0 18px 40px -16px rgba(31, 38, 44, .4); transform: rotate(var(--tilt)); }
.toast b { display: block; font-size: 15px; }
.toast small { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.toast__ok { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); }
.toast__ok svg { width: 22px; height: 22px; color: var(--ink); }

/* ---------- category ticker ---------- */
.ticker { background: var(--ink); color: var(--white); transform: rotate(-1.5deg); margin: 0 -20px; padding: 18px 0; overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker__item { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 500; font-size: 22px; white-space: nowrap; }
.ticker__item svg { width: 20px; height: 20px; fill: var(--mint); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features { padding: 140px 0 120px; }
.features__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.features__intro { position: sticky; top: 120px; }
.features__intro p { margin-top: 22px; color: var(--muted); max-width: 22em; font-size: 18px; }
.flist li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 30px 0; border-top: 1.5px solid var(--line); }
.flist li:last-child { border-bottom: 1.5px solid var(--line); }
.flist__n { font: 700 30px/1 var(--round); color: var(--green); padding-top: 4px; transition: transform .3s; }
.flist li:hover .flist__n { transform: rotate(var(--tilt)) translateX(4px); }
.flist h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.flist p { color: #4b5459; max-width: 34em; }

/* ---------- payments ---------- */
.pay { padding: 110px 0; background: var(--paper-2); }
.pay__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pay__stats { display: flex; gap: 40px; }
.pay__stats dt { font: 700 44px/1 var(--round); letter-spacing: -.02em; }
.pay__stats dd { color: var(--muted); margin-top: 6px; }
.search { display: flex; align-items: center; gap: 12px; margin: 40px 0 28px; height: 64px; padding: 0 22px; background: var(--white); border-radius: 18px; border: 2px solid transparent; transition: border-color .2s; }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; font: 500 19px var(--sans); color: var(--ink); min-width: 0; }
.search input::placeholder { color: #a6abae; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
.cats li { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--white); border-radius: 16px; font-weight: 500; line-height: 1.25; transition: transform .15s; }
.cats li:hover { transform: translateY(-2px); }
.cats li[hidden] { display: none; }
.cats__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e2f7f0; color: var(--green); }
.cats__icon svg { width: 21px; height: 21px; }
.cats__empty { color: var(--muted); padding: 12px 4px; }
.cats__more { display: none; }

/* ---------- receipt ---------- */
.receipt-sec { background: var(--ink); color: var(--white); padding: 130px 0; overflow: hidden; }
.receipt-sec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.receipt-sec__copy p { margin-top: 24px; font-size: 19px; color: #b9c1c6; max-width: 26em; }
.receipt { position: relative; justify-self: center; transform: rotate(2deg); }
.receipt__paper { position: relative; width: 340px; padding: 26px 26px 34px; background: #fdfcf8; color: var(--ink); border-radius: 4px 4px 0 0; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
.receipt__paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, #fdfcf8 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, #fdfcf8 0) 0 0 / 16px 12px repeat-x; }
.receipt__paper header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 2px dashed #d6d3c9; margin-bottom: 14px; font-weight: 700; }
.receipt__paper dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.receipt__paper dt { color: var(--muted); }
.receipt__paper dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.receipt__total { margin-top: 10px; padding-top: 16px !important; border-top: 2px dashed #d6d3c9; }
.receipt__total dt { color: var(--ink) !important; font-weight: 700; }
.receipt__total dd { font-size: 22px; font-weight: 700; }
.receipt figcaption { margin-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a5a9a6; }
.stamp { position: absolute; right: -60px; bottom: -30px; width: 200px; color: var(--green); opacity: 0; transform: scale(1.6) rotate(-24deg); mix-blend-mode: multiply; }
.stamp__brand { font: 700 30px var(--sans); fill: var(--ink); letter-spacing: .04em; }
.stamp__word { font: 700 23px var(--sans); fill: currentColor; letter-spacing: .06em; }
.receipt.is-stamped .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { 60% { opacity: .95; transform: scale(.94) rotate(-14deg); } 100% { opacity: .92; transform: scale(1) rotate(-14deg); } }

/* ---------- security ---------- */
.sec { padding: 150px 0 110px; }
.sec__box { position: relative; background: var(--white); border-radius: 36px; padding: 80px 64px 64px; }
.sec__panda { position: absolute; top: -118px; right: 64px; width: 260px; height: auto; }
.sec__box .h2 { max-width: 13em; }
.sec__list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; margin-top: 52px; }
.sec__list li { display: flex; gap: 16px; }
.sec__list > li > svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--mint); color: var(--ink); margin-top: 2px; }
.sec__list h3 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.sec__list p { color: #4b5459; }

/* ---------- faq ---------- */
.faq { padding: 40px 0 120px; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23293239' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--mint); }
.faq details p { padding: 0 60px 28px 0; color: #4b5459; }

/* ---------- download ---------- */
.get { padding: 0 0 110px; }
.get__box { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center; background: var(--mint); border-radius: 36px; padding: 52px 56px; }
.get__icon { width: 132px; height: 132px; border-radius: 30px; transform: rotate(var(--tilt)); }
.get__copy p { margin-top: 12px; color: #1c4b3b; font-size: 18px; max-width: 30em; }
.get__stores { display: grid; gap: 10px; }
.store { display: grid; min-width: 190px; padding: 10px 20px; border-radius: 16px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 18px; line-height: 1.2; }
.store small { font-weight: 500; font-size: 12px; color: var(--mint); }

/* ---------- footer ---------- */
.foot { padding: 40px 0 56px; border-top: 1.5px solid var(--line); }
.foot__row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.foot img { width: 96px; height: auto; }
.foot nav { display: flex; gap: 24px; margin-right: auto; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot nav a:hover { color: var(--ink); }
.foot p { color: var(--muted); font-size: 15px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .top__nav { display: none; }
  .top__end { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .features__grid, .faq__grid, .receipt-sec__grid { grid-template-columns: 1fr; gap: 40px; }
  .features__intro { position: static; }
  .get__box { grid-template-columns: 1fr; gap: 28px; }
  .get__stores { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top__row { height: 64px; gap: 12px; }
  .top__logo img { width: 92px; }
  .top .btn--sm { display: none; }
  .hero { padding-top: 20px; }
  .hero__lead { font-size: 17px; }
  .hero__stage { height: 560px; }
  .hero__p { height: 600px; left: -60px; }
  .phone { width: 262px; left: auto; right: -6px; top: 20px; }
  .phone__screen { height: 510px; }
  .toast { bottom: 20px; left: 0; }
  .features, .pay, .receipt-sec { padding: 90px 0; }
  .flist li { grid-template-columns: 56px 1fr; }
  .flist__n { font-size: 24px; }
  .flist h3 { font-size: 22px; }
  .pay__stats dt { font-size: 34px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cats li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: 14.5px; }
  .cats.is-collapsed li:nth-child(n+9) { display: none; }
  .cats__more { display: block; width: 100%; height: 52px; margin-top: 12px; border: 1.5px solid var(--ink); border-radius: 16px; background: none; font: 700 15px var(--sans); color: var(--ink); cursor: pointer; }
  .cats__more[hidden] { display: none; }
  .receipt__paper { width: 290px; }
  .stamp { right: -24px; bottom: -10px; width: 160px; }
  .sec { padding-top: 130px; }
  .sec__box { padding: 72px 24px 36px; border-radius: 28px; }
  .sec__panda { width: 190px; top: -86px; right: 24px; }
  .sec__list { grid-template-columns: 1fr; gap: 28px; }
  .faq summary { font-size: 18px; }
  .faq details p { padding-right: 0; }
  .get__box { padding: 36px 24px; border-radius: 28px; }
  .get__icon { width: 96px; height: 96px; border-radius: 22px; }
  .get__stores { grid-auto-flow: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
