/* =========================================================
   SomDigital design system
   ========================================================= */
:root {
  --brand: #4189DD;
  --brand-600: #2F6FC0;
  --brand-700: #225597;
  --brand-50: #EEF5FD;
  --brand-100: #DCEAFB;
  --ink: #0B1B2B;
  --ink-2: #13283D;
  --text: #1E2A36;
  --muted: #5B6B7D;
  --subtle: #8A97A6;
  --bg: #FFFFFF;
  --surface: #F6F8FB;
  --surface-2: #EEF2F7;
  --border: #E3E8EF;
  --border-strong: #CBD4DF;
  --gold: #F2B33D;
  --success: #12A150;
  --success-bg: #E8F7EE;
  --warning: #B7791F;
  --warning-bg: #FDF5E6;
  --danger: #D33A3A;
  --danger-bg: #FDECEC;
  --info-bg: #EEF5FD;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06);
  --shadow: 0 4px 16px rgba(11, 27, 43, .07), 0 1px 3px rgba(11, 27, 43, .05);
  --shadow-lg: 0 24px 48px -12px rgba(11, 27, 43, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: #C9D5E3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(65,137,221,.6); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b62f2f; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0e8642; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-600); cursor: pointer; font-weight: 600; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink); white-space: nowrap;
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-gold { background: #FFF4DC; color: #8A5A00; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Navigation ---------- */
.topbar { background: var(--ink); color: #A9B8C9; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar a { color: #DCE6F1; }
.topbar .row { gap: 20px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
.lang-switch .icon { margin-right: 4px; opacity: .8; }
.topbar .lang-switch a { padding: 2px 10px; border-radius: 999px; color: #A9B8C9; font-weight: 600; line-height: 1.5; }
.topbar .lang-switch a:hover { color: #fff; }
.topbar .lang-switch a.active { background: #fff; color: var(--ink); }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; }
.brand-logo { height: 42px; width: auto; display: block; }
.nav .brand-logo { height: 48px; }
.footer .brand { padding: 0; margin-bottom: 4px; }
.brand small { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: inline-flex; padding: 9px; border-radius: 10px; color: var(--ink); }
.cart-link:hover { background: var(--surface-2); color: var(--ink); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-size: .9rem; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; }
.user-menu .menu a, .user-menu .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(65,137,221,.55), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(65,137,221,.35), transparent 60%),
    linear-gradient(180deg, #0B1B2B 0%, #0E2238 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 96px 104px; }
.hero h1 { color: #fff; }
.hero h1 .hl { background: linear-gradient(90deg, #8EC1FF, #4189DD 60%, #F2B33D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #B9C8D9; max-width: 560px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #DCE6F1; margin-bottom: 24px; }
.hero-pill .badge { background: var(--gold); color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; color: #94A6BA; font-size: .88rem; }
.hero-trust strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.mock {
  background: #fff; border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); overflow: hidden; color: var(--text);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform .4s;
}
.mock:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E3E8EF; }
.mock-bar span { margin-left: 10px; font-size: .72rem; color: var(--subtle); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { background: var(--ink); padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.mock-side b { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); }
.mock-side b.on { background: var(--brand); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.mock-kpi small { display: block; font-size: .62rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.mock-kpi strong { font-size: 1.05rem; color: var(--ink); }
.mock-chart { height: 96px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; align-items: flex-end; gap: 6px; }
.mock-chart i { flex: 1; background: linear-gradient(180deg, var(--brand), #8EC1FF); border-radius: 4px 4px 0 0; }
.mock-rows { display: grid; gap: 6px; }
.mock-row { display: grid; grid-template-columns: 22px 1fr 60px; gap: 8px; align-items: center; font-size: .7rem; }
.mock-row i { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-100); }
.mock-row b { height: 7px; background: var(--surface-2); border-radius: 4px; }
.mock-row em { font-style: normal; font-size: .6rem; padding: 2px 6px; border-radius: 999px; background: var(--success-bg); color: var(--success); text-align: center; font-weight: 700; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card-tight { padding: 20px; border-radius: var(--radius); }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card h3 { margin-bottom: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3, .card-head h4 { margin: 0; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px;
}
.icon-tile.dark { background: rgba(65,137,221,.15); color: #8EC1FF; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); box-shadow: none; }
.section-dark .card p { color: #A9B8C9; }

/* Product card */
.product-card { display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.product-card .top { display: flex; align-items: center; gap: 14px; }
.product-card .top .icon-tile { margin: 0; }
.product-card p { color: var(--muted); margin: 0; }
.product-card .price-from { font-size: .9rem; color: var(--muted); }
.product-card .price-from strong { font-size: 1.4rem; color: var(--ink); }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.product-card.soon { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .75rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.industry { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.industry:hover { color: inherit; border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.industry .icon-tile { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.industry strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.industry small { color: var(--subtle); font-size: .78rem; }
.filters a .icon { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* ---------- Steps / how it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; background: var(--ink); color: #fff;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Wallet strip ---------- */
.wallets-section { position: relative; overflow: hidden; }
.wallets-section::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, var(--brand-100), transparent 70%); opacity: .55; pointer-events: none; }
.wallets-section .container { position: relative; }
.wallets-head { margin-bottom: 36px; }
.wallet-showcase { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 980px; margin-inline: auto; }
.wallet-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.wallet-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--wallet); }
.wallet-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--wallet) 35%, var(--border)); }
.wallet-tile-logo { height: 84px; display: grid; place-items: center; padding: 18px 16px 10px; }
.wallet-tile-logo img { max-width: 100%; max-height: 36px; object-fit: contain; }
.wallet-tile-logo img.is-icon { max-height: 50px; border-radius: 12px; }
.wallet-wordmark { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--wallet); line-height: 1; }
.wallet-tile-meta { margin-top: auto; min-height: 68px; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px 11px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--wallet) 5%, #fff); text-align: center; }
.wallet-tile-meta strong { display: block; color: var(--ink); font-size: .86rem; line-height: 1.25; }
.wallet-tile-meta small { display: block; color: var(--subtle); font-size: .7rem; line-height: 1.35; }
.wallet-tile-meta strong + small { margin-top: 3px; color: var(--muted); font-weight: 600; }
.wallet-perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.wallet-perks li { display: inline-flex; align-items: center; gap: 8px; }
.wallet-perks .icon { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .wallet-tile, .wallet-tile:hover { transition: none; transform: none; } }
.wallet-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: -0.02em; flex: none; }

/* ---------- Product page ---------- */
.product-hero { background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--border); }
.product-hero .container { padding-block: 64px 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.product-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.fact small { display: block; color: var(--subtle); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.fact strong { color: var(--ink); font-size: 1.05rem; }

.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.module .icon-tile { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
.module h4 { margin-bottom: 6px; }
.module p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Delivery tabs */
.tabs { display: inline-flex; padding: 6px; gap: 6px; background: var(--surface-2); border-radius: 14px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; border: 0; background: transparent;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
}
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tab-panel[hidden] { display: none; }

.billing-toggle { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--border-strong); border: 0; cursor: pointer; transition: background .2s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; }
.price-card.popular { border: 2px solid var(--brand); box-shadow: 0 24px 48px -16px rgba(65,137,221,.35); }
.price-card .ribbon { position: absolute; top: -13px; left: 28px; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-card .desc { color: var(--muted); font-size: .92rem; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price .amount { font-size: 2.8rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.price-note { color: var(--subtle); font-size: .82rem; min-height: 20px; }
.checklist { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.checklist li svg { color: var(--success); margin-top: 3px; }
.price-card form { margin-top: auto; }

/* Source-code configurator */
.configurator { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.config-step { margin-bottom: 36px; }
.config-step h3 { display: flex; align-items: center; gap: 12px; }
.config-step h3 .num { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.option-grid.three { grid-template-columns: repeat(3, 1fr); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .box { height: 100%; border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.option:hover .box { border-color: var(--border-strong); }
.option input:checked + .box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(65,137,221,.12); }
.option input:focus-visible + .box { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.option .box .row-between { align-items: flex-start; }
.option .opt-title { font-weight: 800; color: var(--ink); }
.option .opt-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.option .opt-desc { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.option .checklist { margin: 14px 0 0; gap: 7px; }
.option .checklist li { font-size: .85rem; }
.summary { position: sticky; top: 96px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.summary-line span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.summary-total strong { font-size: 1.8rem; color: var(--ink); letter-spacing: -0.03em; }

/* ---------- Comparison / FAQ ---------- */
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(242,179,61,.35), transparent 60%), linear-gradient(135deg, var(--brand-600), var(--ink)); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #D3E2F3; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.label .opt { font-weight: 500; color: var(--subtle); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(65,137,221,.15); }
.textarea { min-height: 120px; resize: vertical; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-group .addon:first-child { border-right: 0; border-radius: 10px 0 0 10px; }
.input-group .addon:last-child { border-left: 0; border-radius: 0 10px 10px 0; }
.input-group .input { border-radius: 0; }
.input-group .input:first-child { border-radius: 10px 0 0 10px; }
.input-group .input:last-child { border-radius: 0 10px 10px 0; }
.help { font-size: .8rem; color: var(--subtle); }
.field-validation-error, .text-danger { color: var(--danger); font-size: .82rem; font-weight: 600; }
.input-validation-error { border-color: var(--danger) !important; }
.validation-summary-errors { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-bottom: 18px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Wallet picker */
.wallet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wallet-option { position: relative; cursor: pointer; }
.wallet-option input { position: absolute; opacity: 0; }
.wallet-option .box { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--border); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; height: 100%; }
.wallet-option .box small { display: block; color: var(--subtle); font-size: .75rem; line-height: 1.25; }
.wallet-option .box strong { display: block; color: var(--ink); line-height: 1.25; }
.wallet-option input:checked + .box { border-color: var(--brand); background: var(--brand-50); }
.wallet-option input:focus-visible + .box { outline: 3px solid var(--brand-100); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .93rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-info { background: var(--info-bg); color: var(--brand-700); border-color: var(--brand-100); }
.alert-success { background: var(--success-bg); color: #0b6e37; border-color: #c6ead5; }
.alert-warning { background: var(--warning-bg); color: #8a5a10; border-color: #f2dfb8; }
.alert-danger { background: var(--danger-bg); color: #a52a2a; border-color: #f5c9c9; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; max-width: 380px; }
.toast-stack .alert { box-shadow: var(--shadow-lg); margin: 0; animation: slide-in .3s ease-out; }
@keyframes slide-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); font-weight: 700; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--success-bg); color: var(--success); }
.status-wait { background: var(--warning-bg); color: var(--warning); }
.status-bad { background: var(--danger-bg); color: var(--danger); }
.status-info { background: var(--brand-50); color: var(--brand-700); }
.status-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Payment status ---------- */
.pay-status { text-align: center; padding: 48px 32px; }
.spinner { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; border: 6px solid var(--brand-100); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; }
.result-icon.ok { background: var(--success-bg); color: var(--success); }
.result-icon.bad { background: var(--danger-bg); color: var(--danger); }
.result-icon.wait { background: var(--warning-bg); color: var(--warning); }
.result-icon svg { width: 40px; height: 40px; }
.phone-hint { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface); border-radius: 12px; font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { font-size: .78rem; color: var(--subtle); }
.progress-track { display: flex; gap: 6px; }
.progress-track span { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
.progress-track span.on { background: var(--brand); }

/* ---------- Portal / Admin shells ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 72px); }
.shell-side { background: var(--surface); border-right: 1px solid var(--border); padding: 28px 16px; }
.shell-side h6 { margin: 18px 12px 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.shell-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .93rem; }
.shell-side a:hover { background: var(--surface-2); color: var(--ink); }
.shell-side a.active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.shell-side .count { margin-left: auto; font-size: .72rem; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 8px; }
.shell-main { padding: 36px 40px 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 1.8rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.kpi small { display: block; color: var(--subtle); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi strong { display: block; font-size: 1.7rem; color: var(--ink); letter-spacing: -0.03em; margin-top: 4px; }
.kpi span { font-size: .82rem; color: var(--muted); }
.license-key { font-family: var(--mono); font-size: .95rem; background: var(--ink); color: #DCEAFB; padding: 10px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 12px; letter-spacing: .04em; }
.license-key button { background: rgba(255,255,255,.1); border: 0; color: #fff; padding: 4px 8px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .75rem; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--subtle); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); word-break: break-word; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .icon-tile { margin: 0 auto 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); background: #fff; }
.filters a.active, .filters a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Customer portal ---------- */
.shell-side .count-warn { background: var(--gold); color: var(--ink); }
.shell-side .count-danger { background: var(--danger); }
.kpi-link { color: inherit; transition: border-color .15s, box-shadow .15s; }
.kpi-link:hover { color: inherit; border-color: var(--brand-100); box-shadow: var(--shadow); }
.list-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: inherit; }
.list-link:last-child { border-bottom: 0; padding-bottom: 0; }
.list-link:hover { color: inherit; }
.list-link strong { color: var(--ink); }
a.list-link:hover strong { color: var(--brand-600); }
.welcome-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--brand-50), #fff); }
.welcome-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.welcome-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-weight: 600; color: var(--ink); }
.welcome-steps span { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.license-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.muted-card { opacity: .6; }
.last-update { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stepper::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); }
.stepper-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stepper-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--border-strong); color: var(--subtle); font-weight: 800; font-size: .85rem; z-index: 1; }
.stepper-label { font-size: .82rem; font-weight: 600; color: var(--subtle); }
.stepper-item.done .stepper-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper-item.current .stepper-dot { border-color: var(--brand); color: var(--brand-700); box-shadow: 0 0 0 5px rgba(65,137,221,.15); }
.stepper-item.done .stepper-label, .stepper-item.current .stepper-label { color: var(--ink); }
.message-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 12px; }
.message-box .textarea { min-height: 80px; background: #fff; }
.timeline li.from-customer::before { border-color: var(--gold); background: #FFF4DC; }
.timeline li.from-customer p { background: #FFFBF0; border: 1px solid #F6E7C1; border-radius: 10px; padding: 8px 12px; margin: 4px 0 !important; }
.period-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.period-bar span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.period-bar span.warn { background: var(--gold); }
.period-bar span.bad { background: var(--danger); }
.danger-zone summary { cursor: pointer; color: var(--danger); list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone summary::after { content: " ▾"; color: var(--subtle); }

/* Receipt */
.receipt { position: relative; overflow: hidden; }
.receipt-head { padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.receipt-title { font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; color: var(--ink); }
.receipt-meta { margin-bottom: 24px; }
.receipt-meta strong { color: var(--ink); }
.receipt-table th { background: transparent; }
.receipt-table tfoot td { border-bottom: 0; padding-top: 10px; padding-bottom: 6px; }
.receipt-table tfoot tr:first-child td { border-top: 2px solid var(--ink); }
.paid-stamp { position: absolute; top: 120px; right: 40px; transform: rotate(-14deg); border: 4px solid var(--success); color: var(--success); font-weight: 800; font-size: 2rem; letter-spacing: .15em; padding: 4px 18px; border-radius: 10px; opacity: .35; pointer-events: none; }

@media print {
  .topbar, .nav, .shell-side, .footer, .whatsapp-fab, .toast-stack, .no-print { display: none !important; }
  .shell { display: block; min-height: 0; }
  .shell-main { padding: 0; }
  body { background: #fff; }
  .receipt { border: 0; box-shadow: none; padding: 0; }
  .table-wrap { border: 0; }
  a { color: inherit; }
}

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #B9C8D9; padding: 64px; display: flex; flex-direction: column; justify-content: center;
  background-image: radial-gradient(600px 400px at 100% 0%, rgba(65,137,221,.4), transparent 60%); }
.auth-side h2 { color: #fff; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #94A6BA; padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer a { color: #C9D5E3; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.whatsapp-fab { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.whatsapp-fab:hover { color: #fff; transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .module-grid, .kpis { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .configurator { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .wallet-showcase { display: flex; flex-wrap: wrap; justify-content: center; }
  .wallet-tile { flex: 0 1 calc((100% - 32px) / 3); }
}
@media (max-width: 900px) {
  .hero .container, .product-hero .container { grid-template-columns: 1fr; padding-block: 64px; }
  .mock { transform: none; }
  .grid-3, .grid-4, .pricing-grid, .wallet-grid, .option-grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .shell { grid-template-columns: 1fr; }
  .shell-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; display: flex; gap: 4px; overflow-x: auto; }
  .shell-side h6 { display: none; }
  .shell-side a { white-space: nowrap; }
  .shell-main { padding: 24px 16px 48px; }
  .auth { grid-template-columns: 1fr; }
  .welcome-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav .container { gap: 12px; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .topbar .hide-xs { display: none; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .pricing-grid.two, .module-grid, .option-grid, .option-grid.three, .wallet-grid, .compare, .form-grid, .product-facts, .steps, .kpis { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-tile { flex-basis: calc((100% - 16px) / 2); }
  .wallet-tile-logo { height: 76px; padding: 16px 12px 8px; }
  .wallet-tile-logo img { max-height: 32px; }
  .wallet-tile-logo img.is-icon { max-height: 46px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
  .stepper-label { font-size: .7rem; }
  .paid-stamp { display: none; }
  .card { padding: 22px; }
  .nav-actions .btn-label { display: none; }
}
