/* ==========================================================================
   Homepage v2 (30-day free trial landing)
   Only v2- prefixed layout rules. Colors/fonts come from variables.css.
   ========================================================================== */

/* Keeps phrases from splitting across lines */
.v2-nowrap {
  white-space: nowrap;
}

/* Compact header CTA, shown only where style.css hides .btn-download-nav (<=640px) */
.v2-header-cta-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.v2-header-cta-mobile:hover {
  background-color: var(--btn-primary-hover);
}

@media (max-width: 640px) {
  .v2-header-cta-mobile {
    display: inline-flex;
  }
}

@media (max-width: 400px) {
  .v2-header-cta-mobile {
    padding: 0 10px;
  }

  .nav-right {
    gap: 6px;
  }

  .logo-img {
    height: 30px;
  }
}

/* Anchor targets clear the sticky header */
section[id] {
  scroll-margin-top: 80px;
}

/* Section rhythm */
.v2-section {
  width: 100%;
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--header-border);
  background-color: var(--bg-body);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.v2-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}

/* Typography */
.v2-h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 20px;
  text-wrap: balance;
}

.v2-h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 16px;
  text-wrap: balance;
}

.v2-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.v2-microcopy {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Buttons */
.v2-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.v2-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 9999px;
  border: 1px solid transparent;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.v2-cta:hover {
  background-color: var(--btn-primary-hover);
}

.v2-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.v2-link:hover {
  opacity: 0.7;
}

/* Hero */
.v2-hero {
  width: 100%;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
  background-color: var(--bg-body);
}

.v2-hero .v2-lead {
  margin-bottom: 36px;
}

.v2-trust {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.v2-trust-stars {
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.v2-hero-media {
  width: 100%;
  max-width: 1179px;
  margin: clamp(56px, 7vw, 88px) auto 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--media-container-bg);
  border: 1px solid var(--media-container-border);
  box-shadow: var(--media-container-shadow);
}

.v2-hero-media picture,
.v2-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Features: alternating rows (text / media) */
.v2-feature-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 128px);
}

.v2-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}

/* Even rows: media left, text right. Order swap keeps the markup identical. */
.v2-feature-row--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.v2-feature-row--reverse .v2-feature-text {
  order: 2;
}

.v2-feature-row--reverse .v2-feature-media {
  order: 1;
}

.v2-feature-text {
  min-width: 0;
}

.v2-feature-title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.v2-feature-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0;
}

.v2-feature-media {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 32px);
  background-color: var(--media-container-bg);
  border: 1px solid var(--media-container-border);
  border-radius: 24px;
  box-shadow: var(--media-container-shadow);
}

.v2-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* How it works */
.v2-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  text-align: center;
}

.v2-step-num {
  display: block;
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.v2-step-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.v2-step-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 280px;
}

/* Security */
.v2-statement {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 56px;
  text-wrap: balance;
}

.v2-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
}

.v2-spec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.v2-spec::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  flex-shrink: 0;
}

/* Pricing extras */
.v2-card-trial {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.v2-details {
  width: 100%;
  max-width: 1080px;
  margin-top: 56px;
}

.v2-details summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 0;
}

.v2-details summary::-webkit-details-marker {
  display: none;
}

.v2-details summary::after {
  content: "+";
  margin-left: 8px;
  color: var(--text-muted);
}

.v2-details[open] summary::after {
  content: "–";
}

.v2-details[open] summary {
  margin-bottom: 24px;
}

/* Reviews */
.v2-reviews .v2-section-head {
  margin-bottom: 0;
}

/* FAQ */
.v2-faq {
  max-width: 760px;
  margin: 0 auto;
}

/* ==========================================================================
   Tablet and below
   ========================================================================== */
@media (max-width: 899px) {
  .v2-feature-rows {
    gap: 72px;
  }

  .v2-feature-row,
  .v2-feature-row--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .v2-feature-row--reverse .v2-feature-text,
  .v2-feature-row--reverse .v2-feature-media {
    order: 0;
  }
}

@media (max-width: 768px) {
  .v2-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 480px) {
  .v2-actions {
    flex-direction: column;
    width: 100%;
  }

  .v2-cta {
    width: 100%;
  }

}
