/* Base layout, typography, and component styles for the Fleek Fintech theme. */

*, *::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 { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .container { padding: 0 var(--space-4); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 640px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); padding: 12px 8px; }
.btn-ghost:hover { color: var(--accent-strong); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
}
/* Frosted-glass background lives on a ::before layer, not on .site-header
   itself. backdrop-filter (like transform/filter/perspective) on an
   element makes IT the containing block for any position:fixed
   descendant — and .main-nav (the mobile menu overlay) is one, nested
   inside <header>. With backdrop-filter directly on .site-header, the
   mobile menu's `position: fixed; inset: 76px 0 0 0` was being resolved
   against the 76px-tall header box instead of the viewport, silently
   breaking its position/paint (menu text rendered with no opaque
   background, bleeding through onto the page content underneath — found
   live 2026-08-16 from a real-device screenshot). ::before is a sibling
   of .main-nav (both children of .site-header), not its ancestor, so it
   doesn't trigger the same containing-block rule. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text); }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-8); }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color var(--dur-fast); }
.main-nav a:hover, .main-nav a.current { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--text); }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); padding: var(--space-6); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all var(--dur-normal) var(--ease-out); }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .main-nav a { font-size: 20px; }
  .nav-toggle { display: block; }
  .header-actions .btn-secondary { display: none; }
}

/* ── Hero ── */
.hero { padding: var(--space-24) 0 var(--space-20); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 140%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 900px) {
  /* height/top above are percentages of .hero's own box. On desktop
     .hero-grid is 2-column and short, so 140% is a subtle glow behind the
     whole hero. On mobile .hero-grid stacks (text, then hero-stats, then
     hero-visual) into one much taller section — the same 140% then
     stretches the glow across nearly the entire stacked hero as a big
     visible band, reading as a rendering bug even though it's just this
     value not scaling sensibly with the new height (found live
     2026-08-16 from a real-device screenshot; confirmed by disabling
     .hero::before entirely and watching the band disappear — several
     other theories, incl. an Android backdrop-filter compositing bug,
     were ruled out first). Fixed size instead, sized for a glow behind
     just the hero text, not the full stacked column.
  */
  .hero::before { top: -40px; right: -10%; width: 70%; height: 420px; }
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-16); align-items: center; position: relative; }
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--space-8); margin-top: var(--space-12); flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); display: block; }
.hero-stat .label { font-size: 13px; color: var(--text-muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: var(--space-16) 0; } }

.hero-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: var(--space-6); position: relative;
}
.hero-visual .panel-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.hero-visual .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-visual .bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: var(--space-4) 0; }
.hero-visual .bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-soft)); border-radius: 4px 4px 0 0; }

/* ── Sections ── */
.section { padding: var(--space-20) 0; }
.section-tight { padding: var(--space-16) 0; }
.section-header { max-width: 640px; margin: 0 auto var(--space-12); text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }
.section-alt { background: var(--surface-2); }

/* ── Product cards (homepage) ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: var(--space-10); display: flex; flex-direction: column; transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
  /* Grid items default to min-width:auto, so a child's min-content
     (here, .card-footer's nowrap buttons) can force this wider than
     the grid track and overflow the viewport on mobile. */
  min-width: 0;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-6); font-size: 24px; }
.product-card.product-fleek .icon { background: var(--accent-soft); color: var(--accent-strong); }
.product-card.product-advisoros .icon { background: rgba(15,38,71,0.08); color: var(--navy); }
.product-card ul { margin: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.product-card ul li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 14.5px; color: var(--text-muted); }
.product-card ul li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.product-card .card-footer { margin-top: auto; padding-top: var(--space-6); display: flex; gap: var(--space-3); align-items: center; }

/* ── Feature grid (3-col) ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.feature .icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); font-size: 18px; }
.feature h3 { font-size: 17px; margin-bottom: var(--space-2); }
.feature p { font-size: 14.5px; margin: 0; }

/* ── Logo / audience strip ── */
.strip { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: center; align-items: center; padding: var(--space-8) 0; opacity: 0.85; }
.strip span { font-size: 14px; color: var(--text-subtle); font-weight: 600; letter-spacing: 0.02em; }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-strong));
  border-radius: var(--radius-xl); padding: var(--space-16) var(--space-10); text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.72); margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--accent); }

