/* Cheque-Mate SITE-2.3 — the app's glass language, on the web.
   Tokens mirror folder-app/theme.css + the OG card: deep teal→navy world,
   real glass (backdrop-filter works here), SF Rounded identity, participant
   palette accents. Mobile-first; desktop enriches. */

:root {
  --bg-0: #04090d;
  --bg-1: #071a1f;
  --bg-2: #0a2a30;
  --teal: #40c8e0;
  --cyan: #59d9ea;
  --ink: rgba(255, 255, 255, 0.92);
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.38);
  --glass-fill: rgba(255, 255, 255, 0.055);
  --glass-line: rgba(255, 255, 255, 0.14);
  --red: #ff453a; --blue: #0a84ff; --green: #30d158;
  --orange: #ff9f0a; --purple: #bf5af2;
  --radius: 22px;
  --font: ui-rounded, -apple-system, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 34%, var(--bg-0) 100%) fixed;
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Ambient orbs ─────────────────────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-teal   { width: 44vmax; height: 44vmax; top: -14vmax; left: -10vmax;
              background: radial-gradient(circle, rgba(64,200,224,0.55), transparent 65%);
              animation: drift 26s ease-in-out infinite alternate; }
.orb-purple { width: 34vmax; height: 34vmax; bottom: -12vmax; right: -8vmax;
              background: radial-gradient(circle, rgba(191,90,242,0.28), transparent 65%);
              animation: drift 32s ease-in-out infinite alternate-reverse; }
.orb-cyan   { width: 26vmax; height: 26vmax; top: 46%; left: 58%;
              background: radial-gradient(circle, rgba(89,217,234,0.18), transparent 65%);
              animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}

/* ── Glass recipe ─────────────────────────────────────────── */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 34px rgba(0, 0, 0, 0.35);
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1060px, calc(100% - 28px));
  display: flex; align-items: center; gap: 20px;
  padding: 10px 14px 10px 12px; border-radius: 999px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.nav-icon { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: none; gap: 22px; margin-left: auto; font-size: 15px; color: var(--ink-dim); }
.nav-links a { transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  margin-left: auto; padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  color: #04252d; font-weight: 700; font-size: 15px;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s;
  box-shadow: 0 4px 18px rgba(64, 200, 224, 0.35);
}
.nav-cta:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 6px 24px rgba(64, 200, 224, 0.5); }
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* ── Layout primitives ────────────────────────────────────── */
main { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-title {
  font-size: clamp(26px, 4.4vw, 40px); font-weight: 800;
  text-align: center; letter-spacing: -0.5px; margin-bottom: clamp(30px, 5vw, 54px);
}
.accent { color: var(--teal); }
.kicker {
  color: var(--teal); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 10px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: grid; align-items: center; gap: 40px;
  grid-template-columns: 1fr; padding-top: 120px;
}
.hero-title {
  font-size: clamp(46px, 9vw, 88px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.04;
}
.reveal-word {
  display: inline-block; opacity: 0; transform: translateY(26px) scale(0.96);
  animation: word-in 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}
.reveal-word:nth-child(2) { animation-delay: 0.14s; }
.reveal-word:nth-child(3) { animation-delay: 0.28s; }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero-sub {
  margin-top: 20px; font-size: clamp(17px, 2.3vw, 21px);
  color: var(--ink-dim); max-width: 46ch;
}
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.appstore-badge { height: 52px; width: auto; transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1); }
a:hover > .appstore-badge { transform: scale(1.04); }

.mates-row { display: flex; }
.mate {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  margin-left: -12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.mate:first-child { margin-left: 0; }
.mates-row:hover .mate { transform: translateY(-4px); }
.mates-row:hover .mate:nth-child(2) { transition-delay: 0.04s; }
.mates-row:hover .mate:nth-child(3) { transition-delay: 0.08s; }
.mates-row:hover .mate:nth-child(4) { transition-delay: 0.12s; }
.mates-row:hover .mate:nth-child(5) { transition-delay: 0.16s; }
.m-red { background: var(--red); } .m-blue { background: var(--blue); }
.m-green { background: var(--green); } .m-orange { background: var(--orange); }
.m-purple { background: var(--purple); }
.dark-ink { color: rgba(0, 0, 0, 0.8); }

.hero-visual { position: relative; justify-self: center; padding-top: 30px; }
.hero-mascot {
  position: absolute; width: clamp(110px, 16vw, 170px);
  top: -12px; right: -34px; z-index: 2;
  transform: rotate(9deg);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}
.float { animation: float 5.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual { justify-self: end; }
}

/* ── Placeholder frames (replace with real screenshots) ───── */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(64, 200, 224, 0.05) 0 14px, transparent 14px 28px),
    var(--glass-fill);
  border: 2px dashed rgba(64, 200, 224, 0.45);
  display: grid; place-items: center; overflow: hidden;
}
.ph-label {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 22px; max-width: 240px;
}
.ph-icon { font-size: 30px; }
.ph-label strong { font-size: 15px; color: var(--teal); }
.ph-label em { font-style: normal; font-size: 12.5px; color: var(--ink-faint); line-height: 1.45; }

