/* PaySplit — getpaysplit.app
   Design language mirrors the approved v2.0.1 store panels:
   deep navy with a purple cast, cream display type, iOS-blue accent. */

:root {
  --bg-0: #070f26;
  --bg-1: #0c1a38;
  --bg-cast: #342030;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(250, 248, 240, 0.1);
  --line-soft: rgba(250, 248, 240, 0.06);
  --ink: #faf8f0;
  --ink-muted: #a8b4d4;
  --ink-faint: #7d8ab0;
  --accent: #6d9bff;
  --accent-strong: #3e82f7;
  --good: #4ade80;
  --radius-card: 24px;
  --radius-panel: 28px;
  --shadow-panel: 0 24px 60px rgba(2, 6, 18, 0.55);
  --shell: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient background: purple cast top-right like the store panels */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 36rem at 82% -6%, rgba(84, 44, 78, 0.5), transparent 62%),
    radial-gradient(40rem 30rem at -10% 12%, rgba(38, 64, 130, 0.42), transparent 60%),
    linear-gradient(178deg, var(--bg-0) 0%, var(--bg-1) 58%, #0a1430 100%);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #9bbaff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { left: 12px; color: #fff; }

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 15, 38, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 22%;
  box-shadow: 0 4px 14px rgba(2, 6, 18, 0.5);
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.button) {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:not(.button):hover { color: var(--ink); background: var(--surface-strong); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .open-icon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: block; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.02rem;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-strong);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.button:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.button:active { transform: scale(0.98); }

.button.primary {
  background: var(--accent-strong);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(62, 130, 247, 0.35);
}
.button.primary:hover { background: #4f8df8; color: #fff; }

.button.small { min-height: 40px; padding: 8px 18px; font-size: 0.94rem; }

.badge-link { display: inline-flex; border-radius: 10px; }
.badge-link img,
.badge-link svg { height: 52px; width: auto; display: block; border-radius: 10px; }
.badge-link.small img,
.badge-link.small svg { height: 44px; }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.022em; margin: 0 0 16px; }

.display {
  font-size: clamp(2.7rem, 6.4vw, 4.7rem);
  font-weight: 800;
}

h2.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 750;
}

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  color: var(--ink-muted);
  max-width: 56ch;
}

.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-muted); font-size: 1.1rem; margin: 0; }

/* ---------- Hero ---------- */

.hero { padding: 84px 0 72px; overflow: clip; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-price-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(109, 155, 255, 0.35);
  background: rgba(109, 155, 255, 0.12);
  color: #b9d0ff;
  font-size: 0.95rem;
  font-weight: 550;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ink-faint);
  font-size: 0.95rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--good); flex: none; }

.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4% 10%;
  background: radial-gradient(24rem 20rem at 50% 40%, rgba(109, 155, 255, 0.22), transparent 70%);
  filter: blur(10px);
}
.hero-art img {
  position: relative;
  width: min(100%, 400px);
  margin-inline: auto;
  display: block;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

/* ---------- Fact strip ---------- */

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 0 84px;
}
.fact {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 20px;
}
.fact strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.fact span { color: var(--ink-muted); font-size: 0.94rem; }

/* ---------- Use cases ---------- */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
}
.usecase .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.5rem;
  background: linear-gradient(140deg, rgba(109, 155, 255, 0.22), rgba(109, 155, 255, 0.06));
  border: 1px solid rgba(109, 155, 255, 0.25);
  margin-bottom: 18px;
}
.usecase h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 8px; }
.usecase p { margin: 0; color: var(--ink-muted); font-size: 1rem; }

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line-soft); }
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-art { order: 1; }

