/* ==========================================================================
   Enviable — link-in-bio micro-site
   Brand tokens taken from enviabletricycle.com (Elementor global kit).
   You should not need to edit this file to change content — see config.js.
   ========================================================================== */

/* --- Mulish, self-hosted (no third-party request, works offline) ---------- */
/* latin-ext is loaded first because it carries the naira sign (U+20A6). */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
  --brand-blue:      #0B6EF3;
  --brand-blue-deep: #2B61DB;
  --brand-navy:      #0A1F44;
  --brand-gold:      #FFB625;
  --brand-tint:      #E7F8FB;
  --brand-grey:      #54595F;
  --whatsapp:        #25D366;

  --surface:      #FFFFFF;
  --surface-alt:  #F6F9FC;
  --page:         var(--brand-tint);
  --text:         var(--brand-navy);
  --text-soft:    #5C6B84;
  --text-faint:   #8494AC;
  --line:         #E3EAF3;

  --shadow-sm: 0 1px 3px rgba(10, 31, 68, .06);
  --shadow:    0 2px 12px rgba(10, 31, 68, .08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 68, .14);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --shell: 480px;
  --pad:   20px;
  --ease:  cubic-bezier(.22, .8, .32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface:     #101D33;
    --surface-alt: #16253E;
    --page:        #070F1D;
    --text:        #EAF1FB;
    --text-soft:   #A6B6CE;
    --text-faint:  #7789A3;
    --line:        #22344F;
    --brand-tint:  #0E1C31;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow:    0 2px 14px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 34px rgba(0, 0, 0, .6);
  }
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--brand-blue); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Shell ---------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

@media (min-width: 520px) {
  body { padding: 24px 0; }
  .shell {
    min-height: auto;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
  }
}

/* --- Screens (hash-routed) ------------------------------------------------ */
.screen { display: none; }
.screen.is-active { display: block; animation: screen-in .18s var(--ease) both; }

/* The router focuses the active screen so assistive tech follows the change.
   That focus is programmatic, not a keyboard action — it must not draw a ring. */
.screen:focus, .screen:focus-visible { outline: none; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Screen 1 — hero
   ========================================================================== */
.hero {
  position: relative;
  /* Kept deliberately tight: on a link-in-bio page all three buttons need to
     sit above the fold on a ~660px-tall phone viewport. */
  padding: 30px var(--pad) 26px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue-deep) 52%, var(--brand-blue) 100%);
}

/* Faint tricycle-wheel motif — pure CSS, costs nothing to load. */
.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 26px solid #fff;
  border-radius: 50%;
  opacity: .06;
  pointer-events: none;
}

.hero__logo {
  height: 42px;
  width: auto;
  margin: 0 auto 14px;
  position: relative;
}

.hero__name {
  font-size: 1.4rem;
  letter-spacing: -.02em;
  position: relative;
}

.hero__tagline {
  margin-top: 6px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  position: relative;
}

/* The value proposition — kept narrow so it reads as two or three short
   lines rather than one wide block. */
.hero__intro {
  max-width: 32ch;
  margin: 11px auto 0;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  position: relative;
}

.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 7px 15px 7px 11px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--brand-navy);
  background: var(--brand-gold);
  border-radius: 999px;
  position: relative;
}
.hero__trust svg { width: 15px; height: 15px; flex: none; }

/* --- Link cards ----------------------------------------------------------- */
.links {
  display: grid;
  gap: 12px;
  padding: 24px var(--pad) 8px;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease),
              border-color .15s var(--ease);
}
.card-link:hover  { box-shadow: var(--shadow); border-color: #C9D9EE; }
.card-link:active { transform: scale(.98); }

.card-link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand-blue), var(--brand-blue-deep));
  color: #fff;
}
.card-link__icon svg { width: 23px; height: 23px; }

.card-link--whatsapp .card-link__icon {
  background: linear-gradient(140deg, #4AE07E, var(--whatsapp));
}

.card-link__body  { flex: 1 1 auto; min-width: 0; }
.card-link__title {
  display: block;
  font-weight: 800;
  font-size: .97rem;
  letter-spacing: -.015em;
  /* Longer labels wrap to two balanced lines instead of one orphan word. */
  text-wrap: balance;
}
.card-link__sub   {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 1px;
}

.card-link__chevron { flex: none; width: 18px; height: 18px; color: var(--text-faint); }

/* ==========================================================================
   Sub-screen headers
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--pad);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue-deep));
}

.topbar__back {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.topbar__back:hover  { background: rgba(255, 255, 255, .24); }
.topbar__back:active { transform: scale(.94); }
.topbar__back svg    { width: 19px; height: 19px; }

.topbar__title { font-size: 1.05rem; }

.screen__intro {
  padding: 20px var(--pad) 4px;
  font-size: .92rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ==========================================================================
   Screen 2 — packages
   ========================================================================== */
.packages {
  display: grid;
  gap: 18px;
  padding: 18px var(--pad) 8px;
}

.pkg {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* The flyers are tall documents — anchoring to the top frames the vehicle
   photography and crops away the body copy. */
.pkg__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-alt);
  cursor: zoom-in;
}
.pkg__media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
}
.pkg__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 31, 68, .72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.pkg__zoom svg { width: 13px; height: 13px; }

