/* ============================================================
   Trade Ledger Pro — components.css
   Reusable UI components: buttons, navbar, hero, cards, feature
   grids, workflow, showcase, FAQ, download CTA, footer, forms.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-label); font-weight: var(--fw-bold);
  padding: 13px 22px; border-radius: var(--radius-md);
  cursor: pointer; border: 1px solid transparent;
  transition: transform .12s var(--ease-standard), background .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold-500); color: var(--text-on-brand); box-shadow: 0 6px 18px rgba(245,179,1,.32); }
.btn-gold:hover { background: var(--gold-600); }
.btn-dark { background: var(--ink-950); color: #fff; }
.btn-dark:hover { background: var(--ink-900); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-inset); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
header.nav.scrolled { border-color: var(--border-hairline); background: rgba(255,255,255,.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: var(--fw-heavy); font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand .pro { color: var(--gold-600); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: var(--fw-medium); color: var(--text-secondary); transition: color .15s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); font-weight: var(--fw-bold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border-hairline); padding: 18px var(--gut) 26px; z-index: 49; flex-direction: column; gap: 4px; box-shadow: var(--shadow-raised); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 17px; font-weight: var(--fw-semibold); border-bottom: 1px solid var(--border-hairline); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 7vw, 92px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: var(--gold-200); top: -140px; right: -120px; }
.blob.b2 { width: 380px; height: 380px; background: var(--green-tint); bottom: -160px; left: -140px; opacity: .7; }
.hero-grid > * { position: relative; z-index: 1; }

.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill); padding: 7px 14px 7px 8px;
  font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-secondary);
  box-shadow: var(--shadow-card); margin-bottom: 24px;
}
.pill-badge b { color: var(--text-primary); }
.pill-badge .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green-500); display: grid; place-items: center; }
.pill-badge .dot svg { width: 12px; height: 12px; }

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: var(--fw-heavy); line-height: 1.02; }
.hero h1 .hl { color: var(--gold-600); }
.hero .lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-secondary); margin-top: 24px; max-width: 46ch; line-height: 1.5; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.trust-row { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.trust-row .stat { display: flex; flex-direction: column; }
.trust-row .stat b { font-size: 22px; font-weight: var(--fw-heavy); }
.trust-row .stat span { font-size: 13px; color: var(--text-muted); }
.trust-sep { width: 1px; height: 34px; background: var(--border-hairline); }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--text-secondary); background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-pill); padding: 9px 15px; box-shadow: var(--shadow-card); }
.tchip svg { width: 15px; height: 15px; color: var(--gold-600); }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 300px; margin: 0 auto;
  border-radius: 46px; background: var(--ink-950);
  padding: 12px; box-shadow: var(--shadow-hero);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: var(--ink-950); border-radius: 999px; z-index: 3;
}
.phone .screen { border-radius: 36px; overflow: hidden; background: #fff; aspect-ratio: 736 / 1600; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-stage { position: relative; }

.float-card {
  position: absolute; background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised); padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  z-index: 4;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card .t { font-size: 12px; color: var(--text-muted); font-weight: var(--fw-semibold); }
.float-card .v { font-size: 18px; font-weight: var(--fw-heavy); letter-spacing: -.01em; }
.fc-1 { top: 60px; left: -20px; animation: floaty 5s ease-in-out infinite; }
.fc-2 { bottom: 96px; right: -24px; animation: floaty 5.6s ease-in-out .6s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* ---------- Logo strip ---------- */
.strip { padding: 40px 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.strip p { text-align: center; font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.strip .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.strip .row span { font-size: 15px; font-weight: var(--fw-bold); color: var(--ink-400); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 26px;
}

/* Why-choose pillars */
.pillar .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ic svg { width: 25px; height: 25px; }
.pillar h3 { font-size: 19px; font-weight: var(--fw-bold); margin-bottom: 8px; }
.pillar p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }

/* Feature cards */
.feature {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 22px;
  transition: transform .18s var(--ease-standard), box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.feature .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 21px; height: 21px; }
.feature h3 { font-size: 16px; font-weight: var(--fw-bold); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.45; }

/* ---------- Workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-step {
  position: relative; background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 20px 18px; text-align: center;
  opacity: 0; transform: translateY(18px); transition: all .5s var(--ease-standard);
}
.flow-step.in { opacity: 1; transform: none; }
.flow-step .n { font-size: 12px; font-weight: var(--fw-bold); color: var(--gold-600); }
.flow-step .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 10px auto 12px; }
.flow-step .ic svg { width: 22px; height: 22px; }
.flow-step h4 { font-size: 15px; font-weight: var(--fw-bold); }
.flow-step p { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.flow-step .arr { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--border-strong); z-index: 2; }
.flow-step .arr svg { width: 22px; height: 22px; }
.flow-step:last-child .arr { display: none; }

/* ---------- Showcase (image + text) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase.rev .txt { order: 2; }
.showcase.rev .art { order: 1; }
.showcase h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: var(--fw-heavy); line-height: 1.08; }
.showcase .lede { font-size: 17px; color: var(--text-secondary); margin-top: 16px; line-height: 1.55; max-width: 46ch; }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.metric-list .m { display: flex; align-items: center; gap: 11px; }
.metric-list .m .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.metric-list .m .ic svg { width: 18px; height: 18px; }
.metric-list .m b { font-size: 15px; font-weight: var(--fw-bold); display: block; }
.metric-list .m span { font-size: 13px; color: var(--text-muted); }
.art-frame { display: grid; place-items: center; }

/* Reports export chips */
.export-list { display: grid; gap: 14px; }
.export-row {
  background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.export-row .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.export-row .ic svg { width: 20px; height: 20px; }
.export-row .name { font-weight: var(--fw-bold); font-size: 15px; flex: 1; }
.export-pills { display: flex; gap: 8px; }
.export-pills .p {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-bold);
  background: var(--surface-inset); border-radius: var(--radius-sm); padding: 6px 11px; color: var(--text-primary);
}
.export-pills .p svg { width: 13px; height: 13px; color: var(--gold-600); }

/* ---------- Partner settlement ---------- */
.partner-vis { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 30px; }
.partner-vis .profit-line { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--border-hairline); margin-bottom: 22px; }
.partner-vis .profit-line .lab { font-size: var(--fs-overline); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--text-muted); font-weight: var(--fw-bold); }
.partner-vis .profit-line .val { font-size: 32px; font-weight: var(--fw-heavy); }
.split-bar { height: 16px; border-radius: 999px; overflow: hidden; display: flex; margin: 18px 0 22px; }
.split-bar .a { background: var(--gold-500); }
.split-bar .b { background: var(--ink-950); }
.partner-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.partner-row .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--fw-heavy); font-size: 15px; flex: none; }
.partner-row .av.a { background: var(--gold-100); color: var(--gold-700); }
.partner-row .av.b { background: var(--ink-100); color: var(--ink-900); }
.partner-row .who { flex: 1; }
.partner-row .who b { display: block; font-weight: var(--fw-bold); font-size: 15px; }
.partner-row .who span { font-size: 13px; color: var(--text-muted); }
.partner-row .amt { font-weight: var(--fw-heavy); font-size: 18px; }
.auto-note { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--green-500); font-weight: var(--fw-semibold); margin-top: 6px; }
.auto-note svg { width: 16px; height: 16px; }

