/* =========================================================
   DR. NOTES - PSYCHIATRY LANDING PAGE
   Page-specific styles only.
========================================================= */

.psychiatry-page {
  --psy-blue: #0b63f6;
  --psy-blue-dark: #074bc2;
  --psy-blue-soft: #eef5ff;
  --psy-navy: #071b45;
  --psy-text: #263858;
  --psy-muted: #63708a;
  --psy-border: #dfe8f7;
  --psy-cream: #fffaf4;
  --psy-white: #ffffff;

  overflow-x: hidden;
  background: var(--psy-white);
  color: var(--psy-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

.psychiatry-page *,
.psychiatry-page *::before,
.psychiatry-page *::after {
  box-sizing: border-box;
}

.psychiatry-page h1,
.psychiatry-page h2,
.psychiatry-page h3,
.psychiatry-page p {
  margin-top: 0;
}

.psychiatry-page img {
  max-width: 100%;
}

.psychiatry-page .row > * {
  min-width: 0;
}

/* =========================================================
   SHARED TYPOGRAPHY
========================================================= */

.psy-section-heading {
  max-width: 800px;
  margin: 0 auto 46px;
}

.psy-section-heading h2,
.psychiatry-page .free-tools-title,
.psychiatry-page .latest-blogs-title {
  margin-top: 0;
  color: var(--psy-navy);
  font-family: inherit;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.psy-section-heading h2 {
  margin-bottom: 14px;
}

.psy-section-heading h2 span {
  color: var(--psy-blue);
}

.psy-section-heading p {
  max-width: 670px;
  margin: 0 auto;
  color: var(--psy-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* =========================================================
   HERO
========================================================= */

.psy-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 0;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(11, 99, 246, 0.07),
      transparent 24%
    ),
    linear-gradient(
      90deg,
      #fffaf4 0%,
      #fffdf9 46%,
      #f6f9ff 100%
    );
}

.psy-hero::before {
  content: "";
  position: absolute;
  top: -170px;
  left: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(11, 99, 246, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(11, 99, 246, 0.025),
    0 0 0 56px rgba(11, 99, 246, 0.02),
    0 0 0 84px rgba(11, 99, 246, 0.015);
  pointer-events: none;
}

.psy-hero .container {
  position: relative;
  z-index: 2;
}

.psy-hero-content {
  max-width: 590px;
  padding-bottom: 42px;
}

.psy-hero-content h1 {
  margin: 22px 0;
  color: var(--psy-navy);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.psy-hero-content h1 span {
  display: block;
  color: var(--psy-blue);
}

.psy-hero-content > p {
  max-width: 600px;
  margin-bottom: 28px;
  color: #384966;
  font-size: 16px;
  line-height: 1.8;
}

.psy-store-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.psy-store-buttons a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.psy-store-buttons a:hover {
  transform: translateY(-2px);
  filter: drop-shadow(
    0 8px 12px rgba(7, 75, 194, 0.15)
  );
}

.psy-store-buttons img {
  display: block;
  width: auto;
  height: 50px;
}

.psy-hero-visual {
  position: relative;
  width: 100%;
  min-height: 510px;
}

.psy-hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #eaf0f9;
  box-shadow: 0 24px 60px rgba(26, 52, 91, 0.14);
}

.psy-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.psy-hero-benefits {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 4px auto 34px;
  padding: 14px 18px;
  border: 1px solid var(--psy-border);
  border-radius: 18px;
  background: var(--psy-white);
  box-shadow: 0 12px 30px rgba(7, 27, 69, 0.06);
}

.psy-hero-benefit {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 26px;
  color: var(--psy-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.psy-hero-benefit + .psy-hero-benefit {
  border-left: 1px solid #e3eaf6;
}

.psy-hero-benefit i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #edf5ff;
  color: var(--psy-blue);
  font-size: 18px;
}

.psy-hero-benefit span {
  display: block;
}

/* =========================================================
   WHY DR. NOTES
========================================================= */

.psy-why {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    radial-gradient(
      circle at 5% 10%,
      rgba(11, 99, 246, 0.07),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #f2f7ff 100%
    );
}

.psy-why::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(11, 99, 246, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(11, 99, 246, 0.02),
    0 0 0 48px rgba(11, 99, 246, 0.018);
  pointer-events: none;
}

.psy-why .container {
  position: relative;
  z-index: 2;
}

.psy-benefit-card {
  height: 100%;
  min-height: 300px;
  padding: 30px 26px;
  border: 1px solid #e3ebf8;
  border-radius: 15px;
  background: var(--psy-white);
  box-shadow: 0 14px 35px rgba(8, 38, 91, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.psy-benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(8, 38, 91, 0.11);
}

.psy-benefit-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #edf5ff;
  color: var(--psy-blue);
  font-size: 27px;
}

.psy-benefit-card h3 {
  position: relative;
  margin-bottom: 26px;
  color: var(--psy-navy);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.psy-benefit-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--psy-blue);
}

.psy-benefit-card p {
  margin: 0;
  color: var(--psy-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   PATIENT STORY
========================================================= */

.psy-story {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: #fffdf9;
}

.psy-story::after {
  content: "";
  position: absolute;
  top: 65px;
  right: 48px;
  width: 90px;
  height: 90px;
  opacity: 0.3;
  background-image:
    radial-gradient(
      #78a8ff 1.5px,
      transparent 1.5px
    );
  background-size: 12px 12px;
  pointer-events: none;
}

.psy-story-image {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  border-radius: 22px;
  background: #eaf0f9;
  box-shadow: 0 22px 55px rgba(7, 27, 69, 0.12);
}

.psy-story-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.psy-story-content {
  max-width: 600px;
  padding-left: 20px;
}

.psy-story-content h2 {
  margin: 15px 0 25px;
  color: var(--psy-navy);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.psy-story-content h2 span {
  color: var(--psy-navy);
}

.psy-story-content > p {
  margin-bottom: 28px;
  color: #40516e;
  font-size: 16px;
  line-height: 1.75;
}

.psy-story-points {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid #dce8fb;
  border-radius: 18px;
  background: #eef5ff;
}

.psy-story-points > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--psy-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.psy-story-points i {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--psy-blue);
  color: var(--psy-white);
  font-size: 11px;
}

/* =========================================================
   FEATURES
========================================================= */

.psy-features-heading {
  padding: 88px 0 25px;
  background: #f7faff;
}

.psy-feature-section {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  border-top: 1px solid #edf2fa;
  background: var(--psy-white);
}

.psy-feature-section.psy-feature-blue {
  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(11, 99, 246, 0.08),
      transparent 25%
    ),
    #f5f9ff;
}

.psy-feature-content {
  width: 100%;
  max-width: 570px;
}

.psy-feature-content h2 {
  margin: 12px 0 18px;
  color: var(--psy-navy);
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.psy-feature-content > p {
  margin-bottom: 24px;
  color: var(--psy-muted);
  font-size: 16px;
  line-height: 1.75;
}

.psy-feature-content ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.psy-feature-content li {
  position: relative;
  padding-left: 30px;
  color: #31425f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.psy-feature-content li::before {
  content: "\2713";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--psy-blue);
  font-size: 17px;
  font-weight: 900;
}

/* Responsive feature screenshots */

.psy-app-preview {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
}

.psy-app-preview::before {
  content: "";
  position: absolute;
  width: min(360px, 72%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      rgba(11, 99, 246, 0.1),
      rgba(11, 99, 246, 0.025)
    );
}

.psy-app-preview .psy-feature-preview-image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 850px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(
      0 22px 30px rgba(8, 32, 77, 0.15)
    );
}

/* =========================================================
   FREE TOOLS
========================================================= */

.psychiatry-page .free-tools-section {
  padding-top: 90px;
  padding-bottom: 100px;
}

.psychiatry-page .free-tools-header {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 42px;
  margin-left: auto;
  text-align: center;
}

.psychiatry-page .free-tools-title {
  margin-bottom: 10px;
}

.psychiatry-page .free-tools-subtitle {
  max-width: 650px;
  margin: 15px auto 0;
  color: var(--psy-muted);
  font-size: 16px;
  line-height: 1.7;
}

.psychiatry-page .free-tool-card {
  height: 100%;
  min-height: 330px;
}

/* =========================================================
   BLOGS
========================================================= */

.psy-blogs-section {
  overflow: hidden;
}

.psychiatry-page .latest-blogs-title {
  color: var(--psy-navy);
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {
  .psy-hero-photo {
    position: relative;
    width: 100%;
    height: 510px;
  }

  .psy-hero-visual {
    min-height: auto;
  }

  .psy-story-image {
    height: 620px;
    min-height: 0;
  }

  .psy-feature-blue .psy-feature-content {
    padding-left: 32px;
  }
}

/* =========================================================
   LAPTOP AND SMALL DESKTOP
========================================================= */

@media (max-width: 1199.98px) {
  .psy-hero {
    padding-top: 45px;
  }

  .psy-hero-content {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 12px;
    text-align: center;
  }

  .psy-hero-content h1 {
    font-size: 48px;
  }

  .psy-hero-content h1 span {
    display: inline;
  }

  .psy-hero-content > p {
    margin-right: auto;
    margin-left: auto;
  }

  .psy-store-buttons {
    justify-content: center;
  }

  .psy-hero-visual {
    width: 100%;
    max-width: 820px;
    min-height: 500px;
    margin: 20px auto 0;
  }

  .psy-hero-photo {
    border-radius: 28px;
  }

  .psy-hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-top: 24px;
    padding: 10px;
  }

  .psy-hero-benefit {
    padding: 15px 20px;
  }

  .psy-hero-benefit:nth-child(3) {
    border-left: 0;
  }

  .psy-hero-benefit:nth-child(n + 3) {
    border-top: 1px solid #e3eaf6;
  }

  .psy-story-image {
    max-width: 820px;
    min-height: 520px;
    margin: 0 auto;
  }

  .psy-story-content {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 0;
  }

  .psy-feature-content {
    max-width: 760px;
    margin: 0 auto;
  }

  .psy-app-preview {
    max-width: 840px;
    min-height: 400px;
    margin: 0 auto;
    padding: 22px;
  }

  .psy-app-preview .psy-feature-preview-image {
    width: min(100%, 720px);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {
  .psy-section-heading h2,
  .psychiatry-page .free-tools-title,
  .psychiatry-page .latest-blogs-title {
    font-size: 38px;
  }

  .psy-story-content h2 {
    font-size: 42px;
  }

  .psy-feature-content h2 {
    font-size: 40px;
  }

  .psy-feature-section {
    padding: 70px 0;
  }

  .psy-benefit-card {
    min-height: 280px;
  }

  .psychiatry-page .free-tool-card {
    min-height: 310px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
  .psy-section-heading {
    margin-bottom: 34px;
  }

  .psy-section-heading h2,
  .psychiatry-page .free-tools-title,
  .psychiatry-page .latest-blogs-title {
    font-size: 33px;
  }

  .psy-section-heading p {
    font-size: 15px;
  }

  .psy-hero-content h1 {
    font-size: 40px;
  }

  .psy-hero-visual {
    min-height: 410px;
  }

  .psy-hero-benefits {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .psy-hero-benefit {
    min-height: 60px;
    padding: 14px 16px;
    border-left: 0 !important;
  }

  .psy-hero-benefit + .psy-hero-benefit {
    border-top: 1px solid #e3eaf6;
  }

  .psy-why,
  .psy-story {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .psy-benefit-card {
    min-height: auto;
  }

  .psy-story-image {
    min-height: 420px;
  }

  .psy-story-content h2 {
    font-size: 38px;
  }

  .psy-feature-section {
    padding: 65px 0;
  }

  .psy-feature-content h2 {
    font-size: 37px;
  }

  .psy-app-preview {
    min-height: 320px;
    padding: 14px;
  }

  .psy-app-preview::before {
    width: min(285px, 72vw);
  }

  .psy-app-preview .psy-feature-preview-image {
    width: min(100%, 620px);
  }

  .psychiatry-page .free-tools-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .psychiatry-page .free-tool-card {
    min-height: auto;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {
  .psy-hero {
    padding-top: 32px;
  }

  .psy-hero-content h1 {
    margin-top: 18px;
    font-size: 35px;
  }

  .psy-hero-content > p {
    font-size: 15px;
  }

  .psy-store-buttons {
    gap: 9px;
  }

  .psy-store-buttons img {
    height: 43px;
  }

  .psy-hero-visual {
    min-height: 330px;
  }

  .psy-hero-photo {
    border-radius: 20px;
  }

  .psy-section-heading h2,
  .psychiatry-page .free-tools-title,
  .psychiatry-page .latest-blogs-title {
    font-size: 29px;
  }

  .psy-benefit-card {
    padding: 25px 22px;
  }

  .psy-story-image {
    min-height: 350px;
    border-radius: 20px;
  }

  .psy-story-content h2 {
    font-size: 33px;
  }

  .psy-story-points {
    padding: 18px;
  }

  .psy-feature-content h2 {
    font-size: 32px;
  }

  .psy-feature-content li {
    font-size: 15px;
  }

  .psy-app-preview {
    min-height: 245px;
    padding: 8px;
  }

  .psy-app-preview::before {
    width: min(225px, 70vw);
  }

  .psy-app-preview .psy-feature-preview-image {
    width: 100%;
    max-width: 100%;
  }
}