/* ============================================================
   H-evidence landing page — fully isolated from the app code.
   Design tokens sourced from the Google Stitch project
   (Hanken Grotesk + Manrope, primary #4d3df2 on #fbf8ff).
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4d3df2;
  --primary-deep: #3312dc;
  --on-primary: #ffffff;
  --background: #fbf8ff;
  --surface: #ffffff;
  --surface-container: #ececff;
  --surface-container-low: #f3f2ff;
  --on-surface: #181b28;
  --on-surface-variant: #464556;
  --muted: #595c80;
  --outline: #777588;
  --outline-variant: #c7c4d9;

  --font-display: "Hanken Grotesk", -apple-system, sans-serif;
  --font-body: "Manrope", -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.accent {
  color: var(--primary);
}

.accent-strong {
  color: var(--primary);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 12px;
  padding: 18px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn .icon-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -10px rgba(77, 61, 242, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -10px rgba(77, 61, 242, 0.65);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
}

.btn-outline:hover {
  background: var(--surface-container-low);
}

.btn-sm {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-lg {
  padding: 20px 34px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-row-center {
  justify-content: center;
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 85% 40%, #e6e1fa 0%, rgba(230, 225, 250, 0) 60%),
    linear-gradient(115deg, #fbf9ff 0%, #f4f0fd 55%, #e9e4f9 100%);
}

.hero-watermark {
  position: absolute;
  top: 48px;
  right: -60px;
  width: 52vw;
  max-width: 720px;
  min-width: 420px;
  opacity: 0.85;
  pointer-events: none;
}

.hero-watermark svg {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(0.5px);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  height: 36px;
  display: inline-flex;
}

.brand-mark img {
  height: 100%;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  gap: 14px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 56px 48px;
  max-width: 860px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 40px;
}

.hero-ticker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  min-height: 40px;
}

.ticker-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.ticker-icon svg {
  width: 100%;
  height: 100%;
}

.ticker-text {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  color: var(--on-surface);
  transition: opacity 0.5s ease;
}

.ticker-text.is-fading {
  opacity: 0;
}

.hero-copy {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 30px;
  color: var(--on-surface-variant);
  margin-bottom: 44px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(199, 196, 217, 0.55);
}

.note-icon {
  width: 34px;
  height: 34px;
  color: var(--primary);
  flex-shrink: 0;
}

.note-icon svg {
  width: 100%;
  height: 100%;
}

.note-divider {
  width: 1px;
  height: 52px;
  background: var(--outline-variant);
}

.note-text {
  font-size: 17px;
  line-height: 27px;
  color: var(--on-surface);
}

/* ------------------------------ Problem ------------------------------ */

.problem {
  padding: 110px 56px 90px;
  text-align: center;
  background:
    linear-gradient(180deg, #faf8ff 0%, #f5f2fc 100%);
}

.problem .eyebrow {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 64px;
}

.problem-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto 72px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid rgba(199, 196, 217, 0.35);
  border-radius: 24px;
  box-shadow: 0 18px 40px -24px rgba(24, 27, 40, 0.18);
  padding: 40px 34px 34px;
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface-container-low);
  border: 1px solid rgba(77, 61, 242, 0.14);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.card-icon svg {
  width: 40px;
  height: 40px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 18px;
}

.card-copy {
  font-size: 16px;
  line-height: 25px;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

.card-stat {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(199, 196, 217, 0.45);
  width: 100%;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-caption {
  font-size: 15px;
  line-height: 23px;
  color: var(--on-surface-variant);
  margin-bottom: 18px;
}

.stat-source {
  font-size: 13px;
  line-height: 18px;
  color: #9a97ab;
}

.problem-arrow {
  align-self: center;
  color: var(--primary);
  width: 30px;
  flex-shrink: 0;
}

.problem-arrow svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* --------------------------- Logo divider --------------------------- */

.logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.divider-line {
  width: 120px;
  height: 2px;
  border-radius: 2px;
}

.divider-line-left {
  background: linear-gradient(90deg, rgba(77, 61, 242, 0) 0%, #4d3df2 100%);
}

.divider-line-right {
  background: linear-gradient(90deg, #4d3df2 0%, rgba(77, 61, 242, 0) 100%);
}

.divider-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.divider-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ------------------------------ Value prop ------------------------------ */

.value {
  padding: 110px 56px;
  background:
    linear-gradient(180deg, #f5f2fc 0%, #fbf8ff 60%);
  overflow: hidden;
}

.value-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 72px;
}

.value-copy-col {
  flex: 1;
  min-width: 0;
}

.value .eyebrow {
  margin-bottom: 26px;
}

.value-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 34px;
}

.value-copy {
  font-size: 18px;
  line-height: 29px;
  color: var(--on-surface-variant);
  max-width: 460px;
}

.value-visual-col {
  flex: 1.15;
  min-width: 0;
}

.value-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(199, 196, 217, 0.4);
  box-shadow: 0 32px 70px -30px rgba(24, 27, 40, 0.35);
}

/* ------------------------------ Final CTA ------------------------------ */

.cta {
  padding: 120px 56px 100px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 10%, #f3effc 0%, rgba(243, 239, 252, 0) 70%),
    linear-gradient(180deg, #fbf8ff 0%, #f2eefb 100%);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(199, 196, 217, 0.5);
  box-shadow: 0 6px 18px -8px rgba(24, 27, 40, 0.12);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 48px;
}

.pill-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.pill-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 auto 36px;
  max-width: 900px;
}

.cta-copy {
  font-size: 18px;
  line-height: 29px;
  color: var(--on-surface-variant);
  margin: 0 auto 52px;
}

.cta .btn-row {
  margin-bottom: 56px;
}

.cta-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--on-surface-variant);
}

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--on-surface-variant);
}

