/* PayZolo website. Colors match the app (mobile/src/shared/theme.ts). */
:root {
  --bg-gray: #F2F2F7;
  --card: #FFFFFF;
  --text: #000000;
  --muted: #6E6E73;
  --line: #E5E5EA;
  --blue: #007AFF;
  --blue-soft: #EAF3FF;
  --radius-card: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Stop iPhones from enlarging small text on their own */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; font-size: 15px; padding: 10px 18px;
  white-space: nowrap; /* button text stays on one line */
}
.btn-blue { background: var(--blue); color: #FFFFFF; }
.btn-plain { color: var(--blue); }
.btn-big { font-size: 17px; padding: 15px 26px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button-row-center { justify-content: center; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
/* Logo: the "payzolo" wordmark image (website/brand/). */
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 26px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Phone menu: the ☰ button and the menu-only "Log in" link. Hidden on desktop; turned on below for phones. */
.nav-menu-btn, .nav-menu-only { display: none; }
.nav-menu-btn {
  width: 40px; height: 40px; margin-left: 4px; margin-right: -8px; border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
/* three lines that turn into an X when the menu is open */
.nav-menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.nav.menu-open .nav-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 1. Hero */
.hero { padding: 80px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
h1 { font-size: 56px; line-height: 1.06; letter-spacing: -1.5px; font-weight: 700; }
.accent { color: var(--blue); }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 24px 0 32px; max-width: 540px; }

/* 2. Ways your customers can pay: scrolling strip.
   The track holds the list twice and slides left by one copy, then starts over, so it loops without a jump.
   Speed: change --marquee-time (bigger = slower). */
.pay-bar { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.pay-bar-title { text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 24px; }
.marquee {
  --marquee-time: 30s;
  /* A centered band, narrower than one full set of logos, so the same logo never shows twice. */
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-time) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-list { display: flex; align-items: center; list-style: none; }
.logo-item { display: flex; align-items: center; height: 44px; margin: 0 36px; }
/* Official brand files (website/logos/), shown as they come: brands don't allow recoloring.
   40px tall by default; the lines below size the long or oddly shaped ones so they look even. */
.logo-item img { height: 40px; width: auto; display: block; }
/* Affirm's arc sits above the word, so it's drawn smaller and lifted to line the word up with the other logos. */
.logo-item img.logo-affirm { height: 30px; transform: translateY(-5px); }
/* Amazon Pay is a long, flat logo with the smile under the letters: drawn smaller and nudged down. */
.logo-item img.logo-amazonpay { height: 26px; transform: translateY(3px); }
.logo-item img.logo-visa { height: 22px; }
.logo-item img.logo-mastercard { height: 34px; }
.logo-item img.logo-cashapp { height: 30px; }
.logo-item img.logo-amex { height: 44px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* People who turn off motion on their device get a still, wrapped row. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .logo-list { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .logo-list[aria-hidden="true"] { display: none; }
}

/* Shared section styles */
.section { padding: 96px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { color: var(--blue); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
h2 { font-size: 42px; line-height: 1.1; letter-spacing: -1px; font-weight: 700; }
h3 { font-size: 20px; letter-spacing: -0.3px; margin-bottom: 8px; }
.sub { font-size: 19px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.example { font-style: italic; color: #3A3A3C; }

/* 3. How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step > p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.step > .example { color: #3A3A3C; }
/* The step animations are in how.css */
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
  color: #FFFFFF !important; font-weight: 700; font-size: 15px !important;
  display: grid; place-items: center; margin-bottom: 12px;
}

/* 4. Flexible payment options */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.option { background: var(--card); border-radius: var(--radius-card); padding: 26px; }
.option .example { font-size: 16px; line-height: 1.5; }

/* 5. Security */
.security { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-item { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.sec-item p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Closing call to action */
.final { background: #000000; color: #FFFFFF; border-radius: 28px; padding: 64px 32px; text-align: center; }
.final .button-row { margin-top: 28px; }

/* Footer */
.footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }

/* Tablets */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps, .options, .security { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  /* Top bar on phones: logo, Start for free, ☰. "Log in" moves into the menu. */
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-plain { display: none; }
  .nav-actions .btn { padding: 9px 14px; }
  .nav-inner { gap: 8px; }
  .nav-menu-btn { display: flex; }
  /* The menu: the top-bar links, dropped down under the bar while open */
  .nav-links { display: none; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; padding: 6px 0 10px;
    background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }
  .nav.menu-open .nav-links a { display: block; padding: 13px 20px; font-size: 17px; color: var(--text); }
  .nav.menu-open .nav-links .nav-menu-only { color: var(--blue); font-weight: 600; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  /* Hero on phones: centered headline, then the animation right away, then the paragraph and buttons.
     The hero text box "dissolves" (display: contents) so its pieces can sit around the phone. */
  .hero { padding: 32px 0 48px; }
  .hero-inner { display: flex; flex-direction: column; gap: 24px; }
  .hero-text { display: contents; text-align: center; }
  .hero h1 { order: 1; text-align: center; }
  .hero-phone { order: 2; zoom: 0.85; }
  .lede { order: 3; font-size: 17px; margin: 0 auto; text-align: center; }
  .hero .button-row { order: 4; flex-direction: column; align-items: stretch; gap: 4px; }
  .hero .button-row .btn-plain { font-size: 15px; padding: 10px; }
  h2 { font-size: 30px; }
  .section { padding: 64px 0; }
  .steps, .options, .security { grid-template-columns: 1fr; }
  .final { padding: 48px 20px; }
}
