/*
 * QASHFLOW — public landing page.
 *
 * Palette sampled from logo.png: deep navy through slate blue, lifted with a
 * mint accent so calls to action carry on a dark ground. Self-contained, so
 * the marketing page never inherits the signed-in app's theme switching.
 */

:root {
  --ink:        #0A1826;
  --ink-2:      #0F2334;
  --ink-3:      #16324a;
  --slate:      #456274;
  --slate-soft: #7d97a8;
  --mist:       #dfe9f0;
  --white:      #ffffff;
  --accent:     #2ed3a7;
  --accent-2:   #56a0ff;
  --accent-ink: #05221a;
  --line:       rgba(255, 255, 255, .10);
  --radius:     16px;
  --radius-sm:  11px;
  --wrap:       1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 24, 38, .82);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: .2px; color: var(--white); }
.brandmark img { width: 34px; height: 34px; border-radius: 8px; }
.brandmark span { font-size: 18px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a.navlink {
  color: var(--slate-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a.navlink:hover { color: var(--white); background: rgba(255, 255, 255, .06); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #43e2b8; }
.btn-outline { border-color: rgba(255, 255, 255, .22); color: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(46, 211, 167, .17), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -20% -15% auto auto;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(86, 160, 255, .16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(46, 211, 167, .11);
  border: 1px solid rgba(46, 211, 167, .28);
  padding: 6px 13px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 22px 0 18px;
  color: var(--white);
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--slate-soft); max-width: 58ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--slate); }

/* Hero layout + the mock payment screen ---------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { max-width: 14ch; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone {
  width: 100%;
  max-width: 330px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #14314a, #0e2233);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.phone-top {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 13px; color: var(--white);
}
.phone-top img { border-radius: 5px; }
.phone-body { padding: 20px 18px 22px; }
.phone-label { margin: 0; font-size: 12px; color: var(--slate-soft); }
.phone-amount { margin: 2px 0 16px; font-size: 30px; font-weight: 780; color: var(--white); letter-spacing: -.02em; }

.phone-qr {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  place-items: center;
}
/* Holds the real QR generated by App\Support\QrCode. The SVG carries its own
   quiet zone, so no extra padding is added around it. */
.qr-art {
  width: 100%;
  aspect-ratio: 1;
  line-height: 0;
}
.qr-art svg { width: 100%; height: auto; display: block; border-radius: 3px; }

/* Only used if QR generation ever fails — a neutral placeholder, never a
   QR-looking pattern that someone might try to scan. */
.qr-art-fallback {
  background: repeating-linear-gradient(45deg, #eef2f6 0 8px, #e2e8ee 8px 16px);
  border-radius: 6px;
}

.phone-scan { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--slate-soft); }

.phone-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--mist);
}
.phone-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f0a742;
  box-shadow: 0 0 0 4px rgba(240, 167, 66, .16);
}
.phone-timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--slate-soft); }

.payout-chip {
  /* Sits below the phone rather than over it, so nothing is obscured. */
  align-self: flex-end;
  margin-right: clamp(0px, 3vw, 26px);
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--ink-3);
  border: 1px solid rgba(46, 211, 167, .32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}
.payout-chip .chip-ico {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 13px;
}
.payout-chip b { display: block; color: var(--white); font-size: 13.5px; }
.payout-chip span { font-size: 12px; color: var(--slate-soft); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-copy h1 { max-width: 100%; }
  .payout-chip { align-self: center; margin-right: 0; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--white);
  margin: 10px 0 12px;
}
.section-head p { color: var(--slate-soft); margin: 0; font-size: 16px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-2); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--ink-2), rgba(15, 35, 52, .55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: var(--white); font-size: 19px; margin: 14px 0 8px; letter-spacing: -.01em; }
.card p { color: var(--slate-soft); margin: 0; font-size: 14.5px; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 20px;
  background: rgba(46, 211, 167, .12);
  border: 1px solid rgba(46, 211, 167, .26);
}
.card-icon.blue { background: rgba(86, 160, 255, .12); border-color: rgba(86, 160, 255, .28); }

