/* ==========================================================================
   Flowsly.io Marketing Website Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #475467;
  background: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #101828;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #101828;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #101828;
}

h4 {
  font-size: 20px;
  font-weight: 600;
  color: #101828;
}

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #56a0d9;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* --------------------------------------------------------------------------
   Buttons (.btn base + modifiers)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
}

.btn--primary {
  background: #56a0d9;
  color: #ffffff;
}

.btn--primary:hover {
  background: #4590c9;
}

.btn--ghost {
  background: transparent;
  color: #475467;
  padding: 10px 16px;
}

.btn--ghost:hover {
  color: #101828;
}

.btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn--full-width {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 14px 0;
}

/* --------------------------------------------------------------------------
   Navigation (.nav)
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.nav--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav .container.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo img {
  height: 32px;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: #475467;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav__link:hover {
  color: #101828;
}

/* Resources Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  font-family: 'Montserrat', sans-serif;
}

.nav__dropdown-arrow {
  width: 12px;
  height: 8px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav__dropdown:hover .nav__dropdown-arrow,
.nav__dropdown.active .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
  padding: 8px 0;
  min-width: 220px;
  display: none;
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.active .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #475467;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav__dropdown-item:hover {
  background: #f9fafb;
}

/* Nav CTA (Login + Start Free Trial) */
.nav__cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Mobile Toggle (hamburger icon) */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.nav__mobile-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #101828;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.nav__mobile-menu.active {
  display: block;
}

.nav__mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #475467;
  font-size: 16px;
  border-bottom: 1px solid #eaecf0;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__mobile-menu a:hover {
  color: #101828;
}

.nav__mobile-menu a:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Hero (.hero)
   -------------------------------------------------------------------------- */

