/* ==========================================================================
   Andypay — premium light fintech landing
   Luminous white surfaces · sunset gradient signature · Space Grotesk + Inter
   ========================================================================== */

:root {
  --bg: #fbfbfd;
  --bg-2: #f4f4f7;
  --surface: #ffffff;
  --ink: #0d0e12;
  --ink-2: #5a5d6b;
  --ink-3: #9a9da9;
  --line: #ebebf0;
  --coral: #f0502e;
  --grad: linear-gradient(135deg, #ff8a3d 0%, #f0502e 50%, #e3398b 100%);
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 22px;
  --shell: 1200px;
  --sh-sm: 0 1px 2px rgba(13, 14, 18, .04), 0 2px 6px rgba(13, 14, 18, .04);
  --sh-md: 0 2px 8px rgba(13, 14, 18, .05), 0 14px 34px rgba(13, 14, 18, .07);
  --sh-lg: 0 4px 14px rgba(13, 14, 18, .06), 0 30px 70px rgba(13, 14, 18, .12);
  --sh-glow: 0 20px 50px rgba(240, 80, 46, .22);
  --ease: cubic-bezier(.22, .68, 0, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(240, 80, 46, .16); color: var(--ink); }

.ap-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.ap-grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
[data-rise] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════ BUTTONS ════════════════ */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.01em;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.ap-btn svg { width: 17px; height: 17px; }
.ap-btn:active { transform: scale(.97); }

.ap-btn--grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 14, 18, .1), 0 10px 24px rgba(240, 80, 46, .26);
}
.ap-btn--grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 14, 18, .12), 0 16px 34px rgba(240, 80, 46, .36);
}
.ap-btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.ap-btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: #dcdce3; }
.ap-btn--soft {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.ap-btn--soft:hover { background: #ececf1; transform: translateY(-2px); }
.ap-btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(13, 14, 18, .18);
}
.ap-btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(13, 14, 18, .26); }
.ap-btn--clear {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(6px);
}
.ap-btn--clear:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.ap-btn--lg { height: 52px; padding: 0 28px; font-size: 15.5px; border-radius: 12px; }
.ap-btn--wide { width: 100%; }

/* ════════════════ HEADER ════════════════ */
.ap-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, .72);
  transition: box-shadow .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.ap-head.is-stuck {
  background: rgba(251, 251, 253, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(13, 14, 18, .02);
}
.ap-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}
.ap-brand__mark { width: 32px; height: 32px; }
.ap-brand__mark svg { width: 100%; height: 100%; border-radius: 9px; }

.ap-nav {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ap-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.ap-nav a:hover { color: var(--ink); background: var(--bg-2); }

.ap-head__act { display: flex; align-items: center; gap: 8px; }

.ap-lang { position: relative; }
.ap-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.ap-lang__btn:hover { background: var(--bg-2); color: var(--ink); }
.ap-lang__globe { width: 16px; height: 16px; }
.ap-lang__chev { width: 13px; height: 13px; transition: transform .22s var(--ease); }
.ap-lang.open .ap-lang__chev { transform: rotate(180deg); }
.ap-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  padding: 6px;
  min-width: 168px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.ap-lang.open .ap-lang__menu { opacity: 1; visibility: visible; transform: none; }
.ap-lang__menu button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: 9px;
  transition: background .15s, color .15s;
}
.ap-lang__menu button:hover { background: var(--bg-2); color: var(--ink); }
.ap-lang__menu button.is-on { color: var(--coral); font-weight: 600; background: rgba(240, 80, 46, .07); }

.ap-signin {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.ap-signin:hover { color: var(--ink); background: var(--bg-2); }

.ap-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ap-burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .26s var(--ease), opacity .2s;
}
.ap-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ap-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ap-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ap-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 14px 24px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.ap-mobile.open { display: flex; }
.ap-mobile a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 13px 8px;
  border-radius: 10px;
}
.ap-mobile a:hover { background: var(--bg-2); color: var(--ink); }
.ap-mobile__signin { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px !important; }
.ap-mobile .ap-btn { margin-top: 10px; height: 50px; }