.phone {
  width: clamp(230px, 26vw, 290px); aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Real screenshots inside the frames */
.shot {
  position: relative; overflow: hidden;
  background: #0a0f14;
  border: 1px solid var(--glass-line);
}
.shot > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.browser.shot > img {
  top: 34px; height: calc(100% - 34px); border-radius: 0;
  /* Anchor to the screenshot's top so the folder title never crops away. */
  object-position: top center;
}
.phone-mini { width: clamp(130px, 14vw, 170px); border-radius: 26px; position: absolute; right: 4px; bottom: -26px; z-index: 2; }
/* Small screens: the browser frame tells the story alone — the overlapping
   mini phone collides with its caption at phone widths. */
@media (max-width: 640px) { .phone-mini { display: none; } }
.phone-mini .ph-label { padding: 10px; }
.phone-mini .ph-icon { font-size: 20px; }
.phone-mini strong { font-size: 11px; }
.phone-mini em { font-size: 9.5px; }

.browser {
  width: min(560px, 100%); aspect-ratio: 16 / 10.6;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.browser-chrome {
  position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--glass-line);
  display: flex; align-items: center; gap: 7px; padding-left: 14px;
}
.browser-chrome span { width: 11px; height: 11px; border-radius: 50%; }
.browser-chrome span:nth-child(1) { background: #ff5f57; }  /* macOS traffic lights */
.browser-chrome span:nth-child(2) { background: #febc2e; }
.browser-chrome span:nth-child(3) { background: #28c840; }

/* ── How it works ─────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px 24px; transition: transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1), box-shadow 0.35s; }
.step:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 44px rgba(0, 0, 0, 0.45); }
.step-num {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  color: #04252d; font-weight: 800; font-size: 19px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 15.5px; }

/* ── Feature sections ─────────────────────────────────────── */
.feature {
  display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.05fr 0.95fr; }
  .feature.flip .feature-copy { order: 2; }
  .feature.flip .feature-visual { order: 1; }
}
.feature h2 { font-size: clamp(26px, 3.8vw, 36px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.feature-copy > p { color: var(--ink-dim); font-size: 16.5px; max-width: 52ch; }
.feature-visual {
  justify-self: center; position: relative; width: 100%;
  display: grid; justify-items: center;
}

.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-dim); font-size: 15.5px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(64, 200, 224, 0.16); color: var(--teal);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}

.pay-logos { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.pay-logos img {
  height: 40px; width: 40px; object-fit: contain; border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.pay-logos img:hover { transform: translateY(-4px) scale(1.08); }

/* ── And more ─────────────────────────────────────────────── */
.more-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .more-grid { grid-template-columns: repeat(4, 1fr); } }
.more-card { padding: 26px 22px; transition: transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1); }
.more-card:hover { transform: translateY(-6px); }
.more-emoji { font-size: 28px; display: block; margin-bottom: 12px; }
.more-card h3 { font-size: 17px; margin-bottom: 7px; }
.more-card p { color: var(--ink-dim); font-size: 14.5px; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  text-align: center; padding: clamp(48px, 7vw, 80px) 24px;
  display: grid; justify-items: center; gap: 22px;
  margin-bottom: 40px; position: relative; overflow: hidden;
}
.cta-mascot { width: 120px; transform: rotate(-7deg); filter: drop-shadow(0 12px 22px rgba(0,0,0,0.4)); }
.cta h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  width: min(1060px, calc(100% - 40px)); margin: 0 auto;
  padding: 26px 0 40px; display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-faint); font-size: 14px; flex-wrap: wrap; gap: 12px;
}
.footer nav { display: flex; gap: 20px; }
.footer a { transition: color 0.25s; }
.footer a:hover { color: var(--ink); }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1.2, 0.36, 1);
  transition-delay: var(--stagger, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Reduce Motion: everything lands instantly, nothing drifts ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .float { animation: none; }
  .reveal, .reveal-word { opacity: 1; transform: none; transition: none; animation: none; }
  .step:hover, .more-card:hover, .mates-row:hover .mate { transform: none; }
}
