/* Stixpay Landing Page - Clean & Refactored */

:root {
  --bg: #f6f9fc;
  --text: #0a2540;
  --muted: #425466;
  --subtle: #6b7c93;
  --line: rgba(10, 37, 64, 0.10);
  --card: #ffffff;
  --shadow: 0 18px 60px rgba(10, 37, 64, 0.10), 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-soft: 0 14px 40px rgba(10, 37, 64, 0.10);
  --radius: 16px;
  --radius2: 12px;
  --primary: #c33aec;
  --primary-light: #d966f0;
  --primary-dark: #a02bb8;
  --secondary: #a855f7;
  --cyan: #00d4ff;
  --teal: #00d4b8;
  --pink: #ff4d8d;
  --chip: #f3e8ff;
  --chipText: #9333ea;
  --btnText: #fff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background-color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(10, 37, 64, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 37, 64, 0.02) 1px, transparent 1px);
  background-size: 160px 160px;
  background-attachment: fixed;
  background-repeat: repeat;
  overflow-x: hidden;
}

/* Legacy: grid-bg div no longer used */
.grid-bg {
  display: none;
}

/* Top navigation */
.topbar {
  position: relative;
  z-index: 5;
  background: transparent;
  padding: 14px 0 8px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 160px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(10, 37, 64, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mode-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Shop mode: same switch-btn style as index, Business is a link */
.switch-btn-shop {
  pointer-events: auto;
  display: flex !important; /* Override any JS that might hide it */
}

.switch-btn-shop .switch-label.switch-merchant,
.switch-btn-shop .switch-label.switch-customer {
  text-decoration: none;
  color: var(--muted);
  cursor: pointer;
}

.switch-btn-shop .switch-label.switch-merchant:hover,
.switch-btn-shop .switch-label.switch-customer:hover {
  color: var(--text);
}

.switch-btn-shop a.switch-toggle {
  display: block;
  text-decoration: none;
  color: inherit;
}

.switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 37, 64, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.switch-btn:hover {
  background: rgba(10, 37, 64, 0.10);
  border-color: rgba(10, 37, 64, 0.20);
}

.switch-label {
  padding: 4px 8px;
  border-radius: 999px;
  transition: all 0.2s;
  white-space: nowrap;
}

.switch-label.active {
  color: var(--text);
  font-weight: 700;
}

.switch-toggle {
  position: relative;
  width: 40px;
  height: 20px;
  background: rgba(10, 37, 64, 0.15);
  border-radius: 999px;
  transition: all 0.3s;
}

.switch-btn[data-mode="merchant"] .switch-toggle,
.switch-btn[data-mode="business"] .switch-toggle {
  background: var(--primary);
}

.switch-btn[data-mode="customer"] .switch-toggle {
  background: rgba(10, 37, 64, 0.15);
}

.switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(10, 37, 64, 0.2);
}

.switch-btn[data-mode="merchant"] .switch-slider,
.switch-btn[data-mode="business"] .switch-slider {
  transform: translateX(20px);
}

.switch-btn[data-mode="customer"] .switch-slider {
  transform: translateX(0);
}

/* Content visibility - controlled by JavaScript but with fallback CSS */
/* Default: hide all mode-specific content, JavaScript will show appropriate ones */
.customer-content,
.merchant-content {
  display: none;
}

/* Show content that matches the mode - JavaScript will override this */
.customer-content[data-mode="customer"] {
  display: block;
}

.merchant-content[data-mode="business"],
.merchant-content[data-mode="merchant"] {
  display: block;
}

[data-mode="both"] {
  display: block;
}

/* Hide content that doesn't match */
.customer-content[data-mode="business"],
.customer-content[data-mode="merchant"],
.merchant-content[data-mode="customer"] {
  display: none;
}

.subtabs a.customer-only[data-mode="merchant"],
.subtabs a.merchant-only[data-mode="customer"] {
  display: none;
}

.subtabs a.customer-only[data-mode="customer"],
.subtabs a.merchant-only[data-mode="merchant"] {
  display: inline-block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo .mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(195, 58, 236, 0.25);
}

.logo span {
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.nav a {
  color: inherit;
  text-decoration: none;
  padding: 6px 6px;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav a:hover {
  background: rgba(195, 58, 236, 0.06);
  color: var(--text);
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  justify-content: flex-end;
  font-size: 12px;
}

.actions a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s;
}

.actions a:hover {
  background: rgba(10, 37, 64, 0.06);
  color: var(--text);
}

.actions a.btn {
  color: #ffffff !important;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(195, 58, 236, 0.25);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: rgba(195, 58, 236, 0.10);
  color: var(--primary);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(195, 58, 236, 0.15);
}

/* Secondary navigation */
.subnav {
  position: relative;
  z-index: 5;
  padding: 10px 0 0;
}

.subnav .row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.subnav .subtabs {
  margin-left: auto;
}

.subtabs {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.subtabs a {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  transition: all 0.2s;
}

.subtabs a.active {
  color: var(--primary);
  background: rgba(195, 58, 236, 0.10);
  font-weight: 600;
}

.subtabs a:hover {
  background: rgba(10, 37, 64, 0.06);
  color: var(--text);
}

/* Hero section */
.hero {
  position: relative;
  padding: 22px 0 22px;
}

.hero-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
  position: relative;
  z-index: 4;
}

.crumb {
  font-size: 11px;
  color: var(--subtle);
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0 8px;
  justify-content: center;
}

.pill {
  background: rgba(10, 37, 64, 0.06);
  border: 1px solid rgba(10, 37, 64, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.hero-centered h1 {
  margin: 0 auto;
  max-width: 800px;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 100%;
}

.hero-centered .lead {
  margin: 12px auto 0;
  max-width: 600px;
}

.cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mock payment card */
.mock {
  width: 100%;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 37, 64, 0.08);
  overflow: hidden;
}

.mockTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  background: linear-gradient(#ffffff, #fbfcff);
  font-size: 11px;
  color: var(--muted);
}

.mockTop .left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.12);
}

.merchant {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.merchant .avatar {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  box-shadow: 0 10px 20px rgba(195, 58, 236, 0.20);
}

.mockBody {
  padding: 12px;
}

.mockGrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  align-items: start;
}

.miniTitle {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}

.offer {
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 12px;
  padding: 10px;
}

.radioRow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.radioRow:hover {
  background: rgba(10, 37, 64, 0.04);
}

.radio {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(10, 37, 64, 0.25);
  margin-top: 2px;
  display: grid;
  place-items: center;
}

.radio i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  display: block;
}