/* ════════════════ HERO ════════════════ */
.ap-hero {
  position: relative;
  padding: 78px 0 96px;
  overflow: hidden;
}
.ap-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 14, 18, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 14, 18, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 70% 56% at 50% 32%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 56% at 50% 32%, #000 0%, transparent 78%);
  pointer-events: none;
}
.ap-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ap-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.ap-mesh--a {
  width: 560px; height: 420px;
  top: -90px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ff8a3d, transparent 68%);
  opacity: .42;
}
.ap-mesh--b {
  width: 420px; height: 380px;
  top: 120px; left: 8%;
  background: radial-gradient(circle, #e3398b, transparent 70%);
  opacity: .26;
}
.ap-mesh--c {
  width: 440px; height: 380px;
  top: 160px; right: 6%;
  background: radial-gradient(circle, #f0502e, transparent 70%);
  opacity: .24;
}

.ap-hero__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.ap-eyebrow:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.ap-eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(240, 80, 46, .14);
}
.ap-eyebrow svg { width: 13px; height: 13px; color: var(--coral); }

.ap-hero__title {
  margin-top: 26px;
  font-size: clamp(2.5rem, 6.2vw, 4.45rem);
  font-weight: 600;
  letter-spacing: -.032em;
  line-height: 1.04;
  max-width: 16ch;
}
.ap-hero__sub {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.62;
}
.ap-hero__cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.ap-hero__trust {
  margin-top: 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.ap-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.ap-hero__trust svg {
  width: 15px; height: 15px;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
  padding: 2.5px;
}

/* ── Hero product app mockup ── */
.ap-hero__app {
  position: relative;
  margin-top: 64px;
  width: 100%;
  max-width: 1000px;
}
.ap-hero__app::before {
  content: "";
  position: absolute;
  inset: -8% -6% -14%;
  background: var(--grad);
  filter: blur(80px);
  opacity: .26;
  border-radius: 50%;
  z-index: -1;
}
.ap-app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.ap-app__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ap-app__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #e0e0e7;
}
.ap-app__dot:nth-child(1) { background: #ff8a3d; }
.ap-app__dot:nth-child(2) { background: #f0c23d; }
.ap-app__dot:nth-child(3) { background: #4cc98a; }
.ap-app__url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 14px;
}
.ap-app__body { display: flex; }
.ap-app__side {
  width: 188px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg);
}
.ap-app__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 4px 8px 14px;
}
.ap-app__logo svg { width: 22px; height: 22px; border-radius: 7px; }
.ap-app__nav {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 10px;
  border-radius: 8px;
}
.ap-app__nav--on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
.ap-app__main { flex: 1; padding: 24px; min-width: 0; }
.ap-app__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ap-app__ey {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ap-app__big {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 5px 0 4px;
}
.ap-app__delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f9d57;
}
.ap-app__delta svg { width: 13px; height: 13px; }
.ap-app__delta em { color: var(--ink-3); font-weight: 500; font-style: normal; }
.ap-app__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--coral);
  background: rgba(240, 80, 46, .09);
  border-radius: 999px;
  padding: 5px 11px;
}
.ap-app__pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.ap-app__chart {
  position: relative;
  height: 150px;
  margin-bottom: 16px;
}
.ap-app__chart svg { width: 100%; height: 100%; }
.ap-app__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.ap-app__stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
}
.ap-app__stat span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.ap-app__stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.ap-app__tx {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.ap-app__txrow {
  display: grid;
  grid-template-columns: 1.7fr 1.2fr .9fr .9fr;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.ap-app__txrow:last-child { border-bottom: none; }
.ap-app__txrow--head {
  background: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.ap-app__cust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-app__cust i {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-app__meth { color: var(--ink-2); }
.ap-app__amt { font-weight: 700; text-align: right; }
.ap-tag {
  justify-self: start;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.ap-tag--ok { color: #1f9d57; background: rgba(31, 157, 87, .1); }
.ap-tag--warn { color: #c98a16; background: rgba(201, 138, 22, .12); }

.ap-hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: var(--sh-lg);
}
.ap-hero__chip strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.ap-hero__chip em {
  font-size: 11.5px;
  font-style: normal;
  color: var(--ink-3);
}
.ap-hero__chipic {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-hero__chipic svg { width: 17px; height: 17px; }
.ap-hero__chipic--shield { background: linear-gradient(135deg, #1f9d57, #14794a); }
.ap-hero__chip--1 { top: 16%; left: -28px; animation: ap-float 6s ease-in-out infinite; }
.ap-hero__chip--2 { bottom: 16%; right: -26px; animation: ap-float 6s ease-in-out infinite 3s; }
@keyframes ap-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-hero__chip { animation: none; }
}

/* ════════════════ LOGOS STRIP ════════════════ */
.ap-logos {
  padding: 30px 0 18px;
  border-bottom: 1px solid var(--line);
}
.ap-logos__label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.ap-logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 48px;
}
.ap-wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-3);
  opacity: .82;
  transition: color .2s, opacity .2s;
}
.ap-wordmark:hover { color: var(--ink-2); opacity: 1; }

/* ════════════════ SECTION HEADS ════════════════ */
.ap-sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.ap-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--coral);
  margin-bottom: 16px;
}
.ap-kicker--sm { margin-bottom: 13px; }
.ap-h2 {
  font-size: clamp(1.85rem, 3.7vw, 2.85rem);
  letter-spacing: -.03em;
}
.ap-h2--left { text-align: left; }
.ap-h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -.026em;
}
.ap-sec-sub {
  margin-top: 17px;
  font-size: 1.06rem;
  color: var(--ink-2);
  line-height: 1.62;
}
.ap-sec-sub--left { margin-left: 0; }

/* ════════════════ METRICS ════════════════ */
.ap-metrics { padding: 64px 0; }
.ap-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 40px 28px;
}
.ap-metric {
  text-align: center;
  position: relative;
}
.ap-metric:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px;
  background: var(--line);
}
.ap-metric__n {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ap-metric__l {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ════════════════ FEATURE DEEP-DIVES ════════════════ */
.ap-feat { padding: 56px 0 90px; }
.ap-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 50px 0;
}
.ap-deep--rev .ap-deep__text { order: 2; }
.ap-deep--rev .ap-deep__art { order: 1; }
.ap-deep__p {
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--ink-2);
  line-height: 1.64;
}
.ap-checks {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap-checks li {
  position: relative;
  padding-left: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.ap-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 21px; height: 21px;
  border-radius: 7px;
  background: rgba(240, 80, 46, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23f0502e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── shared mockup shell ── */
.ap-mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 24px;
}
.ap-mock::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background: var(--grad);
  filter: blur(70px);
  opacity: .15;
  border-radius: 50%;
  z-index: -1;
}

/* checkout mockup */
.ap-co {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.ap-co__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ap-co__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.ap-co__brand svg { width: 22px; height: 22px; border-radius: 7px; }
.ap-co__lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1f9d57;
}
.ap-co__lock svg { width: 13px; height: 13px; }
.ap-co__sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ap-co__sum span { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.ap-co__sum strong { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; }
.ap-co__field { margin-bottom: 12px; }
.ap-co__field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.ap-co__inp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.ap-co__inp--card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.ap-co__visa {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: #1a1f71;
  border-radius: 4px;
  padding: 3px 6px;
}
.ap-co__exp { margin-left: auto; color: var(--ink-3); }
.ap-co__wallets {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.ap-co__wallets span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
}
.ap-co__pay {
  width: 100%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: var(--r-sm);
  padding: 13px;
  box-shadow: var(--sh-glow);
}
.ap-co__by {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 12px;
}

/* payout mockup */
.ap-po {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.ap-po__top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.ap-po__ey {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.ap-po__big {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 6px 0 5px;
}
.ap-po__sched {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  background: rgba(240, 80, 46, .08);
  border-radius: 999px;
  padding: 4px 11px;
}
/* payout · fund-state stacked bar */
.ap-po__split { margin-bottom: 18px; }
.ap-po__bar {
  display: flex;
  gap: 3px;
  height: 14px;
  margin-bottom: 14px;
}
.ap-po__seg {
  width: var(--w);
  border-radius: 4px;
}
.ap-po__seg--a { background: var(--grad); }
.ap-po__seg--b { background: rgba(240, 80, 46, .34); }
.ap-po__seg--c { background: var(--line); }
.ap-po__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-po__legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.ap-po__legend i {
  width: 9px; height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ap-po__dot--a { background: var(--grad); }
.ap-po__dot--b { background: rgba(240, 80, 46, .34); }
.ap-po__dot--c { background: var(--line); }
.ap-po__legend b {
  margin-left: auto;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

/* payout · weekly bar chart */
.ap-po__week {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px 12px;
}
.ap-po__weekey {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.ap-po__cols {
  display: flex;
  align-items: flex-end;
  gap: 9%;
  height: 84px;
}
.ap-po__cols span {
  position: relative;
  flex: 1;
  height: var(--h);
  min-height: 8px;
  background: linear-gradient(180deg, rgba(240, 80, 46, .5), rgba(240, 80, 46, .14));
  border-radius: 5px 5px 0 0;
}
.ap-po__cols span i {
  position: absolute;
  left: 0; right: 0;
  bottom: -20px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  color: var(--ink-3);
}
.ap-po__cols--next { background: var(--grad) !important; }
.ap-po__cols--next i { color: var(--coral); }
.ap-po__cur {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ap-po__chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}
.ap-po__chip--on {
  color: var(--coral);
  border-color: rgba(240, 80, 46, .3);
  background: rgba(240, 80, 46, .06);
}

/* risk mockup */
.ap-rk {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.ap-rk__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.ap-rk__tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.ap-rk__time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--coral);
  background: rgba(240, 80, 46, .08);
  border-radius: 999px;
  padding: 4px 10px;
}
.ap-rk__score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.ap-rk__ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(closest-side, var(--surface) 76%, transparent 77%),
    conic-gradient(#1f9d57 var(--p), var(--line) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-rk__ring strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.ap-rk__ring em { font-size: 10px; color: var(--ink-3); font-style: normal; }
.ap-rk__verdict b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1f9d57;
  font-family: "Space Grotesk", sans-serif;
}
.ap-rk__verdict span { font-size: 12px; color: var(--ink-3); }
.ap-rk__sig {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ap-rk__sig li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 500;
}
.ap-rk__ok {
  font-size: 10.5px;
  font-weight: 700;
  font-style: normal;
  color: #1f9d57;
  background: rgba(31, 157, 87, .1);
  border-radius: 999px;
  padding: 3px 9px;
}
.ap-rk__foot { display: flex; gap: 7px; flex-wrap: wrap; }
.ap-rk__badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
}

/* ════════════════ BENTO ════════════════ */
.ap-bento { padding: 90px 0; background: var(--bg-2); }
.ap-bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ap-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s;
}
.ap-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: #dcdce3;
}
.ap-tile--wide { grid-column: span 2; }
.ap-tile__ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--coral);
}
.ap-tile__ic svg { width: 22px; height: 22px; }
.ap-tile__h {
  font-size: 1.18rem;
  letter-spacing: -.022em;
  margin-bottom: 9px;
}
.ap-tile__p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ap-tile--accent {
  background: linear-gradient(165deg, #fff 0%, #fff7f4 100%);
  border-color: rgba(240, 80, 46, .2);
}
.ap-tile--accent .ap-tile__ic {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.ap-tile__metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 16px;
}
.ap-tile__metric b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--coral);
}
.ap-tile__metric em {
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-2);
}
.ap-tile--feature {
  display: flex;
  flex-direction: column;
}
.ap-tile__mini {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ap-tile__minirow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
}
.ap-tile__minirow i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f9d57;
}
.ap-tile__wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.ap-tile__wallets span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 6px;
}
.ap-tile__wallets span:first-child {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}
.ap-tile--api { display: flex; flex-direction: column; }
.ap-tile__code {
  margin-top: auto;
  padding-top: 20px;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-2);
}
.ap-tile__code {
  white-space: pre-wrap;
}
.ap-tile--api > .ap-tile__code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.ap-cd-k { color: var(--coral); font-weight: 700; }
.ap-cd-d { color: var(--ink-3); }
.ap-cd-n { color: #1f6fd6; }
.ap-cd-s { color: #1f9d57; }
.ap-cd-c { color: var(--ink-3); }

/* ════════════════ HOW IT WORKS ════════════════ */
.ap-how { padding: 90px 0; }
.ap-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.ap-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--sh-sm);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.ap-step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ap-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px; right: -13px;
  width: 26px;
  height: 2px;
  background: var(--line);
  z-index: 1;
}
.ap-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  margin-bottom: 18px;
  box-shadow: var(--sh-glow);
}
.ap-step__h {
  font-size: 1.14rem;
  letter-spacing: -.02em;
  margin-bottom: 9px;
}
.ap-step__p {
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ════════════════ PAYMENT METHODS ════════════════ */
.ap-pay { padding: 90px 0; background: var(--bg-2); }
.ap-pay__in {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.ap-pay__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ap-method {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  box-shadow: var(--sh-sm);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.ap-method:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ap-method__ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  margin-bottom: 14px;
}
.ap-method__ic svg { width: 20px; height: 20px; }
.ap-method strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.ap-method span {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ════════════════ SECURITY & TRUST ════════════════ */
.ap-sec-trust { padding: 90px 0; }
.ap-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ap-trust {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--sh-sm);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.ap-trust:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ap-trust__ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(240, 80, 46, .09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  margin-bottom: 16px;
}
.ap-trust__ic svg { width: 22px; height: 22px; }
.ap-trust__h {
  font-size: 1.08rem;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.ap-trust__p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ap-trust__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.ap-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--sh-sm);
}

/* ════════════════ USE CASES ════════════════ */
.ap-uses { padding: 90px 0; background: var(--bg-2); }
.ap-uses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ap-use {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--sh-sm);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.ap-use:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ap-use__ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--sh-glow);
}
.ap-use__ic svg { width: 23px; height: 23px; }
.ap-use__h {
  font-size: 1.14rem;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.ap-use__p {
  font-size: 13.6px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ════════════════ PRICING ════════════════ */
.ap-pricing { padding: 90px 0; }
.ap-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  position: relative;
}
.ap-toggle__btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 20px;
  border-radius: 999px;
  transition: color .2s, background .2s, box-shadow .2s;
}
.ap-toggle__btn.is-on {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.ap-toggle__save {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--coral);
  background: rgba(240, 80, 46, .1);
  border-radius: 999px;
  padding: 5px 11px;
  margin-left: 4px;
}
.ap-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.ap-plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--sh-sm);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.ap-plan:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ap-plan--pop {
  position: relative;
  border-color: rgba(240, 80, 46, .34);
  box-shadow: var(--sh-md);
  background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
}
.ap-plan--pop:hover { box-shadow: var(--sh-lg); }
.ap-plan__flag {
  position: absolute;
  top: -13px; left: 28px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--sh-glow);
}
.ap-plan__name {
  font-size: 1.3rem;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.ap-plan__desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  min-height: 42px;
}
.ap-plan__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 18px 0 4px;
}
.ap-plan__cur {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-2);
}
.ap-plan__price b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.ap-plan__per {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
}
.ap-plan__rate {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 20px;
}
.ap-plan .ap-btn { margin-bottom: 22px; }
.ap-plan__feat {
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.ap-plan__feat li {
  position: relative;
  padding-left: 27px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ap-plan__feat li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 17px; height: 17px;
  border-radius: 6px;
  background: rgba(240, 80, 46, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23f0502e' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ap-plans__note {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ════════════════ TESTIMONIALS ════════════════ */
.ap-quotes { padding: 90px 0; background: var(--bg-2); }
.ap-quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ap-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.ap-quote:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ap-quote__stars {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 16px;
}
.ap-quote blockquote {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  font-weight: 450;
  flex: 1;
}
.ap-quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ap-quote__av {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ap-quote__id b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.ap-quote__id em {
  font-size: 12.5px;
  font-style: normal;
  color: var(--ink-3);
}

/* ════════════════ WHY ANDYPAY ════════════════ */
.ap-why { padding: 90px 0; }
.ap-why__in {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.ap-why__text .ap-btn { margin-top: 26px; }
.ap-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ap-compare__col {
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.ap-compare__col--old {
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.ap-compare__col--new {
  background: linear-gradient(170deg, #fff 0%, #fff7f4 100%);
  border: 1px solid rgba(240, 80, 46, .26);
  box-shadow: var(--sh-md);
}
.ap-compare__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 18px;
}
.ap-compare__cap--new {
  color: var(--ink);
  text-transform: none;
  font-size: 15px;
  letter-spacing: -.01em;
}
.ap-compare__cap--new svg { width: 22px; height: 22px; border-radius: 7px; }
.ap-compare__col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ap-compare__col li {
  position: relative;
  padding-left: 28px;
  font-size: 13.7px;
  line-height: 1.5;
}
.ap-compare__col--old li {
  color: var(--ink-2);
}
.ap-compare__col--old li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: #e4e4ea;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239a9da9' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ap-compare__col--new li {
  color: var(--ink);
  font-weight: 500;
}
.ap-compare__col--new li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--grad);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ════════════════ FAQ ════════════════ */
.ap-faq { padding: 90px 0; background: var(--bg-2); }
.ap-faq__in {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}
.ap-faq__head { position: sticky; top: 100px; }
.ap-faq__head .ap-btn { margin-top: 22px; }
.ap-qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap-qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ap-qa.is-open {
  border-color: rgba(240, 80, 46, .26);
  box-shadow: var(--sh-md);
}
.ap-qa__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 20px 22px;
}
.ap-qa__sign {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.ap-qa__sign::before,
.ap-qa__sign::after {
  content: "";
  position: absolute;
  background: var(--coral);
  border-radius: 2px;
  transition: transform .26s var(--ease), opacity .2s;
}
.ap-qa__sign::before { top: 9px; left: 2px; width: 16px; height: 2.4px; }
.ap-qa__sign::after { left: 9px; top: 2px; width: 2.4px; height: 16px; }
.ap-qa.is-open .ap-qa__sign::after { transform: rotate(90deg); opacity: 0; }
.ap-qa__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .34s var(--ease);
}
.ap-qa__a p {
  padding: 0 22px 22px;
  font-size: 14.3px;
  color: var(--ink-2);
  line-height: 1.64;
}

/* ════════════════ FINAL CTA ════════════════ */
.ap-cta { padding: 60px 0 96px; }
.ap-cta__card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #131319;
  padding: 76px 40px;
}
.ap-cta__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 138, 61, .55), transparent 52%),
    radial-gradient(circle at 82% 84%, rgba(227, 57, 139, .5), transparent 54%),
    radial-gradient(circle at 60% 40%, rgba(240, 80, 46, .42), transparent 56%);
}
.ap-cta__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 78%);
}
.ap-cta__in {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.ap-cta__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.ap-cta__h {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: #fff;
  letter-spacing: -.032em;
}
.ap-cta__u {
  background: linear-gradient(120deg, #ffd2a8, #ffae8c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ap-cta__p {
  margin-top: 16px;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, .76);
  line-height: 1.62;
}
.ap-cta__act {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ════════════════ FOOTER ════════════════ */
.ap-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.ap-foot__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-lg);
  padding: 36px 38px;
  margin-bottom: 56px;
}
.ap-foot__bandh {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: #fff;
  letter-spacing: -.025em;
}
.ap-foot__bandp {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}
.ap-foot__form {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.ap-foot__input {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sm);
  padding: 0 16px;
  height: 44px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  min-width: 230px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.ap-foot__input::placeholder { color: rgba(255, 255, 255, .42); }
.ap-foot__input:focus {
  border-color: rgba(240, 80, 46, .7);
  background: rgba(255, 255, 255, .1);
}

.ap-foot__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.ap-foot__brandcol .ap-brand { color: #fff; margin-bottom: 16px; }
.ap-foot__blurb {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .56);
  max-width: 30ch;
}
.ap-foot__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.ap-foot__soc {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .68);
  transition: background .2s, color .2s, transform .2s;
}
.ap-foot__soc:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: translateY(-2px);
}
.ap-foot__soc svg { width: 16px; height: 16px; }
.ap-foot__navh {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.ap-foot__nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ap-foot__nav a {
  font-size: 13.7px;
  color: rgba(255, 255, 255, .6);
  transition: color .18s;
  width: fit-content;
}
.ap-foot__nav a:hover { color: #fff; }

.ap-foot__mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.ap-lang--up .ap-lang__btn {
  color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}
.ap-lang--up .ap-lang__btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ap-lang--up .ap-lang__menu {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom right;
  transform: translateY(6px) scale(.98);
}
.ap-lang--up.open .ap-lang__menu { transform: none; }
.ap-foot__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .56);
}
.ap-foot__statusdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4cc98a;
  box-shadow: 0 0 0 4px rgba(76, 201, 138, .18);
}

