/* ─────────────────────────────────────────────────────────────────────
   Owoche — owoche.online
   Editorial fintech meets Afro-modern.
   Fraunces (display) + Manrope (body) + JetBrains Mono (numerics).
   ──────────────────────────────────────────────────────────────────── */

:root {
  --ink-950: #070912;
  --ink-900: #0A0E1A;
  --ink-800: #11172A;
  --ink-700: #1A2138;
  --ink-600: #252D49;
  --owo:     #3B82F6;
  --owo-light:#60A5FA;
  --owo-dark:#1D4ED8;
  --cream:   #F5EFE2;
  --amber-warm: #F59E0B;
  --amber-sun:  #F97316;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ───────────────────────────────────────────────
   Grain — soft film noise overlay across the page
   ─────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  background-size: 160px 160px;
}

/* ───────────────────────────────────────────────
   Atmospheric mesh blobs (hero)
   ─────────────────────────────────────────────── */
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: meshDrift 18s ease-in-out infinite;
}
.mesh-blob-1 {
  top: -10%; right: -10%;
  width: 720px; height: 720px;
  background: radial-gradient(circle at 30% 30%, var(--owo) 0%, transparent 60%);
}
.mesh-blob-2 {
  top: 30%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 60% 40%, var(--amber-warm) 0%, transparent 60%);
  opacity: 0.25;
  animation-delay: -6s;
}
.mesh-blob-3 {
  bottom: -10%; right: 20%;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 50% 50%, var(--owo-dark) 0%, transparent 60%);
  animation-delay: -12s;
}
@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.06); }
  66%      { transform: translate(-30px, 30px) scale(0.96); }
}

/* ───────────────────────────────────────────────
   Subtle dot grid background pattern
   ─────────────────────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* ───────────────────────────────────────────────
   Reveal-on-scroll
   ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ───────────────────────────────────────────────
   Typography helpers
   ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.55);
  margin-bottom: 22px;
}
.eyebrow-light { color: rgba(10, 14, 26, 0.55); }
.eyebrow-center { display: block; text-align: center; }

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-size: clamp(2.25rem, 5.4vw, 4.6rem);
}

.lead {
  margin-top: 26px;
  max-width: 36rem;
  color: rgba(245, 239, 226, 0.72);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
}
.lead-light { color: rgba(10, 14, 26, 0.72); }

/* ───────────────────────────────────────────────
   Store badges (App Store / Google Play)
   ─────────────────────────────────────────────── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(245, 239, 226, 0.08);
  border: 1px solid rgba(245, 239, 226, 0.16);
  color: var(--cream);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  backdrop-filter: blur(8px);
}
.store-badge:hover {
  transform: translateY(-2px);
  background: rgba(245, 239, 226, 0.13);
  border-color: rgba(245, 239, 226, 0.3);
}
.store-badge-lg {
  padding: 14px 24px;
  border-radius: 18px;
}

/* ───────────────────────────────────────────────
   Phone mockup (iPhone-like silhouette, screenshot inside)
   Mobile widths kept narrower so the phone doesn't kiss the
   viewport edges — gives a clear gutter on small screens.
   ─────────────────────────────────────────────── */