.pkg__body { padding: 16px; }

.pkg__name  { font-size: 1.15rem; }
.pkg__blurb {
  margin-top: 5px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-soft);
}

.pkg__cost {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  background: var(--brand-tint);
  border-radius: var(--r-sm);
}
.pkg__cost dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.pkg__cost dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand-blue);
}

.pkg__variant-name {
  margin-top: 18px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- Plan rows ------------------------------------------------------------ */
.plans { display: grid; gap: 9px; margin-top: 12px; }

.plan {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.plan__label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: var(--brand-gold);
  padding: 3px 9px;
  border-radius: 5px;
}
.plan__duration { font-size: .78rem; font-weight: 700; color: var(--text-soft); }

.plan__figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan__figures div { min-width: 0; }
.plan__figures dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.plan__figures dd {
  margin: 1px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  font-size: .93rem;
  letter-spacing: -.01em;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s var(--ease), filter .15s var(--ease);
}
.btn:hover  { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn svg    { width: 18px; height: 18px; flex: none; }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--brand-blue); }

.pkg__actions { margin-top: 14px; }

/* --- Shared benefits + disclaimer ----------------------------------------- */
.benefits {
  margin: 4px var(--pad) 0;
  padding: 18px;
  background: var(--brand-tint);
  border-radius: var(--r);
}
.benefits h3 {
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.benefits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.benefits li {
  display: flex;
  gap: 11px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}
.benefits li svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--brand-blue);
}

.disclaimer {
  margin: 16px var(--pad) 0;
  padding: 12px 14px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-soft);
  background: var(--surface-alt);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ==========================================================================
   Screen 3 — why Enviable
   ========================================================================== */
.stats {
  display: grid;
  /* minmax(0,…) keeps the three tiles equal even when one value is a word. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px var(--pad) 4px;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 6px;
  text-align: center;
  background: var(--brand-tint);
  border-radius: var(--r-sm);
}
.stat__value {
  font-size: 1.4rem;
  overflow-wrap: anywhere;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brand-blue);
  line-height: 1.1;
}
.stat__label {
  margin-top: 3px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section { padding: 22px var(--pad) 0; }
.section__title {
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 13px;
}

.quotes { display: grid; gap: 12px; }
.quote {
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.quote p {
  font-size: .9rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}
.quote footer {
  margin-top: 9px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--brand-blue);
}

/* ==========================================================================
   Sticky WhatsApp bar (sub-screens)
   ========================================================================== */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 24px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 28px;
  padding: 24px var(--pad) 30px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer__socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--brand-navy);
  background: var(--brand-tint);
  border-radius: 11px;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.footer__socials a:hover  { background: var(--brand-blue); color: #fff; }
.footer__socials a:active { transform: scale(.94); }
.footer__socials svg { width: 19px; height: 19px; }

.footer__contact {
  display: grid;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
}
.footer__contact a { color: var(--text-soft); }
.footer__contact a:hover { color: var(--brand-blue); }

.footer__address {
  margin-top: 14px;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-faint);
}

.footer__legal {
  margin-top: 16px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-faint);
}

/* ==========================================================================
   Flyer lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 16px;
  background: rgba(6, 14, 28, .92);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lightbox.is-open { display: block; animation: fade-in .18s var(--ease) both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 100%;
  width: auto;
  margin: 44px auto 24px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__close:hover  { background: rgba(255, 255, 255, .3); }
.lightbox__close:active { transform: scale(.94); }
.lightbox__close svg    { width: 20px; height: 20px; }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   Accessibility — respect reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Very small phones (≤340px) — claw back vertical space so the three menu
   buttons stay as close to the fold as possible. */
@media (max-width: 340px) {
  :root { --pad: 15px; }
  .plan__figures { grid-template-columns: 1fr; gap: 7px; }
  .stat__value { font-size: 1.25rem; }

  .hero { padding: 24px var(--pad) 20px; }
  .hero__logo { height: 38px; margin-bottom: 12px; }
  .hero__name { font-size: 1.28rem; }
  .hero__intro { font-size: .82rem; margin-top: 9px; }
  .hero__trust { font-size: .72rem; margin-top: 12px; }

  .links { gap: 10px; padding-top: 18px; }
  .card-link { padding: 12px; gap: 10px; }
  .card-link__icon { width: 40px; height: 40px; }
  .card-link__title { font-size: .92rem; }
  .card-link__sub { font-size: .78rem; }
}