.ap-foot__mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 17vw, 13rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .9;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-top: 14px;
  user-select: none;
  pointer-events: none;
}

.ap-foot__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0 30px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .48);
}
.ap-foot__eu {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ap-foot__eu::before {
  content: "";
  width: 16px; height: 11px;
  border-radius: 2px;
  background: var(--grad);
}

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 1024px) {
  .ap-nav { display: none; }
  .ap-deep,
  .ap-pay__in,
  .ap-why__in { gap: 44px; }
  .ap-faq__in { grid-template-columns: 1fr; gap: 38px; }
  .ap-faq__head { position: static; }
  .ap-bento__grid { grid-template-columns: repeat(2, 1fr); }
  .ap-tile--wide { grid-column: span 2; }
  .ap-steps,
  .ap-trust__grid,
  .ap-uses__grid { grid-template-columns: repeat(2, 1fr); }
  .ap-step:nth-child(2)::after { display: none; }
  .ap-pay__in { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ap-burger { display: flex; }
  .ap-signin,
  .ap-head .ap-btn--grad { display: none; }
  .ap-head__act .ap-lang { display: none; }
  .ap-hero { padding: 56px 0 70px; }
  .ap-hero__app { margin-top: 48px; }
  .ap-app__side { display: none; }
  .ap-hero__chip { display: none; }
  .ap-metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; padding: 34px 22px; }
  .ap-metric:nth-child(2)::after { display: none; }
  .ap-metric:nth-child(odd)::after { display: none; }
  .ap-deep,
  .ap-deep--rev {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0;
  }
  .ap-deep--rev .ap-deep__text { order: 1; }
  .ap-deep--rev .ap-deep__art { order: 2; }
  .ap-plans,
  .ap-quotes__grid { grid-template-columns: 1fr; }
  .ap-plan--pop { order: -1; }
  .ap-why__in { grid-template-columns: 1fr; }
  .ap-compare { max-width: 520px; }
  .ap-foot__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .ap-foot__brandcol { grid-column: span 2; }
  .ap-foot__band { padding: 28px 26px; }
}

