:root {
  --blue: #3835d8;
  --navy: #07194a;
  --soft-blue: #eef5ff;
  --text: #101833;
  --muted: #5d667e;
  --line: #dfe6f3;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.08;
}

h1 { font-size: clamp(42px, 6vw, 76px); max-width: 760px; }
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 18px; margin-bottom: 6px; }

p { line-height: 1.65; color: var(--text); }
a { color: inherit; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: linear-gradient(90deg, #fff 0%, #f5f8ff 55%, #eef3fb 100%);
  overflow: hidden;
}

.hero-content {
  padding: 54px 7vw;
  z-index: 2;
}

.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 64px;
  letter-spacing: 8px;
  color: var(--blue);
  margin-bottom: 72px;
}

.logo span { display: inline-block; transform: translateY(2px); }

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-copy {
  max-width: 560px;
  font-size: 19px;
  margin-bottom: 34px;
}

.button-row, .trust-row {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  border-radius: 18px;
  padding: 18px 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 18px 40px rgba(56,53,216,.18);
}

.secondary {
  color: var(--blue);
  border: 2px solid var(--blue);
  min-width: 210px;
  text-align: center;
  line-height: 1.15;
}

.trust-row {
  margin-top: 48px;
  color: var(--navy);
  font-size: 15px;
}

.trust-row span {
  padding-left: 28px;
  position: relative;
}

.trust-row span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,0) 35%),
    url('images/tms-hero.jpg');
  background-size: cover;
  background-position: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-patient {
  background: url('https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=1100&q=80');
  background-size: cover;
  background-position: center;
}

.section-copy { padding: 70px 7vw; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li {
  margin: 13px 0;
  font-weight: 700;
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "✓";
  background: var(--blue);
  color: white;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr .9fr .55fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.brain-card {
  background: url('images/brain.jpg');
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.brain-glow {
  color: var(--blue);
  font-size: 160px;
  opacity: .8;
}

.feature-list {
  padding: 70px 4vw;
  display: grid;
  gap: 18px;
  align-content: center;
  border-left: 1px solid var(--line);
}

.feature-list div {
  font-weight: 800;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: white;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.three-column {
  display: grid;
  grid-template-columns: .9fr 1fr .9fr;
  border-bottom: 1px solid var(--line);
}

.steps, .faq, .consult-form {
  padding: 54px 5vw;
  border-right: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 24px;
  margin: 28px 0;
}

.step span {
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.consult-form {
  background: #fbfdff;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfd8ea;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  font: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

textarea { min-height: 95px; }

button {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 17px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: white;
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.final-cta {
  background: linear-gradient(135deg, #07145b, #3835d8);
  color: white;
  padding: 58px 7vw;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
}

.final-cta h2, .final-cta p { color: white; }
.light { background: white; color: var(--blue); }
.phone { margin: 0; }

@media (max-width: 980px) {
  .hero, .split, .info-grid, .three-column, .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 420px;
    order: -1;
  }

  .logo {
    margin-bottom: 40px;
  }

  .steps, .faq, .consult-form {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .final-cta {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-content, .section-copy, .steps, .faq, .consult-form {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .button {
    width: 100%;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