.phone {
  position: relative;
  width: min(290px, 74vw);
  aspect-ratio: 290/610;
  margin: 0 auto;
  border-radius: 44px;
  background: linear-gradient(155deg, #1F2538 0%, #0B0F1C 100%);
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 18px 30px -10px rgba(59,130,246,0.18),
    0 0 0 1px rgba(255,255,255,0.04);
  transform: rotate(var(--phone-rotate, 0deg));
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.phone-hero { width: min(330px, 78vw); }
.phone-tall { width: min(310px, 76vw); }
.phone-light {
  background: linear-gradient(155deg, #ffffff 0%, #d8d6cd 100%);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.25),
    0 0 0 1px rgba(0,0,0,0.06);
}
/* Direct child only — so .phone-stack-card images (two levels deep)
   are not pulled into this rule and their absolute positioning wins. */
.phone > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 28px;
  background: #0B0F1C;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
/* Hover lift only on devices with a real pointer — prevents Android/iOS
   from sticking on the hover transform after a tap. */
@media (hover: hover) {
  .phone:hover { transform: rotate(0deg) scale(1.02); }
}

/* Hero phone has its own subtle floating animation */
.phone-hero {
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: rotate(var(--phone-rotate, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--phone-rotate, 0deg)) translateY(-12px); }
}

/* ───────────────────────────────────────────────
   Phone stack — multiple screenshots inside one phone
   that shuffle like cards every few seconds.
   Absolutely positioned within the phone padding so it has
   a defined size on every viewport (no % height surprises).
   ─────────────────────────────────────────────── */
.phone-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border-radius: 36px;
  overflow: hidden;
  z-index: 1;
}
/* Selector specificity (.phone .phone-stack-card = 0,2,0) is bumped
   above .phone > img so the cards reliably overlap on every browser. */
.phone .phone-stack-card,
.phone-stack-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  will-change: transform, opacity;
  box-shadow: 0 18px 30px -16px rgba(0,0,0,0.5);
}
.phone-stack-front {
  animation: stack-front 7s ease-in-out infinite;
}
.phone-stack-back {
  animation: stack-back 7s ease-in-out infinite;
}
@keyframes stack-front {
  0%, 38%   { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 2; }
  50%, 88%  { opacity: 0; transform: translate(-8%, -3%) rotate(-4deg); z-index: 1; }
  100%      { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 2; }
}
@keyframes stack-back {
  0%, 38%   { opacity: 0; transform: translate(6%, 3%)  rotate(3deg);  z-index: 1; }
  50%, 88%  { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 2; }
  100%      { opacity: 0; transform: translate(6%, 3%)  rotate(3deg);  z-index: 1; }
}

/* 3-card shuffle — for sections that show three screenshots cycling. */
.phone-stack-3a { animation: stack3-a 10.5s ease-in-out infinite; }
.phone-stack-3b { animation: stack3-b 10.5s ease-in-out infinite; }
.phone-stack-3c { animation: stack3-c 10.5s ease-in-out infinite; }

@keyframes stack3-a {
  0%, 28%   { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 3; }
  33%, 95%  { opacity: 0; transform: translate(-8%, -3%) rotate(-4deg); z-index: 1; }
  100%      { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 3; }
}
@keyframes stack3-b {
  0%, 28%   { opacity: 0; transform: translate(6%, 3%)  rotate(3deg);  z-index: 1; }
  33%, 61%  { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 3; }
  66%, 100% { opacity: 0; transform: translate(-8%, -3%) rotate(-4deg); z-index: 1; }
}
@keyframes stack3-c {
  0%, 61%   { opacity: 0; transform: translate(6%, 3%)  rotate(3deg);  z-index: 1; }
  66%, 95%  { opacity: 1; transform: translate(0, 0)    rotate(0deg);  z-index: 3; }
  100%      { opacity: 0; transform: translate(6%, 3%)  rotate(3deg);  z-index: 1; }
}

/* ───────────────────────────────────────────────
   Floating callout pill (next to hero phone)
   ─────────────────────────────────────────────── */
.callout-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 23, 42, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
  white-space: nowrap;
  z-index: 3;
}

/* ───────────────────────────────────────────────
   Trust marquee
   ─────────────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: rgba(245, 239, 226, 0.6);
}
.marquee-item {
  font-weight: 400;
}
.marquee-dot {
  font-style: normal;
  color: var(--owo-light);
  font-size: 10px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────────────────────────────
   Feature bullets (magazine block lists)
   ─────────────────────────────────────────────── */
.feature-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  line-height: 1.5;
}
.bullet-glyph {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--owo-light);
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ───────────────────────────────────────────────
   Biller pills (cream section)
   ─────────────────────────────────────────────── */