@media (max-width: 560px) {
  .ap-shell { padding: 0 18px; }
  .ap-hero__title { font-size: clamp(2.05rem, 9vw, 2.7rem); }
  .ap-bento__grid,
  .ap-pay__grid,
  .ap-steps,
  .ap-trust__grid,
  .ap-uses__grid { grid-template-columns: 1fr; }
  .ap-tile--wide { grid-column: span 1; }
  .ap-step:not(:last-child)::after { display: none; }
  .ap-metrics__grid { grid-template-columns: 1fr; }
  .ap-metric::after { display: none !important; }
  .ap-hero__cta,
  .ap-cta__act { flex-direction: column; width: 100%; }
  .ap-hero__cta .ap-btn,
  .ap-cta__act .ap-btn { width: 100%; }
  .ap-app__stats { grid-template-columns: 1fr; }
  .ap-app__txrow { grid-template-columns: 1.6fr 1fr; }
  .ap-app__txrow span:nth-child(2),
  .ap-app__txrow span:nth-child(3) { display: none; }
  .ap-app__main { padding: 18px; }
  .ap-foot__form { width: 100%; }
  .ap-foot__input { min-width: 0; flex: 1; }
  .ap-cta__card { padding: 52px 24px; }
  .ap-compare { grid-template-columns: 1fr; }
  .ap-toggle { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   ════════════════ SECONDARY PAGES ════════════════
   Sign-in · Contact · Legal — same Andypay design system
   (luminous white surfaces · sunset gradient · Space Grotesk + Inter)
   ========================================================================== */

/* ── Shared page-head ───────────────────────────────────────── */
.ap-pagehead {
  position: relative;
  padding: 64px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.ap-pagehead__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 14, 18, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 14, 18, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 64% 70% at 50% 14%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 64% 70% at 50% 14%, #000 0%, transparent 80%);
  pointer-events: none;
}
.ap-pagehead__glow {
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 380px;
  background: radial-gradient(circle, #ff8a3d, transparent 68%);
  filter: blur(90px);
  opacity: .34;
  pointer-events: none;
}
.ap-pagehead__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ap-pagehead__h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -.032em;
}
.ap-pagehead__lead {
  margin-top: 16px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.62;
}
.ap-pagehead__meta {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

/* ── Inter-page legal nav ───────────────────────────────────── */
.ap-legalnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.ap-legalnav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--sh-sm);
  transition: transform .18s var(--ease), box-shadow .18s, color .18s, border-color .18s;
}
.ap-legalnav a:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
  color: var(--ink);
}
.ap-legalnav a[aria-current="page"] {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(240, 80, 46, .26);
}

