/* ================================================
   QuickAsAFox - Stylesheet
   ================================================= */

/* ---------- VARIABLES ---------- */
:root {
  --bg: #FFF8F1;
  --text: #2E2E2E;
  --accent: #F76C2F;
  --secondary: #666;
}

body.dark {
  --bg: #1C1C1C;
  --text: #F3F3F3;
  --secondary: #AAA;
}

/* ---------- BASE ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ===== QuickAsAFox – Theme Toggle Button ===== */
.toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(247, 108, 47, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  z-index: 999;
}

.toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(247, 108, 47, 0.45);
}

.material-symbols-rounded {
  font-size: 26px;
  line-height: 1;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s ease;
}

body.dark .toggle {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

body.dark .material-symbols-rounded {
  transform: rotate(180deg);
  opacity: 0.9;
}


/* ---------- SECTIONS ---------- */
section {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

/* ---------- HERO ---------- */
.logo {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
}

.logo img {
  height: 96px;
  display: block;
  transition: opacity 0.2s ease;
}

/* ---------- SCROLL ARROW ---------- */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: bounce 1.5s infinite;
  line-height: 0;
  background: none;
  border: none;
}

.scroll-down svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  transition: stroke 0.3s ease;
}

.scroll-down:hover svg {
  stroke: #ff7f50;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, 6px);
  }
  60% {
    transform: translate(-50%, 3px);
  }
}

/* ---------- INFO SECTION ---------- */
.info-section {
  padding: 5rem 2rem 6rem;
}

.info-points {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 900px;
  margin-bottom: 2rem;
}

.point {
  opacity: 0;
  transform: translateY(40px);
}

.point h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin: 0.2rem 0 0.5rem;
}

.point p {
  font-size: 1.1rem;
  color: var(--secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- PRICING ---------- */
.pricing {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.8rem;
}

.pricing span {
  color: var(--accent);
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  background: var(--text);
  color: var(--bg);
}

.contact-section h2 {
  font-size: 2.4rem;
  margin: 0 0 0.8rem;
}

.cta-btn {
  margin-top: 2rem;
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
  border: 0;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(247, 108, 47, 0.4);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .point h2 {
    font-size: 2rem;
  }

  .point p {
    font-size: 1rem;
  }

  .logo img {
    height: 72px;
  }

  .pricing {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 4rem 1.5rem 5rem;
  }

  .cta-btn {
    width: 80%;
    font-size: 1rem;
  }
}

  /* ===== QuickAsAFox – Contact Modal (Production) ===== */

  /* Overlay & container */
  .qaf-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* above header z-index:10 */
    pointer-events: none;
  }
  .qaf-modal.show { pointer-events: all; }

  .qaf-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    opacity: 0;
  }

  /* Glass card */
  .qaf-card {
    position: relative;
    width: min(92vw, 520px);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.25rem 1.25rem 1.5rem;
    color: var(--bg);
    box-shadow:
      0 10px 30px rgba(0,0,0,0.25),
      0 0 0 1px rgba(255,255,255,0.06) inset;
    transform: scale(0.96);
    opacity: 0;
    overflow: hidden;
  }
  body.dark .qaf-card {
    background: rgba(35,35,35,0.75);
    color: var(--text);
    box-shadow:
      0 10px 30px rgba(0,0,0,0.45),
      0 0 0 1px rgba(255,255,255,0.06) inset;
  }

  /* Floating accent close */
  .qaf-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(247,108,47,0.4);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .qaf-close:hover { transform: scale(1.06); box-shadow: 0 8px 20px rgba(247,108,47,0.5); }

  /* Progress bar */
  .qaf-progress {
    position: relative;
    height: 4px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    overflow: hidden;
    margin: 6px 0 14px;
  }
  body.dark .qaf-progress { background: rgba(255,255,255,0.12); }
  .qaf-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: inherit;
    transform-origin: left center;
  }

  /* Headings */
  .qaf-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .25rem;
  }
  .qaf-sub {
    font-size: .92rem;
    opacity: .9;
    margin: 0 0 1rem;
  }

  /* Steps */
  .qaf-step { display: none; }
  .qaf-step.active { display: block; }

  /* Form layout */
  .qaf-field { margin: 10px 0 14px; }
  .qaf-label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 6px;
  }
  .qaf-input, .qaf-textarea {
    width: 100%;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1rem;
    padding: .8rem .95rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.9);
    color: #2E2E2E;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease, background .2s ease;
  }
  .qaf-input:focus, .qaf-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247,108,47,0.15);
  }
  body.dark .qaf-input, body.dark .qaf-textarea {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border-color: rgba(255,255,255,0.08);
  }

  .qaf-textarea { resize: vertical; min-height: 110px; }

  /* Toggle pills */
  .qaf-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 4px;
  }
  .qaf-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .7rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    color: var(--bg);
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    text-align: center;
    font-weight: 700;
  }
  .qaf-toggle:hover { transform: translateY(-1px); }
  .qaf-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(247,108,47,0.35);
  }
  body.dark .qaf-toggle { color: var(--text); border-color: rgba(255,255,255,0.16); }

  /* Nav buttons */
  .qaf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
  }
  .qaf-btn {
    border: 0;
    border-radius: 30px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: .9rem 1.4rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(247,108,47,0.35);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  }
  .qaf-btn:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(247,108,47,0.45); }
  .qaf-btn--ghost {
    background: transparent;
    color: var(--bg);
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: none;
  }
  body.dark .qaf-btn--ghost { color: var(--text); border-color: rgba(255,255,255,0.35); }
  .qaf-btn:disabled { opacity: .6; pointer-events: none; }

  .qaf-step-indicator {
    font-size: .85rem;
    opacity: .85;
  }

  /* Success */
  .qaf-success {
    display: none;
    text-align: center;
    padding: 20px 10px 10px;
  }
  .qaf-success.show { display: block; }
  .qaf-check {
    width: 64px; height: 64px;
    border-radius: 999px;
    margin: 0 auto 10px;
    background: #4CAF50;
    display: grid; place-items: center;
    color: #fff; font-size: 34px; font-weight: 800;
    box-shadow: 0 10px 26px rgba(76,175,80,0.35);
  }

  /* Tiny helper spacing */
  .qaf-gap-xs { margin-top: 6px; }

  .qaf-close {
  z-index: 2; /* ensure it's above the progress bar */
}

