/* MintPay landing page. Mobile first: base styles are for phones; the
   breakpoints at 720px and 1000px widen the layout. */
:root {
  /* Greens throughout: a deep forest ink, emerald as the accent, teal for
     links and icons, lime only inside gradients. */
  --navy: #062b23;
  --slate: #3d5651;
  --slate-2: #67807a;
  --line: #dfeae5;
  --bg: #ffffff;
  --tint: #f2f9f5;
  --accent: #10b981;
  --accent-ink: #ffffff;
  --accent-dark: #047857;
  --indigo: #0f766e;
  --lime: #84cc16;
  /* Deep to light, as in the logo: forest, emerald, then lime. */
  --grad: linear-gradient(135deg, #064e3b, #047857 40%, #059669 70%, #84cc16);
  --radius: 12px;
  --shadow-lg: 0 50px 100px -20px rgba(6, 60, 45, .25), 0 30px 60px -30px rgba(0, 0, 0, .3);
  --shadow-sm: 0 2px 5px -1px rgba(6, 60, 45, .12), 0 1px 3px -1px rgba(0, 0, 0, .1);
  --pad: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Malgun Gothic",
    "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", sans-serif;
  color: var(--slate);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); overflow-x: clip; }
body { line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--indigo); text-decoration: none; }
h1, h2, h3 { color: var(--navy); margin: 0; }
h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 650; }
p { margin: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
[id] { scroll-margin-top: 76px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #065f46; }
.btn-ghost { color: var(--navy); background: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .85); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(223, 234, 229, .7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 19px; color: var(--navy); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--navy); font-weight: 550; font-size: 15px; }
.nav-links a:hover { color: var(--slate); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* language menu: <details>, no script */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px;
  border-radius: 999px; color: var(--navy); font-size: 14px; font-weight: 550;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--tint); }
