/* TAT Module Gate — soft paywall pattern */
/* Full content stays in HTML for SEO; hidden via CSS until unlock */

body[data-required-tier="free"]:not(.tat-unlocked) .content > *:nth-child(n+6),
body[data-required-tier="member"]:not(.tat-unlocked) .content > *:nth-child(n+6),
body[data-required-tier="clinician"]:not(.tat-unlocked) .content > * {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

body[data-required-tier="clinician"]:not(.tat-unlocked) .content > *:first-child {
  filter: none;
  opacity: 1;
}

body.tat-unlocked .content > * {
  filter: none;
  opacity: 1;
  user-select: text;
  pointer-events: auto;
}

.tat-gate-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tat-gate-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 35, 30, 0.7);
  backdrop-filter: blur(4px);
}

.tat-gate-panel {
  position: relative;
  background: #FAF8F5;
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  text-align: center;
  border-top: 4px solid #5A8A6A;
}

.tat-gate-lock-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.tat-gate-heading {
  font-family: 'Erode', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #2D2B26;
  margin: 0 0 12px;
  line-height: 1.25;
}

.tat-gate-sub {
  color: #6B6860;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.tat-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tat-gate-form input {
  padding: 13px 16px;
  border: 1.5px solid #DDD6CD;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #FFFFFF;
  color: #2D2B26;
  transition: border-color 0.2s;
}

.tat-gate-form input:focus {
  outline: none;
  border-color: #5A8A6A;
}

.tat-gate-form button {
  padding: 14px 24px;
  background: #5A8A6A;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.tat-gate-form button:hover { background: #4A7559; }
.tat-gate-form button:disabled { opacity: 0.7; cursor: wait; }

.tat-gate-divider {
  color: #9A968C;
  font-size: 13px;
  margin: 14px 0;
}

.tat-gate-upgrade-btn {
  display: inline-block;
  padding: 13px 22px;
  background: #C4836A;
  color: #FFFFFF;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.tat-gate-upgrade-btn:hover { background: #B0705A; }

.tat-gate-footer {
  color: #9A968C;
  font-size: 12px;
  line-height: 1.5;
  margin: 18px 0 0;
}

@media (max-width: 520px) {
  .tat-gate-panel { padding: 32px 24px 26px; }
  .tat-gate-heading { font-size: 22px; }
}
