/* ==========================================================================
   Adodex Ventures — funnel styles
   Mobile-first. Nearly all paid traffic in Nigeria lands on a phone, so the
   base styles ARE the mobile styles and desktop is the enhancement.
   ========================================================================== */

:root {
  --ink:        #0B1220;
  --ink-2:      #1C2942;
  --body:       #46536B;
  --muted:      #6B7893;
  --line:       #E3E8F0;
  --bg:         #FFFFFF;
  --bg-alt:     #F6F8FC;

  --brand:      #0F62FE;
  --brand-dk:   #0A4FD1;
  --accent:     #12A150;
  --accent-dk:  #0C7C3D;
  --warn:       #B45309;
  --danger:     #C02626;

  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(11,18,32,.06), 0 1px 3px rgba(11,18,32,.10);
  --shadow-md:  0 4px 12px rgba(11,18,32,.08), 0 12px 28px rgba(11,18,32,.08);
  --shadow-lg:  0 8px 24px rgba(11,18,32,.10), 0 24px 56px rgba(11,18,32,.12);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Helvetica, Arial, sans-serif;
}

*, *::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(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

/* Copy comes from config.js, so a long product name, URL or email address can
   arrive at any time. Without this a single unbreakable string forces the whole
   page wider than the screen and creates horizontal scroll on mobile. */
h1, h2, h3, p, li, a, label, summary, .price-now, .trust-stat .v {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 760px; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.65rem; text-align: center; margin-bottom: 32px; }

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border: 0; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-lg { width: 100%; padding: 17px 28px; font-size: 1.08rem; }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Header ------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand img { max-height: 34px; width: auto; }

/* ---------- Hero --------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 460px at 12% -8%, rgba(15,98,254,.10), transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
  padding: 34px 0 44px;
}
.hero-grid { display: grid; gap: 30px; }

.eyebrow {
  display: inline-block; margin: 0 0 12px;
  background: #FEF3C7; color: var(--warn);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.hero-title { font-size: 2.05rem; }
.hero-sub { font-size: 1.06rem; color: var(--body); margin-bottom: 20px; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.price-now { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-was { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.price-note { flex-basis: 100%; font-size: .88rem; color: var(--accent-dk); font-weight: 600; }

.hero-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.hero-points li { position: relative; padding-left: 27px; font-weight: 500; color: var(--ink-2); }
.hero-points li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%;
  background: #DCFCE7; color: var(--accent-dk);
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
}

.hero-btn { margin-bottom: 26px; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero-media:empty, .hero-media img:not([src]) { display: none; }

/* ---------- Form card ---------------------------------------------------- */

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px; box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.3rem; margin-bottom: 6px; }
.form-sub { font-size: .93rem; color: var(--muted); margin-bottom: 20px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: .87rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .req { color: var(--danger); }

.field input, .field select {
  width: 100%; font-family: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink); background: #fff;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7893' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus, .field select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,98,254,.14);
}
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { display: none; margin: 6px 0 0; font-size: .82rem; color: var(--danger); font-weight: 600; }
.field.has-error .field-error { display: block; }