/* ── Generic secondary section ──────────────────────────────── */
.ap-sec { padding: 72px 0; }
.ap-sec--soft { background: var(--bg-2); }

/* ── Legal prose document ───────────────────────────────────── */
.ap-prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 48px 52px;
}
.ap-prose__note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(240, 80, 46, .07);
  border: 1px solid rgba(240, 80, 46, .2);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 34px;
  font-size: 13.5px;
  font-weight: 500;
  color: #b23a1c;
  line-height: 1.5;
}
.ap-prose__note svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--coral);
  margin-top: 1px;
}
.ap-prose h2 {
  font-size: 1.16rem;
  letter-spacing: -.018em;
  margin: 30px 0 10px;
}
.ap-prose h2:first-of-type { margin-top: 0; }
.ap-prose p,
.ap-prose ul {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}
.ap-prose ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.ap-prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
}
.ap-prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}
.ap-prose strong { color: var(--ink); font-weight: 600; }
.ap-prose a { color: var(--coral); font-weight: 500; }
.ap-prose a:hover { text-decoration: underline; }
.ap-prose code {
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--ink);
}
.ap-prose__end {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* ── Auth page (sign-in) ────────────────────────────────────── */
.ap-auth {
  position: relative;
  overflow: hidden;
  padding: 64px 0 84px;
}
.ap-auth__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 14, 18, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 14, 18, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.ap-auth__glow {
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 420px;
  background: radial-gradient(circle, #e3398b, transparent 70%);
  filter: blur(100px);
  opacity: .26;
  pointer-events: none;
}
.ap-auth__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ap-authcard {
  width: 100%;
  max-width: 452px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 40px 38px;
}
.ap-authcard__h1 {
  margin-top: 14px;
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  letter-spacing: -.026em;
}
.ap-authcard__sub {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.ap-authcard__foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13.7px;
  color: var(--ink-2);
}
.ap-authcard__foot a { color: var(--coral); font-weight: 600; }
.ap-authcard__foot a:hover { text-decoration: underline; }
.ap-auth__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 12.7px;
  font-weight: 500;
  color: var(--ink-3);
}
.ap-auth__trust svg { width: 15px; height: 15px; color: var(--ink-3); }

/* ── Forms (shared) ─────────────────────────────────────────── */
.ap-form { margin-top: 26px; }
.ap-field { margin-bottom: 16px; }
.ap-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ap-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.ap-label em { color: var(--coral); font-style: normal; }
.ap-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.ap-label-row .ap-label { margin-bottom: 0; }
.ap-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--coral);
}
.ap-forgot:hover { text-decoration: underline; }

