/* Ash Pay — getashpay.com
   Shared styles. Blue-on-white brand, system fonts, responsive. */

:root {
  --blue: #1b4de4;
  --blue-dark: #12329c;
  --blue-050: #eef2ff;
  --blue-100: #dfe7ff;
  --ink: #0f172a;
  --body: #3f4759;
  --muted: #6b7280;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 10px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(18,50,156,.16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.small { font-size: .93rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; flex: 0 0 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--body); font-weight: 600; font-size: .97rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--blue); color: #fff !important; padding: 9px 18px;
  border-radius: 10px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--blue-dark); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .05s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-100); background: var(--blue-050); color: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% -10%, var(--blue-050), transparent 60%),
    radial-gradient(700px 500px at -5% 10%, #f3f0ff, transparent 55%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 84px 0 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-050); color: var(--blue-dark);
  font-weight: 700; font-size: .82rem; letter-spacing: .01em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.hero p.lead { font-size: 1.2rem; color: var(--body); max-width: 33ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 290px; height: 590px; background: #0b1220; border-radius: 42px;
  padding: 12px; box-shadow: var(--shadow-lg); position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0b1220; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen {
  width: 100%; height: 100%; background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 32px; overflow: hidden; position: relative; color: #fff;
  display: flex; flex-direction: column;
}
.ps-top { padding: 46px 22px 0; }
.ps-label { font-size: .8rem; opacity: .8; }
.ps-balance { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.ps-sub { font-size: .82rem; opacity: .85; margin-top: 2px; }
.ps-actions { display: flex; gap: 10px; padding: 22px; }
.ps-actions .pill { flex: 1; background: rgba(255,255,255,.16); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: .8rem; font-weight: 600; }
.ps-sheet { margin-top: auto; background: #fff; color: var(--ink); border-radius: 24px 24px 32px 32px; padding: 20px; }
.ps-sheet h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.ps-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ps-row:last-child { border-bottom: 0; }
.ps-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-050); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 38px; }
.ps-row .amt { margin-left: auto; font-weight: 800; color: #16a34a; }
.ps-row .amt.out { color: var(--ink); }
.ps-name { font-size: .9rem; font-weight: 700; color: var(--ink); }
.ps-time { font-size: .74rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--body); font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .97rem; margin: 0; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust .card { display: flex; gap: 16px; align-items: flex-start; }
.trust .ic { margin-bottom: 0; flex: 0 0 46px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { padding-left: 0; list-style: none; margin: 20px 0 0; }
.split li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--body); }
.split li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b4de4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.panel {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff;
  border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; }
.panel .msg {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 14px 16px; margin-top: 14px; font-size: .95rem;
}
.panel .msg strong { color: #fff; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Legal / content pages ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero .small { margin-top: 6px; }
.content { padding: 48px 0 72px; }
.content .prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 40px; padding-top: 8px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); }
.callout {
  background: var(--blue-050); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 0 auto 8px; max-width: 800px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--ink); }
.toc a { font-weight: 600; }
.placeholder { background: #fff7ed; border: 1px dashed #fdba74; color: #9a3412; padding: 2px 7px; border-radius: 6px; font-size: .9em; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #b9c0d0; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: .92rem; color: #96a0b5; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a { display: block; color: #b9c0d0; font-size: .95rem; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; color: #7b869c; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 50px; }
  .hero p.lead { max-width: none; }
  .phone-wrap { order: -1; }
  .features, .trust { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 20px; }
  .nav-links.open a { padding: 8px 0; width: 100%; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---------- Hero phone: subtle, premium motion ---------- */
.ps-toast { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

  .ps-balance { animation: balpop .6s ease-out both; }
  @keyframes balpop { 0% { transform: scale(.92); opacity:.5; } 60% { transform: scale(1.03); } 100% { transform: scale(1); opacity:1; } }

  .ps-sheet .ps-row { opacity: 0; animation: rowin .55s ease-out forwards; }
  .ps-sheet .ps-row:nth-child(2) { animation-delay: 1.5s; }
  .ps-sheet .ps-row:nth-child(3) { animation-delay: 1.7s; }
  .ps-sheet .ps-row:nth-child(4) { animation-delay: 1.9s; }
  @keyframes rowin { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

  .ps-toast {
    display: flex; align-items: center; gap: 10px;
    position: absolute; top: 46px; left: 14px; right: 14px; z-index: 6;
    background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,.28); font-size: .8rem; font-weight: 700;
    opacity: 0;
    animation: toastin .55s cubic-bezier(.2,.8,.2,1) 1.0s both, toastout .5s ease-in 4.6s both;
  }
  .ps-toast .tbadge { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; flex:0 0 30px; }
  .ps-toast .tbadge svg { width: 16px; height: 16px; }
  .ps-toast small { display:block; font-weight:600; color: var(--muted); font-size:.72rem; margin-top:1px; }
  @keyframes toastin  { from { opacity:0; transform: translateY(-18px) scale(.96); } to { opacity:1; transform:none; } }
  @keyframes toastout { from { opacity:1; } to { opacity:0; transform: translateY(-12px); } }

  .ps-actions .pill { animation: rowin .5s ease-out both; }
  .ps-actions .pill:nth-child(1){ animation-delay:.7s; }
  .ps-actions .pill:nth-child(2){ animation-delay:.82s; }
  .ps-actions .pill:nth-child(3){ animation-delay:.94s; }
}

/* ---------- Real Ash Pay logo ---------- */
.brand .logo { object-fit: contain; }
.site-footer .brand .logo { background: #fff; border-radius: 9px; padding: 3px; box-sizing: border-box; width: 38px; height: 38px; flex: 0 0 38px; }