.hero {
  padding-top: 160px;
  padding-bottom: 96px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero__content {
  flex: 1;
  max-width: 560px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__description {
  font-size: 18px;
  margin-bottom: 32px;
}

.hero__image {
  flex: 1;
}

.hero__image img {
  max-width: 100%;
}

.hero__customers-text {
  font-size: 14px;
  color: #667085;
  margin-top: 4px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Social Proof (.social-proof) — inside hero
   -------------------------------------------------------------------------- */

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.social-proof__avatars {
  display: flex;
  align-items: center;
}

.social-proof__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  object-fit: cover;
}

.social-proof__avatar:first-child {
  margin-left: 0;
}

.social-proof__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-proof__stars {
  height: 20px;
  width: auto;
}

.social-proof__text {
  font-size: 14px;
  color: #475467;
}

/* Company Logos (inside hero) */
.social-proof__logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-proof__logo {
  height: 32px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.social-proof__logo:hover {
  opacity: 1;
  filter: none;
}

/* --------------------------------------------------------------------------
   Benefits (.benefits)
   -------------------------------------------------------------------------- */

.benefits {
  background: #ffffff;
}

.benefits__header {
  text-align: center;
  margin-bottom: 48px;
}

.benefits__title {
  margin-bottom: 0;
}

.benefits__inner {
  display: flex;
  gap: 64px;
  align-items: center;
}

.benefits__image {
  flex: 1;
}

.benefits__image img {
  max-width: 100%;
}

.benefits__list {
  flex: 1;
}

.benefit-item {
  margin-bottom: 32px;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-item__title {
  margin-bottom: 8px;
  font-size: 20px;
}

.benefit-item__description {
  color: #475467;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Integrations Blurb (.integrations-blurb)
   -------------------------------------------------------------------------- */

.integrations-blurb {
  text-align: center;
  padding: 48px 0;
}

.integrations-blurb__text {
  font-size: 18px;
  color: #475467;
  max-width: 700px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Features (.features)
   -------------------------------------------------------------------------- */

.feature-block {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.feature-block--reversed {
  flex-direction: row-reverse;
}

.feature-block__image {
  flex: 1;
}

.feature-block__image img {
  max-width: 100%;
}

.feature-block__content {
  flex: 1;
}

.feature-block__title {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-block__description {
  font-size: 16px;
  color: #475467;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Testimonials (.testimonials)
   -------------------------------------------------------------------------- */

.testimonials {
  background: #f9fafb;
  padding: 96px 0;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials__title {
  margin-bottom: 0;
}

.testimonial-slider {
  overflow: hidden;
  position: relative;
}

.testimonial-slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.testimonial-card__stars {
  margin-bottom: 16px;
}

.testimonial-card__stars img {
  height: 20px;
  width: auto;
}

.testimonial-card__quote {
  font-size: 18px;
  font-style: italic;
  color: #101828;
  margin: 0 0 24px;
  line-height: 1.6;
}

.testimonial-card__quote p {
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-weight: 600;
  color: #101828;
}

.testimonial-card__title {
  font-size: 14px;
  color: #667085;
}

.testimonial-card__company-logo {
  height: 24px;
  margin-left: auto;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.slider-dots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F2F4F7;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.slider-dots__dot--active {
  background: #56a0d9;
}

.slider-dots__dot:hover {
  background: #d0d5dd;
}

.slider-dots__dot--active:hover {
  background: #4590c9;
}

/* --------------------------------------------------------------------------
   Pricing (.pricing)
   -------------------------------------------------------------------------- */

.pricing {
  padding: 96px 0;
}

.pricing__content-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

/* First block spans full width as the header */
.pricing__block:first-child {
  grid-column: 1 / -1;
  text-align: center;
}

.pricing__block {
  text-align: center;
}

.pricing__main-title {
  margin-bottom: 8px;
}

.pricing__main-description {
  color: #475467;
  margin-bottom: 0;
}

.pricing__block-title {
  margin-bottom: 8px;
  font-size: 20px;
}

.pricing__block-title--uppercase {
  text-transform: uppercase;
}

.pricing__block-description {
  color: #475467;
  margin-bottom: 0;
}

.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  border: 2px solid #56a0d9;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}

.pricing-card__badge {
  display: inline-block;
  background: #56a0d9;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-card__plan {
  font-size: 24px;
  margin-bottom: 8px;
}

.pricing-card__plan-description {
  color: #667085;
  margin-bottom: 24px;
}

.pricing-card__price {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.pricing-card__amount {
  font-size: 48px;
  font-weight: 700;
  color: #101828;
}

.pricing-card__period {
  font-size: 16px;
  font-weight: 400;
  color: #667085;
}

.pricing-card__features-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
  margin-bottom: 16px;
  margin-top: 0;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
}

.pricing-card__feature {
  padding: 8px 0;
  font-size: 15px;
  color: #475467;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-card__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   FAQ (.faq)
   -------------------------------------------------------------------------- */

.faq {
  padding: 96px 0;
  background: #f9fafb;
}

.faq__header {
  text-align: center;
  margin-bottom: 48px;
}

.faq__title {
  margin-bottom: 12px;
}

.faq__description {
  color: #475467;
  font-size: 18px;
  margin-bottom: 0;
}

.faq__list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eaecf0;
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
  gap: 16px;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #667085;
  transition: transform 0.3s;
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.faq-item.active .faq-item__answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-item__answer p {
  color: #475467;
  line-height: 1.6;
  margin: 0;
}

.faq-item__answer a {
  color: #56a0d9;
  text-decoration: underline;
}

.faq-item__answer a:hover {
  color: #4590c9;
}

/* --------------------------------------------------------------------------
   CTA Banner (.cta-banner)
   -------------------------------------------------------------------------- */

.cta-banner {
  background: #56a0d9;
  padding: 96px 0;
  text-align: center;
}

.cta-banner__inner {
  max-width: 700px;
}

.cta-banner__title {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner__description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-size: 18px;
}

.cta-banner .btn--primary {
  background: #ffffff;
  color: #56a0d9;
}

.cta-banner .btn--primary:hover {
  background: #f0f0f0;
}

/* --------------------------------------------------------------------------
   Footer (.footer)
   -------------------------------------------------------------------------- */

.footer {
  padding: 48px 0;
  border-top: 1px solid #eaecf0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo img {
  height: 28px;
}

.footer__copyright {
  font-size: 14px;
  color: #667085;
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  color: #667085;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #101828;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  color: #667085;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer__social-link:hover {
  color: #101828;
}

.footer__social-link svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (max-width: 991px)
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__image {
    order: -1;
  }

  .social-proof {
    justify-content: center;
  }

  .social-proof__avatars {
    justify-content: center;
  }

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

  .social-proof__logos {
    justify-content: center;
  }

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

  .benefits__inner {
    flex-direction: column;
  }

  .feature-block {
    flex-direction: column !important;
  }

  .feature-block--reversed {
    flex-direction: column !important;
  }

  .pricing__content-blocks {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer__social {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile (max-width: 767px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 64px;
  }

  .hero__inner {
    gap: 40px;
  }

  .social-proof__avatar {
    width: 32px;
    height: 32px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card__quote {
    font-size: 16px;
  }

  .feature-block {
    gap: 32px;
    padding: 40px 0;
  }

  .benefits__inner {
    gap: 40px;
  }

  .social-proof__logos {
    gap: 20px;
  }

  .social-proof__logo {
    height: 24px;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Small Mobile (max-width: 479px)
   -------------------------------------------------------------------------- */

@media (max-width: 479px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .pricing-card {
    padding: 24px;
  }

  .pricing-card__amount {
    font-size: 36px;
  }

  .btn {
    padding: 12px 16px;
  }

  .hero__description {
    font-size: 16px;
  }

  .cta-banner {
    padding: 64px 0;
  }

  .cta-banner__description {
    font-size: 16px;
  }

  .faq-item__question {
    font-size: 16px;
  }

  .testimonial-card__author {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .social-proof {
    flex-direction: column;
    gap: 8px;
  }

  .social-proof__logos {
    gap: 16px;
  }
}
