/* OrgPay — marketing site
   Palette mirrors orgpay/constants/theme.ts so the site and the app read as one product. */

:root {
  --brand: #1C3829;
  --brand-pressed: #142A1F;
  --brand-ink: #FFFFFF;
  --tint: #E8EEE9;
  --ink: #111510;
  --muted: #5F736D;
  --faint: #7A9490;
  --bg: #F5F6F4;
  --bg-alt: #EFF1EE;
  --card: #FFFFFF;
  --border: #DDE3DE;
  --success: #238A57;
  --warning: #B36A00;
  --info: #2A6FBB;
  --shadow-sm: 0 1px 2px rgba(17, 21, 16, .05);
  --shadow-md: 0 4px 16px rgba(17, 21, 16, .06);
  --shadow-lg: 0 24px 60px rgba(17, 21, 16, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2A6B47;
    --brand-pressed: #205639;
    --brand-ink: #FFFFFF;
    --tint: #1C2023;
    --ink: #E8EEE9;
    --muted: #9AAFA9;
    --faint: #7A9490;
    --bg: #0F1011;
    --bg-alt: #131516;
    --card: #161819;
    --border: #242629;
    --success: #3BAD68;
    --warning: #D4913F;
    --info: #4B8FD9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :where(a, button, summary, input):focus-visible { outline-color: #4A9E6B; }
}

/* ---------- brand mark ---------- */

.mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 7px;
  background: var(--brand);
  display: grid; place-items: center;
  overflow: hidden;
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.mark.lg { width: 44px; height: 44px; border-radius: 10px; }

.lockup { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.wordmark { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 20px; }

@media (max-width: 820px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-pressed); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--faint); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 96px; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint); color: var(--brand);
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 22px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #7FC79B; } }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

h1 {
  font-size: clamp(2.7rem, 6vw, 4.1rem);
  letter-spacing: -0.035em;
}
h1 .quiet { color: var(--faint); }
.hero-sub {
  margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 30em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }

@media (max-width: 940px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- hero mock ---------- */

.mock { display: grid; gap: 14px; }
.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.mock-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--tint); color: var(--brand);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .avatar { color: #7FC79B; } }
.mock-name { font-size: 15px; font-weight: 600; }
.mock-meta { font-size: 13px; color: var(--faint); }
.mock-amount { margin-left: auto; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.mock-receipt {
  margin-top: 16px; height: 104px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background:
    linear-gradient(115deg, transparent 46%, color-mix(in srgb, var(--tint) 70%, transparent) 50%, transparent 54%),
    var(--bg-alt);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; color: var(--faint); font-size: 13px; font-weight: 500;
}
.mock-receipt svg { width: 18px; height: 18px; }

.pipeline { margin-top: 18px; display: grid; gap: 2px; }
.step-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; padding: 7px 0;
}
.tick {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--success); color: #fff;
}
.tick svg { width: 12px; height: 12px; }
.tick.now { background: var(--warning); }
.tick.todo { background: transparent; border: 1.5px dashed var(--border); }
.step-row .when { margin-left: auto; font-size: 12px; color: var(--faint); }
.step-row.pending { color: var(--faint); }

.mock-actions { display: flex; gap: 8px; margin-top: 18px; }
.mock-actions .btn { flex: 1; }

.mock-budget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
}
.mock-budget .label { font-size: 14px; font-weight: 600; }
.mock-budget .sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.bar {
  margin-top: 12px; height: 8px; border-radius: 999px;
  background: var(--bg-alt); overflow: hidden;
}
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); width: 68%; }
@media (prefers-color-scheme: dark) { .bar span { background: #4A9E6B; } }
.bar-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--faint); }



/* ---------- audience strip ---------- */

.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.strip .lead { font-size: 14px; font-weight: 600; color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.strip li {
  font-size: 14px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; background: var(--card);
}

/* ---------- sections ---------- */

section { scroll-margin-top: 84px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
@media (max-width: 720px) { .section { padding: 68px 0; } }

.section-head { max-width: 46ch; margin-bottom: 52px; }
.section-head.center { max-width: 42ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 20px; } }
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.step .who {
  display: inline-block; margin-top: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.feature:hover { border-color: var(--faint); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .feature .icon { color: #7FC79B; } }
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- platforms ---------- */

.platforms {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; gap: 36px; } }
.platform-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.platform-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.platform-list .icon { color: var(--brand); flex: none; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .platform-list .icon { color: #7FC79B; } }
.platform-list .icon svg { width: 20px; height: 20px; }
.platform-list strong { font-weight: 600; }
.platform-list span { color: var(--muted); }
.badge-soon {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px;
}

.phone {
  justify-self: center;
  width: 260px; aspect-ratio: 9 / 18.5;
  border-radius: 36px; padding: 10px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  height: 100%; border-radius: 27px; background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.phone-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.phone-row {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
}
.phone-row .t { font-size: 12.5px; font-weight: 600; }
.phone-row .s { font-size: 11px; color: var(--faint); }
.phone-row .amt { margin-left: auto; font-size: 12.5px; font-weight: 700; }
.pill {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 8px;
}
.pill.paid { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.pill.review { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.pill.approved { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }

/* ---------- faq ---------- */

.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq p { padding: 0 8px 22px 0; color: var(--muted); font-size: 16px; }

/* ---------- cta ---------- */

.cta-band { padding: 96px 0; }
.cta-inner {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 20px; padding: 64px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% -20%, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { color: var(--brand-ink); position: relative; }
.cta-inner p {
  position: relative; margin: 16px auto 0; max-width: 46ch;
  color: rgba(255, 255, 255, .78); font-size: 18px;
}
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-on-brand { background: #FFFFFF; color: var(--brand); }
.btn-on-brand:hover { background: #EDF1EE; }
.btn-outline-light { border-color: rgba(255,255,255,.32); color: var(--brand-ink); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
@media (max-width: 620px) { .cta-inner { padding: 48px 24px; } }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 52px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 30ch; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--faint); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols h4 {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { font-size: 15px; color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 13.5px; color: var(--faint);
}

/* ---------- reveal ---------- */

/* Only hide when JS is running to bring it back — no script, no blank page. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