/* ── Timeline / journey ── */
.timeline { display: flex; flex-direction: column; gap: var(--space-6); }
.timeline-item { display: flex; gap: var(--space-5); }
.timeline-marker { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.timeline-item h4 { margin-bottom: var(--space-1); font-size: 16px; }
.timeline-item p { margin: 0; font-size: 14.5px; }

/* ── Quote / testimonial placeholder ── */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); }
.quote-card p { font-size: 18px; color: var(--text); font-style: italic; }
.quote-card .who { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.quote-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent-strong); }
.quote-card .who strong { font-size: 14px; display: block; }
.quote-card .who span { font-size: 13px; color: var(--text-muted); }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: var(--space-5); }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: var(--space-2); color: var(--text); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-info-item { display: flex; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--border); }
.contact-info-item .icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Blog / insights ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur-normal); }
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-soft), var(--surface-3)); display: flex; align-items: center; justify-content: center; color: var(--accent-strong); font-size: 28px; }
.post-card .body { padding: var(--space-5); }
.post-card .meta { font-size: 12.5px; color: var(--text-subtle); margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.03em; }
.post-card h3 { font-size: 17px; margin-bottom: var(--space-2); }
.post-card p { font-size: 14px; margin: 0; }
.post-card .tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 10px; border-radius: var(--radius-full); margin-bottom: var(--space-3); }

.single-article { max-width: 760px; margin: 0 auto; }
.single-article .entry-meta { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-6); }
.single-article .entry-content { font-size: 17px; line-height: 1.75; color: var(--text); }
.single-article .entry-content p { color: var(--text); }
.single-article .entry-content h2 { font-size: 26px; margin-top: var(--space-10); }
.single-article .entry-content h3 { font-size: 20px; margin-top: var(--space-8); }
.single-article .entry-content img { border-radius: var(--radius-lg); margin: var(--space-6) 0; }
.single-article .entry-content blockquote { border-left: 3px solid var(--accent); padding-left: var(--space-5); color: var(--text-muted); font-style: italic; margin: var(--space-6) 0; }
.single-article .entry-content a { color: var(--accent-strong); text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-12); }
.pagination a, .pagination span { padding: 8px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); font-size: 14px; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Product detail page ── */
.product-hero { padding: var(--space-20) 0 var(--space-12); }
.product-hero .lede { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.product-hero .section-header { margin-bottom: var(--space-8); }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; padding: var(--space-16) 0; }
.split-feature.reverse { direction: rtl; }
.split-feature.reverse > * { direction: ltr; }
@media (max-width: 900px) { .split-feature, .split-feature.reverse { grid-template-columns: 1fr; direction: ltr; } }
.split-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-md); min-height: 280px; display: flex; align-items: center; justify-content: center; }
.split-visual.has-shot { padding: var(--space-5); }

/* ── Product screenshots (real UI, not mockups) ──
   Each screenshot renders at its own natural aspect ratio (width:100%;
   height:auto, no object-fit) — these are UI captures with text right up
   to the edges, so cropping with object-fit:cover zooms in and clips
   words rather than trimming empty margin. Only the grid thumbnails
   below (.page-tile) deliberately crop, since those need uniform card
   heights across a row and crop from the bottom (object-position:top),
   never the sides. */
.shot-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-frame.desktop { max-height: 460px; }
.shot-frame.desktop img { object-fit: cover; object-position: top; }
.shot-frame.phone { max-width: 260px; margin: 0 auto; border-radius: 28px; border-width: 6px; border-color: var(--navy-strong); box-shadow: var(--shadow-lg); }
.shot-frame.phone.lg { max-width: 320px; }
.shot-caption { font-size: 13px; color: var(--text-subtle); margin-top: var(--space-3); text-align: center; }

/* ── Page showcase grid (advisor/client screen tour) ── */
.page-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.page-showcase.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .page-showcase, .page-showcase.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .page-showcase, .page-showcase.cols-3 { grid-template-columns: 1fr; } }
.page-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out); }
.page-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.page-tile .shot-frame { border-radius: 0; border: none; border-bottom: 1px solid var(--border); max-height: 260px; }
.page-tile .shot-frame img { object-fit: cover; object-position: top; height: 260px; }
.page-tile .tile-body { padding: var(--space-5); }
.page-tile .tile-who { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: var(--space-2); }
.page-tile h4 { font-size: 15.5px; margin-bottom: var(--space-2); }
.page-tile p { font-size: 13.5px; margin: 0; }

/* ── DPDP / trust strip ── */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); align-items: center; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-list { display: flex; flex-direction: column; gap: var(--space-5); }
.trust-item { display: flex; gap: var(--space-4); }
.trust-item .icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.trust-item h4 { font-size: 15.5px; margin-bottom: var(--space-1); }
.trust-item p { font-size: 14px; margin: 0; }
.trust-shots { display: flex; gap: var(--space-5); justify-content: center; }
.trust-shots .shot-frame.phone { max-width: 200px; }
@media (max-width: 560px) { .trust-shots { flex-direction: column; align-items: center; } }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-16) 0 var(--space-8); background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-12); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-subtle); margin-bottom: var(--space-4); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { font-size: 14.5px; color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-8); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-subtle); flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom .social { display: flex; gap: var(--space-4); }

/* ── Utility ── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); }
