:root {
  --ink: #1e2422;
  --paper: #fbfaf7;
  --mist: #eef4ef;
  --leaf: #3f6f5c;
  --blue: #27496d;
  --coral: #b75d47;
  --line: #d8ded8;
  --muted: #64716b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(30, 36, 34, 0.12);
}

[data-theme="ocean"] {
  --paper: #f6fbfb;
  --mist: #e7f1f4;
  --leaf: #315f73;
  --blue: #1f4f83;
  --coral: #8a6356;
}

[data-theme="warm"] {
  --paper: #fffaf5;
  --mist: #f6ece5;
  --leaf: #586f54;
  --blue: #563f7a;
  --coral: #a84f3d;
}

[data-theme="plain"] {
  --paper: #ffffff;
  --mist: #f2f2f2;
  --leaf: #333333;
  --blue: #222222;
  --coral: #555555;
}

[data-density="comfortable"] .section {
  padding-top: clamp(52px, 8vw, 96px);
  padding-bottom: clamp(52px, 8vw, 96px);
}

[data-density="super"] .section {
  padding-top: clamp(22px, 4vw, 42px);
  padding-bottom: clamp(22px, 4vw, 42px);
}

[data-headshot="hide"] .hero,
[data-headshot="hide"] .abridged-body {
  background-image: linear-gradient(90deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.96));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1.1;
  font-weight: 760;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--blue);
}

.home-safe {
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f4f1ea 44%, #eef4ef 100%);
}

.safe-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(63, 111, 92, 0.16);
  backdrop-filter: blur(12px);
}

.safe-brand {
  display: grid;
  color: var(--ink);
  line-height: 1.05;
  text-decoration: none;
  font-weight: 800;
}

.safe-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.safe-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.safe-nav a {
  text-decoration: none;
}

.safe-nav a:hover {
  color: var(--leaf);
}

.safe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(24px, 6vw, 82px);
  align-items: center;
  min-height: 650px;
  padding: clamp(58px, 8vw, 112px) clamp(20px, 6vw, 82px) clamp(42px, 6vw, 74px);
}

.safe-hero-copy {
  max-width: 840px;
}

.safe-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 7.8vw, 7rem);
  line-height: 0.94;
}

.safe-lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: #35423d;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.safe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.safe-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.safe-photo-card {
  overflow: hidden;
  border: 1px solid rgba(63, 111, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(30, 36, 34, 0.14);
}

.safe-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.safe-photo-card div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.safe-photo-card span {
  color: var(--muted);
}

.safe-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(63, 111, 92, 0.18);
  border-top: 1px solid rgba(63, 111, 92, 0.18);
  border-bottom: 1px solid rgba(63, 111, 92, 0.18);
}

.safe-trust div {
  display: grid;
  gap: 4px;
  padding: 18px clamp(18px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.76);
}

.safe-trust span {
  color: var(--muted);
}

.safe-section {
  padding: clamp(46px, 7vw, 92px) clamp(20px, 6vw, 82px);
}

.safe-intro,
.safe-emdr,
.safe-details,
.safe-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.safe-section-heading {
  max-width: 600px;
}

