/* === 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;
    --secondary-color: #f8b133;   /* Orange */
    --primary-color: #7A1FFF;      /* Bold bright purple (less blue, more magenta) */
    --quaternary-color: #A24BFF;   /* Mid purple, vibrant and clear */
    --tertiary-color: #C9A6FF;     /* Soft lavender highlight */
    /* Footer */
    --surface: #f5f5f0;         
    --surface-2: #ffffff;       
    --ink: #111;                
    --shadow-lg: 0 8px 24px rgba(0,0,0,.18);
    --radius-lg: 16px;
}

/* === 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 === */
/* Book a call button (gradient + animation) */
.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: 1rem 1.5rem;
  border-radius: 999px;

  /* gradient outline around white fill */
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, var(--grad-size);
  background-position: center, var(--grad-x) 50%;

  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1;
  min-width: 220px;

  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-demo::after {
  content:"";
  width:9px; height:9px;
  border-right:2px solid currentColor;
  border-top:2px solid currentColor;
  transform: rotate(45deg);
  margin-left:.3rem;
}

.btn-demo:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(0,0,0,.12); 
}
.btn-demo:active { 
  transform: translateY(0); 
  box-shadow: 0 3px 10px rgba(0,0,0,.1); 
}
.btn-demo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.15);
}


/* === General CTA Buttons (solid fill, no gradient/animation) === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none;

  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;

  transition: transform .15s ease, filter .15s ease;
  min-width: 200px;
}

.cta-btn::after {
  content:"";
  width:9px; height:9px;
  border-right:2px solid currentColor;
  border-top:2px solid currentColor;
  transform: rotate(45deg);
  margin-left:.3rem;
}

/* Color variants */
.cta-btn--primary   { background-color: var(--primary-color); color: #fff; }
.cta-btn--secondary { background-color: var(--secondary-color); color: #fff; }
.cta-btn--tertiary  { background-color: var(--tertiary-color); color: #fff; }
.cta-btn--quaternary { background-color: var(--quaternary-color);}
.cta-btn--black     { background-color: #000; color: #fff; }
.cta-btn--border    { background-color: #fff; border: 2px solid #000; color: #000; }

/* Hover states */
.cta-btn:hover { 
  filter: brightness(1.1);
  transform: translateY(-1px);
}


/* === Demo Button (smaller special case) === */
/* === Demo Button (solid fill) === */
.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background-color: var(--primary-color);
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff; /* white text */
  text-decoration: none;
  line-height: 1;
  min-width: 220px;

  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.soon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background-color: grey;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff; /* white text */
  text-decoration: none;
  line-height: 1;
  min-width: 220px;

  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.demo-btn::after {
  content:"";
  width:9px; height:9px;
  border-right:2px solid currentColor;
  border-top:2px solid currentColor;
  transform: rotate(45deg);
  margin-left:.3rem;
}

/* hover/active effects */
.demo-btn:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(0,0,0,.15); 
}
.demo-btn:active { 
  transform: translateY(0); 
  box-shadow: 0 3px 10px rgba(0,0,0,.1); 
}
.demo-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.15);
}

/* === 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;
}

/* === GLOBAL: shared gradient + smooth, synced animation === */
@property --grad-x {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}

:root {
  --grad-angle: 120deg;
  --grad-size: 300% 300%;
  --grad-x: 0%;
  --grad: repeating-linear-gradient(
    var(--grad-angle),
    var(--primary-color) 0%,
    var(--tertiary-color) 33%,
    var(--secondary-color) 66%,
    var(--primary-color) 100%
  );

  /* Single timeline drives both heading + button border */
  animation: gradTimeline 18s linear infinite;
}

@keyframes gradTimeline {
  0%   { --grad-x: 0%; }
  50%  { --grad-x: 100%; }
  100% { --grad-x: 0%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root { animation: none; }
}

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

/* Fullscreen hero with flex centering */
#hero.hero--center {
  position: relative;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;

  background: #f5f5f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin: 50px auto 40px;
  max-width: 95%;
}

/* Heading styles */
#hero h1 {
  font-size: 53px;
  line-height: 1.2;
  margin: 0;
}

/* Heading container */
.hero-heading {
  margin: 0 auto;
  max-width: 95%;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-align: center;
}

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

.line2 { margin-top: 0.5em; }

/* Gradient animated text — synced via :root vars */
.heading-anim-gradient {
  background: var(--grad);
  background-size: var(--grad-size);
  background-position: var(--grad-x) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 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 fallbacks */
@media (prefers-reduced-motion: reduce) {
  .line1 { animation: none; opacity: 1; transform: none; }
  .line2 .caret { animation: none; opacity: 1; }
}

/* Subheading under the hero title */
.hero-subtext {
  font-size: 1.3rem;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}

/* optional: compact size on small screens */
@media (max-width: 480px){
  .btn-demo{ padding:.75rem 1rem; }
}

/* Animated gradient border — synced with heading */
.heading-anim-gradient-border {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;

  /* Thick border */
  border: 4px solid transparent;
  border-radius: 12px;

  /* Two layers: inner fill + animated border */
  background-image: linear-gradient(#fff, #fff), var(--grad);
  background-origin: border-box;
  background-clip: content-box, border-box;

  /* Sync position/size with heading */
  background-size: 100% 100%, var(--grad-size);
  background-position: center, var(--grad-x) 50%;

  text-decoration: none;
  font-weight: 600;
  color: var(--primary-color);
}

/* === Calendar === */
#calendar {
  height: 70vh;   /* 70% of viewport height */
  max-width: 100%;
}

/* === Number Section / Returns Hero === */
.returns-hero {
  background: #f5f5f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin: 3rem auto;
  max-width: 95%;
  padding: 3rem 1rem;
  text-align: center;
}

.returns-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr; /* stack on mobile */
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on md+ */
  }
}

