/* ==========================================================================
   Adify — style.css
   Design system: Satoshi, purple brand, dark hero + dark feature cards
   ========================================================================== */

:root {
  --brand-primary: #6100ff;
  --brand-secondary: #4a00c2;

  --text-primary: #18181b;
  --text-secondary: #71717a;
  --text-tertiary: #535862;
  --text-invert: #ffffff;
  --text-invert-secondary: #a1a1aa;
  --text-invert-tertiary: rgba(255, 255, 255, .6);

  --background: #ffffff;
  --background-subtle: #f1f1f1;
  --background-dark: #000000;
  --background-dark-subtle: #191919;

  --border-primary: #e4e4e7;
  --border-secondary: #d5d7da;
  --border-tertiary: #27272a;
  --border-invert: rgba(255, 255, 255, .2);

  --purple-50: #f4f3ff;
  --purple-200: #d9d6fe;
  --purple-300: #bdb4fe;
  --purple-700: #5925dc;
  --purple-800: #4a1fb8;
  --purple-900: #27115f;

  --button-bg: #131316;
  --button-bg-hover: #27272c;
  --button-border: #424245;
  --button-bg-secondary-hover: #f1f1f1;

  --font: "Satoshi", "Satoshi Variable", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font); }

h1 { font-size: 3.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 3rem;    line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 2.25rem; line-height: 1.2;  font-weight: 700; }
h4 { font-size: 1.5rem;  line-height: 1.2;  font-weight: 700; }
h5 { font-size: 1.25rem; line-height: 1.2;  font-weight: 600; }

p { margin: 0; }

a { color: inherit; }

.text-secondary { color: var(--text-secondary); }
.text-invert-secondary { color: var(--text-invert-secondary); }

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

.container {
  width: 100%;
  max-width: 82rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.container.is-big { max-width: 91rem; }

.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */

.button {
  z-index: 10;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--button-bg);
  color: #fff;
  border: 2px solid var(--button-border);
  transition: background-color .2s;
}

.button:hover { background-color: var(--button-bg-hover); }

.button.is-invert {
  background-color: #fff;
  color: var(--text-primary);
  border-width: 1px;
  border-color: var(--button-bg-secondary-hover);
  padding: calc(.75rem + 1px) calc(1rem + 1px);
}

.button.is-invert:hover { background-color: var(--button-bg-secondary-hover); }

.button.is-ghost {
  background-color: transparent;
  border-color: transparent;
  color: inherit;
  padding: .75rem .5rem;
}

.button.is-ghost:hover { background-color: transparent; opacity: .75; }

/* sliding double-arrow */
.button-arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .625rem;
  width: .875rem;
  height: .875rem;
  overflow: hidden;
  position: relative;
  flex: none;
}

.button-arrow {
  width: .875rem;
  height: .875rem;
  flex: none;
  transition: transform .3s ease;
  transform: translateX(calc(-100% - .625rem));
}

.button:hover .button-arrow { transform: translateX(0); }

/* ---------- Eyebrow pills ---------- */

.section-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .125rem .625rem .125rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--purple-200);
  background-color: var(--purple-50);
  color: var(--purple-700);
  font-size: .875rem;
  font-weight: 600;
}

.section-subtitle img { width: .75rem; height: .75rem; }

.section-subtitle.is-invert {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: var(--border-invert);
}

/* ---------- Section headings ---------- */

.section-heading-wrapper {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading-wrapper.is-mb-0 { margin-bottom: 0; }

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 36rem;
  text-align: center;
}

.section-heading.is-wider { max-width: 42rem; }

.section-heading .sub {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ==========================================================================
   Header / navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4.5rem;
  background-color: transparent;
  color: #fff;
  transition: background-color .25s, color .25s, box-shadow .25s;
}

