/* === Google Fonts === */
@import url("https://fonts.googleapis.com/css2?family=Cal+Sans&family=Montserrat:wght@100..900&display=swap");

/* === Root Variables: Colors & Fonts === */
:root {
    --primary-font: "Cal Sans", sans-serif;
    --secondary-font: "Montserrat", sans-serif;
    --primary-color: #6A4DFF; 
    --secondary-color: #f8b133; 
    --tertiary-color: #aa9afc;
}

/* === Base Layout === */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--secondary-font);
    margin-top: 39.33px; /* Likely for fixed navbar space */
    overflow-x: hidden;
}

main {
    flex: 1; /* Push footer to bottom */
}

.row {
    margin-right: 0;
    margin-left: 0;
}

/* === IOS Style === */
/* Remove iOS default styling for phone/email links */
.no-ios-link-style, .no-ios-link-style a {
    color: white !important;
    text-decoration: none !important;
    -webkit-touch-callout: none;
  }

/* === Fade Effects === */
/* Fade-in from transparency on page load */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.3s;
  }
  
  /* Keyframes for animation */
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  } 
  
/* Hidden by default */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* Visible when in viewport */
  .scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
  }

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--primary-font);
}

.sizeup-heading {
    width: 260px;
    display: inline;
}

/* === Button Styles === */
.cta-btn {
    color: black;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: normal;
    line-height: 1.4;
    min-height: 50px;
}

#demo h1 {
    font-size: 55px;
    color: white;
}

.demo-btn {
    all: unset;
    display: block;
    color: black !important; 
    background-color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    display: block;
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: normal;
    line-height: 1.4;
    min-height: 15px;
}

.demo-logo {
    height: 80px;
}

.demo-info {
    max-width: 800px;
}

.gradient {
    background: linear-gradient(to bottom, black 50%, white 100%);
}

.bg-demo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 850px;
    background-image: url("/static/images/body_male.c909bd8ddda2.gif"); /* Adjust path */
    background-size: cover;
    background-position: center;
    opacity: 0.5;  /* Adjust for desired visibility over the gradient */
    z-index: 1;
    background-size: 90%;
    background-repeat: no-repeat;
}

section.gradient .container {
    z-index: 2;
}

/* === Button Color Variants === */
.cta-btn--primary {
    background-color: var(--primary-color);
}

.cta-btn--secondary {
    background-color: var(--secondary-color);
}

.cta-btn--tertiary {
    background-color: var(--tertiary-color);
}

.cta-btn--black {
    background-color: black;
    border: solid 1px white;
    color: white;
}

.cta-btn--border {
    background-color: white;
    border: solid 1px black;
    font-size: 1rem;
}

/* Special case button, overrides cta styles */
.checkout-btn {
    background-color: black;
    color: white;
    font-size: 14px;
}

/* === Button Hover Effects === */
.cta-btn:hover,
.cta-btn--primary:hover,
.btn.cta-btn--secondary:hover,
.cta-btn--tertiary:hover,
.cta-btn--black:hover,
.cta-btn--border:hover,
.checkout-btn:hover,
.btn:hover,
.cta-btn--small:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}

/* Additional button states */
.btn:hover,
.btn:focus,
.btn:active {
    background-color: gray;
    color: black;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* === Navbar === */
.navbar {
    background-color: black;
}

.navbar p {
    color: white;
}

.navbar-toggler {
    --bs-navbar-toggler-border-color: white;
}

.nav-link {
    color: white;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    text-decoration: underline;
    font-weight: bold;
}

.sticky-category-bar {
  position: sticky;
  top: 59.61px; /* Height of your fixed navbar */
  z-index: 1020;
  background-color: #fff;
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* === HERO SECTION === */

/* Fullscreen hero with flex centering */
#hero h1 {
        font-size: 53px;
        line-height: 1.2;
        padding-top: 120px;
    }

#hero.hero--center {
  position: relative;
  min-height: 100vh; /* take full viewport height */
  display: flex;
  justify-content: center;
  text-align: center; /* center the heading text */
  overflow: hidden;
}