/* ---------- Benefits band ---------- */
.benefits-band { background: var(--ink-950); color: #fff; border-radius: 28px; padding: clamp(40px,6vw,72px); }
.benefits-band .eyebrow { color: var(--gold-400); }
.benefits-band h2 { color: #fff; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(245,179,1,.14); color: var(--gold-400); display: grid; place-items: center; flex: none; }
.benefit .ic svg { width: 21px; height: 21px; }
.benefit h4 { font-size: 17px; font-weight: var(--fw-bold); margin-bottom: 5px; }
.benefit p { font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: var(--fw-bold); color: var(--text-primary); font-family: inherit; }
.faq-q .chev { transition: transform .25s ease; color: var(--gold-600); flex: none; }
.faq-q .chev svg { width: 20px; height: 20px; display: block; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 22px; color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; }

/* ---------- Download CTA ---------- */
.download-band { text-align: center; }
.download-inner { background: var(--gold-500); border-radius: 32px; padding: clamp(44px,6vw,80px) var(--gut); position: relative; overflow: hidden; }
.download-inner h2 { font-size: clamp(30px,4.4vw,50px); font-weight: var(--fw-heavy); color: var(--ink-950); line-height: 1.05; }
.download-inner p { font-size: 18px; color: rgba(10,10,10,.72); margin-top: 16px; max-width: 44ch; margin-left: auto; margin-right: auto; }
.store-row { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink-950); color: #fff; border-radius: var(--radius-md); padding: 12px 22px; }
.store-btn:hover { background: var(--ink-900); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .s { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .s small { font-size: 11px; opacity: .7; }
.store-btn .s b { font-size: 16px; font-weight: var(--fw-bold); }
.store-btn.soon { background: rgba(10,10,10,.08); color: var(--ink-950); }
.store-note { margin-top: 18px; font-size: 13px; color: rgba(10,10,10,.6); font-weight: var(--fw-semibold); }

/* ---------- Footer ---------- */
footer.foot { background: var(--ink-950); color: #fff; padding: 64px 0 34px; }
.foot-top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }
.foot-brand-col { max-width: 320px; }
.foot-store { display: inline-flex; align-items: center; gap: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); padding: 10px 16px; margin-top: 20px; color: #fff; }
.foot-store:hover { background: rgba(255,255,255,.1); }
.foot-store svg { width: 22px; height: 22px; }
.foot-store .s { display: flex; flex-direction: column; line-height: 1.15; }
.foot-store .s small { font-size: 10px; opacity: .65; }
.foot-store .s b { font-size: 14px; font-weight: 700; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.foot-social a:hover { background: var(--gold-500); color: var(--ink-950); }
.foot-social svg { width: 18px; height: 18px; }
.foot .brand { color: #fff; }
.foot .brand .pro { color: var(--gold-400); }
.foot-blurb { color: rgba(255,255,255,.55); font-size: 14.5px; margin-top: 16px; max-width: 32ch; line-height: 1.55; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.foot-col a { display: block; color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 11px; }
.foot-col a:hover { color: var(--gold-400); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 12px; }