.biller-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10,14,26,0.04);
  border: 1px solid rgba(10,14,26,0.12);
  font-size: 13px;
  font-weight: 600;
  color: rgba(10,14,26,0.78);
  transition: background .2s ease, transform .2s ease;
}
.biller-pill:hover {
  background: rgba(10,14,26,0.07);
  transform: translateY(-1px);
}

/* ───────────────────────────────────────────────
   Quad cards (scan / tap / done sequence)
   ─────────────────────────────────────────────── */
.quad-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.quad-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: var(--owo-light);
  line-height: 1;
}
.quad-label {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(245,239,226,0.85);
  font-weight: 500;
  line-height: 1.3;
}

/* ───────────────────────────────────────────────
   Security cards (Panic PIN section)
   ─────────────────────────────────────────────── */
.security-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}
.security-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(244,63,94,0.07), transparent 60%);
  pointer-events: none;
}
.security-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(252, 165, 165, 0.85);
  margin-bottom: 12px;
}
.security-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 8px;
  position: relative;
}
.security-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,239,226,0.62);
  position: relative;
}
.security-mini {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.security-mini strong {
  display: block;
  font-weight: 600;
  color: var(--cream);
  font-size: 14px;
}
.security-mini span {
  display: block;
  margin-top: 4px;
  color: rgba(245,239,226,0.55);
  font-size: 12.5px;
  line-height: 1.4;
}

/* ───────────────────────────────────────────────
   SmartAza glyph
   ─────────────────────────────────────────────── */
.aza-glyph {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--amber-sun);
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   Metric blocks (Earn section)
   ─────────────────────────────────────────────── */
.metric {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.metric-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--amber-warm);
}
.metric-label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.55);
  font-family: 'JetBrains Mono', monospace;
}

/* ───────────────────────────────────────────────
   Flex display (mocked balance card)
   ─────────────────────────────────────────────── */
.flex-display {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(59,130,246,0.10) 0%, rgba(59,130,246,0.02) 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  overflow: hidden;
}
.flex-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flex-row-meta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(96, 165, 250, 0.15);
}
.flex-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.55);
}
.flex-amount {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(28px, 7.5vw, 52px);
  letter-spacing: -0.04em;
  color: var(--cream);
  line-height: 1;
  word-break: keep-all;
}
.flex-amount-decimal {
  color: rgba(245,239,226,0.45);
}
.flex-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--owo);
  color: white;
}
.flex-meta {
  font-size: 12px;
  color: rgba(245,239,226,0.55);
  font-weight: 500;
}

/* ───────────────────────────────────────────────
   Language cards
   ─────────────────────────────────────────────── */
.lang-card {
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.lang-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(96,165,250,0.4);
}
.lang-greet {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--cream);
}
.lang-name {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.55);
}
.lang-card-pidgin .lang-greet { color: var(--amber-warm); }
.lang-card-more {
  background: rgba(255,255,255,0.015);
  border-style: dashed;
}
.lang-card-more .lang-greet { color: rgba(245,239,226,0.45); }

/* ───────────────────────────────────────────────
   FAQ
   ─────────────────────────────────────────────── */
.faq-item {
  padding: 22px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1.3;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 6px;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 12px no-repeat;
  color: rgba(245,239,226,0.65);
  transition: transform .3s ease, background-size .3s ease;
}
.faq-item[open] summary::after {
  background-size: 12px 1.5px, 1.5px 1.5px;
  transform: rotate(180deg);
}
.faq-body {
  margin-top: 14px;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(245,239,226,0.65);
}

/* ───────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────── */
.footer-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.55);
  margin-bottom: 14px;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-list a {
  color: rgba(245,239,226,0.78);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-list a:hover { color: var(--cream); }

/* ───────────────────────────────────────────────
   Reduced motion
   ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
