@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/biryani-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/biryani-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/biryani-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/biryani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/biryani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/biryani-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Biryani'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/biryani-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Darker Grotesque'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/darker-grotesque-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #fbfcfd;
  --fg-light-base-body: #1e2a35;
  --fg-light-base-heading: #1e2a35;
  --fg-light-base-muted: #4b5866;
  --fg-light-base-link: #1b6a9c;
  --fg-light-base-inverse: #1e2a35;
  --bg-light-card: #eef4f8;
  --fg-light-card-body: #1e2a35;
  --fg-light-card-heading: #1e2a35;
  --fg-light-card-muted: #4b5866;
  --fg-light-card-link: #1b6a9c;
  --fg-light-card-inverse: #1e2a35;
  --bg-light-elevated: #e2ebf2;
  --fg-light-elevated-body: #1e2a35;
  --fg-light-elevated-heading: #1e2a35;
  --fg-light-elevated-muted: #4b5866;
  --fg-light-elevated-link: #1b6a9c;
  --fg-light-elevated-inverse: #1e2a35;
  --brand-light-accent: #1b6a9c;
  --brand-light-accent-hover: #145479;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #1b6a9c;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #7a8896;
  --border-light-subtle: #d3dde6;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

/* Sound Shore TMS Review: neuro-quiet sky blue on near-white */

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

html { -webkit-text-size-adjust: 100%; }

body.quiet {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Darker Grotesque', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.42;
}

h1, h2, h3, h4 {
  font-family: 'Biryani', 'Arial Black', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  line-height: 1.18;
  color: var(--fg-heading);
  margin: 0;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.12; letter-spacing: -0.015em; }

h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.6rem 0 0.75rem; }

h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 0.4rem; }

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }

li { margin-bottom: 0.35rem; }

strong { font-weight: 800; }

a { color: var(--fg-link); text-decoration-thickness: 1.5px; text-underline-offset: 0.16em; }

a:hover { color: var(--brand-light-accent-hover); text-decoration-thickness: 2.5px; }

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* shared line-art strokes */
.art-coil, .art-head { stroke: var(--brand-light-accent); }
.art-field, .art-split { stroke: var(--border-light-default); }
.art-brain, .art-wave { stroke: var(--brand-light-accent); opacity: 0.55; }

/* ---------- Header: logo centered, inline bar beneath ---------- */

.site-header {
  overflow-wrap: normal;
  border-bottom: 1px solid var(--border-light-subtle);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem 0.9rem;
}

.brand { display: inline-flex; text-decoration: none; }

.brand .site-logo { display: block; width: 14.5rem; height: auto; }

.bar-slot { display: none; }

.site-menu { position: relative; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.25rem 1rem;
  border: 1.5px solid var(--brand-light-accent);
  border-radius: 999px;
  font-family: 'Darker Grotesque', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--fg-heading);
  background: var(--bg-light-base);
  cursor: pointer;
  list-style: none;
}

.site-menu > summary::-webkit-details-marker { display: none; }

.site-menu > summary:hover { color: var(--brand-light-accent-hover); border-color: var(--brand-light-accent-hover); }

/* two small coil loops as the menu icon */
.site-menu .menu-icon {
  flex: none;
  width: 1.3rem;
  height: 0.75rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 50%, transparent 0 32%, var(--brand-light-accent) 33% 48%, transparent 49%),
    radial-gradient(circle at 72% 50%, transparent 0 32%, var(--brand-light-accent) 33% 48%, transparent 49%);
}

.site-menu > ul {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  z-index: 50;
  transform: translateX(-50%);
  width: min(21rem, calc(100vw - 1.5rem));
  max-height: 75vh;
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem 1.1rem;
  list-style: none;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-default);
  border-radius: 0.6rem;
}

.site-menu ul ul { list-style: none; margin: 0 0 0.4rem; padding-left: 1rem; }

.site-menu li { margin: 0; }

.site-menu li + li { border-top: 1px solid var(--border-light-subtle); }

.site-menu a {
  display: block;
  padding: 0.55rem 0.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-link);
  text-decoration: none;
}

.site-menu a:hover { color: var(--brand-light-accent-hover); text-decoration: underline; }

@media (min-width: 64rem) {
  .masthead { padding: 1.4rem 1.5rem 0.5rem; }
  .brand .site-logo { width: 18.75rem; }
  .menu-slot { display: none; }
  .bar-slot { display: block; padding: 0 1.5rem 0.5rem; }
}

/* the inline bar */
.bar-slot .site-nav > ul {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-slot .site-nav li { margin: 0; }

.bar-slot .site-nav > ul > li { position: relative; }

.bar-slot .site-nav > ul > li > a,
.bar-slot .site-nav-group > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--fg-heading);
  cursor: pointer;
}