/* ------------------------------ Contact modal ------------------------------ */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px;
  overflow-y: auto;
  background: rgba(24, 27, 40, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-overlay[hidden] {
  display: none;
}

.contact-modal {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 40px 90px -30px rgba(24, 27, 40, 0.45);
  width: 100%;
  max-width: 820px;
  padding: 32px 44px 30px;
  margin: auto 0;
}

.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.contact-head .brand-mark {
  height: 30px;
}

.contact-head .brand-name {
  font-size: 18px;
}

.contact-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: 10px;
  color: var(--on-surface);
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-close:hover {
  background: var(--surface-container-low);
}

.contact-close svg {
  width: 22px;
  height: 22px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 16px;
  line-height: 25px;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-bottom: 26px;
}

.field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.field input,
.textarea-wrap textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--on-surface);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.textarea-wrap textarea::placeholder {
  color: #9a97ab;
}

.field input:focus,
.textarea-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 61, 242, 0.15);
}

.group-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-bottom: 26px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card:hover {
  border-color: var(--primary);
}

.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-container-low);
  box-shadow: 0 0 0 1px var(--primary) inset;
}

.choice-card:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(77, 61, 242, 0.25);
}

.choice-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-container-low);
  color: var(--primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.choice-icon svg {
  width: 22px;
  height: 22px;
}

.choice-card:has(input:checked) .choice-icon {
  background: var(--primary);
  color: var(--on-primary);
}

.choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
}

.choice-desc {
  font-size: 13px;
  line-height: 18px;
  color: var(--on-surface-variant);
}

.choice-control {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--outline-variant);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-radio {
  border-radius: 50%;
}

.choice-card:has(input:checked) .choice-radio {
  border-color: var(--primary);
  border-width: 6px;
}

.choice-check {
  border-radius: 6px;
  position: relative;
}

.choice-card:has(input:checked) .choice-check {
  border-color: var(--primary);
  background: var(--primary);
}

.choice-card:has(input:checked) .choice-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.textarea-wrap {
  position: relative;
  margin-bottom: 26px;
}

.textarea-wrap textarea {
  display: block;
  min-height: 112px;
  resize: vertical;
  padding-bottom: 30px;
}

.char-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: #9a97ab;
  pointer-events: none;
}

.contact-error {
  font-size: 14px;
  line-height: 21px;
  color: #c0362c;
  background: #fdf1f0;
  border: 1px solid rgba(192, 54, 44, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.contact-error a {
  color: inherit;
  font-weight: 600;
}

.contact-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.contact-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 18px;
}

.privacy-lock {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-success {
  text-align: center;
  padding: 36px 20px 28px;
}

.contact-success[hidden] {
  display: none;
}

.success-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-container-low);
  color: var(--primary);
  margin-bottom: 22px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 10px;
}

.success-copy {
  font-size: 16px;
  line-height: 25px;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 960px) {
  .site-header {
    padding: 20px 24px;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .hero-inner {
    padding: 16px 24px 40px;
  }

  .hero-watermark {
    opacity: 0.5;
  }

  .hero-copy br,
  .cta-copy br {
    display: none;
  }

  .problem {
    padding: 80px 24px 70px;
  }

  .problem-grid {
    flex-direction: column;
    align-items: center;
  }

  .problem-card {
    max-width: 420px;
    width: 100%;
  }

  .problem-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .value {
    padding: 80px 24px;
  }

  .value-inner {
    flex-direction: column;
    gap: 48px;
  }

  .value-title br {
    display: none;
  }

  .cta {
    padding: 90px 24px 80px;
  }

  .cta-title br {
    display: none;
  }
}

@media (max-width: 720px) {
  .contact-overlay {
    padding: 16px 12px;
  }

  .contact-modal {
    padding: 24px 20px 24px;
    border-radius: 18px;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 40px;
  }

  .ticker-text {
    font-size: 17px;
    line-height: 24px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .hero-note {
    margin-top: 48px;
  }
}