.qaf-progress {
  position: relative;
  z-index: 1;
}

.toggle {
  background: var(--accent);
  color: #fff;
}

/* Force override of earlier styles */
body.dark .toggle {
  background: #fff !important;
  color: var(--accent) !important;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25) !important;
}

/* ===========================================================
   QuickAsAFox – Info Panel & Legal Section Styles
   -----------------------------------------------------------
   Includes:
   - Floating info button beside dark-mode toggle
   - Slide-up info panel with glass effect
   - Optional dark/light adjustments
   - Overlay blur effect when panel is open
   =========================================================== */

    /* --- Additional rules for the slide-up panel --- */

    .qaf-info-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 50px;
      padding: 0.9rem 1.6rem;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(247, 108, 47, 0.35);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      z-index: 1000;
    }

    .qaf-info-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 22px rgba(247, 108, 47, 0.45);
    }

    /* Slide-up panel */
    .info-panel {
      position: fixed;
      left: 50%;
      bottom: -100%;
      transform: translateX(-50%);
      width: min(92vw, 600px);
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(20px);
      border-radius: 24px 24px 0 0;
      color: var(--bg);
      padding: 2rem 1.5rem 3rem;
      box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
    }

    body.dark .info-panel {
      background: rgba(35, 35, 35, 0.85);
      color: var(--text);
    }

    .info-panel.show {
      pointer-events: all;
    }

    .info-panel h2 {
      font-size: 1.6rem;
      margin-top: 0;
      color: var(--accent);
    }

    .info-panel p {
      font-size: 1rem;
      color: var(--text);
      opacity: 0.85;
    }

    .info-panel ul {
      list-style: none;
      padding: 0;
      margin: 1rem 0;
    }

    .info-panel li {
      padding: 0.4rem 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .info-panel li::before {
      content: '✓';
      color: var(--accent);
      font-weight: 700;
    }

    .info-panel .close-btn {
      position: absolute;
      top: 12px;
      right: 16px;
      background: none;
      border: none;
      color: var(--accent);
      font-size: 1.5rem;
      cursor: pointer;
    }

    .info-panel small {
      display: block;
      margin-top: 1.4rem;
      font-size: 0.85rem;
      opacity: 0.7;
      line-height: 1.4;
    }

    /* Improve readability of info-panel in light mode */
.info-panel {
  background: rgba(255, 255, 255, 0.7); /* more opaque */
  color: var(--text);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
}

/* Keep darker glass and text balance in dark mode */
body.dark .info-panel {
  background: rgba(35, 35, 35, 0.85);
  color: var(--text);
}

/* Optional: tweak paragraph opacity for clarity */
.info-panel p,
.info-panel li {
  opacity: 0.95;
}
/* Text link below CTA */
.text-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.25s ease;
}
.text-link:hover { opacity: 0.8; }

/* Floating info icon */
.info-toggle {
  right: 76px; /* sits neatly beside dark mode toggle */
  background: rgba(247,108,47,0.85);
}
body.dark .info-toggle {
  background: rgba(255,255,255,0.15);
  color: var(--text);
}
.info-toggle:hover {
  transform: scale(1.08);
}

/* Prevent info icon from rotating on theme change */
.info-toggle .material-symbols-rounded {
  transform: none !important;
  opacity: 1 !important;
}
body.panel-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body.panel-open::before { opacity: 1; pointer-events: all; }
/* --- Hide scrollbars globally but keep scrolling functional --- */
html, body {
  overflow-x: hidden;            /* no sideways scroll */
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari */
}
.info-panel {
  position: fixed;
  left: 50%;
  bottom: -100%;
  transform: translateX(-50%);
  width: min(92vw, 600px);
  padding: 2rem 1.5rem 3rem;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  max-height: 80vh;                 /* limits panel height */
  overflow-y: auto;                 /* scrolls internally if needed */
  overscroll-behavior: contain;     /* prevents page pull-to-refresh */
  scrollbar-width: none;            /* hides scrollbar (Firefox) */
  -ms-overflow-style: none;         /* hides scrollbar (IE/Edge) */
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

/* Hide scrollbar (WebKit browsers) */
.info-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Dark mode balance */
body.dark .info-panel {
  background: rgba(35, 35, 35, 0.85);
  color: var(--text);
}

/* Active (visible) state — GSAP handles bottom/opacity animation */
.info-panel.show {
  pointer-events: all;
}
/* --- Keep the close button fixed inside the panel header --- */
.info-panel .close-btn {
  position: sticky;
  top: 0;
  right: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  float: right;
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: background 0.25s ease, transform 0.25s ease;
    width:48px;
  height:48px;
}

.info-panel .close-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.08);
}

/* Adjust for dark mode */
body.dark .info-panel .close-btn {
  background: rgba(35, 35, 35, 0.6);
  color: var(--accent);
}
.info-panel .close-btn {
    position: sticky;
    top: -24px!important;
    right: -16px!important;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    float: right;
    backdrop-filter: blur(6px);
    z-index: 2;
    transition: background 0.25s ease, transform 0.25s ease;
    width: 48px;
    height: 48px;
    margin-top: -32px!important;
    margin-right: -16px!important;
}