.safe-copy {
  max-width: 780px;
  color: #33413c;
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.safe-copy p:first-child {
  margin-top: 0;
}

.safe-emdr {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(63, 111, 92, 0.16);
  border-bottom: 1px solid rgba(63, 111, 92, 0.16);
}

.safe-emdr p {
  max-width: 720px;
  color: #33413c;
  font-size: 1.06rem;
}

.safe-callout,
.safe-detail-panel,
.safe-contact-card {
  border: 1px solid rgba(63, 111, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(30, 36, 34, 0.08);
}

.safe-callout {
  padding: clamp(20px, 3vw, 30px);
}

.safe-callout ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #33413c;
}

.safe-approach {
  background: var(--mist);
}

.safe-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.safe-steps article {
  padding: 20px;
  border: 1px solid rgba(63, 111, 92, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.safe-steps span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--leaf);
  font-weight: 800;
}

.safe-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.safe-details {
  background: #f7f0ed;
}

.safe-detail-panel {
  height: 100%;
  padding: clamp(22px, 3vw, 34px);
}

.safe-detail-panel h2 {
  margin-bottom: 18px;
}

.safe-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.safe-pill-list li {
  padding: 8px 11px;
  border: 1px solid rgba(63, 111, 92, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.safe-quote {
  padding: clamp(34px, 5vw, 58px) clamp(20px, 6vw, 82px);
  color: var(--white);
  background: var(--leaf);
}

.safe-quote blockquote {
  max-width: 980px;
  font-size: clamp(1.3rem, 2.4vw, 2.4rem);
}

.safe-contact {
  padding: clamp(46px, 7vw, 86px) clamp(20px, 6vw, 82px);
  background: var(--paper);
}

.safe-contact p {
  max-width: 640px;
  color: #33413c;
}

.safe-contact-card {
  padding: 20px;
}

.safe-contact-card a {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(63, 111, 92, 0.16);
  text-decoration: none;
}

.safe-contact-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.safe-contact-card p {
  margin-bottom: 0;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: clamp(38px, 6vw, 72px) clamp(20px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.9) 46%, rgba(251, 250, 247, 0.18) 100%),
    url("https://photos.psychologytoday.com/9d2e320c-2cca-4786-9436-a958001bc3ac/2/320x400.jpeg");
  background-repeat: no-repeat;
  background-size: auto 88%, auto 88%;
  background-position: center right 9%, center right 9%;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.hero-lede {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  color: #2e3935;
}

.hero-actions,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.secondary {
  color: var(--blue);
  background: var(--white);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat {
  padding: 16px clamp(20px, 5vw, 56px);
  background: var(--white);
}

.stat strong,
.stat span {
  display: block;
}

.stat span,
.muted {
  color: var(--muted);
}

.section {
  padding: clamp(34px, 5.5vw, 64px) clamp(20px, 6vw, 78px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.copy p:first-child,
.article p:first-of-type {
  margin-top: 0;
}

.copy,
.article {
  font-size: 1.02rem;
}

.text-link {
  color: var(--blue);
  font-weight: 760;
}

.calm {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature,
.contact-panel,
.source-panel,
.dashboard-tools,
.dashboard-row,
.dashboard-intro {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature {
  padding: 16px;
}

.feature p,
.detail-block p,
.contact p {
  margin-bottom: 0;
}

.compact-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.overview-main,
.overview-side,
.detail-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.overview-main {
  padding: clamp(22px, 4vw, 42px);
}

.overview-main p {
  max-width: 780px;
  margin: 16px 0 12px;
  font-size: 1.06rem;
}

.overview-side {
  padding: 18px;
  background: var(--mist);
}

.overview-side h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-list .feature {
  background: rgba(255, 255, 255, 0.76);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-block {
  padding: clamp(20px, 3vw, 30px);
}

.detail-block h2 {
  margin-bottom: 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.quote-band {
  color: var(--white);
  background: var(--leaf);
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(26px, 4vw, 42px);
}

blockquote {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.2;
}

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  background: #f7f0ed;
}

.contact.compact {
  grid-template-columns: 1fr auto;
}

.contact-panel {
  padding: 18px;
  box-shadow: var(--shadow);
}

.contact-line {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-line span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(20px, 6vw, 78px);
  color: var(--muted);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.subhero {
  padding: clamp(44px, 7vw, 82px) clamp(20px, 6vw, 78px) clamp(34px, 5vw, 58px);
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.subhero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.subhero p:last-child {
  max-width: 820px;
  font-size: 1.12rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(32px, 7vw, 80px);
}

.article h2 {
  margin-top: 36px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.article h2:first-child {
  margin-top: 0;
}

.source-panel {
  position: sticky;
  top: 86px;
  padding: 22px;
  align-self: start;
}

.source-panel h2 {
  font-size: 1.35rem;
}

.source-panel a {
  color: var(--blue);
}

.dashboard-body {
  background: var(--mist);
}

.backend-body {
  background: var(--mist);
}

.backend-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.backend-hero,
.backend-setup,
.backend-card,
.backend-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.backend-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 22px;
  margin-bottom: 14px;
}

.backend-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 4rem);
}

.backend-hero p {
  max-width: 680px;
}

.backend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.backend-setup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.backend-setup label {
  display: block;
  margin-bottom: 6px;
  font-weight: 750;
}

.backend-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tab.is-active {
  color: var(--white);
  background: var(--blue);
}

.backend-panel {
  display: none;
}

.backend-panel.is-active {
  display: block;
}

.backend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.backend-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backend-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.backend-group > h2 {
  font-size: 1.3rem;
}

.backend-card {
  padding: 14px;
}

.backend-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.backend-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.backend-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.abridged-body {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.88)),
    url("https://photos.psychologytoday.com/9d2e320c-2cca-4786-9436-a958001bc3ac/2/320x400.jpeg");
  background-attachment: fixed;
  background-position: right 6vw top 22px;
  background-repeat: no-repeat;
  background-size: auto min(72vh, 520px);
}

.abridged-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.abridged-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: end;
  min-height: 330px;
  padding-bottom: 18px;
}

.abridged-copy {
  max-width: 760px;
}

.abridged-copy h1 {
  font-size: clamp(3.2rem, 7.4vw, 6.8rem);
}

.abridged-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 14px 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.abridged-card,
.abridged-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.abridged-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.abridged-card div {
  display: grid;
  gap: 2px;
}

.abridged-card span {
  color: var(--muted);
}

.abridged-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.abridged-panel {
  padding: 18px;
}

.abridged-panel h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.abridged-panel p {
  margin: 12px 0 0;
}

.tight-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.compact-pills {
  margin-top: 10px;
  gap: 7px;
}

.compact-pills li {
  padding: 6px 9px;
  font-size: 0.92rem;
  background: rgba(251, 250, 247, 0.9);
}

.abridged-quote {
  margin-top: 12px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--leaf);
}

.abridged-quote blockquote {
  font-size: clamp(1.1rem, 1.65vw, 1.55rem);
}

.abridged-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.abridged-footer a {
  color: var(--blue);
  font-weight: 760;
}

.dashboard-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.dashboard-intro,
.dashboard-tools {
  padding: 18px;
  margin-bottom: 16px;
}

.dashboard-intro h1 {
  max-width: none;
  font-size: 2.4rem;
  line-height: 1;
}

.dashboard-tools label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.dashboard-table {
  display: grid;
  gap: 12px;
}

.dashboard-row {
  padding: 14px;
}

.dashboard-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-row small {
  display: block;
  color: var(--muted);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #a7b0aa;
}

.switch span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--leaf);
}

.switch input:checked + span::before {
  transform: translateX(24px);
}

.status {
  margin-bottom: 12px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .safe-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .safe-hero,
  .safe-intro,
  .safe-emdr,
  .safe-details,
  .safe-contact {
    grid-template-columns: 1fr;
  }

  .safe-hero {
    min-height: auto;
  }

  .safe-photo-card {
    max-width: 330px;
  }

  .safe-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .safe-steps {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 34px;
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.86) 0%, rgba(251, 250, 247, 0.96) 62%),
      url("https://photos.psychologytoday.com/9d2e320c-2cca-4786-9436-a958001bc3ac/2/320x400.jpeg");
    background-repeat: no-repeat;
    background-size: auto 190px, auto 190px;
    background-position: top 14px right 22px, top 14px right 22px;
    align-items: flex-start;
  }

  .feature-grid,
  .two-column,
  .compact-overview,
  .details-grid,
  .contact,
  .contact.compact,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .source-panel {
    position: static;
  }

  .backend-hero,
  .backend-setup {
    grid-template-columns: 1fr;
  }

  .backend-hero {
    display: grid;
  }

  .backend-grid,
  .backend-grid.compact {
    grid-template-columns: 1fr;
  }

  .abridged-body {
    background-size: auto 180px;
    background-position: right 18px top 18px;
  }

  .abridged-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abridged-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 110px;
  }

  .abridged-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .safe-nav {
    gap: 8px 14px;
    font-size: 0.9rem;
  }

  .safe-hero,
  .safe-section,
  .safe-contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .safe-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .safe-trust {
    grid-template-columns: 1fr;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 0.9rem;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 34px;
    background-size: auto 168px, auto 168px;
  }

  .intro-band {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .abridged-body {
    background-size: auto 142px;
  }

  .abridged-hero,
  .abridged-grid,
  .abridged-card {
    grid-template-columns: 1fr;
  }

  .abridged-hero {
    padding-top: 120px;
  }

  .stat {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