.ap-input,
.ap-textarea,
.ap-select {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 14px;
  height: 46px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ap-textarea {
  height: auto;
  min-height: 116px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
.ap-input::placeholder,
.ap-textarea::placeholder { color: var(--ink-3); }
.ap-input:focus,
.ap-textarea:focus,
.ap-select:focus {
  border-color: var(--coral);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(240, 80, 46, .12);
}
.ap-field.is-invalid .ap-input,
.ap-field.is-invalid .ap-textarea,
.ap-field.is-invalid .ap-select {
  border-color: #e0352e;
  box-shadow: 0 0 0 3px rgba(224, 53, 46, .12);
}
.ap-field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.3px;
  font-weight: 500;
  color: #d6342c;
}
.ap-field.is-invalid .ap-field-error { display: block; }

.ap-input-wrap { position: relative; }
.ap-input-wrap .ap-input { padding-right: 46px; }
.ap-eye {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-3);
  transition: color .15s, background .15s;
}
.ap-eye:hover { color: var(--ink); background: var(--bg-2); }
.ap-eye svg { width: 18px; height: 18px; }

.ap-select-wrap { position: relative; }
.ap-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.ap-select__caret {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--ink-3);
  pointer-events: none;
}

/* ── Checkbox ───────────────────────────────────────────────── */
.ap-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.3px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
  margin: 4px 0 2px;
}
.ap-check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.ap-check__box {
  flex-shrink: 0;
  width: 19px; height: 19px;
  border: 1.6px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background .15s, border-color .15s;
}
.ap-check__box svg {
  width: 12px; height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s, transform .15s var(--ease);
}
.ap-check input:checked + .ap-check__box {
  background: var(--grad);
  border-color: transparent;
}
.ap-check input:checked + .ap-check__box svg { opacity: 1; transform: none; }
.ap-check input:focus-visible + .ap-check__box {
  box-shadow: 0 0 0 3px rgba(240, 80, 46, .16);
}
.ap-check a { color: var(--coral); font-weight: 600; }
.ap-check a:hover { text-decoration: underline; }

