/* ==========================================================================
   Cardless Loyalty — modern static site
   Palette kept from the original cardlessloyalty.com stylesheet.
   ========================================================================== */

:root {
  --blue: #337ab7;
  --blue-600: #2b6aa1;
  --blue-700: #235683;
  --blue-900: #16324d;
  --blue-50: #eef4fa;
  --blue-100: #dbe8f4;

  --red: #e74149;
  --red-strong: #f42703;
  --green: #41c891;
  --yellow: #ffcc00;
  --ink: #191919;
  --ink-soft: #4a4f57;
  --grey: #8c8c8c;
  --line: #dfe2ea;
  --line-soft: #d7dbe5;
  --paper: #f6f6f4;
  --night: #1a2c33;
  --white: #fff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 50, 77, .06), 0 2px 8px rgba(22, 50, 77, .05);
  --shadow: 0 10px 30px -10px rgba(22, 50, 77, .25);
  --shadow-lg: 0 30px 60px -20px rgba(22, 50, 77, .35);

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 48px, 860px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* --------------------------------------------------------------------------
   Buttons, badges, eyebrows
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(51, 122, 183, .7); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }

.btn-accent { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(231, 65, 73, .7); }
.btn-accent:hover { background: #d3343c; color: #fff; }

.btn-success { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(65, 200, 145, .7); }
.btn-success:hover { background: #34b47f; color: #fff; }

.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { color: var(--blue-900); box-shadow: var(--shadow); }

.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-700); }

.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }

.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.on-dark .eyebrow { color: #cfe2f3; }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(65, 200, 145, .25); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.on-dark .lead { color: rgba(255, 255, 255, .85); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(22, 50, 77, .35); background: rgba(255, 255, 255, .94); }

.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-more > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; border: 0; background: none;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav a:hover, .nav .nav-more > button:hover { color: var(--blue); background: var(--blue-50); }
.nav a.is-active { color: var(--blue); }
.nav > a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px;
}

.nav-more { position: relative; }
.nav-more > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-more.is-open > button svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav-more.is-open .nav-dropdown,
.nav-more:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a { display: flex; width: 100%; padding: 10px 12px; }
.nav-dropdown a small { display: block; font-weight: 500; color: var(--grey); font-size: .8rem; }