.lang svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang .lang-name { display: none; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 160px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.lang li a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--navy); font-size: 15px; }
.lang li a:hover { background: var(--tint); }
.lang li a[aria-current] { color: var(--indigo); font-weight: 650; }

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; padding: 48px 0 56px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -40% -10% 30% -10%; transform: skewY(-9deg); transform-origin: 0 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 15% 40%, rgba(16, 185, 129, .55), transparent 70%),
    radial-gradient(50% 60% at 55% 30%, rgba(13, 148, 136, .45), transparent 70%),
    radial-gradient(45% 55% at 90% 50%, rgba(163, 230, 53, .5), transparent 70%),
    linear-gradient(120deg, #b6f2d8, #a7e8df 50%, #e2f7b5);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; color: var(--navy); background: rgba(255, 255, 255, .6);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 9vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 750; }
.lead { font-size: clamp(17px, 4.4vw, 20px); line-height: 1.55; margin-top: 18px; color: #34504a; max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* phone mock of the bot's payment card */
.phone {
  justify-self: center; width: min(320px, 100%); padding: 10px; border-radius: 40px; background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  border-radius: 31px; padding: 14px 12px 18px; min-height: 470px;
  background: linear-gradient(180deg, #e2f3ea, #cfe8dc);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; border-bottom: 1px solid rgba(6, 43, 35, .08); }
.chat-head b { display: block; color: var(--navy); font-size: 15px; line-height: 1.2; }
.chat-head small { color: var(--slate-2); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: block; }
.bubble { background: #fff; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow-sm); max-width: 92%; }
.card-bubble { padding: 10px 12px 12px; }
.qr {
  height: 112px; border-radius: 10px; margin-bottom: 10px;
  background:
    linear-gradient(90deg, #fff 6px, transparent 6px) 0 0 / 14px 14px,
    linear-gradient(#fff 6px, transparent 6px) 0 0 / 14px 14px,
    linear-gradient(135deg, var(--navy), #0f5a47);
  opacity: .9;
}
.card-title { color: var(--navy); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.card-bubble dl { margin: 0; font-size: 13px; }
.card-bubble dl div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.card-bubble dt { color: var(--slate-2); }
.card-bubble dd { margin: 0; color: var(--navy); font-weight: 550; text-align: right; }
.due { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.due small, .addr small { display: block; color: var(--slate-2); font-size: 12px; }
.due strong { color: var(--navy); font-size: 24px; letter-spacing: -.01em; }
.addr { margin-top: 6px; }
.addr code { font-size: 12px; color: var(--slate); }
.ok-bubble { align-self: flex-start; padding: 9px 13px; font-size: 14px; color: var(--navy); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }

/* ---- trust strip ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 28px; }
.trust h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.trust h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.trust p { font-size: 14.5px; margin-top: 4px; }

/* ---- sections ---- */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-sub { font-size: clamp(16px, 4vw, 18px); margin-top: 12px; max-width: 640px; }
.features { display: grid; gap: 14px; margin-top: 32px; }
.feature { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--indigo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 12px; }
.feature p { margin-top: 6px; font-size: 15px; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 22px 22px 22px 70px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff;
  background: var(--grad);
}
.steps p { margin-top: 6px; font-size: 15px; }

/* ---- developers ---- */
.dev { background: radial-gradient(80% 60% at 85% 0%, rgba(16, 185, 129, .18), transparent 70%), var(--navy); color: #a9c4bb; }
.dev h2 { color: #fff; }
.dev .section-sub { color: #a9c4bb; }
.dev-grid { display: grid; gap: 16px; margin-top: 32px; min-width: 0; }
.code-card { background: #083a2f; border: 1px solid #12553f; border-radius: var(--radius); overflow: hidden; min-width: 0; }
.code-tab { padding: 10px 16px; font-size: 13px; font-weight: 650; color: #fff; border-bottom: 1px solid #12553f; }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; color: #d5ece3; }
.code-card .c { color: #7ea596; }
.code-card .k { color: #6ee7b7; }
.code-card .s { color: #d9f99d; }
.events { list-style: none; margin: 0; padding: 6px 16px; }
.events li { padding: 11px 0; border-bottom: 1px solid #12553f; display: grid; gap: 3px; }
.events li:last-child { border-bottom: 0; }
.events code { color: #6ee7b7; font-size: 13.5px; font-weight: 600; }
.events span { font-size: 14.5px; }
.dev-note { padding: 0 16px 16px; font-size: 13.5px; color: #8bb3a5; }

/* ---- final CTA & footer ---- */
.final { padding-top: 56px; }
.final-card {
  text-align: center; padding: 44px var(--pad); border-radius: 20px; color: #fff;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(163, 230, 53, .35), transparent 70%),
    linear-gradient(120deg, #064e3b, #047857 40%, #059669 70%, #0d9488);
}
.final-card h2 { color: #fff; }
.final-card p { margin: 12px auto 24px; max-width: 520px; color: rgba(255, 255, 255, .85); font-size: 17px; }
.final-card .btn-primary { background: #fff; color: var(--navy); }
.final-card .btn-primary:hover { background: #ecfdf5; }
.site-footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-grid { display: grid; gap: 16px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-langs a { color: var(--slate); }
.footer-langs a:hover { color: var(--navy); }
.site-footer small { color: var(--slate-2); }

/* ---- legal pages ---- */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal p, .legal li { font-size: 16px; }
.legal p { margin: 10px 0; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { color: var(--slate-2); font-size: 14px; }
.site-footer small a { color: var(--slate); }

/* ---- wider screens ---- */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .lang .lang-name { display: inline; }
  .hero { padding: 80px 0 96px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .dev-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 88px 0; }
  .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-langs { justify-content: center; }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .phone { justify-self: end; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 70px 24px 26px; }
  .steps li::before { top: 24px; }
  .final-card { padding: 64px 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- a feature with a link (affiliate payouts on the landing page) ---- */
.feature-wide { display: flex; gap: 16px; align-items: flex-start; border-color: var(--accent-dark); background: linear-gradient(135deg, #f0fdf8, #fff); }
.feature-wide svg { flex: none; }
.feature-wide h3 { margin-top: 0; }
.more { display: inline-block; margin-top: 10px; font-weight: 650; color: var(--accent-dark); }
.dev .more { color: #6ee7b7; }
.nav-links a[aria-current="page"] { color: var(--accent-dark); }

/* ---- integration docs ---- */
.docs { display: grid; gap: 28px; padding-top: 24px; }
.docs-toc { display: none; }
.docs-body { max-width: none; padding-top: 16px; min-width: 0; }
.docs-body h2 { scroll-margin-top: 80px; padding-top: 6px; border-top: 1px solid var(--line); }
.docs-body pre { background: #083a2f; color: #d5ece3; border-radius: 10px; padding: 14px 16px; overflow-x: auto;
  font-size: 12.5px; line-height: 1.6; margin: 12px 0; }
.docs-body pre code { background: none; padding: 0; color: inherit; }
.docs-body code { font-size: .92em; background: #ecfdf5; padding: 1px 5px; border-radius: 5px; }
.docs-body table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.docs-body th, .docs-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body th { white-space: nowrap; width: 1%; }
.docs-body ol { padding-left: 22px; }
@media (min-width: 960px) {
  .feature-wide { grid-column: 1 / -1; }
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-toc { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 84px; align-self: start;
    padding-top: 40px; font-size: 14px; }
  .docs-toc a { color: var(--slate); }
  .docs-toc a:hover { color: var(--accent-dark); }
}