.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);
  -webkit-background-clip: text;
  background-clip: text;

  /* gradient text fix */
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .stat-value { transition: none !important; }
}

.returns-note {
  opacity: 0.7;
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

/* === How It Works Section === */
#how-it-works {
  padding: 3.5rem 1rem;
  margin: 3rem auto;
  max-width: 90%;
  border-radius: 16px;
}

#how-it-works .how-card {
  border-radius: 1rem;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

#how-it-works .how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

#how-it-works .how-card h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

#how-it-works .how-card p {
  font-size: 1rem;
  line-height: 1.5;
}

#how-it-works .icon i {
  color: var(--primary, #6A4DFF);
}

.hiw-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
}

.hiw-grid {
  display: grid;
  grid-template-columns: 1fr;      /* stack on mobile */
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hiw-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on md+ */
  }
}

.hiw-step {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.hiw-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), inset 0 0 0 2px rgba(0,0,0,.05);
}

.hiw-icon i {
  font-size: 1.25rem;
  color: #111;
}

.hiw-step h5 {
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.hiw-step p {
  margin: 0;
  color: #555;
  font-size: .95rem;
}

/* Optional: slightly tighter spacing on very small screens */
@media (max-width: 420px) {
  .how-it-works { padding: 2.5rem 1rem; }
  .hiw-step { padding: 1.25rem; }
}

/* === Video Block === */
.video {
  border-radius: 16px;
  background: #f5f5f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin: 3rem auto;
  max-width: 95%;
  padding: 3rem 1rem;
  text-align: center; 
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
}
.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: 300px;
  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;
    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(--quaternary-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 h1,
.signup h1 {
    font-size: 60px;
}

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

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

/* === 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);
}

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

.demo-logo {
    height: 80px;
}

/* === Footer === */
footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--primary-color),
    var(--quaternary-color),
    var(--tertiary-color),
    var(--secondary-color)
  );
}

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

/* Custom horizontal line */
.custom-separator {
  border: none;
  height: 1px;
  background-color: rgba(255,255,255,.25);
  width: 80%;
  margin: 2rem auto;
  opacity: 1;
}

/* === Contact Section === */
#contact {
  scroll-margin-top: 100px;
}

.contact-details {
  text-align: left;
}

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

.footer .contact-wrapper {
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.25rem;
  margin-top: 1rem;
}

/* Override white links inside contact card */
.footer .contact-wrapper a {
  color: var(--ink) !important;
  text-decoration: none;
}
.footer .contact-wrapper a:hover { 
  color: var(--primary-color) !important; 
}

/* === 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(--quaternary-color);
  transform: scale(1.2);
}

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

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

.contact-form .form-control:focus {
  border-color: var(--quaternary-color);
  box-shadow: 0 0 0 0.2rem rgba(162, 75, 255, .25);
}

/* Autofill Fix */
.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;
    }

    #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 h1 {
        font-size: 100px;
    }

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

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