/* ============================================================================
   Bakimon — minimal, modern, B2B-developer-tool aesthetic.
   Black/white base + a single accent. No frills.
   ============================================================================ */

:root {
  /* Whites & greys — base canvas */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fafafa;
  --bg-dark: #0a0a0a;

  /* Foreground — black + grey scale */
  --fg: #0a0a0a;
  --fg-soft: #3d3d3d;
  --fg-muted: #8a8a8a;
  --border: #e8e8eb;
  --border-strong: #d4d4d8;

  /* Brand pink — sampled from the Bakimon logo */
  --accent: #ec1b5e;
  --accent-hover: #c41450;
  --accent-soft: #fde7ee;
  --accent-glow: rgba(236, 27, 94, 0.15);

  /* Status colors — kept neutral, tuned to harmonize with pink */
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow:    0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono",
               monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; }
.centered { text-align: center; }
.muted { color: var(--fg-muted); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  /* No border-bottom — the logo overflows the navbar via negative margin
     and a hard line would cut through it. Page content below provides
     enough visual separation. */
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;        /* short, modern navbar — logo overflows via negative margin */
}
@media (max-width: 900px) {
  .nav-row { height: 72px; }
}
@media (max-width: 720px) {
  .nav-row { height: 64px; }
}
@media (max-width: 480px) {
  .nav-row { height: 56px; }
}