/* ── Alert ──────────────────────────────────────────────────── */
.ap-alert {
  display: none;
  align-items: flex-start;
  gap: 9px;
  background: rgba(224, 53, 46, .07);
  border: 1px solid rgba(224, 53, 46, .22);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: #c12f27;
  line-height: 1.45;
}
.ap-alert.is-on { display: flex; }
.ap-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Submit button with loader ──────────────────────────────── */
.ap-btn--load { position: relative; }
.ap-btn--load.is-loading .ap-btn-label { opacity: 0; }
.ap-btn--load.is-loading .ap-spin { opacity: 1; }
.ap-spin {
  position: absolute;
  width: 19px; height: 19px;
  border: 2.4px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: ap-spin .7s linear infinite;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }
.ap-form .ap-btn { margin-top: 18px; }

/* ── OAuth + divider ────────────────────────────────────────── */
.ap-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.ap-divider::before,
.ap-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ap-oauth {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ap-oauth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  transition: transform .18s var(--ease), box-shadow .2s, border-color .2s;
}
.ap-oauth__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: #dcdce3;
}
.ap-oauth__btn:disabled { cursor: default; }
.ap-oauth__btn svg { width: 18px; height: 18px; }

/* ── Success state ──────────────────────────────────────────── */
.ap-success { text-align: center; }
.ap-success__check {
  width: 62px; height: 62px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-glow);
}
.ap-success__check svg { width: 28px; height: 28px; color: #fff; }
.ap-success__lead {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ap-success__lead strong { color: var(--ink); font-weight: 600; }
.ap-steps-list {
  list-style: none;
  text-align: left;
  margin: 22px 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 13.6px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ap-steps-list li b {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Modal ──────────────────────────────────────────────────── */
.ap-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ap-modal[hidden] { display: none; }
.ap-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, .52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: ap-fade .2s var(--ease);
}
.ap-modal__card {
  position: relative;
  width: 100%;
  max-width: 432px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 34px 32px;
  animation: ap-pop .24s var(--ease);
}
@keyframes ap-fade { from { opacity: 0; } }
@keyframes ap-pop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}
.ap-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.ap-modal__close:hover { background: var(--bg-2); color: var(--ink); }
.ap-modal__h2 {
  font-size: 1.3rem;
  letter-spacing: -.022em;
}
.ap-modal__p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.58;
}
.ap-modal form { margin-top: 18px; }
.ap-modal .ap-btn { margin-top: 6px; }

/* ── Contact layout ─────────────────────────────────────────── */
.ap-contact__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;
}
.ap-formcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 38px 40px;
}
.ap-formcard__h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -.024em;
}
.ap-formcard__intro {
  margin-top: 8px;
  font-size: 13.7px;
  color: var(--ink-2);
}
.ap-formcard__intro em { color: var(--coral); font-style: normal; font-weight: 700; }

