/* ============================================================
   PRODUCTIFLOW — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  color: #2F4858;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---------- CSS Variables ---------- */
:root {
  --blue:   #33658A;
  --charcoal: #2F4858;
  --orange: #F26419;
  --sky:    #86BBD8;
  --cream:  #F7F4EF;
  --warm-white: #FDFCFA;

  --font-headline: 'Outfit', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --nav-h: 68px;
  --section-pad: clamp(72px, 10vw, 120px);
  --container-w: 1160px;
  --container-pad: clamp(20px, 5vw, 48px);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 760px;
}

.text-center { text-align: center; }

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #4a6070;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 6px;
  padding: 11px 24px;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover { background: rgba(47,72,88,0.06); opacity: 1; }

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
}

.btn-full { width: 100%; }


/* ============================================================
   NAV
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47,72,88,0.08);
  transition: box-shadow 0.2s;
}

.nav-wrapper.scrolled {
  box-shadow: 0 2px 24px rgba(47,72,88,0.08);
}

.nav {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-wordmark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-link:hover { opacity: 1; }

.nav .btn-orange {
  margin-left: 24px;
  padding: 9px 20px;
  font-size: 0.9rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px var(--container-pad) 20px;
  border-top: 1px solid rgba(47,72,88,0.08);
  background: rgba(253,252,250,0.97);
}

.nav-mobile-menu .nav-link {
  font-size: 1rem;
  padding: 8px 0;
  opacity: 1;
}

.nav-mobile-menu .btn-orange {
  margin-top: 8px;
  width: 100%;
}

/* Mobile nav open state */
.nav-wrapper.menu-open .nav-mobile-menu { display: flex; }
.nav-wrapper.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-wrapper.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-wrapper.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: transparent;
  padding-top: var(--nav-h);
}

.wave-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

.wave-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: clamp(48px, 8vw, 96px);
}

.hero-emphasis {
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 24px;
  background: rgba(247, 244, 239, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 25%, transparent 78%);
  pointer-events: none;
}

.hero-headline {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.72;
  color: #4a6070;
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Outline button in hero context = charcoal border */
.hero .btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-block: var(--section-pad);
}

.how-it-works .container {
  background: var(--warm-white);
  border-radius: 24px;
  padding-block: clamp(48px, 6vw, 72px);
  box-shadow: 0 2px 40px rgba(47,72,88,0.06);
}

.how-it-works .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  margin-top: 8px;
}

.step {
  flex: 1;
  padding: 40px 32px;
}

.step-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(47,72,88,0.1);
  margin-block: 20px;
  flex-shrink: 0;
}

.step-number {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--orange);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.step-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4a6070;
}


/* ============================================================
   BEFORE/AFTER SLIDER
   ============================================================ */
.slider-section {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-block: var(--section-pad);
}

.slider-section .container {
  background: #f0f7fc;
  border-radius: 24px;
  padding-block: clamp(48px, 6vw, 72px);
  box-shadow: 0 2px 40px rgba(47,72,88,0.06);
}

.slider-section .section-heading,
.slider-section .section-sub {
  text-align: center;
  margin-inline: auto;
}

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  box-shadow: 0 8px 48px rgba(47,72,88,0.12);
}

.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0s;
}

.comparison-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.before-placeholder {
  background: linear-gradient(135deg, #c8d8e4 0%, #a8bfcc 100%);
}

.after-placeholder {
  background: linear-gradient(135deg, #33658A 0%, #2F4858 100%);
}

.comparison-label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.before-placeholder .comparison-label { color: #2F4858; }
.after-placeholder .comparison-label { color: #F7F4EF; }

.comparison-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
}

.before-placeholder .comparison-desc { color: rgba(47,72,88,0.6); }
.after-placeholder .comparison-desc { color: rgba(247,244,239,0.6); }

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  transform: translateX(-50%);
  opacity: 0.9;
}

.handle-icon {
  position: relative;
  width: 44px;
  height: 44px;
  z-index: 11;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.handle-icon svg {
  width: 44px;
  height: 44px;
}

.drag-hint {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(47,72,88,0.45);
  letter-spacing: 0.03em;
}


/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-block: var(--section-pad);
}

.pricing-section .section-heading,
.pricing-section .section-sub {
  text-align: center;
  margin-inline: auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--warm-white);
  border: 1.5px solid rgba(47,72,88,0.1);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover {
  box-shadow: 0 4px 24px rgba(47,72,88,0.09);
}

.pricing-card--featured {
  border-color: var(--orange);
  box-shadow: 0 8px 40px rgba(242,100,25,0.12);
  transform: translateY(-8px);
  background: #fff;
}

.pricing-card--featured:hover {
  box-shadow: 0 12px 48px rgba(242,100,25,0.18);
}

.plan-popular {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.plan-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.price-amount {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.price-period {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: #6a8090;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-features li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: #4a6070;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.pricing-card--featured .plan-features li::before {
  background: var(--orange);
}

.feature-limited {
  color: var(--orange) !important;
  font-weight: 500 !important;
}

.pricing-card .btn-outline {
  border-color: rgba(47,72,88,0.3);
}


/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-block: var(--section-pad);
}

.faq-section .container {
  background: var(--warm-white);
  border-radius: 24px;
  padding-block: clamp(48px, 6vw, 72px);
  box-shadow: 0 2px 40px rgba(47,72,88,0.06);
}

.faq-section .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(47,72,88,0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(47,72,88,0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  text-align: left;
  transition: color 0.15s;
}

.faq-question:hover { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(47,72,88,0.25);
  position: relative;
  transition: border-color 0.15s, transform 0.25s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.faq-icon::before {
  width: 8px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item--open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item--open .faq-question { color: var(--blue); }
.faq-item--open .faq-icon { border-color: var(--blue); }
.faq-item--open .faq-icon::before,
.faq-item--open .faq-icon::after { background: var(--blue); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
}

.faq-item--open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4a6070;
  padding-bottom: 22px;
}


/* ============================================================
   BOOK A CALL
   ============================================================ */
.book-section {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-block: clamp(72px, 10vw, 120px);
}

.book-section .container {
  background: var(--blue);
  border-radius: 24px;
  padding-block: clamp(56px, 8vw, 96px);
  box-shadow: 0 8px 48px rgba(51,101,138,0.25);
}

.book-heading {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 20px;
  max-width: 600px;
  margin-inline: auto;
}

.book-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(247,244,239,0.8);
  line-height: 1.7;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 40px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--charcoal);
  border-radius: 24px 24px 0 0;
  padding-block: 32px;
}

.footer-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.footer-wordmark {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8125rem;
  color: rgba(247,244,239,0.55);
  text-align: center;
}

.footer-contact {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(247,244,239,0.75);
  text-align: right;
}

.footer-contact a:hover { color: var(--cream); }



/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .pricing-card--featured {
    transform: none;
  }

  .steps {
    flex-direction: column;
    gap: 0;
  }

  .step-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
    margin-block: 0;
    margin-inline: 32px;
    width: calc(100% - 64px);
  }

  .step {
    padding: 32px 0;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav > .btn-orange { display: none; }
  .nav-hamburger { display: flex; }

  .hero-headline {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .comparison-slider {
    height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact { text-align: center; }

  .break-desktop { display: none; }
}