.feature-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag.free { color: var(--good); background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.28); }
.tag.pro { color: #d8bcff; background: rgba(162, 120, 255, 0.12); border: 1px solid rgba(162, 120, 255, 0.32); }

.feature-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
.feature-copy p { color: var(--ink-muted); margin: 0 0 14px; }
.feature-copy p:last-child { margin-bottom: 0; }

.feature-art img {
  width: min(100%, 340px);
  display: block;
  margin-inline: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

/* ---------- Gallery ---------- */

.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gallery-head p { margin: 0; color: var(--ink-faint); font-size: 0.95rem; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(58vw, 250px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 24px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  box-shadow: 0 16px 40px rgba(2, 6, 18, 0.45);
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 0.99rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 32px;
}
.plan.featured {
  border-color: rgba(109, 155, 255, 0.45);
  background:
    radial-gradient(26rem 16rem at 85% -10%, rgba(109, 155, 255, 0.14), transparent 60%),
    var(--surface);
  box-shadow: 0 24px 70px rgba(62, 130, 247, 0.16);
}
.plan .ribbon {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.plan h3 { font-size: 1.3rem; font-weight: 750; margin-bottom: 4px; }
.plan .plan-sub { color: var(--ink-muted); font-size: 0.98rem; margin: 0 0 20px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.price .amount { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--ink-muted); }
.price-was { color: var(--ink-faint); font-size: 0.95rem; margin: 0 0 6px; }
.price-was s { opacity: 0.75; }
.save-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--good);
  font-size: 0.8rem;
  font-weight: 700;
}

.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-muted); font-size: 1rem; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--good); }
.plan li strong { color: var(--ink); font-weight: 600; }
.plan .button { width: 100%; }

.pricing-note {
  max-width: 880px;
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Compare ---------- */

.compare-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}
table.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.99rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.compare thead th {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  border-bottom-color: var(--line);
}
.compare thead th:first-child { color: var(--ink-faint); font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--ink-muted); width: 30%; }
.compare .us { color: var(--ink); font-weight: 600; }
.compare thead .us-col { color: var(--ink); font-weight: 750; }
.compare .yes { color: var(--good); font-weight: 600; }
.compare .no { color: #ff8fa3; }
.compare .meh { color: var(--ink-faint); }
.compare-note {
  margin: 14px 2px 0;
  color: var(--ink-faint);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }
.faq details {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: 18px;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 650;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 20px; height: 20px; color: var(--ink-faint); transition: transform 0.2s ease; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid rgba(109, 155, 255, 0.3);
  border-radius: 32px;
  background:
    radial-gradient(30rem 18rem at 20% 0%, rgba(109, 155, 255, 0.16), transparent 60%),
    radial-gradient(26rem 18rem at 90% 100%, rgba(120, 70, 130, 0.25), transparent 65%),
    var(--surface);
  text-align: center;
  padding: 72px 32px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--ink-muted); max-width: 46ch; margin: 0 auto 30px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 56px;
  color: var(--ink-faint);
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-brand { max-width: 34ch; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { margin: 0; }
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Content pages (support / privacy / terms) ---------- */

.page-head { padding: 72px 0 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
.page-head .meta { color: var(--ink-faint); margin: 6px 0 0; }

.doc {
  max-width: 760px;
  padding: 24px 0 72px;
}
.doc h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 12px;
}
.doc p, .doc li { color: var(--ink-muted); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; padding-bottom: 24px; }
.card-grid .wide { grid-column: 1 / -1; }
.panel-card {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
}
.panel-card h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; }
.panel-card p { margin: 0 0 10px; color: var(--ink-muted); }
.panel-card p:last-child { margin-bottom: 0; }
.panel-card ol { margin: 0; padding-left: 22px; color: var(--ink-muted); }
.panel-card li + li { margin-top: 6px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .button:active { transition: none; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art img { width: min(100%, 340px); }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-art { order: 2; }
  .usecase-grid, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 56px; }
  .shell { width: min(var(--shell), calc(100% - 36px)); }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 18px 20px;
    background: rgba(7, 15, 38, 0.97);
    border-bottom: 1px solid var(--line-soft);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.button) { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .button { margin-top: 10px; justify-content: center; }

  .fact-strip { grid-template-columns: 1fr 1fr; padding-bottom: 64px; }
  .usecase-grid, .steps, .card-grid, .pricing-grid { grid-template-columns: 1fr; }
  .badge-link img, .badge-link svg { height: 46px; }
  .cta-band { padding: 56px 22px; }
}