.bar-slot .site-nav-group > summary { list-style: none; }

.bar-slot .site-nav-group > summary::-webkit-details-marker { display: none; }

/* chevron beside a group label */
.bar-slot .site-nav-group > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 2px solid var(--brand-light-accent);
  border-bottom: 2px solid var(--brand-light-accent);
  transform: rotate(45deg);
}

.bar-slot .site-nav-group[open] > summary::after { margin-top: 0.2rem; transform: rotate(-135deg); }

.bar-slot .site-nav > ul > li > a:hover,
.bar-slot .site-nav-group > summary:hover { color: var(--brand-light-accent-hover); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.bar-slot .site-nav a[aria-current="page"] { color: var(--fg-link); }

.bar-slot .site-nav-group > ul {
  position: absolute;
  left: -1rem;
  top: 100%;
  z-index: 50;
  width: max-content;
  max-width: 24rem;
  margin: 0;
  padding: 0.35rem 1rem;
  list-style: none;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-default);
  border-top: 3px solid var(--brand-light-accent);
  border-radius: 0 0 0.5rem 0.5rem;
}

.bar-slot .site-nav-group > ul > li + li { border-top: 1px solid var(--border-light-subtle); }

.bar-slot .site-nav-group > ul a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.bar-slot .site-nav-group > ul a:hover { color: var(--brand-light-accent-hover); text-decoration: underline; }

/* ---------- Page frame ---------- */

.page { flex: 1 0 auto; width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem clamp(1rem, 4.5vw, 3rem) 4.5rem; }

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
  font-size: 1.1rem;
}

.breadcrumbs li { margin: 0; }

.breadcrumbs li + li::before { content: "/"; margin-right: 0.55rem; color: var(--fg-muted); }

.photo-hero, .photo-inline { margin: 0 0 2rem; }

.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 0.75rem; }

.photo-hero img { aspect-ratio: 16 / 8; object-fit: cover; }

.prose { max-width: 42rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1.75rem; }

table { border-collapse: collapse; width: 100%; font-size: 1.15rem; line-height: 1.3; }

th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border-light-subtle); }

thead th { font-family: 'Biryani', 'Arial Black', sans-serif; font-size: 0.95rem; font-weight: 700; border-bottom: 2px solid var(--brand-light-accent); }

/* ---------- Home: centered cover over brain-wave lines ---------- */

.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 3rem;
  padding: 0.5rem 0 2.5rem;
}

.cover-waves {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 30%;
  width: 100%;
  height: 16rem;
}

.wave { stroke: var(--brand-light-accent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wave-a { opacity: 0.22; }
.wave-b { opacity: 0.14; }
.wave-c { opacity: 0.1; }

.cover-art { display: block; width: min(11rem, 48vw); height: auto; margin-bottom: 1.25rem; }

.cover-title { max-width: 44rem; }

.cover-title h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); }

.cover-lines { max-width: 38rem; margin-top: 1.25rem; }

.cover-lines .display-line { margin: 0 0 0.6rem; font-size: 1.4rem; line-height: 1.35; }

.home-body { margin: 0 auto; }

.home-body > h2 { text-align: left; }

/* ---------- Ranking: stepped list ---------- */

.steps-head, .profile-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 2rem; }

.coil-icon { flex: none; width: 3rem; height: auto; }

.steps-title, .profile-title { max-width: 46rem; }

.steps-body ol {
  list-style-position: inside;
  margin: 0 0 2rem;
  padding: 0;
}

.steps-body ol > li {
  margin: 0;
  padding: 0.6rem 1rem;
  border-top: 3px solid var(--brand-light-accent);
  border-left: 1px solid var(--border-light-default);
  background: var(--bg-light-card);
  font-weight: 700;
}

.steps-body ol > li::marker { font-family: 'Biryani', 'Arial Black', sans-serif; color: var(--fg-link); }

.steps-body ol > li:nth-child(2) { margin-left: 1.5rem; }
.steps-body ol > li:nth-child(3) { margin-left: 3rem; }
.steps-body ol > li:nth-child(4) { margin-left: 4.5rem; }
.steps-body ol > li:nth-child(n+5) { margin-left: 6rem; }

.steps-body h3 { padding-left: 0.8rem; border-left: 4px solid var(--brand-light-accent); }

.steps-pages { max-width: 42rem; border-radius: 0.75rem; }

.steps-pages ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.steps-pages li {
  margin: 0;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background:
    radial-gradient(circle at 1.05rem 50%, transparent 0 0.22rem, var(--brand-light-accent) 0.24rem 0.36rem, transparent 0.38rem),
    radial-gradient(circle at 1.65rem 50%, transparent 0 0.22rem, var(--brand-light-accent) 0.24rem 0.36rem, transparent 0.38rem),
    var(--bg-light-base);
  border-top: 3px solid var(--brand-light-accent);
  font-weight: 700;
}