.brand {
  display: inline-flex; align-items: center;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-mark {
  display: block;
  /* Logo renders BIG (160px) but uses negative vertical margin so it only
     occupies ~80px of layout space — the navbar stays short while the logo
     visually dominates by overflowing top + bottom. */
  height: 160px;
  width: auto;
  flex-shrink: 0;
  margin: -40px 0;
}
/* Footer uses the icon-only variant (~1:1, square), no overflow needed */
.site-footer .brand-mark {
  height: 96px;
  margin: 0;
}
@media (max-width: 900px) {
  .brand-mark { height: 120px; margin: -28px 0; }
  .site-footer .brand-mark { height: 80px; margin: 0; }
}
@media (max-width: 720px) {
  .brand-mark { height: 96px; margin: -20px 0; }
  .site-footer .brand-mark { height: 64px; margin: 0; }
}
@media (max-width: 480px) {
  .brand-mark { height: 72px; margin: -12px 0; }
  .site-footer .brand-mark { height: 56px; margin: 0; }
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--fg-soft); font-weight: 500; font-size: 15px;
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(1200px 400px at 80% 10%, var(--accent-glow), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero-accent { color: var(--accent); }

.hero-sub {
  font-size: 18px; color: var(--fg-soft);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-meta > div {
  display: flex; flex-direction: column;
}
.hero-meta strong { font-size: 18px; color: var(--fg); }
.hero-meta span { font-size: 13px; color: var(--fg-muted); }

/* ── Code card ───────────────────────────────────────────────────────────── */
.code-card {
  background: var(--bg-dark);
  color: #e6e6e6;
  padding: 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}
.code-card .cmt { color: #6b7280; }
.code-card .kw  { color: #c084fc; }
.code-card .str { color: #86efac; }

/* ── Section ─────────────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
}
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 18px; font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p { color: var(--fg-soft); margin: 0; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-direction: column; gap: 24px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.steps > li {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.steps h3 { margin: 0 0 8px; font-size: 17px; }
.steps p { margin: 0; color: var(--fg-soft); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 48px 0;
  align-items: stretch;
}
.pricing-row-compact .price-card {
  padding: 24px;
}

.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.price-card-featured {
  border-color: var(--fg);
  box-shadow: var(--shadow);
}
.price-card-featured:hover { transform: translateY(-3px); }

.price-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--fg); color: var(--bg);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.price-badge-enterprise { background: var(--accent); }

.price-card h2, .price-card h3 {
  margin: 0 0 6px; font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
}
.price-tagline {
  font-size: 13px; color: var(--fg-muted); margin-bottom: 20px;
}

.price-amount {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 4px;
}
.price-per-unit {
  font-size: 14px; color: var(--accent); font-weight: 600;
}
.price-qty {
  font-size: 13px; color: var(--fg-muted);
  margin-top: 4px; margin-bottom: 24px;
}

.price-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--fg-soft);
}
.price-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}

.checkout-form {
  display: flex; flex-direction: column; gap: 8px;
}
.checkout-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px; font-family: inherit;
}
.checkout-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
}

/* ── Custom-quantity card (any number, 1-500) ────────────────────────────── */
.custom-qty-card {
  margin: 48px auto 0;
  max-width: 720px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 40px var(--accent-glow);
}
.custom-qty-head h3 {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
}
.custom-qty-head p {
  margin: 0 0 24px;
  font-size: 14px;
}
.custom-qty-form { display: flex; flex-direction: column; gap: 16px; }
.custom-qty-inputs {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 600px) {
  .custom-qty-inputs { grid-template-columns: 1fr; }
}
.custom-qty-input { display: flex; flex-direction: column; gap: 6px; }
.custom-qty-input span {
  font-size: 13px; font-weight: 600; color: var(--fg-soft);
}
.custom-qty-input input {
  padding: 14px 16px;
  font-size: 24px; font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: center;
}
.custom-qty-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.custom-qty-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.custom-qty-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--fg-soft);
}
.custom-qty-row strong { color: var(--fg); font-weight: 700; }
.custom-qty-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.custom-qty-total strong {
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.enterprise-cta {
  margin-top: 40px;
  padding: 32px;
  background: var(--bg-dark); color: #fff;
  border-radius: var(--radius-lg);
}
.enterprise-cta h3 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.enterprise-cta p { color: #ccc; margin: 0 0 20px; }
.enterprise-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.enterprise-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  max-width: 720px; margin: 0 auto 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq summary {
  font-weight: 600; cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 20px; color: var(--fg-muted);
  transition: transform 0.15s;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  margin: 12px 0 0; color: var(--fg-soft); font-size: 15px;
}

/* ── CTA section ─────────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: var(--fg); color: var(--bg);
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 12px; color: #fff;
}
.cta-section p { color: #aaa; margin: 0 0 24px; }
.cta-section .btn-primary {
  background: #fff; color: var(--fg); border-color: #fff;
}
.cta-section .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 60px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h5 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin: 0 0 12px;
}
.footer-grid ul {
  list-style: none; padding: 0; margin: 0;
}
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--fg-soft); font-size: 14px; }
.footer-tagline { color: var(--fg-muted); font-size: 14px; margin-top: 8px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted); font-size: 13px;
  text-align: center;
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal { padding: 80px 0; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--fg-soft); }

/* ── Success page ────────────────────────────────────────────────────────── */
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  margin-bottom: 16px;
}
.lead { font-size: 18px; color: var(--fg-soft); }

.order-details {
  margin: 40px auto;
  max-width: 560px;
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.order-details table {
  width: 100%;
  text-align: left;
  table-layout: fixed;       /* prevents long codes from blowing up the column */
}
.order-details th {
  width: 32%;
  padding: 10px 12px 10px 0;
  font-weight: 600; font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: top;
  white-space: nowrap;
}
.order-details td {
  padding: 10px 0;
  text-align: right;
  font-size: 14px;
  word-break: break-all;     /* break the long order ID across lines */
  vertical-align: top;
}
.order-details td code {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
  white-space: normal;
  max-width: 100%;
  padding: 4px 8px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-paid       { background: #dbeafe; color: #1e40af; }
.badge-queued     { background: #fef9c3; color: #854d0e; }
.badge-processing { background: #ede9fe; color: #5b21b6; }
.badge-fulfilled  { background: #dcfce7; color: #166534; }
.badge-refunded   { background: #fee2e2; color: #991b1b; }
.badge-failed     { background: #fee2e2; color: #991b1b; }
.badge-cancelled  { background: #f3f4f6; color: #4b5563; }

/* ── Processing spinner & progress bar ───────────────────────────────────── */
.processing-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-icon-queue {
  background: var(--bg-alt) !important;
  color: var(--accent) !important;
  font-size: 36px !important;
  font-weight: 600;
}

.progress-block {
  max-width: 480px;
  margin: 32px auto 0;
}
.progress-label {
  font-size: 14px; color: var(--fg-soft);
  margin: 0 0 8px;
}
.progress-bar {
  background: var(--bg-alt);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f472b6);
  transition: width 0.4s ease;
  min-width: 4px;
}

/* ── Admin dashboard ─────────────────────────────────────────────────────── */
.admin-shell { padding: 32px 0; }
.admin-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-card .stat-label {
  font-size: 12px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.stat-card .stat-value {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0; line-height: 1;
}
.stat-card .stat-sub {
  margin: 4px 0 0;
  font-size: 12px; color: var(--fg-muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  background: var(--bg-alt);
  font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-alt); }
.admin-table code {
  font-size: 11px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
}

.admin-section {
  margin-bottom: 40px;
}
.admin-section h2 {
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.mini-progress {
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.mini-progress-bar {
  width: 80px; height: 6px;
  background: var(--bg-alt);
  border-radius: 999px; overflow: hidden;
}
.mini-progress-fill {
  height: 100%; background: var(--accent);
}

/* ── Admin: awaiting-approval action callout ─────────────────────────────── */
.stat-card-alert {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}
.stat-card-alert .stat-value { color: var(--accent-hover); }

.admin-action-required {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 24px 24px;
  margin-bottom: 32px;
}
.admin-action-required h2 {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-hover);
  margin-top: 0;
}
.admin-action-required .admin-table {
  background: var(--bg);
}
.action-required-dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Add status badge for awaiting_approval */
.badge-awaiting_approval { background: var(--accent-soft); color: var(--accent-hover); }
.status-dot-awaiting_approval { background: var(--accent); }
.order-card-awaiting_approval { border-left: 4px solid var(--accent); }

/* ── Auth state in nav ───────────────────────────────────────────────────── */
.nav-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-hover) !important;
  border-radius: 999px;
  font-weight: 600; font-size: 13px;
}
.nav-pill:hover { text-decoration: none; background: #fbd1de; }
.nav-pill-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}
.nav-logout-form { margin: 0; padding: 0; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.auth-form {
  display: flex; flex-direction: column; gap: 14px;
  margin: 24px 0 16px;
}
.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
}
.auth-form label > span {
  font-size: 13px; font-weight: 600; color: var(--fg);
}
.auth-form label small.muted {
  font-weight: 400;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-alt {
  text-align: center;
  font-size: 14px;
  color: var(--fg-soft);
  margin: 16px 0 0;
}
.form-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #b00020;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin: 16px 0;
}
.small { font-size: 13px; }

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dashboard-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.dashboard-header h1 {
  font-size: 32px;
  margin: 4px 0 6px;
  letter-spacing: -0.02em;
}
.dashboard-header-actions {
  display: flex; gap: 10px;
}
.section-subhead {
  font-size: 18px; font-weight: 700;
  margin: 32px 0 16px;
  letter-spacing: -0.01em;
}
.empty-state {
  text-align: center; padding: 64px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-strong);
}
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { color: var(--fg-soft); margin: 0 0 24px; }

.order-list {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
}
.order-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.order-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.order-card-fulfilled { border-left: 4px solid var(--success); }
.order-card-processing { border-left: 4px solid var(--accent); }
.order-card-queued { border-left: 4px solid var(--warn); }
.order-card-failed { border-left: 4px solid var(--danger); }

.order-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 12px;
}
.order-card h3 {
  margin: 0 0 4px; font-size: 17px;
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.order-card-amount {
  text-align: right; flex-shrink: 0;
}
.order-card-amount strong {
  font-size: 18px; display: block;
}
.order-card-amount small {
  font-size: 12px;
}
.order-status-line {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0;
  font-size: 14px; color: var(--fg-soft);
}
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--fg-muted);
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot-success { background: var(--success); }
.status-dot-processing {
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.status-dot-queued { background: var(--warn); }
.status-dot-pending { background: var(--fg-muted); }
.status-dot-failed { background: var(--danger); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.order-card-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}

.dashboard-help {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ── Hero clean (legacy, kept for fallback) ──────────────────────────────── */
.hero-clean {
  text-align: center;
  padding: 100px 0 72px;
}
.hero-clean .hero-content { max-width: 820px; margin: 0 auto; }
.hero-clean h1 { font-size: clamp(40px, 6vw, 68px); }
.hero-clean .hero-sub { margin: 0 auto; font-size: 19px; }
.hero-clean .hero-ctas { justify-content: center; }
.hero-clean .hero-meta {
  justify-content: center;
  border: none;
  margin-top: 56px; padding-top: 0;
  gap: 48px;
}

/* ── Hero split — 2-column, text + image ─────────────────────────────────── */
.hero-split {
  padding: 80px 0 72px;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-split .hero-content {
  max-width: 580px;
}
.hero-split h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero-split .hero-sub {
  font-size: 17px;
  color: var(--fg-soft);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-split .hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-split .hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-split .hero-meta > div {
  display: flex; flex-direction: column;
}
.hero-split .hero-meta strong { font-size: 17px; color: var(--fg); }
.hero-split .hero-meta span { font-size: 12px; color: var(--fg-muted); }

.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14),
              0 8px 16px rgba(236, 27, 94, 0.08);
}
.hero-visual::before {
  /* Soft pink glow behind the image */
  content: "";
  position: absolute;
  inset: -32px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 880px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-split .hero-content { margin: 0 auto; }
  .hero-split .hero-ctas,
  .hero-split .hero-meta { justify-content: center; }
  .hero-split .hero-meta { border-top: none; padding-top: 0; }
  .hero-split .hero-sub { margin-left: auto; margin-right: auto; }
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-bar-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.trust-bar-tools {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 15px; color: var(--fg-soft); font-weight: 600;
}
.trust-bar-tools span {
  letter-spacing: -0.01em;
}

/* ── Section heads (eyebrow + title) ─────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin: 0 0 12px; }

/* ── Card variants ───────────────────────────────────────────────────────── */
.card-feature {
  position: relative;
  padding-top: 56px;
}
.card-icon {
  position: absolute;
  top: 20px; left: 20px;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em;
}

/* ── Use-case grid (landing) ─────────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
  align-items: stretch;
}
.usecase {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.usecase:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(236, 27, 94, 0.10);
}
.usecase-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f472b6);
  color: #fff;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.usecase-icon svg {
  width: 28px; height: 28px;
  stroke-width: 2.2;
}
.usecase h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.3;
  min-height: 2.6em;        /* keep titles aligned even when wrapping */
}
.usecase p {
  color: var(--fg-soft);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

/* ── CTA buttons on dark ──────────────────────────────────────────────────── */
.cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.btn-on-dark {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4);
}
.btn-on-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
