/* Paytiva landing page — hand-written CSS, no build step.
   Design tokens match the original Paytiva design system. */

:root {
  --navy: hsl(222 58% 29%);          /* #1f3a76 */
  --blue: hsl(197 67% 62%);          /* #5cb6e0 */
  --foreground: hsl(222 54% 29%);
  --muted: hsl(210 40% 96%);
  --muted-foreground: hsl(222 30% 45%);
  --border: hsl(214 32% 91%);
  --success: hsl(142 71% 45%);
  --background: #fff;
  --radius: 0.75rem;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.icon       { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm    { width: 1rem;    height: 1rem;    flex-shrink: 0; }
.icon-lg    { width: 2rem;    height: 2rem;    flex-shrink: 0; }
.icon-blue    { color: var(--blue); }
.icon-success { color: var(--success); }

.muted { color: var(--muted-foreground); }
.status-success { color: var(--success); font-weight: 500; }
.status-blue    { color: var(--blue);    font-weight: 500; }

/* ---------- Accessibility ---------- */

.skip-link {
  z-index: 100;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-150%);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

/* ---------- Animations ---------- */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; opacity: 1; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: hsl(222 58% 29% / 0.9);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.btn-pill {
  min-width: 200px;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
}

.btn-pill-blue {
  background: var(--blue);
  color: var(--navy);
}

.btn-pill-blue:hover {
  background: hsl(197 67% 62% / 0.9);
}

.btn-pill-outline {
  border: 2px solid hsl(222 58% 29% / 0.5);
  color: var(--navy);
  background: transparent;
}

.btn-pill-outline:hover {
  background: hsl(222 58% 29% / 0.1);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(214 32% 91% / 0.4);
  background: hsl(0 0% 100% / 0.95);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: hsl(0 0% 100% / 0.6);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-header { height: 2rem;   width: auto; }
.logo-footer { height: 1.5rem; width: auto; }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.desktop-nav a:hover {
  color: var(--navy);
}

/* Mobile menu (CSS-only toggle) */

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-button {
  display: flex;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-button .icon-close { display: none; }

.menu-toggle:checked ~ .header-inner .menu-button .icon-menu  { display: none; }
.menu-toggle:checked ~ .header-inner .menu-button .icon-close { display: block; }

.menu-toggle:focus-visible ~ .header-inner .menu-button {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.menu-toggle:checked ~ .mobile-nav {
  display: flex;
}

.mobile-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.5rem 0;
}

.mobile-nav a:hover {
  color: var(--navy);
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-button { display: none; }
  .menu-toggle:checked ~ .mobile-nav { display: none; }
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: relative;
  height: 500px;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: hsl(222 58% 29% / 0.6);
}

.hero-headline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-headline h1 {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.headline-white { color: #fff; }
.headline-blue  { color: var(--blue); }

.hero-content {
  padding: 3rem 0;
  text-align: center;
}

.hero-subtext {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .hero-headline h1 { font-size: 3rem; }
  .hero-ctas { flex-direction: row; }
}

@media (min-width: 768px) {
  .hero-image { height: 550px; }
  .hero-content { padding: 4rem 0; }
  .hero-subtext { font-size: 1.25rem; }
  .trust-indicators { gap: 2.5rem; font-size: 1rem; }
}

@media (min-width: 1024px) {
  .hero-image { height: 600px; }
  .hero-headline h1 { font-size: 3.75rem; }
  .hero-subtext { font-size: 1.5rem; }
}

@media (min-width: 1280px) {
  .hero-headline h1 { font-size: 4.5rem; }
}

/* ---------- Sections ---------- */

.section {
  padding: 5rem 0;
}

.section-muted {
  background: hsl(210 40% 96% / 0.3);
}

.section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow + h2 {
  margin: 0.75rem 0 1.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
  .section h2 { font-size: 2.25rem; }
}

/* ---------- Two-column layout ---------- */

.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.visual {
  display: flex;
  justify-content: center;
}

.order-last-mobile {
  order: 2;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .visual-end   { justify-content: flex-end; }
  .visual-start { justify-content: flex-start; }
  .order-last-mobile { order: 0; }
}

/* ---------- Consumer section ---------- */

.benefit-group {
  margin-bottom: 2rem;
}

.benefit-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-list .icon {
  margin-top: 0.125rem;
}

/* ---------- Cards & visuals ---------- */

.glow-wrap {
  position: relative;
}

.glow {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  filter: blur(40px);
  transform: scale(1.1);
  z-index: -1;
}

.glow-blue {
  background: linear-gradient(to bottom right, hsl(197 67% 62% / 0.2), hsl(222 58% 29% / 0.1));
}

.glow-navy {
  background: linear-gradient(to bottom right, hsl(222 58% 29% / 0.1), hsl(197 67% 62% / 0.2));
}

.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.payment-card {
  padding: 2rem;
  max-width: 24rem;
}

.card-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 1rem;
}

.card-note-left {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.success-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: hsl(142 71% 45% / 0.1);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* ---------- Business section ---------- */

.transactions-card {
  overflow: hidden;
  min-width: 18rem;
}

.transactions-header {
  background: hsl(222 58% 29% / 0.05);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.transactions-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.transactions-list .transaction-row {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.transaction-row + .transaction-row {
  border-top: 1px solid var(--border);
}

.tx-id {
  font-weight: 500;
  color: var(--navy);
}

.business-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(197 67% 62% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.benefit p {
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-row { flex-direction: row; }
  .transactions-list .transaction-row { font-size: 1rem; }
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

.chip {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  cursor: default;
}

.chips-tagline {
  text-align: center;
  color: var(--muted-foreground);
  margin-top: 2.5rem;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .chips { gap: 1rem; }
  .chip { font-size: 1rem; }
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(to bottom right, var(--navy), var(--navy), hsl(222 58% 29% / 0.9));
}

.final-cta-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
}

/* ---------- Legal pages (privacy, terms) ---------- */

.legal-page .container {
  max-width: 48rem;
}

.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.legal-page p + p {
  margin-top: 1rem;
}

.legal-page a {
  color: var(--navy);
}

.legal-page h2 {
  margin: 2.5rem 0 1rem;
}

.legal-page ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.privacy-table th,
.privacy-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  min-width: 8rem;
}

.privacy-table thead th {
  min-width: 0;
}

.privacy-table .facts-cell {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.privacy-table td p + p {
  margin-top: 0.75rem;
}

.sharing-table td:nth-child(2),
.sharing-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.legal-page h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-page ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.legal-page ol li + li,
.legal-page ul li + li {
  margin-top: 0.5rem;
}

.legal-definitions dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1rem;
}

.legal-definitions dd {
  margin: 0.25rem 0 0;
}

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

.site-footer {
  padding: 3rem 0;
  background: hsl(210 40% 96% / 0.5);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links a {
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--navy);
}

.copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; }
}
