/**
 * /try-engage — lead-gated free-trial page.
 * Self-contained stylesheet, scoped to this page only (no shared
 * variables from styles.css/landing.css beyond the sitewide
 * .site-header, which is left untouched so it keeps working the same
 * way on every other page).
 */

:root {
  --ink: #14121a;
  --ink-soft: #57536b;
  --ink-faint: #8b87a0;
  --accent: #7b4ff5;
  --accent-dark: #6438e0;
  --accent-tint: #f4f1fd;
  --border: #e7e3f3;
  --surface: #ffffff;
  --danger: #b3261e;
  --danger-tint: #fdecea;
  --danger-border: #f3c6c2;
}

body[data-page="try-engage"] {
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[data-page="try-engage"] * {
  box-sizing: border-box;
}

body[data-page="try-engage"] h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.te-shell {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  overflow: hidden;
}

.te-shell::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(123, 79, 245, 0.14), rgba(123, 79, 245, 0));
  pointer-events: none;
}

.te-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 29px 24px;
  box-shadow: 0 1px 2px rgba(20, 18, 26, 0.04), 0 24px 48px -24px rgba(20, 18, 26, 0.12);
  text-align: center;
}

.te-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

.te-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.te-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* [hidden] set last and unconditionally: an unqualified `.te-banner {
   display: block }` would out-rank the browser's default
   `[hidden] { display: none }` UA rule (author styles beat UA styles
   regardless of specificity), which would leave this banner visible
   even while the `hidden` attribute is set. */
.te-banner {
  background: var(--danger-tint);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  text-align: left;
  display: block;
}

.te-banner[hidden] {
  display: none;
}

.te-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  margin-bottom: 10px;
}

.te-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.te-field input,
.te-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.te-field textarea {
  resize: vertical;
  min-height: 90px;
}

.te-field input:focus,
.te-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.te-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 1px 2px rgba(20, 18, 26, 0.06), 0 12px 24px -12px rgba(123, 79, 245, 0.55);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.te-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.te-cta:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.te-cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.te-submit-error {
  font-size: 13px;
  color: var(--danger);
  margin: 6px 0 0;
}

.te-fineprint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 13px 0 0;
}

.te-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 272px;
  height: 272px;
  margin: 0 auto 16px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.te-qr img,
.te-qr canvas {
  border-radius: 6px;
}

@media (max-width: 480px) {
  .te-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  body[data-page="try-engage"] h1 {
    font-size: 26px;
  }

  .te-qr {
    width: 100%;
    max-width: 272px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