.radioRow.active {
  background: rgba(195, 58, 236, 0.06);
  border: 1px solid rgba(195, 58, 236, 0.25);
}

.radioRow.active .radio {
  border-color: rgba(195, 58, 236, 0.70);
}

.radioRow.active .radio i {
  background: var(--primary);
}

.radioText {
  flex: 1;
}

.radioText b {
  display: block;
  font-size: 11px;
  color: var(--text);
}

.radioText span {
  display: block;
  font-size: 10px;
  color: var(--subtle);
  margin-top: 2px;
}

.badge {
  font-size: 10px;
  color: var(--chipText);
  background: var(--chip);
  border: 1px solid rgba(195, 58, 236, 0.20);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.payBy {
  margin-top: 10px;
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 12px;
  padding: 10px;
}

.seg {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.seg button {
  flex: 1;
  font-size: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.seg button.active {
  border-color: rgba(195, 58, 236, 0.35);
  background: rgba(195, 58, 236, 0.08);
  color: var(--primary);
}

.field {
  margin-top: 10px;
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.label {
  font-size: 10px;
  color: var(--subtle);
  font-weight: 600;
}

.input {
  margin-top: 6px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: var(--text);
  justify-content: space-between;
  gap: 10px;
}

.input .hint {
  color: rgba(10, 37, 64, 0.35);
  font-size: 10px;
}

.cards {
  display: flex;
  gap: 4px;
  align-items: center;
}

.cardMark {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  background: linear-gradient(#fff, #f7f9ff);
}

.details {
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.price {
  font-size: 12px;
  color: var(--subtle);
}

.price b {
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.checklist {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.checklist li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tick {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: rgba(195, 58, 236, 0.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(195, 58, 236, 0.25);
}

.tick svg {
  width: 10px;
  height: 10px;
  fill: var(--primary);
}

.mockBtn {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(195, 58, 236, 0.25);
  transition: all 0.2s;
}

.mockBtn:hover {
  filter: brightness(0.98);
}

/* Wave decoration - hidden (was gradient band) */
.wave {
  display: none;
}

.wave::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(60% 120% at 35% 50%, rgba(0, 212, 184, 0.95) 0%, rgba(0, 212, 184, 0) 55%),
    radial-gradient(55% 120% at 70% 50%, rgba(255, 77, 141, 0.90) 0%, rgba(255, 77, 141, 0) 55%),
    linear-gradient(90deg, var(--primary) 0%, var(--secondary) 22%, #a855f7 45%, var(--cyan) 62%, var(--secondary) 100%);
  box-shadow: 0 30px 90px rgba(195, 58, 236, 0.22);
}

.wave::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
  filter: blur(18px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

/* Feature row */
.featureRow {
  position: relative;
  z-index: 4;
  margin-top: 44px;
  padding: 18px 0 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feat {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
}

.icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(195, 58, 236, 0.10);
  border: 1px solid rgba(195, 58, 236, 0.22);
  display: grid;
  place-items: center;
}

.icon svg {
  width: 12px;
  height: 12px;
  fill: var(--primary);
}

.feat b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.feat p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* Logos band */
.logosBand {
  background: rgba(246, 249, 252, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin-top: 14px;
  position: relative;
  z-index: 4;
}

.logos {
  display: flex;
  gap: 34px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(10, 37, 64, 0.55);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 13px;
}

.logos .thin {
  font-weight: 600;
  color: rgba(10, 37, 64, 0.45);
}

.logos .mark2 {
  width: 26px;
  height: 14px;
  border-radius: 6px;
  background: rgba(10, 37, 64, 0.07);
  border: 1px solid rgba(10, 37, 64, 0.10);
}

/* Section */
.section {
  padding: 54px 0 70px;
  position: relative;
  z-index: 4;
}

.kicker {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.h2 {
  margin: 10px 0 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.stat {
  text-align: right;
  color: var(--subtle);
  font-size: 11px;
}

.stat b {
  color: var(--primary);
  font-size: 12px;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cardTop {
  height: 122px;
  background: linear-gradient(#fff, #f7f9ff);
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.miniMock {
  width: 78%;
  height: 76px;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  background: linear-gradient(#ffffff, #f6f9ff);
  position: relative;
  box-shadow: 0 10px 22px rgba(10, 37, 64, 0.10);
}

.miniMock::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  height: 10px;
  border-radius: 6px;
  background: rgba(10, 37, 64, 0.07);
}

.miniMock::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 28px;
  right: 36px;
  height: 10px;
  border-radius: 6px;
  background: rgba(195, 58, 236, 0.12);
  border: 1px solid rgba(195, 58, 236, 0.22);
}

.cardBody {
  padding: 14px 14px 16px;
}

.cardBody .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.cardBody h3 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.cardBody p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Lower content grid */
.lower {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  margin-top: 18px;
  align-items: start;
}

.textBlock {
  padding: 16px 2px;
}

.textBlock h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.textBlock p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.metricCard {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.metricHead {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.metricBody {
  padding: 12px 14px 14px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.08);
  overflow: hidden;
  position: relative;
}

.bar > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 63%;
  background: linear-gradient(90deg, rgba(195, 58, 236, 0.95), rgba(168, 85, 247, 0.85));
  border-radius: 999px;
}

.metricList {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}

.metricRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.metricRow b {
  color: var(--text);
  font-size: 10px;
}

.tinyPills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tinyPills span {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.10);
  background: #fff;
  color: var(--muted);
}

.tinyPills span.on {
  border-color: rgba(195, 58, 236, 0.28);
  background: rgba(195, 58, 236, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.metricBtn {
  width: 100%;
  margin-top: 12px;
  border: 0;
  height: 30px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  line-height: 30px;
  transition: all 0.2s;
}

.metricBtn:hover {
  filter: brightness(0.98);
}

/* Invoice card */
.invoiceCard {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 12px 14px 14px;
}

.invoiceCard h4 {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.invoiceGrid {
  display: grid;
  gap: 10px;
}

.selectRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.smallInput {
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  padding: 0 10px;
  font-size: 11px;
  color: var(--text);
  background: #fff;
}

.smallInput::placeholder {
  color: rgba(10, 37, 64, 0.35);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-copyright {
  color: var(--subtle);
  font-size: 11px;
}

.footer-copyright p {
  margin: 0;
}

/* New landing components */
.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 4;
}

.product-card {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.product-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(195, 58, 236, 0.12);
  border: 1px solid rgba(195, 58, 236, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.product-card-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.solution-card {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.solution-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.solution-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.section-alt {
  background: rgba(10, 37, 64, 0.02);
}

.section-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 720px;
}

.dev-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 24px;
}

.dev-feat {
  background: rgba(195, 58, 236, 0.10);
  border: 1px solid rgba(195, 58, 236, 0.22);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.cta-section {
  padding: 60px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cta-block {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.cta-block-primary {
  border-color: rgba(195, 58, 236, 0.25);
  background: linear-gradient(135deg, rgba(195, 58, 236, 0.06), rgba(168, 85, 247, 0.04));
}

.cta-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.cta-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-sub {
  padding: 48px 0 40px;
}

.hero-sub .wave {
  display: none;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-reverse .product-detail-main {
  order: 1;
}

.product-detail-reverse .product-detail-side {
  order: 0;
}

.lead-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}

.benefits-list {
  margin: 20px 0;
}

.benefits-list h4 {
  font-size: 12px;
  margin: 0 0 10px;
  color: var(--text);
}

.benefits-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.info-card {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.info-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.info-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.btn-small {
  padding: 10px 18px !important;
  font-size: 12px !important;
}

.solution-detail {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.solution-detail-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(195, 58, 236, 0.12);
  border: 1px solid rgba(195, 58, 236, 0.22);
  display: grid;
  place-items: center;
}

.solution-detail-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.solution-detail-content h2 {
  margin: 12px 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.solution-detail-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.solution-detail-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.api-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.api-card {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.api-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.api-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.api-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.webhook-list {
  margin: 16px 0 24px !important;
  padding-left: 20px !important;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.sandbox-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.sandbox-tip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sandbox-tip code {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.docs-column h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text);
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.docs-list a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.docs-list a:hover {
  color: var(--primary);
}

.code-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 12px;
  line-height: 1.5;
}

.code-block code {
  color: var(--text);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.security-item {
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(195, 58, 236, 0.12);
  border: 1px solid rgba(195, 58, 236, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.security-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.security-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.security-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.security-list {
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}

.pricing-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(195, 58, 236, 0.12);
  color: var(--primary);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.pricing-cta {
  text-align: center;
  padding: 32px 0;
}

.pricing-cta p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.status-ok {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.status-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .topbar .row {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    padding: 20px 0;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-radius: 10px;
  }

  .actions {
    min-width: auto;
  }

  .hero .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-reverse .product-detail-main,
  .product-detail-reverse .product-detail-side {
    order: unset;
  }

  .solution-detail {
    flex-direction: column;
  }

  .api-cards {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .pricing-highlights {
    grid-template-columns: 1fr;
  }

  .cards3 {
    grid-template-columns: 1fr;
  }

  .lower {
    grid-template-columns: 1fr;
  }

  .wave {
    top: 500px;
  }

  h1 {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  h1 {
    font-size: 26px;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .section {
    padding: 40px 0 50px;
  }

  .dev-features {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }

  .wave {
    width: 1100px;
    height: 200px;
  }

  .mockGrid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-wrap: wrap;
  }

  .actions a.btn {
    width: 100%;
    text-align: center;
  }
}