.navbar.is-scrolled {
  background-color: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 0 var(--border-primary);
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 82rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.logo-image { width: 2rem; height: 2rem; border-radius: .5rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem 0;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

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

.nav-link .caret { width: .75rem; height: .75rem; transition: transform .2s; }

/* dropdown */
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.nav-dropdown {
  position: absolute;
  top: calc(100% - .75rem);
  left: -1rem;
  min-width: 21rem;
  padding: .5rem;
  border-radius: 1rem;
  background-color: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .caret { transform: rotate(180deg); }

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  border-radius: .625rem;
  text-decoration: none;
  transition: background-color .15s;
}

.nav-dropdown-link:hover { background-color: #f7f7f7; }

.nav-dropdown-link img { width: 2.25rem; height: 2.25rem; border-radius: .5rem; flex: none; }

.nav-dropdown-link b { display: block; font-size: .9375rem; font-weight: 700; }

.nav-dropdown-link span { display: block; font-size: .8125rem; color: var(--text-secondary); font-weight: 500; }

.nav-buttons { display: flex; align-items: center; gap: 1rem; }

.navbar .button.is-login {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.navbar .button.is-login:hover { background-color: rgba(255, 255, 255, .08); }

.navbar.is-scrolled .button.is-login:hover { background-color: var(--background-subtle); }

/* burger */
.menu-button {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.menu-button svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: .25rem;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: .75rem 0;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
}

.mobile-menu .button { margin-top: .75rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.section-hero {
  z-index: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--background-dark);
  color: var(--text-invert);
  min-height: calc(100vh + 2.5rem);
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}

.hero-texture-bottom-left {
  z-index: 0;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  pointer-events: none;
}

.hero-texture-bottom-right {
  z-index: 0;
  position: absolute;
  right: 0;
  bottom: -20%;
  width: 60%;
  pointer-events: none;
}

.hero-content-wrapper {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.hero-text-wrapper {
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 54rem;
  text-align: center;
}

.hero-heading { color: #fff; }

.hero-sub {
  color: var(--text-invert-secondary);
  font-size: 1.125rem;
  max-width: 38rem;
}

/* trust pill */
.trusted-wrapper {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem .375rem .375rem;
  border: 1px solid var(--border-invert);
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.2;
  color: var(--text-invert-secondary);
}

.trusted-wrapper b { color: #fff; font-weight: 700; }

.trusted-avatars-wrapper { display: flex; flex: none; }

.trusted-avatar {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  border: 2px solid #000;
  margin-left: -.375rem;
}

.trusted-avatar.is-first { margin-left: 0; }

/* hero screenshot */
.hero-screen-wrapper {
  z-index: 10;
  position: relative;
  width: 100%;
  max-width: 72rem;
  padding: .375rem;
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, .06);
  box-shadow: 0 2px 2px -1px rgba(255, 255, 255, .25),
              0 4px 16px -2px rgba(255, 255, 255, .18),
              0 12px 40px -4px rgba(97, 0, 255, .25);
}

.hero-screen {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 2px solid #373a41;
  border-radius: 1.25rem;
  background-color: #0b0b0e;
}

.hero-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* white section overlapping the hero */
.hero-overlap-section {
  z-index: 20;
  position: relative;
  display: block;
  background-color: #fff;
  border-radius: 2.5rem 2.5rem 0 0;
  margin-top: -2.5rem;
}

/* ==========================================================================
   Logos marquee
   ========================================================================== */

.logos-section { padding-top: 4rem; padding-bottom: 2.5rem; }

.logos-label {
  text-align: center;
  color: var(--text-secondary);
  font-size: .9375rem;
  margin-bottom: 2rem;
}

.logos-label b { color: var(--text-primary); font-weight: 700; }

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.logo-marquee-track img {
  height: 1.375rem;
  width: auto;
  opacity: .8;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Workflow (dark rounded section)
   ========================================================================== */

.section-dark {
  z-index: 1;
  position: relative;
  overflow: hidden;
  color: var(--text-invert);
  background-color: #000;
  border-radius: 1.5rem;
  margin: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-dark .section-texture-top-center {
  z-index: 0;
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background-color: #41374e;
  filter: blur(50px);
  pointer-events: none;
}

.section-dark .section-heading .sub { color: var(--text-invert-secondary); }

.features-grid {
  z-index: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 1.5rem;
  grid-row-gap: 3rem;
}

.feature-number-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: .75rem;
}

.feature-number-grid-item img { border-radius: .5rem; }

.feature-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.feature-text-wrapper h3 { font-size: 1.5rem; }

.feature-text-wrapper p { color: var(--text-invert-secondary); }

/* circular arrows between workflow cards */
.workflow-arrow {
  z-index: 2;
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid var(--purple-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
}

.workflow-arrow img { width: 1rem; height: 1rem; }

.workflow-arrow.is-1 { left: 33.55%; }
.workflow-arrow.is-2 { left: 66.85%; }

/* ==========================================================================
   Product features (dark cards with tabs)
   ========================================================================== */

.product-features-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5rem;
}

.product-features {
  z-index: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 5rem;
  color: var(--text-invert);
  background-color: var(--background-dark);
  border-radius: 1.5rem;
}

.product-features.is-left-aligned { padding-left: 4.5rem; }
.product-features.is-right-aligned { padding-right: 4.5rem; flex-direction: row-reverse; }

.product-features-text-wrapper {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 31.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  flex: 1;
}

.product-features-heading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feature-dark-subtitle {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .125rem .625rem;
  border-radius: 999px;
  border: 1px solid var(--purple-800);
  background-color: var(--purple-900);
  color: var(--purple-300);
  font-size: .875rem;
  font-weight: 600;
}

.product-features-heading-wrapper h3 { font-size: 2.25rem; letter-spacing: -.01em; }

.product-features-heading-wrapper p { color: var(--text-invert-secondary); }

/* tabs */
.product-features-tabs-wrapper { display: flex; flex-direction: column; }

.product-features-tab {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 0 .75rem 1.5rem;
  border-left: 2px solid transparent;
  font-size: 1.125rem;
  font-weight: 500;
  opacity: .5;
  cursor: pointer;
  background: none;
  border-top: 0; border-right: 0; border-bottom: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  transition: opacity .2s;
}

.product-features-tab:hover { opacity: .75; }

.product-features-tab.is-active {
  border-left-color: var(--text-invert);
  opacity: 1;
}

.product-features-tab svg { width: 1.25rem; height: 1.25rem; flex: none; }

.product-features-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* image side */
.product-features-image-wrapper {
  z-index: 1;
  position: relative;
  aspect-ratio: 36 / 35;
  width: 100%;
  max-width: 45rem;
  flex: 1.2;
}

.product-features-image {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.product-features-image.is-active { opacity: 1; pointer-events: auto; }

/* corner textures inside cards */
.section-texture-top-left,
.section-texture-top-right,
.section-texture-bottom-left,
.section-texture-bottom-right {
  z-index: 0;
  position: absolute;
  pointer-events: none;
}

.section-texture-top-left { top: 0; left: 0; }
.section-texture-top-right { top: 0; right: 0; }
.section-texture-bottom-left { bottom: 0; left: 0; }
.section-texture-bottom-right { bottom: 0; right: 0; }

.product-features .section-texture-top-left,
.product-features .section-texture-top-right { width: 38%; }

.product-features .section-texture-bottom-left,
.product-features .section-texture-bottom-right { width: 44%; }

.product-features .section-texture-bottom-full { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; }

/* ==========================================================================
   Audience (“who is it for”)
   ========================================================================== */

.audience-heading-buttons { display: flex; justify-content: center; }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 1.5rem;
  grid-row-gap: 3rem;
  margin-top: 3rem;
}

.feature-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.feature-grid-item img { width: 4rem; height: 4rem; border-radius: .875rem; }

.feature-grid-item h3 { font-size: 1.375rem; font-weight: 700; }

.feature-grid-item p { color: var(--text-secondary); max-width: 22rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.testimonial-grid-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

.testimonial-grid-column.is-first { margin-top: 2rem; }
.testimonial-grid-column.is-last { margin-top: 2.5rem; }

.testimonial-grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem;
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  background: #fff;
}

.testimonial-quote { font-size: 1.0625rem; line-height: 1.55; }

.testimonial-person-wrapper {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  text-align: left;
}

.testimonial-avatar-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.testimonial-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-person-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.testimonial-person-name img { width: 1rem; height: 1rem; }

.testimonial-person-role { color: var(--text-secondary); font-size: .875rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

.faq-heading-wrapper {
  flex: 1;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
}

.faq-heading-wrapper .sub { color: var(--text-secondary); font-size: 1.125rem; }

.faq-heading-wrapper .sub a { color: var(--purple-700); font-weight: 600; text-decoration: none; }

.faq-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 1.5rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.faq-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: none;
  padding: 4px;
  border: 2px solid #a4a7ae;
  border-radius: 50%;
}

.faq-icon { position: relative; display: flex; width: 10px; height: 10px; }

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background-color: #a4a7ae;
  transform: translate(-50%, -50%);
  transition: transform .25s;
}

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

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

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding-top: .75rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.footer-cta-wrapper {
  z-index: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  color: #fff;
  background-color: #000;
  border-radius: 24px;
  padding: 4rem 2rem;
}

.footer-cta-wrapper .section-texture-top-left { width: 34%; }
.footer-cta-wrapper .section-texture-top-right { width: 34%; }

.footer-cta-wrapper .section-texture-top-center {
  z-index: 0;
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background-color: #41374e;
  filter: blur(50px);
  pointer-events: none;
}

.footer-cta-text {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-cta-text h2 {
  font-size: 3.75rem;
  font-weight: 600;
  background-image: linear-gradient(120deg, #fff 40%, var(--purple-300));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding-top: 4rem; padding-bottom: 2rem; }

.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.footer-content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
}

.footer-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 20rem;
}

.footer-text-wrapper p { color: var(--text-secondary); font-size: .9375rem; }

.footer-social-wrapper { display: flex; flex-direction: row; gap: 1.25rem; }

.footer-social-wrapper a { color: var(--text-secondary); transition: color .2s; }

.footer-social-wrapper a:hover { color: var(--text-primary); }

.footer-social-wrapper svg { width: 1.25rem; height: 1.25rem; }

.footer-links-wrapper {
  display: flex;
  flex-direction: row;
  gap: 6rem;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-links-group h4 { font-size: .875rem; font-weight: 700; color: var(--text-secondary); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-link {
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}

.footer-link:hover { color: var(--purple-700); }

.footer-legal-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: .875rem;
}

.footer-legal-links { display: flex; gap: 1rem; }

.footer-legal-links a { text-decoration: none; transition: color .2s; }

.footer-legal-links a:hover { color: var(--text-primary); }

/* ==========================================================================
   Pricing page
   ========================================================================== */

.pricing-hero {
  background-color: var(--background-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  text-align: center;
}

.pricing-hero .hero-sub { margin: 1rem auto 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  background: #fff;
}

.pricing-card.is-featured {
  background: var(--background-dark);
  color: #fff;
  border-color: var(--border-tertiary);
  position: relative;
  overflow: hidden;
}

.pricing-card .plan-name { font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }

.pricing-card .plan-desc { color: var(--text-secondary); font-size: .9375rem; }

.pricing-card.is-featured .plan-desc { color: var(--text-invert-secondary); }

.pricing-card .plan-price { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

.pricing-card .plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }

.pricing-card.is-featured .plan-price span { color: var(--text-invert-secondary); }

.pricing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }

.pricing-list li { display: flex; align-items: flex-start; gap: .625rem; font-size: .9375rem; }

.pricing-list .check { width: 1.125rem; height: 1.125rem; flex: none; color: var(--purple-700); margin-top: .125rem; }

.pricing-card.is-featured .pricing-list .check { color: var(--purple-300); }

.plan-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: .125rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--purple-800);
  background: var(--purple-900);
  color: var(--purple-300);
}

.pricing-hero-inner {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pricing-hero .hero-sub { max-width: 34rem; }

.assurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-invert-secondary);
  font-size: .9375rem;
}

.assurance span { display: inline-flex; align-items: center; gap: .5rem; }

.assurance svg { width: 1.125rem; height: 1.125rem; color: var(--purple-300); }

.billing-toggle {
  display: inline-flex;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--border-invert);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.billing-toggle button {
  border: 0;
  cursor: pointer;
  padding: .5rem 1.125rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-invert-secondary);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}

.billing-toggle button.is-active { background: #fff; color: var(--text-primary); }

.billing-toggle .save-note { font-weight: 500; opacity: .75; }

.price-row { display: flex; align-items: baseline; gap: .375rem; }

.price-row .per { color: var(--text-secondary); font-size: 1rem; }

.pricing-card.is-featured .price-row .per { color: var(--text-invert-secondary); }

.billing-note { color: var(--text-secondary); font-size: .875rem; }

.billing-note .save { color: var(--purple-700); font-weight: 700; }

.pricing-card.is-featured .billing-note { color: var(--text-invert-secondary); }

.pricing-card.is-featured .billing-note .save { color: var(--purple-300); }

.pricing-card .button { justify-content: center; }

.plan-features {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-primary);
}

.pricing-card.is-featured .plan-features { border-top-color: var(--border-tertiary); }

.plan-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9375rem; }

.plan-features .check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .125rem;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-700);
}

.plan-features .check svg { width: .75rem; height: .75rem; }

.pricing-card.is-featured .plan-features .check { background: var(--purple-900); color: var(--purple-300); }

.plan-features li.is-off { opacity: .45; }

.plan-features li.is-off .check { background: var(--background-subtle); color: var(--text-secondary); }

.plan-features b { display: block; font-weight: 700; }

.plan-features .detail { display: block; font-size: .8125rem; color: var(--text-secondary); }

.pricing-card.is-featured .plan-features .detail { color: var(--text-invert-secondary); }

.plan-features .limit {
  display: inline-block;
  margin-left: .25rem;
  padding: 0 .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--purple-50);
  color: var(--purple-700);
}