/* Use-case cards get a little more presence. */
.usecase { padding: 30px; }
.usecase .flow {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 0; padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--slate-soft); flex-wrap: wrap;
}
.usecase .flow b { color: var(--white); font-weight: 650; }
.usecase .flow .arrow { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 750; font-size: 14px;
  color: var(--accent-ink);
  background: var(--accent);
}
.step h4 { margin: 4px 0 6px; color: var(--white); font-size: 16.5px; }
.step p { margin: 0; color: var(--slate-soft); font-size: 14.5px; }

/* ---------------------------------------------------------------- fees */
.fee-split { display: flex; align-items: stretch; gap: 0; border-radius: var(--radius-sm); overflow: hidden; margin-top: 18px; }
.fee-part { padding: 18px 20px; }
.fee-you { flex: 95; background: rgba(46, 211, 167, .16); border: 1px solid rgba(46, 211, 167, .3); border-right: 0; }
.fee-us  { flex: 5; min-width: 128px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.fee-part .n { display: block; font-size: 23px; font-weight: 780; color: var(--white); }
.fee-part .l { font-size: 12.5px; color: var(--slate-soft); }

/* ---------------------------------------------------------------- cta */
.cta {
  text-align: center;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(46, 211, 167, .16), transparent 72%),
    var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 56px 28px;
}
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); color: var(--white); margin: 0 0 12px; letter-spacing: -.015em; }
.cta p { color: var(--slate-soft); max-width: 52ch; margin: 0 auto 26px; }
.cta .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 54px; color: var(--slate); font-size: 13.5px; }
.footer-top { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.disclaimer {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--slate-soft);
  font-size: 13px;
  line-height: 1.62;
}
.disclaimer strong { color: var(--mist); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* Section links go first — they are the least important thing up here. */
  .site-nav a.navlink { display: none; }
}