/* Hero background image (centered + scaled down) */
#hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;

  background-image: url("../images/body_male.c909bd8ddda2.gif");
  background-repeat: no-repeat;
  background-position: center -20%; /* lower = further down (try 65–85%) */
  background-size: clamp(280px, 45vw, 680px); /* smaller, more balanced */
  margin: 0 auto;
}

/* Gradient background behind the hero image */
#hero {
  background: linear-gradient(to bottom, black 55%, white 100%);
}

/* Heading container */
.hero-heading {
  margin: 0 auto;
  max-width: 95%;                 /* keep some breathing room */
  font-size: clamp(2.8rem, 8vw, 6.5rem);  /* scales with screen size */
  line-height: 1.1;                /* loosen spacing between lines */
  letter-spacing: 0.015em;         /* subtle tracking for legibility */
  text-align: center;              /* center since it’s a focal hero */
}

/* Each line block */
.heading-line {
  display: block;
  word-break: break-word;
  white-space: normal;
}

/* Line 2 spacing (secondary line) */
.line2 {
  margin-top: 0.5em;
}

/* Gradient animated text */
.heading-anim-gradient {
  background: linear-gradient(
    120deg,
    var(--primary-color),
    var(--tertiary-color) 45%,
    var(--secondary-color) 80%,
    var(--primary-color)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroGradientShift 18s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .heading-anim-gradient { animation: none; }
}

/* Each line stacks nicely */
.heading-line {
  display: block;
  word-break: break-word;
  white-space: normal;
}
.line2 { margin-top: 0.4em; }

/* Line 1: fade-in */
.line1 {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 600ms ease-out forwards;
  animation-delay: 200ms;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Line 2: caret typing */
.line2 .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  opacity: .9;
  animation: caretBlink .9s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.line2.done .caret { display: none; }

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .line1 { animation: none; opacity: 1; transform: none; }
}

/* === Number Section === */

.stat-card {
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  text-align: center;
}

.stat-label {
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .35rem;
}
.stat-value {
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: .25rem;

  background: linear-gradient(90deg, #6A4DFF, #f8b133); 
    --secondary-color: #f8b133;
  -webkit-background-clip: text;
  background-clip: text;

  /* The key fix */
  -webkit-text-fill-color: transparent; /* Chrome + Safari */
  color: transparent; /* fallback */
}
@media (prefers-reduced-motion: reduce) {
  .stat-value { transition: none !important; }
}

/* === Info Section === */
#info h2 {
    font-size: 40px;
}

/* === Video Block === */
/* Larger video frame */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 1000px; /* increased from 800px */
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  background: #111;
}
.video-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Side column styles */
.video-aside {
  max-width: 420px;
  margin: 0 auto;
}
.video-aside h3 {
  font-family: var(--primary-font);
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
}
.video-aside ul {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.video-aside li + li {
  margin-top: .75rem;
}

/* === Plan Section Layout === */
.plan-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#plans h2 {
    font-size: 70px;
    color: var(--secondary-color);
    font-family: var(--primary-font);
}

#plans-info {
    font-size: 25px;
}

/* Plan card headings */
.plan-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.heading-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Plan icon color variants */
.icon-starter {
    color: var(--tertiary-color);
}

.icon-growth {
    color: var(--secondary-color);
}

.icon-enterprise {
    color: var(--primary-color);
}

.mobile-icon {
    font-size: 40px;
}

.responsive-icon {
    font-size: 80px;
}

/* Plan cards */
.plan-box {
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.plan-info,
.plan-info-plan {
    background-color: white;
    border-radius: 8px;
    margin: 1rem auto;
    min-height: 250px;
}

.plan-info-plan {
    scroll-margin-top: 70px; /* Adjust for sticky nav */
}

/* === Individual Plan Page === */
#plan-description {
    scroll-margin-top: 70px;
}

#plan {
    background: linear-gradient(to bottom, black, white);
}

#plan h1,
.signup h1 {
    font-size: 60px;
    color: var(--primary-color);
}

.login h1 {
    font-size: 60px;
    color: var(--tertiary-color);
}

.starter-heading {
    background-color: white;
    border-radius: 8px;
    padding: 0 1rem;
}

/* === Shopping bag === */
.remove-item {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
  }
  
  .remove-item:hover {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #b02a37;
  }  

