/* ============================================================
   WholesaleApp — marketing landing page
   Warm & human direction. Brand tokens match the app.
   ============================================================ */

:root {
  /* Brand (matched to the app's finance green) */
  --brand:        #0f9e57;
  --brand-strong: #0b6b3a;
  --brand-soft:   #e6f5ee;

  /* Warmth */
  --sand-1: #fef7ec;
  --sand-2: #fdeede;
  --canvas: #fbf8f3;
  --surface: #ffffff;

  /* Ink & text */
  --ink:   #15241c;
  --body:  #41514a;
  --muted: #616b63; /* darkened for WCAG AA contrast on light surfaces */
  --line:  #ece6dd;

  /* States */
  --debt:  #c2410c;
  --debt-soft: #fdeee4;

  /* Shape */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(20, 40, 28, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 40, 28, .30);
  --maxw: 1120px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; }

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

/* ---------- Accessibility utilities ---------- */
/* Visually hidden, still read by screen readers. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Keyboard skip link — hidden until focused. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* Consistent, visible keyboard focus everywhere. */
:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 700; font-family: var(--font);
  border: none; border-radius: 999px; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; padding: 12px 22px; box-shadow: 0 8px 18px -8px rgba(15,158,87,.7); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--sm { font-size: 15px; padding: 9px 18px; }