.ap-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ap-sidecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 26px 26px;
}
.ap-sidecard__h3 {
  font-size: 1.05rem;
  letter-spacing: -.018em;
  margin-bottom: 14px;
}
.ap-sidecard__p {
  font-size: 13.7px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ap-sidecard__mail {
  display: block;
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--coral);
}
.ap-sidecard__mail:hover { text-decoration: underline; }
.ap-sidecard__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.ap-sidecard__meta i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4cc98a;
  box-shadow: 0 0 0 4px rgba(76, 201, 138, .18);
}
.ap-sidecard--accent {
  background: var(--ink);
  border-color: var(--ink);
}
.ap-sidecard--accent .ap-sidecard__h3 { color: #fff; }
.ap-sidecard--accent .ap-sidecard__p { color: rgba(255, 255, 255, .66); margin-bottom: 16px; }
.ap-sidecard--accent .ap-btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.ap-sidecard--accent .ap-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.ap-sidelist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}
.ap-sidelist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ap-sidelist__ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(240, 80, 46, .08);
  border: 1px solid rgba(240, 80, 46, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}
.ap-sidelist__ic svg { width: 17px; height: 17px; }
.ap-sidelist li div { display: flex; flex-direction: column; gap: 2px; }
.ap-sidelist li strong {
  font-size: 13.7px;
  font-weight: 600;
  color: var(--ink);
}
.ap-sidelist li span {
  font-size: 12.8px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ── Secondary pages responsive ─────────────────────────────── */
@media (max-width: 860px) {
  .ap-contact__grid { grid-template-columns: 1fr; }
  .ap-formcard { padding: 30px 26px; }
  .ap-prose { padding: 38px 28px; }
  .ap-authcard { padding: 34px 26px; }
}
@media (max-width: 560px) {
  .ap-field__row { grid-template-columns: 1fr; gap: 0; }
  .ap-pagehead { padding: 48px 0 40px; }
  .ap-auth { padding: 44px 0 60px; }
  .ap-sec { padding: 52px 0; }
}
