@import url("tokens.css");

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, var(--brand-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 15%, rgba(var(--brand-dark-rgb), 0.1), transparent 50%),
    radial-gradient(circle at 50% 120%, rgba(var(--brand-rgb), 0.06), transparent 45%),
    linear-gradient(180deg, var(--atmosphere-top) 0%, var(--bg) 42%, var(--atmosphere-bottom) 100%);
}

.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(var(--brand-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Temporary site notice (above sticky nav) */
html.notice-dismissed .site-notice {
  display: none;
}

.site-notice {
  background: var(--bg-muted);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 3px 0 0 var(--brand);
}

.site-notice-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 20px;
}

.site-notice p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-notice-dismiss {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-notice-dismiss:hover {
  color: var(--text);
  background: var(--brand-soft);
  border-color: rgba(var(--brand-rgb), 0.35);
}

@media (max-width: 640px) {
  .site-notice-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .site-notice p {
    font-size: 0.9rem;
  }
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
  min-width: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.28);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.35);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-word span {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--accent);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease);
}

.nav-toggle:hover {
  background: var(--brand-soft);
  border-color: rgba(var(--brand-rgb), 0.35);
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  height: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.theme-switch {
  position: relative;
  flex-shrink: 0;
}

.theme-switch summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.theme-switch summary::-webkit-details-marker {
  display: none;
}

.theme-current-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.theme-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.theme-menu button:hover,
.theme-menu button[aria-selected="true"] {
  background: var(--brand-soft);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  background: #c73a3a;
}

.theme-swatch[data-theme-set="blue"] { background: #2f6fed; }
.theme-swatch[data-theme-set="sage"] { background: #4a7c59; }
.theme-swatch[data-theme-set="amber"] { background: #d97706; }
.theme-swatch[data-theme-set="violet"] { background: #7c3aed; }
.theme-swatch[data-theme-set="slate"] { background: #1e293b; }
.theme-swatch[data-theme-set="dark"] { background: #0f172a; }

.nav-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand-dark) !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.nav-support:hover,
.nav-support[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  transition: background var(--ease), transform var(--ease);
}

.nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 48%, var(--brand-dark) 100%);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
  box-shadow: 0 12px 30px rgba(var(--brand-rgb), 0.32);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(var(--brand-rgb), 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: none !important;
  background: transparent;
  transition: background var(--ease), color var(--ease);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent) !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 48px 20px 72px;
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  max-width: 740px;
  animation: rise 0.8s ease both;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
}

.hero-logo .logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow:
    0 16px 40px rgba(var(--brand-rgb), 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: floatSoft 5s ease-in-out infinite;
}

.hero-logo .logo-word {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-slogan {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 38ch;
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-faint);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 72px 20px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section .section-lead {
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 52ch;
}

.ref-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.section.reveal {
  animation: rise 0.7s ease both;
}

.audience-list,
.check-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.audience-list li,
.check-list li {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audience-list strong,
.check-list strong {
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.care-grid {
  margin-top: 20px;
}

.service-item {
  padding: 22px 20px;
  border-left: 3px solid var(--brand);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform var(--ease), box-shadow var(--ease);
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.model-block {
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.model-block h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.model-block p {
  margin: 0;
  color: var(--text-muted);
}

.note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-faint);
}

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

.partner-list:empty,
.partner-list:not(:has(li)) {
  display: none;
}

.partner-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.partner-list:has(li) ~ .partner-empty {
  display: none;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

table.tariffs {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

table.tariffs th,
table.tariffs td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.tariffs th {
  background: var(--bg-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

table.tariffs tr:last-child td {
  border-bottom: none;
}

table.tariffs .price {
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

.price-footnote {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 0 20px 72px;
  padding: 52px 28px;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--brand-dark) 45%, var(--brand) 78%, var(--brand-light) 100%);
  color: var(--cta-fg);
  text-align: center;
  animation: rise 0.7s ease both;
  box-shadow: 0 24px 60px rgba(var(--brand-dark-rgb), 0.28);
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--cta-fg);
}

.cta-band p {
  margin: 0 auto;
  max-width: 40ch;
  color: var(--cta-fg);
}

.legal-content .cta-band p,
.support-content .cta-band p {
  color: var(--cta-fg);
}

.cta-band-inset {
  margin: 48px 0 0;
  border-radius: var(--radius);
}

.cta-band .btn {
  margin-top: 24px;
  background: var(--cta-btn-bg);
  color: var(--cta-btn-fg) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  filter: none;
}

.cta-band .btn:hover {
  background: var(--cta-btn-hover);
  filter: none;
}

/* Footer */
.site-footer {
  padding: 40px 20px 56px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer .muted {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.logo-footer .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.22);
}

.logo-footer .logo-word {
  font-size: 1.2rem;
}

.footer-tag {
  margin: 10px 0 6px;
  color: var(--text-muted);
}

/* Legal pages */
.page-header {
  padding: calc(var(--nav-h) + 48px) 20px 32px;
  width: min(100%, var(--prose));
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
}

.legal-content {
  width: min(100% - 40px, var(--prose));
  margin: 0 auto 80px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 32px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text);
}

.support-content .service-item .btn {
  margin-top: 16px;
}

.support-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.support-list li {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.support-content .muted {
  color: var(--text-faint);
}

.support-content .note {
  margin-top: 20px;
}

.referral-form {
  display: grid;
  gap: 16px;
  margin: 20px 0 8px;
  padding: 24px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.referral-form .form-row {
  display: grid;
  gap: 6px;
}

.referral-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.referral-form input,
.referral-form select,
.referral-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
}

.referral-form input:focus,
.referral-form select:focus,
.referral-form textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}

.referral-form .btn {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.referral-form .note {
  margin: 0;
}

.referral-form .form-panel {
  display: grid;
  gap: 16px;
}

.referral-form .form-panel[hidden],
.referral-form [hidden] {
  display: none !important;
}

.benefit-scale {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--bg-elevated);
}

.benefit-scale li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

.benefit-scale li:last-child {
  border-bottom: none;
}

.benefit-scale span {
  color: var(--text-muted);
}

.benefit-scale strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.legal-content .ref-heading {
  margin: 36px 0 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-toolbar {
    gap: 8px;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > li > a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    white-space: normal;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a[aria-current="page"] {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .nav-actions .nav-support,
  .nav-actions .nav-cta {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transform: none;
  }

  .nav-actions .nav-support:hover,
  .nav-actions .nav-cta:hover {
    transform: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 64px;
  }

  body {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 28px 16px 48px;
  }

  .hero-logo {
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-logo .logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .hero-logo .logo-word {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero .lead {
    font-size: 1.05rem;
    max-width: none;
  }

  .btn,
  .btn-outline {
    width: 100%;
    min-height: 48px;
  }

  .hero h1,
  .section h2,
  .page-header h1,
  .lead,
  .section-lead,
  .service-item p,
  .model-block p {
    overflow-wrap: break-word;
  }

  .btn-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .section {
    padding: 48px 16px;
  }

  .section .section-lead {
    margin-bottom: 24px;
  }

  .services-grid,
  .model-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .model-block,
  .service-item {
    padding: 18px 16px;
  }

  .audience-list li,
  .check-list li,
  .support-list li,
  .steps li {
    padding: 14px 16px;
  }

  .steps li {
    padding-left: 58px;
  }

  .cta-band {
    margin: 0 12px 48px;
    padding: 36px 18px;
  }

  .cta-band .btn {
    width: min(100%, 320px);
  }

  .page-header {
    padding: calc(var(--nav-h) + 28px) 16px 24px;
  }

  .legal-content {
    width: min(100% - 32px, var(--prose));
    margin-bottom: 56px;
  }

  .referral-form {
    padding: 18px 16px;
  }

  .referral-form .btn {
    width: 100%;
    justify-self: stretch;
  }

  .benefit-scale li {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .site-footer {
    padding: 32px 16px 48px;
  }

  .table-wrap {
    margin: 0 -4px;
    border-radius: calc(var(--radius) - 2px);
  }
}

@media (max-width: 380px) {
  .logo-word {
    font-size: 1.15rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .nav-actions .nav-support,
  .nav-actions .nav-cta {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .nav-inner .logo .logo-word {
    display: none;
  }
}