@media (max-width: 720px) {
  .hero { padding: 58px 0 52px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .fee-split { flex-direction: column; }
  .fee-you { border-right: 1px solid rgba(46, 211, 167, .3); border-bottom: 0; }

  /* One call to action on a phone. Two buttons plus the wordmark crowd each
     other on a 360px screen, and signing up is the point of the page. */
  .site-nav .nav-login { display: none; }

  .site-header .wrap { height: 60px; gap: 12px; padding: 0 16px; }
  .brandmark img { width: 30px; height: 30px; }
  .brandmark span { font-size: 16px; }
  .site-nav .btn { padding: 10px 16px; font-size: 14px; }
}

/* Only the narrowest phones lose the wordmark. With the log-in button gone
   there is room for it well below 380px, and a lone logo reads as unfinished. */
@media (max-width: 340px) {
  .site-header .wrap { padding: 0 12px; gap: 10px; }
  .brandmark span { display: none; }
  .site-nav .btn { padding: 10px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ================================================================= auth
   Sign in / sign up / choose a password. Same navy-and-mint identity as the
   landing page, so the front door never looks like the signed-in admin app.
   ================================================================== */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: -25% auto auto -15%;
  width: 680px; height: 680px;
  background: radial-gradient(closest-side, rgba(46, 211, 167, .16), transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 680px; height: 680px;
  background: radial-gradient(closest-side, rgba(86, 160, 255, .15), transparent 70%);
  pointer-events: none;
}

.auth-box { position: relative; width: 100%; max-width: 430px; }

.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  text-decoration: none; margin-bottom: 24px;
  color: var(--white); font-weight: 750; font-size: 20px;
}
.auth-brand img { width: 36px; height: 36px; border-radius: 9px; }

.auth-card {
  background: linear-gradient(180deg, var(--ink-2), rgba(15, 35, 52, .72));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .42);
}
.auth-card h1 { color: var(--white); font-size: 25px; margin: 0 0 8px; text-align: center; letter-spacing: -.015em; }
.auth-card .sub { color: var(--slate-soft); font-size: 14.5px; text-align: center; margin: 0 0 24px; }

.auth-note { color: var(--slate); font-size: 12.5px; text-align: center; margin-top: 18px; line-height: 1.6; }
.auth-note a, .auth-card a { color: var(--accent); }

.auth-alert {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 13.5px;
  margin-bottom: 20px;
  background: rgba(255, 107, 107, .10);
  border: 1px solid rgba(255, 107, 107, .30);
  color: #ffb3b3;
}
.auth-alert ul { margin: 8px 0 0; padding-left: 20px; }
.auth-alert.warn {
  background: rgba(240, 167, 66, .10);
  border-color: rgba(240, 167, 66, .32);
  color: #f4c987;
}

/* Google's button keeps its own white identity, per their brand rules. The
   `.auth-card a` link colour above is more specific than a bare `.btn-google`,
   so this rule is written to out-rank it rather than relying on order. */
.auth-card a.btn-google,
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%;
  background: #fff; color: #1f2328;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 13px;
  font-weight: 650; font-size: 15px;
  text-decoration: none;
}
.auth-card a.btn-google:hover,
.btn-google:hover { background: #f6f8fa; color: #1f2328; }

.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 13px; font-weight: 650; color: var(--mist); margin-bottom: 7px; }
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  font-size: 15px;
}
.auth-input::placeholder { color: #5f7a8c; }
.auth-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.auth-hint { color: var(--slate); font-size: 12.5px; margin-top: 7px; }
.auth-error { color: #ff9d9d; font-size: 12.5px; margin-top: 7px; }

.btn-block { width: 100%; }

/* Password strength meter, dark-page variant. */
.auth-meter { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; margin-top: 9px; }
.auth-meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: #ff6b6b; transition: width .18s ease, background .18s ease; }
.auth-meter span.lv2 { background: #f0a742; }
.auth-meter span.lv3 { background: var(--accent-2); }
.auth-meter span.lv4 { background: var(--accent); }

/* ================================================================ reviews
   A horizontally scrolling row of review cards. Built on native scroll
   snapping rather than a transform carousel, so it stays swipeable on a
   phone, keyboard-scrollable, and works even if the script never loads.
   ======================================================================= */
.reviews { position: relative; }

.rev-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 18px;
  /* Hide the scrollbar; the arrows and swiping are the controls. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

.rev-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 30%, 360px);
  background: linear-gradient(180deg, var(--ink-2), rgba(15, 35, 52, .55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rev-card .stars { font-size: 17px; letter-spacing: 2px; color: rgba(255, 255, 255, .18); }
.rev-card .stars .star.on { color: #f0a742; }
.rev-text { margin: 0; color: var(--mist); font-size: 14.5px; line-height: 1.6; flex: 1 1 auto; }
.rev-by { margin: 0; font-weight: 700; color: var(--white); font-size: 13.5px; }
.rev-by span { display: block; font-weight: 500; color: var(--slate); font-size: 12.5px; margin-top: 2px; }

.rev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.rev-nav:hover { border-color: var(--accent); color: var(--accent); }
.rev-nav.prev { left: -18px; }
.rev-nav.next { right: -18px; }
.rev-nav[disabled] { opacity: .3; cursor: default; }

@media (max-width: 980px) {
  /* No room to hang the arrows outside, so tuck them in. */
  .rev-nav.prev { left: 2px; }
  .rev-nav.next { right: 2px; }
}
@media (max-width: 620px) {
  .rev-card { flex-basis: 84%; }
  .rev-nav { display: none; }   /* swiping is the natural control here */
}

/* The amount a review is about, shown between the comment and the name. */
.rev-amount {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--slate-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rev-amount strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

/* "or" divider between Google and the password form. */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--slate);
  font-size: 12.5px;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
