/* Landing-page-only styles. Shared header/footer/typography come from
   pages.css, which this page loads first — keep both linked, in that order.
   Palette matches the Flutter app: #0d1117 ground, #131b24 surface, #F4C430
   accent, so the marketing page and the app read as one product. */

:root {
  --accent: #F4C430;
  --accent-soft: rgba(244, 196, 48, 0.14);
  --surface: #131b24;
  --line: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.62);
}

.container { max-width: 1080px; }

/* ============ HERO ============ */
.hero {
  display: grid;
  /* Two columns, two rows: the copy and the stat chips stack down column 1
     while the phone spans both rows in column 2. .stats is a sibling of
     .hero-copy (not a child) purely so the MOBILE order can put the screenshot
     between the buttons and the chips — see the responsive block. */
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 0;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-copy { min-width: 0; grid-column: 1; grid-row: 1; }
.hero > .phone { grid-column: 2; grid-row: 1 / span 2; }
.hero > .stats { grid-column: 1; grid-row: 2; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 196, 48, 0.3);
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }

.hero .sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 28px;
}

/* stat chips */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Was margin-BOTTOM: 30px, left over from when the chips sat above the
     buttons. Once the order flipped, that put the whole gap on the far side
     and the first chip touched the Sign-up button. */
  margin-top: 26px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.stat .ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  font-size: 15px;
}
.stat b { display: block; color: #fff; font-size: 14px; line-height: 1.25; }
.stat span { color: rgba(255, 255, 255, 0.5); font-size: 12px; }

/* ============ BUTTONS ============ */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  box-shadow: 0 8px 26px rgba(244, 196, 48, .26);
}
.btn-primary:hover { color: #0d1117; box-shadow: 0 12px 32px rgba(244, 196, 48, .38); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }

/* Signing up in the browser is a live action, but wearing .btn-ghost put it in
   the same clothes as the disabled "iPhone — Coming soon" button beside it, so
   it read as unavailable. Tinted in the accent and outlined in it: clearly
   clickable, still second to the yellow Download button. */
.btn-signup {
  /* A solid card, not a tint: this sits between a yellow Download button and a
     greyed-out "Coming soon" one, and anything faint reads as the disabled
     neighbour. Filled surface + a full accent border + accent text = obviously
     a button, obviously live, still clearly second to Download. */
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.btn-signup:hover {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(244, 196, 48, .34);
}
.btn-signup .small { color: rgba(244, 196, 48, .72); opacity: 1; }
.btn-signup:hover .small { color: rgba(13, 17, 23, .75); }

.btn-dl { flex-direction: column; align-items: flex-start; gap: 1px; padding: 13px 26px; }
.btn-dl .big { font-size: 15px; font-weight: 800; }
.btn-dl .small { font-size: 11.5px; font-weight: 500; opacity: .72; }

/* A disabled button must not look clickable — iOS has no build yet. */
.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ PHONE MOCKUP ============ */
.phone {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
}
.phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
/* accent glow behind the device */
.phone::before {
  content: '';
  position: absolute;
  inset: 12% -18% 12% -18%;
  background: radial-gradient(ellipse at center, rgba(244,196,48,.20), transparent 68%);
  filter: blur(38px);
  z-index: -1;
}

/* ============ SECTIONS ============ */
.section { padding: 60px 0; border-top: 1px solid rgba(255,255,255,.07); }
.section > h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section > .section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 16px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .15s ease;
}
.tile:hover { border-color: rgba(244,196,48,.35); }
.tile h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.tile h3 a { text-decoration: none; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 14px;
}

/* ============ MARKETS ============ */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.market {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 18px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.market:hover { border-color: rgba(244,196,48,.4); transform: translateY(-2px); }
.market img, .market .glyph {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.market .glyph.btc { background: #F7931A; color: #fff; }
.market .glyph.eth { background: #627EEA; color: #fff; }
.market .name { display: block; color: #fff; font-weight: 700; font-size: 15px; }
.market .pair { display: block; color: rgba(255,255,255,.45); font-size: 12.5px; }

/* ============ WHAT'S INSIDE ============ */
.showcase {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
}
.showcase-img { justify-self: center; }
.showcase-img img {
  width: min(260px, 70vw);
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .55);
}

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.checks b { color: #fff; font-weight: 700; }

/* ============ PAYMENT METHODS ============ */
.pays { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pay {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 190px;
}
/* JazzCash / EasyPaisa artwork is dark ink on transparent — it disappears on a
   dark card, so each logo sits on its own white badge. */
.pay .badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  display: grid; place-items: center;
  flex: 0 0 44px;
}
.pay .badge img { width: 34px; height: 34px; object-fit: contain; }
.pay .glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 19px;
  flex: 0 0 44px;
}
.pay b { display: block; color: #fff; font-size: 14.5px; }
.pay span { color: rgba(255,255,255,.45); font-size: 12.5px; }

/* ============ FAQ ============ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); float: right; font-size: 19px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 12px; color: rgba(255,255,255,.7); }

/* ============ CLOSING ============ */
.closing {
  text-align: center;
  background: linear-gradient(180deg, rgba(244,196,48,.07), transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 52px 28px;
  margin-top: 56px;
}
.closing h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; margin-bottom: 12px; }
.closing p { color: var(--muted); margin-bottom: 26px; }
.closing .cta-row { justify-content: center; }

/* social row in the footer */
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.socials a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; }
.socials a:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 30px; }
  /* Single column, and the grid pinning above is dropped so source order
     rules: copy → phone → stats. The phone used to be forced to grid-row 1,
     which pushed the headline and all three buttons below a full-height
     screenshot — nobody saw the call to action without scrolling. */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 32px;
    padding: 44px 0 40px;
    text-align: center;
  }
  .hero-copy,
  .hero > .phone,
  .hero > .stats { grid-column: 1; grid-row: auto; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .stats, .cta-row { justify-content: center; }
  .hero > .stats { margin-top: 0; }
  .phone { width: min(240px, 62vw); }
}

@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .btn { width: 100%; }
  .btn-dl { align-items: center; }
  .stat { flex: 1 1 100%; }
}