/* Honeypot — bots fill it, humans never see it. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-legal { margin: 13px 0 0; font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.5; }
.form-alert {
  display: none; margin-bottom: 15px; padding: 11px 14px; border-radius: 10px;
  font-size: .88rem; font-weight: 600;
  background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA;
}
.form-alert.is-visible { display: block; }

/* Success state replaces the form in place. */
.form-success { text-align: center; padding: 14px 4px; }
.form-success .tick {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: #DCFCE7; color: var(--accent-dk);
  font-size: 1.9rem; display: grid; place-items: center;
  animation: pop .38s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
.form-success h3 { font-size: 1.28rem; }
.form-success p { color: var(--body); font-size: .96rem; margin-bottom: 0; }
.form-success .wa-btn { margin-top: 20px; background: #25D366; }
.form-success .wa-btn:hover { background: #1DA851; }

/* ---------- Trust bar ---------------------------------------------------- */

.trust { background: var(--ink); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; text-align: center; }
.trust-stat .v { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.trust-stat .l { font-size: .8rem; color: #9FB0CC; }

/* ---------- Benefits ----------------------------------------------------- */

.benefit-grid { display: grid; gap: 16px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.benefit .icon { font-size: 1.55rem; line-height: 1; margin-bottom: 12px; }
.benefit h3 { font-size: 1.06rem; margin-bottom: 6px; }
.benefit p { font-size: .93rem; margin: 0; }

/* ---------- Steps -------------------------------------------------------- */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.04rem; margin-bottom: 4px; }
.steps p { font-size: .93rem; margin: 0; }

/* ---------- Testimonials ------------------------------------------------- */

.testimonial-grid { display: grid; gap: 16px; }
.testimonial {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
}
.testimonial .stars { color: #F59E0B; font-size: .92rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .body { font-size: .96rem; color: var(--ink-2); margin-bottom: 14px; }
.testimonial .who { font-size: .85rem; font-weight: 700; color: var(--ink); }
.testimonial .where { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------------------------------------------------------- */

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 11px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 46px 17px 19px; position: relative;
  font-weight: 700; color: var(--ink); font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--muted); transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 19px 17px; font-size: .94rem; }
.faq .answer p { margin: 0; }

/* ---------- Closing / footer --------------------------------------------- */

.closing { padding-bottom: 76px; }
.closing-title { margin-bottom: 24px; }

.site-footer { background: var(--ink); color: #9FB0CC; padding: 36px 0 100px; text-align: center; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.02rem; margin-bottom: 8px; }
.footer-note { font-size: .84rem; max-width: 480px; margin: 0 auto 14px; }
.footer-meta { font-size: .8rem; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0; }
.footer-meta a { color: #9FB0CC; }

/* ---------- Sticky mobile CTA -------------------------------------------- */

.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.02rem; text-align: center;
  padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(120%); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ==========================================================================
   Small phones — 320px to 359px (iPhone SE, older Androids).
   Still a real share of Nigerian mobile traffic, so it gets explicit care
   rather than being left to overflow.
   ========================================================================== */

@media (max-width: 359px) {
  .wrap { padding-inline: 14px; }
  .hero-title { font-size: 1.72rem; }
  .hero-sub { font-size: .98rem; }
  .price-now { font-size: 1.7rem; }
  .form-card { padding: 20px 15px; }
  .section-title { font-size: 1.42rem; }
  .trust-grid { gap: 18px 8px; }
  .trust-stat .v { font-size: 1.25rem; }
  .steps li { padding-left: 48px; }
  .steps li::before { width: 34px; height: 34px; font-size: .95rem; }
  .sticky-cta { left: 12px; right: 12px; font-size: .95rem; padding: 14px; }
}

/* ==========================================================================
   Tablet / large phone — 600px and up.
   Without this tier a 768px iPad renders the single-column phone layout with
   cards stretched to ~730px wide, which looks broken rather than merely plain.
   ========================================================================== */

@media (min-width: 600px) {
  .wrap { padding-inline: 28px; }

  .section { padding: 68px 0; }
  .section-title { font-size: 1.9rem; margin-bottom: 40px; }

  .hero-title { font-size: 2.6rem; }
  .hero-sub { font-size: 1.1rem; }
  .price-now { font-size: 2.2rem; }

  /* Two columns of bullets reads better than one long list at this width. */
  .hero-points { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }

  .form-card { padding: 28px 26px; }
  .hero-media img { max-height: 420px; object-fit: cover; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-stat .v { font-size: 1.6rem; }

  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* Odd card in a 2-col grid: let the last one span so it never sits alone
     at half width with dead space beside it. */
  .testimonial:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ==========================================================================
   Desktop — 900px and up. Hero becomes two columns, form moves beside it.
   ========================================================================== */

@media (min-width: 900px) {
  body { font-size: 17px; }

  .section { padding: 84px 0; }
  .section-title { font-size: 2.15rem; margin-bottom: 48px; }

  .hero { padding: 60px 0 76px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
  .hero-title { font-size: 2.8rem; }
  .hero-sub { font-size: 1.16rem; }
  .price-now { font-size: 2.5rem; }
  .hero-points { grid-template-columns: 1fr; }

  .mobile-only { display: none; }

  .form-card { padding: 30px 28px; }
  .hero-media img { max-height: none; }

  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .testimonial:last-child:nth-child(odd) { grid-column: auto; }

  .steps { gap: 32px; }
  .trust-stat .v { font-size: 1.85rem; }

  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 44px; }
}

/* ==========================================================================
   Wide desktop — only here is there room for four benefit cards without
   squeezing each one to ~200px.
   ========================================================================== */

@media (min-width: 1100px) {
  .hero-grid { gap: 56px; }
  .hero-title { font-size: 3.05rem; }
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Sticky hero form — ONLY when the viewport is tall enough to hold it.
   A sticky element taller than the space below `top` has its lower half
   permanently unreachable: on a short laptop screen the submit button would
   scroll off and never come back. Gated on height so that cannot happen.
   ========================================================================== */

@media (min-width: 900px) and (min-height: 820px) {
  .hero-form { position: sticky; top: 86px; }
}

/* ==========================================================================
   Landscape phones — very short viewports. Trim vertical padding so the form
   is reachable without endless scrolling, and drop the sticky bar which would
   otherwise cover a third of the screen.
   ========================================================================== */

@media (max-height: 460px) and (orientation: landscape) {
  .hero { padding: 20px 0 26px; }
  .section { padding: 36px 0; }
  .site-header { position: static; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