.pricing-card.is-featured .plan-features .limit { background: var(--purple-900); color: var(--purple-300); }

.pricing-card.is-featured .section-texture-top-right { width: 60%; opacity: .8; }

/* ==========================================================================
   Plan sign-up modal (business info)
   ========================================================================== */

.plan-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  overflow-y: auto;
  background: rgba(9, 9, 11, .62);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.plan-modal-overlay.is-open { display: flex; }

.plan-modal {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin: auto;
  padding: 2rem;
  border-radius: 1rem;
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .45);
  animation: modal-in .25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.plan-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.plan-modal-close:hover { background: var(--background-subtle); color: var(--text-primary); }

.plan-modal-close svg { width: 1.125rem; height: 1.125rem; }

.plan-modal-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.plan-modal-head h3 { font-size: 1.5rem; letter-spacing: -.01em; }

.plan-modal-head p { color: var(--text-secondary); font-size: .9375rem; }

.plan-modal-head p b { color: var(--text-primary); }

/* form */
.plan-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-field.is-full { grid-column: 1 / -1; }

.form-field label {
  font-size: .8125rem;
  font-weight: 600;
}

.form-field label .optional {
  color: var(--text-secondary);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .625rem .75rem;
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: .875rem;
  padding-right: 2.25rem;
}

