/* =========================================================
   DR. NOTES - THERAPISTS LANDING PAGE (Therapy Notes)
   The page uses the psychiatry page's layout (psychiatry.css, with
   body.psychiatry-page) and the site's own theme. The app's mauve
   appears only in its screenshots. Page-specific parts only.
========================================================= */

.sp-tools-section--therapy::before { content: "\f086"; } /* comments */

/* =========================================================
   HERO: launch line and the two phones
   The screenshots are pre-framed iPhone renders, like the other
   profession pages' (public/assets/images/psychiatry-app/v2/).
========================================================= */

.tn-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.tn-launch__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--dn-accent-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--dn-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.tn-launch__badge img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.tn-launch__badge small {
  display: block;
  color: var(--dn-text-2);
  font-size: 12px;
  font-weight: 600;
}

.tn-launch .dn-link { font-weight: 700; }

.tn-hero-phones {
  position: relative;
  max-width: 560px;
  min-height: 600px;
  margin: 0 auto 40px;
}

.tn-hero-phones::before {
  content: "";
  position: absolute;
  inset: 12% 6% 10% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--dn-accent-rgb), 0.18), rgba(var(--dn-accent-rgb), 0));
  pointer-events: none;
}

.tn-phone {
  position: absolute;
  width: min(270px, 48%);
}

.tn-phone--front {
  z-index: 2;
  left: 8%;
  top: 0;
}

.tn-phone--back {
  z-index: 1;
  right: 4%;
  top: 70px;
  width: min(246px, 44%);
  transform: rotate(3deg);
}

/* =========================================================
   FORMAT CHIPS (progress note feature)
========================================================= */

/* .tn-main for specificity over psychiatry.css's `.psy-feature-content ul` grid. */
.tn-main .tn-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.tn-main .tn-formats li {
  padding: 6px 14px;
  border: 1px solid var(--dn-accent-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--dn-accent);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.tn-main .tn-formats li::before { content: none; }

/* =========================================================
   PRIVATE BY DESIGN
   The site's slate surface (--dn-glass-accent in design-system.css),
   as on the footer and the closing call-to-action panels, so the
   section stands apart from the light pricing and tools bands below.
   Text stays white: the light-blue accent falls below AA on slate.
========================================================= */

.tn-private {
  padding: 96px 0;
  background: var(--dn-glass-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.tn-private .psy-section-heading h2 { color: #ffffff; }
.tn-private .psy-section-heading h2 span { color: rgba(255, 255, 255, 0.75); }
.tn-private .psy-section-heading p { color: #ffffff; }

.tn-private__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tn-private__item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tn-private__item i {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 18px;
}

.tn-private__item h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.tn-private__item p {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

/* .tn-main for specificity over psychiatry.css's `.psychiatry-page p` margins. */
.tn-main .tn-private__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 40px 0 0;
}

.tn-private__links a {
  color: #ffffff;
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.tn-private__links a:hover { color: #ffffff; text-decoration-color: currentColor; }
/* The site's focus ring is the slate accent, which would vanish on this ground. */
.tn-private__links a:focus-visible { outline-color: #ffffff; }

/* =========================================================
   PRICING AND FAQ
========================================================= */

.tn-legal-line {
  margin: 14px 0 0;
  color: var(--dn-text-2);
  font-size: 14px;
  text-align: center;
}

.tn-faq {
  padding: 92px 0;
  background: var(--dn-bg);
}

.tn-faq .dn-accordion {
  max-width: 820px;
  margin: 0 auto;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
  .tn-hero-phones { min-height: 560px; }
}

@media (max-width: 991.98px) {
  .tn-private__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .tn-hero-phones {
    max-width: 380px;
    min-height: 430px;
  }

  .tn-phone--back { top: 48px; }

  .tn-private { padding: 72px 0; }
  .tn-private__grid { grid-template-columns: minmax(0, 1fr); }

  .tn-faq { padding: 72px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .tn-phone--front { animation: tn-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .tn-phone--back { animation: tn-rise-back 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}

@keyframes tn-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes tn-rise-back {
  from { opacity: 0; transform: translateY(24px) rotate(3deg); }
  to { opacity: 1; transform: rotate(3deg); }
}