.btn--store {
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 9px 16px; gap: 10px;
}
.btn--store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--store .apple { width: 20px; height: 20px; fill: #fff; }
.btn--store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.btn--store small { font-size: 10px; font-weight: 500; opacity: .85; }
.btn--store strong { font-size: 15px; font-weight: 700; }
.btn--onbrand { background: #fff; color: var(--ink); }
.btn--onbrand .apple, .btn--onbrand .andr { fill: var(--ink); }
.btn--store .andr { width: 20px; height: 20px; fill: #fff; }

/* Download button group: live Android + disabled iOS */
.dl-group { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-group--center { justify-content: center; }
.btn--soon {
  position: relative;
  background: transparent; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 9px 16px; gap: 10px; cursor: not-allowed;
}
.btn--soon:active { transform: none; }
.btn--soon .apple { width: 20px; height: 20px; fill: var(--muted); }
.btn--soon span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.btn--soon small { font-size: 10px; font-weight: 600; opacity: .9; }
.btn--soon strong { font-size: 14px; font-weight: 700; }
.btn--soon-onbrand { color: #eafff3; border-color: rgba(255,255,255,.5); }
.btn--soon-onbrand .apple { fill: #eafff3; }
.btn__flag {
  position: absolute; top: -9px; right: 12px;
  background: var(--debt); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}

/* Platform availability strip */
.platforms {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 16px;
}
.platforms__item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  text-decoration: none;
}
.platforms__item svg { width: 16px; height: 16px; fill: var(--muted); }
.platforms__item b { color: var(--muted); font-weight: 700; }
.platforms__item.is-live { color: var(--ink); }
.platforms__item.is-live svg { fill: var(--brand-strong); }
.platforms__item.is-live b { color: var(--brand-strong); }
a.platforms__item.is-live:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.platforms__sep { width: 1px; height: 15px; background: var(--line); }

/* ---------- BETA banner (top) ---------- */
.beta-banner {
  background: repeating-linear-gradient(-45deg, var(--brand-strong) 0 18px, var(--brand) 18px 36px);
  color: #fff;
}
.beta-banner__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 22px; text-align: center; }
.beta-banner__tag {
  background: #fff; color: var(--brand-strong); font-weight: 800; font-size: 12px;
  letter-spacing: .1em; padding: 3px 10px; border-radius: 6px; flex: none;
}
.beta-banner__msg { font-size: 14px; font-weight: 600; }

/* ---------- BETA pill (locked to logo) ---------- */
.brand__beta {
  background: var(--debt); color: #fff; font-weight: 800; font-size: 11px;
  letter-spacing: .12em; padding: 3px 8px; border-radius: 6px; line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(194,65,12,.6);
}

/* ---------- BETA ribbon (hero phone) ---------- */
.phone__ribbon {
  position: absolute; top: 18px; left: -34px; z-index: 4;
  transform: rotate(-45deg); transform-origin: center;
  background: var(--debt); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .18em; text-align: center; width: 150px; padding: 5px 0;
  box-shadow: 0 6px 16px -6px rgba(194,65,12,.7);
}

/* ---------- CTA beta chip ---------- */
.cta__beta {
  display: inline-block; background: rgba(255,255,255,.18); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.35);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -16px rgba(0,0,0,.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 85% -10%, var(--sand-2) 0%, transparent 55%),
    linear-gradient(180deg, var(--sand-1) 0%, var(--canvas) 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand-strong); background: var(--brand-soft); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero__title { font-size: clamp(38px, 6vw, 62px); font-weight: 800; }
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: var(--body); margin-top: 20px; max-width: 30ch; }
.hero__sub strong { color: var(--ink); }
.hero__cta { margin-top: 30px; }
.hero__note { font-size: 14px; color: var(--muted); margin-top: 12px; }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__badge {
  position: absolute; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13px;
  padding: 9px 15px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero__badge--1 { top: 8%; left: -2%; }
.hero__badge--2 { bottom: 10%; right: -4%; color: var(--brand-strong); }

/* ---------- Phone mockup ---------- */
.phone {
  width: 286px; max-width: 78vw; aspect-ratio: 286 / 580;
  background: #10231a; border-radius: 42px; padding: 13px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #10231a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen { width: 100%; height: 100%; background: linear-gradient(180deg, var(--sand-1), #fff 30%); border-radius: 30px; overflow: hidden; }
.appui { padding: 38px 20px 20px; }
.appui__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.appui__total { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 2px 0 16px; }
.appui__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 11px 13px; border-radius: 12px; margin-bottom: 8px; }
.appui__row b { font-weight: 700; }
.appui__row--ok { background: var(--brand-soft); color: var(--brand-strong); }
.appui__row--debt { background: var(--debt-soft); color: var(--debt); }
.appui__divider { height: 1px; background: var(--line); margin: 14px 2px; }
.appui__mini { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.appui__line { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); padding: 7px 0; }
.appui__line em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--brand-strong); font-weight: 600; }
.appui__line em.owe { color: var(--debt); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.dot--debt { background: var(--debt); }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: #cfe9da; }
.trust__inner { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; padding: 18px 22px; font-size: 14.5px; font-weight: 600; }
.trust span { white-space: nowrap; }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.label { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-strong); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--body); margin-top: 14px; }

/* ---------- Pains (heart) ---------- */
.pains { padding: clamp(64px, 9vw, 110px) 0; }
.pains__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain__ouch { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pain__fix { margin-top: 14px; font-size: 15px; color: var(--body); display: flex; gap: 9px; }
.pain__fix .tick { color: var(--brand); font-weight: 800; flex: none; }

/* ---------- Features ---------- */
.features { padding: clamp(20px, 4vw, 40px) 0 clamp(64px, 9vw, 110px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.feature--rev .feature__copy { order: 2; }
.feature__copy h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-top: 10px; }
.feature__copy p { margin-top: 14px; font-size: 17px; max-width: 44ch; }
.feature__art { display: grid; place-items: center; }

.card-ui {
  width: 320px; max-width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg);
}
.card-ui__head { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.card-ui__big { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.card-ui__big.owe { color: var(--debt); }
.card-ui__big.ok { color: var(--brand-strong); }
.card-ui__row { display: flex; justify-content: space-between; font-size: 15px; padding: 9px 0; color: var(--body); }
.card-ui__row b { color: var(--ink); }
.card-ui__divider { height: 1px; background: var(--line); margin: 12px 0; }
.bar { height: 8px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: var(--debt); border-radius: 999px; }

/* ---------- Steps ---------- */
.steps { background: linear-gradient(180deg, var(--sand-1), var(--sand-2)); padding: clamp(64px, 9vw, 110px) 0; }
.steps__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step__num { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.step h4 { font-size: 19px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15px; }

/* ---------- Testimonial ---------- */
.quote { padding: clamp(64px, 9vw, 110px) 0; }
.quote__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.quote__avatar { font-size: 56px; line-height: 1; }
.quote blockquote { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; color: var(--ink); line-height: 1.32; letter-spacing: -0.02em; margin: 20px 0 18px; }
.quote cite { font-style: normal; font-weight: 600; color: var(--body); }
.quote cite span { color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(40px, 6vw, 70px) 0 clamp(64px, 9vw, 110px); }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 17px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 24px; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 20px; font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.cta { padding: clamp(56px, 8vw, 96px) 0; }
.cta__inner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta__inner h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.cta__inner p { color: #eafff3; font-size: 19px; margin: 14px 0 28px; }
.cta__inner .btn--store { display: inline-flex; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9fb4a8; padding: 44px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.brand--footer { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: #cfe0d7; text-decoration: none; font-size: 15px; font-weight: 500; }
.footer__nav a:hover { color: #fff; }
.footer small { color: #8aa094; font-size: 13px; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { max-width: 38ch; }
  .pains__grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature--rev .feature__copy { order: 0; }
  .feature__copy { text-align: center; }
  .feature__copy p { margin-left: auto; margin-right: auto; }
  .steps__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer small { text-align: center; }
  .dl-group { justify-content: center; }
}

@media (max-width: 560px) {
  .beta-banner__msg { font-size: 12.5px; }
}

@media (max-width: 420px) {
  .beta-banner__msg { display: none; }
  .beta-banner__inner { padding: 7px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