.steps-pages li:nth-child(2) { margin-left: 1.5rem; }
.steps-pages li:nth-child(3) { margin-left: 3rem; }
.steps-pages li:nth-child(n+4) { margin-left: 4.5rem; }

@media (min-width: 48rem) {
  .steps-pages ul { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .steps-pages li { flex: 1 1 12rem; }
  .steps-pages li:nth-child(n) { margin-left: 0; }
  .steps-pages li:nth-child(2) { margin-bottom: 1.25rem; }
  .steps-pages li:nth-child(3) { margin-bottom: 2.5rem; }
  .steps-pages li:nth-child(n+4) { margin-bottom: 3.75rem; }
}

/* ---------- Provider profile: wave dividers and a facts strip ---------- */

.profile-body > h2 { padding-top: 1.6rem; }

.profile-body > h2::before {
  content: "";
  display: block;
  width: 9rem;
  height: 0.9rem;
  margin-bottom: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 14'%3E%3Cpath d='M1 7c9 0 9-6 18-6s9 12 18 12 9-12 18-12 9 6 18 6 9-6 18-6 9 12 18 12 9-12 18-12 9 6 17 6' fill='none' stroke='%231b6a9c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}

.profile-body > ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  border-top: 3px solid var(--brand-light-accent);
  background: var(--bg-light-card);
  border-radius: 0 0 0.6rem 0.6rem;
}

.profile-body > ul > li {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light-subtle);
  border-right: 1px solid var(--border-light-subtle);
  font-size: 1.2rem;
  line-height: 1.3;
}

/* ---------- Comparison: split with a two-coil side column ---------- */

.versus { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

.versus-art { display: block; width: 12.5rem; height: auto; margin-bottom: 1.25rem; }

@media (min-width: 60rem) {
  .versus { grid-template-columns: 19rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .versus-side { position: sticky; top: 1.5rem; padding-right: 2rem; border-right: 1px solid var(--border-light-subtle); }
  .versus-title h1 { font-size: 2.1rem; }
  .versus-body > :first-child { margin-top: 0; }
}

/* ---------- About: text beside a brain outline ---------- */

.method { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }

.method-title { margin-bottom: 1.75rem; max-width: 40rem; }

.method-art svg { display: block; width: min(15rem, 70vw); height: auto; }

@media (min-width: 52rem) {
  .method { grid-template-columns: minmax(0, 42rem) 15rem; gap: 3.5rem; align-items: start; }
  .method-art { position: sticky; top: 1.5rem; padding-top: 1rem; }
}

/* ---------- Contact: centered form under one wave ---------- */

.desk { max-width: 42rem; margin: 0 auto; text-align: center; }

.desk-wave { display: block; width: min(100%, 22rem); height: auto; margin: 0 auto 1.5rem; }

.desk-title { margin-bottom: 1.5rem; }

.desk-body { text-align: left; }

.desk-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  border-radius: 0.75rem;
  border-top: 4px solid var(--brand-light-accent);
  text-align: left;
}

.desk-field { display: grid; gap: 0.3rem; }

.desk-field label { font-family: 'Biryani', 'Arial Black', sans-serif; font-size: 0.95rem; font-weight: 700; }

.desk-field input, .desk-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-default);
  border-radius: 0.4rem;
}

.desk-field textarea { resize: vertical; }

.desk-field input:focus-visible, .desk-field textarea:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }

.desk-submit {
  justify-self: center;
  min-height: 44px;
  padding: 0.5rem 1.75rem;
  font-family: 'Biryani', 'Arial Black', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.desk-submit:hover { background: var(--brand-light-accent-hover); }

@media (min-width: 40rem) {
  .desk-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .desk-field-wide, .desk-submit { grid-column: 1 / -1; }
}

/* ---------- Thank you: confirmation beside a head profile ---------- */

.settled { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 52rem; }

.settled-art svg { display: block; width: 6rem; height: auto; }

.settled-title { margin-bottom: 1.5rem; }

@media (min-width: 40rem) {
  .settled { grid-template-columns: 8rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .settled-art svg { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; }

.footer-wave { display: block; width: 100%; height: 1.2rem; stroke: var(--brand-light-accent); stroke-width: 2; opacity: 0.35; }

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4.5vw, 3rem) 2rem;
  text-align: center;
}

.footer-name { margin: 0 0 0.3rem; font-family: 'Biryani', 'Arial Black', sans-serif; font-size: 1rem; font-weight: 800; }

.footer-line { margin: 0 auto; max-width: 34rem; font-size: 1.15rem; }
