/* ═══════════════════════════════════════════════════════════════════════
   MENT PAY — LIVING PRODUCT SITE STYLES (v6.5)
   Human-crafted editorial contrast: Obsidian + Daylight Paper + Brand Blue
   Typography: Unbounded (display personality) + Onest (UI/body) + JetBrains Mono
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink-dark:      #080C14;
  --surface-dark:  #0F1624;
  --surface-dark-2:#162033;

  --paper-bg:      #F3F6FB;
  --paper-card:    #FFFFFF;
  --paper-ink:     #0B1220;
  --paper-muted:   #475569;
  --paper-border:  rgba(15, 23, 42, 0.09);

  --brand-blue:    #2576E3; /* Exact match to logo.jpg */
  --brand-hover:   #1B63C7;
  --brand-tint:    #60A5FA;

  --emerald:       #10B981;
  --emerald-bright:#34D399;
  --rose:          #F43F5E;
  --amber:         #F59E0B;

  --font-display: 'Unbounded', 'Onest', sans-serif;
  --font-sans:    'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background-color: var(--ink-dark);
  color: #F8FAFC;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  max-width: 100%;
  background-color: var(--ink-dark);
  overflow-x: clip;
}

::selection {
  background: var(--brand-blue);
  color: #FFFFFF;
}

a, button, input, summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--brand-tint);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--spring);
}
.skip-link:focus { transform: translateY(0); }

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* Official Stacked / Inline Brand Mark */
.ment-mark {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.ment-mark .m-solid { color: #FFFFFF; }
.ment-mark .m-blue  { color: var(--brand-tint); margin-left: 1px; }

/* Outlined "pay" stroke like in logo.jpg for closing brand banner */
.pay-stroke {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
}

/* Tactile Buttons */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 14px;
  background: var(--brand-blue);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms var(--spring), background-color 150ms ease, box-shadow 150ms ease;
}
.btn-brand:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-brand:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #F8FAFC;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms var(--spring);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-dark:active {
  transform: scale(0.98);
}

/* ─── 3D TILT INTERACTIVE PHONE & CARD IN HERO ───────────────────────── */
.hero-glow {
  position: absolute;
  top: -120px;
  right: 6%;
  width: 560px;
  height: 520px;
  background: radial-gradient(circle, rgba(37, 118, 227, 0.10) 0%, transparent 68%);
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

.phone-shell {
  width: 100%;
  max-width: 396px;
  margin-inline: auto;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(155deg, #243044 0%, #0C121E 48%, #182336 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 36px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
  position: relative;
}

.phone-inner {
  border-radius: 31px;
  background: #080D18;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  min-height: 556px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 3D Tiltable Metallic Bank Card */
.tilt-stage {
  perspective: 900px;
}

.bank-card-3d {
  position: relative;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease-out, background 260ms ease, border-color 260ms ease;
  will-change: transform;
  cursor: grab;
}

.bank-card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--gx, 80%) var(--gy, 20%),
    rgba(255, 255, 255, 0.16),
    transparent 60%
  );
  pointer-events: none;
}

.bank-card-3d .card-ring {
  position: absolute;
  right: -48px;
  top: -28px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.bank-card-3d.skin-obsidian {
  background: linear-gradient(145deg, #1E2536 0%, #101521 55%, #090C14 100%);
}
.bank-card-3d.skin-cerulean {
  background: linear-gradient(145deg, #2576E3 0%, #154B9C 58%, #0B2554 100%);
  border-color: rgba(147, 197, 253, 0.42);
}
.bank-card-3d.skin-gold {
  background: linear-gradient(145deg, #422B09 0%, #211505 55%, #110B03 100%);
  border-color: rgba(251, 191, 36, 0.4);
}
.bank-card-3d.skin-emerald {
  background: linear-gradient(145deg, #0E3B29 0%, #082117 55%, #04120C 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

.chip-gold {
  width: 35px;
  height: 25px;
  border-radius: 5px;
  background: linear-gradient(135deg, #F8E392 0%, #D4A034 52%, #A37115 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  position: relative;
  flex-shrink: 0;
}
.chip-gold::before {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 1px;
  background: rgba(55, 35, 5, 0.4);
}
.chip-gold::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 34%;
  width: 32%;
  border-inline: 1px solid rgba(55, 35, 5, 0.4);
}

/* Interactive Sheet Overlay Inside Phone */
.phone-sheet {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.phone-sheet.open {
  opacity: 1;
  pointer-events: auto;
}
.phone-sheet-card {
  background: #101829;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px 24px 0 0;
  padding: 18px;
  transform: translateY(100%);
  transition: transform 260ms var(--spring);
}
.phone-sheet.open .phone-sheet-card {
  transform: translateY(0);
}

/* Live Pulse Dot */
@keyframes softPing {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: softPing 2.2s infinite;
}

/* Daylight Section Surfaces (Breaks AI Dark-Mode Monotony) */
.daylight-section {
  background-color: var(--paper-bg);
  color: var(--paper-ink);
}

.bank-push-bad {
  background: #FFFFFF;
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 20px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.1);
}

.bank-push-good {
  background: #FFFFFF;
  border: 2px solid #10B981;
  border-radius: 20px;
  box-shadow: 0 22px 50px -16px rgba(16, 185, 129, 0.2);
}

/* Interactive Playground Cards */
.playground-card {
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: border-color 200ms ease;
}
.playground-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Perforated Bank Receipt Edge */
.perf-divider {
  border-top: 1.5px dashed rgba(255, 255, 255, 0.16);
}

/* Calculator & Filter Pills */
.mode-pill {
  min-height: 44px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.mode-pill[aria-selected="true"] {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}
.mode-pill[aria-selected="false"] {
  background: transparent;
  color: #94A3B8;
  border-color: transparent;
}
.mode-pill[aria-selected="false"]:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
}

/* Number Input Cleanup */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* Native FAQ Details on Daylight / Dark */
details.faq-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 58px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-blue);
  color: #FFFFFF;
}
.faq-icon {
  transition: transform 180ms var(--spring), background-color 180ms ease, color 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .bank-card-3d { transform: none !important; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
