/* ── Landing Page: SOC 2 ── */

/* Hero — split layout with lead form */
.lp-hero {
  padding: calc(var(--header-offset-desktop) + var(--space-9)) 0 var(--space-10);
  background: var(--bg-primary);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: var(--space-8);
  align-items: start;
}

.lp-hero-content .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.lp-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.h1-break {
  display: inline;
}

.lp-hero-content .tagline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 540px;
}

/* Trust signals row */
.lp-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.lp-trust-signal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.lp-trust-signal .check-icon {
  width: 20px;
  height: 20px;
  background: rgb(var(--gold-rgb) / 10%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 11px;
}

/* Hero logo strip */
.lp-hero-logos {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lp-hero-logos-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.lp-hero-logos-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.lp-hero-logos-row img {
  height: 24px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.2s;
}

.lp-hero-logos-row img:hover {
  opacity: 0.85;
}

/* ── Lead Form Card ── */
.lp-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: 0 8px 32px rgb(0 0 0 / 6%);
}

.lp-form-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.lp-form-secondary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-3);
}

/* ── HubSpot embedded form (v2 inline) ── */
.lp-hubspot-form {
  margin-bottom: var(--space-4);
}

.lp-hubspot-form .hs-form fieldset {
  max-width: none !important;
  margin-bottom: 0;
}

.lp-hubspot-form .hs-form fieldset .hs-form-field {
  padding: 0 !important;
  margin-bottom: var(--space-4);
}

.lp-hubspot-form .hs-form fieldset.form-columns-2 .hs-form-field {
  width: 100% !important;
  float: none !important;
}

.lp-hubspot-form .hs-form fieldset.form-columns-2 .hs-form-field .input {
  margin-right: 0 !important;
}

.lp-hubspot-form .hs-form-field > label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: var(--space-2) !important;
  font-family: var(--font-body) !important;
}

.lp-hubspot-form .hs-form-field > label .hs-form-required {
  color: var(--accent) !important;
  margin-left: 2px;
}

.lp-hubspot-form .hs-form .hs-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: var(--space-3) var(--space-4) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  background-color: var(--bg-primary) !important;
  transition: border-color 0.2s, outline-color 0.2s !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.lp-hubspot-form .hs-form .hs-input:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 1px !important;
  border-color: var(--accent) !important;
}

.lp-hubspot-form .hs-form .hs-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.lp-hubspot-form .hs-form textarea.hs-input {
  min-height: 96px;
  resize: vertical;
}

.lp-hubspot-form .hs-form .hs-input.invalid,
.lp-hubspot-form .hs-form .hs-input.error {
  border-color: var(--error, #c53030);
}

.lp-hubspot-form .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: var(--space-1) 0 0;
}

.lp-hubspot-form .hs-error-msgs li,
.lp-hubspot-form .hs-error-msgs label {
  font-size: 13px;
  color: var(--error, #c53030);
}

.lp-hubspot-form .hs-richtext,
.lp-hubspot-form .legal-consent-container {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.lp-hubspot-form .hs-richtext p,
.lp-hubspot-form .legal-consent-container p {
  margin: 0 0 var(--space-2);
}

.lp-hubspot-form .hs-richtext:first-child {
  display: none;
}

.lp-hubspot-form .hs-form .hs-submit {
  margin-top: var(--space-5);
}

.lp-hubspot-form .hs-form .hs-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: var(--space-3) var(--space-5) !important;
  background: var(--accent) !important;
  background-color: var(--accent) !important;
  color: var(--bg-primary) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.lp-hubspot-form .hs-form .hs-button:hover {
  filter: brightness(0.95);
}

.lp-hubspot-form .hs-form .hs-button:active {
  transform: translateY(1px);
}

.lp-hubspot-form .submitted-message {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  text-align: center;
  padding: var(--space-5) 0;
  line-height: 1.6;
}

.lp-hubspot-form .grecaptcha-badge {
  visibility: hidden;
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.form-field input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color 0.2s, outline-color 0.2s;
  box-sizing: border-box;
}

.form-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Validation error state */
.form-field.has-error input {
  border-color: var(--error);
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: var(--space-1);
}

.form-field.has-error .field-error {
  display: block;
}

/* Form buttons */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.form-actions .cta-primary {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: center;
  width: 100%;
}

.form-actions .cta-secondary {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  justify-content: center;
}

.form-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-3);
  text-align: center;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Success state */
.lp-form-success {
  text-align: center;
  padding: var(--space-7) var(--space-5);
}

.lp-form-success .success-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.lp-form-success h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.lp-form-success p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Hero in-column trust block ── */
.lp-hero-trust {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

.lp-hero-trust .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.lp-hero-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
}

.lp-hero-trust-logos .trust-logo {
  margin-right: 0;
  height: 18px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.lp-hero-positioning {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}

/* ── Section overrides for LP ── */

/* 4-col features grid for landing page */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.lp-bundle-grid {
  grid-template-columns: repeat(3, 1fr);
}

.lp-fineprint {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.lp-fineprint p + p {
  margin-top: var(--space-4);
}

/* ── Bottom CTA ── */
.lp-cta-section {
  background: var(--bg-warm-strong);
  padding: var(--space-10) var(--space-7);
  text-align: center;
}

.lp-cta-section .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.lp-cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  max-width: 700px;
  margin-inline: auto;
}

.lp-cta-section p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--space-6);
  max-width: 560px;
  margin-inline: auto;
}

.lp-cta-section .cta-group {
  justify-content: center;
}

/* ── Responsive ── */

/* Drop the hard H1 line break once the headline starts wrapping naturally */
@media (max-width: 640px) {
  .h1-break {
    display: none;
  }
}

/* Stack hero earlier so headline has breathing room on tablet/small desktop */
@media (max-width: 1100px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .lp-form-wrap {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 1000px) {
  .lp-hero {
    padding-top: calc(var(--header-offset-mobile) + var(--space-8));
  }

  .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-bundle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-cta-section {
    padding: var(--space-9) var(--space-6);
  }
}

@media (max-width: 600px) {
  .lp-hero {
    padding-top: calc(var(--header-offset-mobile) + var(--space-6));
    padding-bottom: var(--space-8);
  }

  .lp-hero-grid {
    gap: var(--space-6);
  }

  .lp-form-wrap {
    padding: var(--space-5);
    max-width: none;
  }

  .lp-trust-signals {
    flex-direction: column;
    gap: var(--space-3);
  }

  .lp-hero-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

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

  .lp-bundle-grid {
    grid-template-columns: 1fr;
  }

  .form-actions .cta-primary,
  .form-actions .cta-secondary {
    width: 100%;
  }

  .lp-cta-section {
    padding: var(--space-9) var(--space-5);
  }

  .lp-cta-section .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-cta-section .cta-group .cta-primary,
  .lp-cta-section .cta-group .cta-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .lp-fineprint {
    text-align: left;
  }

  .lp-hero-trust {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
  }

  .lp-hero-trust-logos {
    justify-content: flex-start;
    gap: var(--space-3) var(--space-4);
  }

  .lp-hero-trust-logos .trust-logo {
    height: 16px;
  }
}