.nav-cta { margin-left: 10px; }
.nav .nav-cta .btn { padding: .75em 1.25em; font-size: .9rem; background: var(--blue); color: #fff; }
.nav .nav-cta .btn:hover { background: var(--blue-600); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px 24px 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    pointer-events: none; /* closed panel must not intercept taps (dropdown stays visibility:visible) */
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .nav {
    opacity: 1; visibility: visible; transform: none;
    pointer-events: auto;
  }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav > a.is-active::after { display: none; }
  .nav-more > button { display: none !important; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0; min-width: 0;
    border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; border-radius: 0;
  }
  .nav-dropdown a small { display: none; }
  .nav-cta { margin: 14px 0 0; }
  .nav .nav-cta .btn { width: 100%; padding: 1em; }
}

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

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-paper { background: var(--paper); }
.section-tint { background: linear-gradient(180deg, var(--blue-50), #fff); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.text-center { margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.on-dark { color: #fff; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(22, 50, 77, .55), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 110px) 0 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin: 22px 0 22px; }
.hero h1 .accent { color: var(--yellow); }
.hero .lead { max-width: 560px; margin-bottom: 34px; }

.hero-copy { padding-bottom: clamp(48px, 7vw, 100px); }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges a { display: inline-block; transition: transform .2s var(--ease); }
.store-badges a:hover { transform: translateY(-3px); }
.store-badges img { height: 52px; width: auto; }

.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .75); margin-top: 6px; }

.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-visual img.hand { position: relative; z-index: 2; width: min(380px, 80%); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
.beam-rings { position: absolute; z-index: 1; left: 50%; top: 42%; width: 0; height: 0; }
.beam-rings span {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
  animation: ring 4.5s var(--ease) infinite;
}
.beam-rings span:nth-child(2) { animation-delay: 1.5s; }
.beam-rings span:nth-child(3) { animation-delay: 3s; }

.floating-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.floating-chip small { display: block; color: var(--grey); font-weight: 500; font-size: .78rem; }
.floating-chip .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.floating-chip .ic svg { width: 20px; height: 20px; }
.floating-chip.c1 { left: 0; top: 18%; animation-delay: -2s; }
.floating-chip.c1 .ic { background: rgba(65, 200, 145, .15); color: var(--green); }
.floating-chip.c2 { right: 0; top: 55%; animation-delay: -4s; }
.floating-chip.c2 .ic { background: rgba(231, 65, 73, .12); color: var(--red); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ring { 0% { transform: scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

.hero-wave { display: block; width: 100%; height: 70px; margin-top: -1px; color: #fff; position: relative; z-index: 2; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .store-badges, .hero-stats { justify-content: center; }
  .hero-copy { padding-bottom: 10px; }
  .floating-chip { display: none; }
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 8vw, 110px);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 820px; }
.page-hero .lead { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .86); }
.page-hero .eyebrow { color: #cfe2f3; }
.page-hero .rings {
  position: absolute; right: -80px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .04), 0 0 0 120px rgba(255, 255, 255, .03);
}
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: #fff; }

.overlap { margin-top: -56px; padding-top: 0; position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

.icon-tile {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.red { background: rgba(231, 65, 73, .1); color: var(--red); }
.icon-tile.green { background: rgba(65, 200, 145, .14); color: #2ea676; }
.icon-tile.yellow { background: rgba(255, 204, 0, .18); color: #b68f00; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.on-dark .check-list li { color: rgba(255, 255, 255, .88); }

/* --------------------------------------------------------------------------
   Showcase animation (ported from the original site)
   -------------------------------------------------------------------------- */

/* The original artwork masks the phone screen with opaque white, so the stage must sit on pure white. */
.showcase-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 36px 0 28px;
}
.showcase-scaler { position: relative; margin: 0 auto; }
.showcase-stage { position: absolute; left: 50%; top: 0; width: 780px; height: 514px; transform-origin: top center; }
.showcase-stage img { position: absolute; left: 0; right: 0; margin: auto; height: 100%; width: auto; max-width: none; }

.showcase-legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; margin-top: 24px; padding: 0 16px; }
.showcase-legend span {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
@media (max-width: 480px) {
  .showcase-legend { gap: 6px; }
  .showcase-legend span { font-size: .74rem; padding: 4px 10px 4px 5px; gap: 6px; }
  .showcase-legend b { width: 18px !important; height: 18px !important; }
}
.showcase-legend b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: .72rem; }

#app-showcase-cursor { z-index: 3; opacity: 0; animation: move-cursor-into-beam-button 20s infinite; }
#app-showcase-button-pressed { z-index: 2; opacity: 0; animation: beam_button-press 20s infinite; }
#app-showcase-frame { z-index: 5; animation: beam_client_phone_move_left 20s infinite; }
#app-showcase-stamped { z-index: 2; opacity: 0; animation: client_app_stamped_anim 20s infinite; }
#store-app-showcase { z-index: 1; opacity: 0; animation: beam_store_app_anim 20s infinite; }
#beam-small { z-index: 2; opacity: 0; animation: beam-small 20s infinite; }
#beam-medium { z-index: 2; opacity: 0; animation: beam-medium 20s infinite; }
#beam-large { z-index: 2; opacity: 0; animation: beam-large 20s infinite; }
#store-app-client-here { z-index: 2; opacity: 0; animation: store-app-client-here 20s infinite; }
#store-app-stamp-button-pressed { z-index: 2; opacity: 0; animation: store-app-stamp-pressed 20s infinite; }
#store-app-stamped { z-index: 2; opacity: 0; animation: store-app-stamped 20s infinite; }
#app-showcase-logo { z-index: 1; animation: client_phone_logo_screen_slide_left 20s infinite; }
#app-showcase-no-points { z-index: 0; animation: beam_client_phone_move_left 20s infinite; }
#white-app-hide { z-index: 4; animation: white-app-hide-anim 20s infinite; }
#app-showcase-stamped-points { z-index: 3; opacity: 0; animation: client_app_stamped_points_anim 20s infinite; }
#app-showcase-stamped-points-clicked { z-index: 4; opacity: 0; animation: client_app_stamped_points_clicked_anim 20s infinite; }

@keyframes client_app_stamped_points_clicked_anim {
  0%, 71% { opacity: 0; } 72% { opacity: 1; } 73%, 100% { opacity: 0; }
}
@keyframes white-app-hide-anim {
  0% { transform: translateX(-221px); opacity: 1; }
  12% { transform: translateX(-221px); opacity: 1; }
  13% { transform: translateX(-221px); opacity: 0; }
  70% { transform: translateX(-221px); opacity: 0; }
  71% { transform: translateX(-221px); opacity: 1; }
  77% { transform: translateX(-221px); opacity: 1; }
  100% { transform: translateX(-221px); opacity: 0; }
}
@keyframes client_phone_logo_screen_slide_left {
  0%, 5% { transform: translateX(0); opacity: 1; }
  7% { transform: translateX(-221px); opacity: 1; }
  8%, 100% { transform: translateX(-221px); opacity: 0; }
}
@keyframes client_app_stamped_anim {
  64% { opacity: 0; } 65%, 100% { opacity: 1; }
}
@keyframes client_app_stamped_points_anim {
  73% { transform: translateX(-221px); opacity: 0; }
  75%, 100% { transform: translateX(0); opacity: 1; }
}
@keyframes beam_client_phone_move_left {
  0%, 15% { transform: translateX(0); }
  20%, 55% { transform: translateX(-255px); }
  65%, 100% { transform: translateX(0); }
}
@keyframes beam_store_app_anim {
  0%, 20% { transform: translateX(120px); opacity: 0; }
  25%, 35% { transform: translateX(120px); opacity: 1; }
  50%, 55% { transform: translateX(0); opacity: 1; }
  65% { transform: translateX(255px); opacity: 0; }
}
@keyframes store-app-stamped {
  51% { transform: translateX(0); opacity: 0; }
  55% { transform: translateX(0); opacity: 1; }
  65% { transform: translateX(255px); opacity: 0; }
}
@keyframes store-app-client-here {
  0%, 35% { transform: translateX(120px); opacity: 0; }
  50%, 55% { transform: translateX(0); opacity: 1; }
  65% { transform: translateX(255px); opacity: 0; }
}
@keyframes beam-small {
  0%, 19% { opacity: 0; transform: translateX(-140px); }
  20% { opacity: .7; transform: translateX(-140px); }
  27% { opacity: 0; transform: translateX(-140px); }
  27.5% { opacity: .7; transform: translateX(-140px); }
  34.5% { opacity: 0; transform: translateX(-140px); }
}
@keyframes beam-medium {
  0%, 21.5% { opacity: 0; transform: translateX(-140px); }
  22.5% { opacity: .7; transform: translateX(-140px); }
  29.5% { opacity: 0; transform: translateX(-140px); }
  30% { opacity: .7; transform: translateX(-140px); }
  37% { opacity: 0; transform: translateX(-140px); }
}
@keyframes beam-large {
  0%, 24% { opacity: 0; transform: translateX(-140px); }
  25% { opacity: .7; transform: translateX(-140px); }
  32% { opacity: 0; transform: translateX(-140px); }
  32.5% { opacity: .7; transform: translateX(-140px); }
  39.5% { opacity: 0; transform: translateX(-140px); }
}
@keyframes move-cursor-into-beam-button {
  0% { transform: translate3d(90px, -200px, 0); }
  7% { transform: translate3d(90px, -200px, 0); opacity: 0; }
  8% { transform: translate3d(90px, -200px, 0); opacity: .6; }
  13% { transform: translate3d(0, 0, 0); opacity: .6; }
  14% { transform: translate3d(0, 0, 0); opacity: 1; }
  15% { transform: translate3d(0, 0, 0); opacity: .6; }
  16% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { transform: translate3d(90px, -80px, 0); opacity: 0; }
  44% { transform: translate3d(90px, -200px, 0); opacity: 0; }
  45% { transform: translate3d(90px, -200px, 0); opacity: .6; }
  50% { transform: translate3d(0, -20px, 0); opacity: .6; }
  51% { transform: translate3d(0, -20px, 0); opacity: 1; }
  52% { transform: translate3d(0, -20px, 0); opacity: .6; }
  55% { transform: translate3d(0, -20px, 0); opacity: 0; }
  65% { transform: translate3d(90px, -200px, 0); opacity: 0; }
  66% { transform: translate3d(90px, -200px, 0); opacity: .6; }
  71% { transform: translate3d(0, -381px, 0); opacity: .6; }
  72% { transform: translate3d(0, -381px, 0); opacity: 1; }
  73% { transform: translate3d(0, -381px, 0); opacity: .6; }
  76% { transform: translate3d(0, -381px, 0); opacity: 0; }
  100% { transform: translate3d(0, -20px, 0); opacity: 0; }
}
@keyframes store-app-stamp-pressed { 50% { opacity: 0; } 51% { opacity: 1; } 52% { opacity: 0; } }
@keyframes beam_button-press { 13% { opacity: 0; } 14% { opacity: 1; } 15% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Steps (How it works)
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-100) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; }
.step-num {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  box-shadow: 0 0 0 8px #fff, 0 12px 24px -8px rgba(51, 122, 183, .7);
}
.section-paper .step-num { box-shadow: 0 0 0 8px var(--paper), 0 12px 24px -8px rgba(51, 122, 183, .7); }
.step-media {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 18px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover .step-media { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-media img { max-height: 100%; width: auto; object-fit: contain; }
.step p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }

@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Store logos marquee
   -------------------------------------------------------------------------- */

.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; padding: 10px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

.store-card {
  display: flex; align-items: center; gap: 16px; width: 340px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.store-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; flex-shrink: 0; background: #fff; border: 1px solid var(--line); padding: 4px; }
.store-card strong { display: block; font-size: 1rem; line-height: 1.25; }
.store-card span { display: block; font-size: .82rem; color: var(--grey); line-height: 1.4; margin-top: 3px; }
.store-card em { display: block; font-style: normal; font-size: .78rem; color: var(--blue); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

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

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-900) 100%);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .04), 0 0 0 100px rgba(255, 255, 255, .03);
  pointer-events: none;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Feature rows (dark)
   -------------------------------------------------------------------------- */

.dark-panel { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.dark-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 0% 0%, rgba(51, 122, 183, .35), transparent 60%),
              radial-gradient(600px 400px at 100% 100%, rgba(231, 65, 73, .12), transparent 60%);
}
.dark-panel .container { position: relative; }
.dark-panel .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.dark-panel .card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.dark-panel .card h3 { color: #fff; }
.dark-panel .card p { color: rgba(255, 255, 255, .72); }
.dark-panel .icon-tile { background: rgba(51, 122, 183, .25); color: #9cc6ea; }
.dark-panel .section-head p { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   FAQ / Articles (help + welcome)
   -------------------------------------------------------------------------- */

.docs { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .docs-aside { position: static !important; } }

.docs-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.docs-aside .card { padding: 22px; }
.docs-aside .card:hover { transform: none; }
.docs-aside h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 12px; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .92rem; color: var(--ink-soft); line-height: 1.35;
  counter-increment: toc;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 800; color: #9db7d1; font-size: .8rem; padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--blue-50); color: var(--blue-700); }
.toc a.is-active::before { color: var(--blue); }

.search-box { position: relative; margin-bottom: 24px; }
.search-box svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--grey); }
.search-box input {
  width: 100%; padding: 16px 18px 16px 50px; border-radius: 14px; border: 1px solid var(--line);
  font: inherit; font-size: 1rem; background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(51, 122, 183, .15); }

.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); font-size: .85rem; font-weight: 800;
}
.faq summary .chev { margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: transform .3s var(--ease), background .2s; }
.faq summary .chev svg { width: 16px; height: 16px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq details[open] .q-num { background: var(--blue); color: #fff; }
.faq .answer { padding: 0 24px 24px 76px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--ink); }
@media (max-width: 560px) { .faq .answer { padding-left: 24px; } }
.faq-empty { display: none; text-align: center; padding: 40px; color: var(--grey); }

kbd, .ui-label {
  display: inline-block; font-family: inherit; font-size: .82em; font-weight: 700; letter-spacing: .03em;
  padding: 1px 8px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100);
}
.ui-label.yellow { background: rgba(255, 204, 0, .18); color: #8a6c00; border-color: rgba(255, 204, 0, .45); }
.ui-label.green { background: rgba(65, 200, 145, .15); color: #23845d; border-color: rgba(65, 200, 145, .4); }

.note {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; margin: 14px 0 0;
  background: rgba(255, 204, 0, .12); border: 1px solid rgba(255, 204, 0, .4); color: #6b5500; font-size: .95rem;
}
.note svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.team-card .photo { aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .body { padding: 26px 28px 30px; }
.team-card h3 { margin: 0 0 4px; }
.team-card .role { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-row .card { text-align: center; }
.stat-row strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--grey); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(51, 122, 183, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(231, 65, 73, .12); }
.field .error { display: none; color: var(--red); font-size: .8rem; margin-top: 6px; font-weight: 600; }
.field.has-error .error { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-foot small { color: var(--grey); }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .icon-tile { margin: 0 auto 18px; width: 72px; height: 72px; border-radius: 50%; }
.form-success .icon-tile svg { width: 34px; height: 34px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Single-column form card (reset password) */
.form-card.compact { max-width: 520px; margin-inline: auto; }
.form-card.compact form { display: grid; gap: 18px; }
.form-card.compact h2 { font-size: 1.6rem; }
.form-card.compact .intro { color: var(--ink-soft); margin: 0 0 24px; }
.form-status { text-align: center; padding: 10px 0; animation: pop .5s var(--ease); }
.form-status .icon-tile { margin: 0 auto 18px; width: 72px; height: 72px; border-radius: 50%; }
.form-status .icon-tile svg { width: 34px; height: 34px; }
.form-status p { color: var(--ink-soft); margin: 0 0 24px; }
.form-alert {
  display: flex; gap: 10px; align-items: center; margin: 0 0 20px; padding: 12px 16px;
  border-radius: 12px; background: rgba(231, 65, 73, .08); color: #c22f37; font-weight: 600; font-size: .92rem;
}
.form-alert svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-card a { font-weight: 700; font-size: 1.1rem; word-break: break-word; }
.contact-card p { font-size: .9rem; }
.qr-card { text-align: center; }
.qr-card img { width: 180px; margin: 0 auto 14px; border-radius: 12px; }

/* --------------------------------------------------------------------------
   Prose (privacy)
   -------------------------------------------------------------------------- */

.prose { color: var(--ink-soft); }
.prose h2 { font-size: 1.45rem; color: var(--ink); margin: 2.4em 0 .6em; padding-top: .2em; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); }

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

.site-footer { background: var(--night); color: rgba(255, 255, 255, .75); padding: 72px 0 28px; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 10% 0%, rgba(51, 122, 183, .3), transparent 60%);
}
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.footer-badges img { height: 40px; width: auto; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--blue); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding-top: 24px; font-size: .85rem;
}

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

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue-700); }
.back-to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