/* === Dashboard === */
#dashboard {
    background: linear-gradient(to bottom, black, white);
}

#dashboard h1 {
    font-size: 60px;
    color: var(--primary-color);
    width: 100%;
    padding-top: 30px;
}

#profile {
    background-color: white;
    border-radius: 8px;
}

.profile-picture-placeholder {
    color: grey;
    font-size: 65px;
}

.list-recommendations {
    background-color: var(--secondary-color);
    border-radius: 8px;
}

/* === Leads === */
.form-control {
  background-color: #f8f9fa; /* light gray background */
}

.form-control:focus {
  background-color: #e9f5ff; /* light blue background */
  border-color: #66afe9;     /* Bootstrap's default blue border */
  box-shadow: 0 0 0 0.2rem rgba(102, 175, 233, 0.6);
}

/* Default (unchecked) radio label */
.form-check-label {
  background-color: #f8f9fa;  /* Light gray background for visibility */
  border-color: #66afe9;  
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover state */
.form-check-label:hover {
  background-color: #dbe4f0; /* Slightly darker hover effect */
  cursor: pointer;
}

.form-check-input {
  background-color: #f8f9fa;  /* Light gray background for visibility */
  border: solid 2px #dee2e6; 
}

/* Checked state */
.form-check-input:checked + .form-check-label {
  font-weight: 700;
}

/* === Offer === */
#offerModal .modal-content {
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

/* === Footer === */
footer {
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer p {
    margin: 0 auto 2rem auto;
}

/* Custom horizontal line */
.custom-separator {
    border: none;
    height: 1px;
    background-color: #fff;
    width: 80%;
    margin: 2rem auto;
    opacity: 1;
}

/* === Contact === */
.contact-details {
    text-align: left;
}

.contact-sub-heading {
    font-size: 30px;
}

#contact {
    scroll-margin-top: 100px;
}

/* === Social Icons === */
.social-icons {
    display: flex;
    justify-content: left;
    gap: 50px;
}

.social-icons a {
    font-size: 35px;
    color: white;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* === Contact Form === */
.contact-form-container {
    flex: 1;
}

.contact-form .form-group label {
    text-align: left;
    display: block;
}

/* Autofill Fix (ensures matching design) */
.contact-form input:-webkit-autofill,
.contact-form input:-moz-autofill,
.contact-form input:-ms-autofill {
    background-color: white !important;
    color: #333 !important;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
}

/* === Checkout Loading Spinner === */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-container {
    position: relative;
    text-align: center;
    color: white;
}

.spinner-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    z-index: 1;
}

.orbit-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    animation: spin 2s linear infinite;
    z-index: 0;
}

@keyframes spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbiting-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color, #94e6ed);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* === 404 Styling === */
.logo-404 {
    width: 200px;
    height: auto;
}

/* === Media Queries === */

/* Tablet */
@media (min-width: 768px) {
    #hero h1 {
        font-size: 120px;
        line-height: 1;
    }

    #hero p {
        font-size: 40px;
        line-height: 1.2;
    }

    #hero .hero-bg {
        background-position: center -25%;
    }

    #plans h2 {
        font-size: 90px;
    }

    .plan-info {
        width: 670px;
        font-size: 20px;
    }

    .responsive-icon {
        font-size: 120px;
    }

    #dashboard h1 {
        font-size: 70px;
    }

    .bg-demo {
        background-size: 40%;
        background-repeat: repeat;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    #plans h2 {
        font-size: 110px;
    }

    .plan-info {
        width: 290px;
        font-size: 20px;
    }

    .extra-plan-info {
        width: 400px;
    }

    #hero {
        height: 30%;
    }

    #hero p {
        font-size: 45px;
        line-height: 1.4;
        padding-top: 30px;
    }

    #hero h1 {
        padding-top: 130px;
        font-size: 100px;
    }

    #hero .hero-bg {
        background-size: clamp(280px, 35vw, 680px); /* smaller, more balanced */
        background-position: center -7%;
    }

    #dashboard h1 {
        font-size: 60px;
    }

    #demo h1 {
        font-size: 85px;
    }
}