.form-field textarea { resize: vertical; min-height: 4.5rem; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-secondary); opacity: .8; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple-700);
  box-shadow: 0 0 0 3px rgba(89, 37, 220, .18);
}

.plan-form .button { grid-column: 1 / -1; justify-content: center; margin-top: .25rem; }

.plan-form-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-size: .8125rem;
}

/* success state */
.plan-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 .5rem;
  text-align: center;
}

.plan-modal.is-submitted .plan-form,
.plan-modal.is-submitted .plan-modal-head p.plan-modal-summary { display: none; }

.plan-modal.is-submitted .plan-form-success { display: flex; }

.plan-form-success .success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  color: var(--purple-700);
}

.plan-form-success .success-icon svg { width: 1.75rem; height: 1.75rem; }

.plan-form-success h4 { font-size: 1.25rem; }

.plan-form-success p { color: var(--text-secondary); font-size: .9375rem; max-width: 24rem; }

@media (max-width: 767px) {
  .plan-modal { padding: 1.5rem; }
  .plan-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }

  .container { padding-left: 1.5rem; padding-right: 1.5rem; }

  .nav-menu { display: none; }
  .menu-button { display: flex; }

  .section-hero { min-height: 0; padding-top: 7rem; }

  .hero-content-wrapper { gap: 3.75rem; }

  .section-dark { margin: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }

  .features-grid,
  .audience-grid { grid-template-columns: 1fr 1fr; }

  .workflow-arrow { display: none; }

  .product-features { flex-direction: column; align-items: stretch; gap: 2.5rem; padding-top: 2.5rem; }
  .product-features.is-left-aligned { padding-left: 2.5rem; }
  .product-features.is-right-aligned { padding-right: 2.5rem; flex-direction: column; align-items: stretch; }
  .product-features.is-right-aligned .product-features-text-wrapper { padding-left: 2.5rem; }
  .product-features.is-left-aligned .product-features-text-wrapper { padding-right: 2.5rem; }
  .product-features-text-wrapper { max-width: none; padding-top: 0; padding-bottom: 0; }
  .product-features-image-wrapper { max-width: none; }
  .product-features-heading-wrapper h3 { font-size: 1.75rem; }

  .product-features-tabs-wrapper {
    flex-direction: row;
    gap: 1.5rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-features-tabs-wrapper::-webkit-scrollbar { display: none; }

  .product-features-tab {
    flex: none;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: .75rem 0;
  }

  .product-features-tab.is-active { border-left: 0; border-bottom-color: var(--text-invert); }

  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial-grid-column { flex-direction: row; gap: 1.25rem; }
  .testimonial-grid-column.is-first, .testimonial-grid-column.is-last { margin-top: 0; }
  .testimonial-grid-item { flex: 1; padding: 1.5rem; gap: 2rem; }

  .faq-content-wrapper { flex-direction: column; gap: 2.5rem; }

  .footer-cta-text h2 { font-size: 2.75rem; }

  .footer-links-wrapper { gap: 2.5rem; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 28rem; margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h4 { font-size: 1.25rem; }

  .navbar .button.is-login { display: none; }
  .nav-buttons { gap: .75rem; }

  .section { padding-top: 2rem; padding-bottom: 2rem; }

  .hero-screen-wrapper { border-radius: 1rem; }
  .hero-screen { border-radius: .75rem; }

  .features-grid { grid-template-columns: 1fr; grid-row-gap: 1.75rem; }

  .footer-content-wrapper { flex-direction: column; }

  .footer-legal-wrapper { flex-direction: column; gap: 1rem; text-align: center; padding-top: 1.5rem; }

  .product-features { gap: 1.25rem; padding-top: 2rem; }
  .product-features.is-left-aligned { padding-left: 1.5rem; }
  .product-features.is-right-aligned { padding-right: 1.5rem; }
  .product-features.is-right-aligned .product-features-text-wrapper { padding-left: 1.5rem; }
  .product-features.is-left-aligned .product-features-text-wrapper { padding-right: 1.5rem; }
}

@media (max-width: 479px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .container { padding-left: 1rem; padding-right: 1rem; }

  .section-dark { margin: 1rem; }

  .audience-grid { grid-template-columns: 1fr; }

  .testimonial-grid-column { flex-direction: column; }

  .trusted-avatar.is-hide-mobile { display: none; }

  .footer-cta-wrapper { padding: 2.5rem 1rem; }
  .footer-cta-text h2 { font-size: 2rem; }

  .footer-cta-wrapper .section-texture-top-right { display: none; }

  .footer-links-wrapper { flex-wrap: wrap; }
}

/* ==========================================================================
   Footer company details + company details page
   ========================================================================== */

.footer-company-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: .875rem;
}

.footer-company-line + .footer-legal-wrapper { border-top: 0; padding-top: 0; }

.company-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.company-details-card {
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  padding: 1.75rem;
  background: var(--background);
}

.company-details-card h3 {
  margin: 0 0 .5rem;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
}

.company-details-card p { margin: 0; font-size: 1.0625rem; color: var(--text-primary); overflow-wrap: anywhere; }

.company-details-card a { color: var(--brand-primary); text-decoration: none; }

.company-details-card a:hover { text-decoration: underline; }

.company-details-note { margin-top: 2.5rem; color: var(--text-secondary); font-size: .9375rem; max-width: 62ch; }
