:root {
  color-scheme: light;
  --ink: #050505;
  --muted: #5f6672;
  --line: #dfe5ee;
  --paper: #f8fafc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --white: #ffffff;
  --accent: #2f7dff;
  --accent-dark: #1557c0;
  --accent-soft: #e4efff;
  --shadow: 0 22px 70px rgba(21, 87, 192, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(47, 125, 255, 0.09), transparent 580px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.dashboard-mode,
body.auth-mode-page {
  min-height: 100vh;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.dot-field {
  position: fixed;
  inset: -8rem;
  z-index: -1;
  opacity: 0.11;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(5, 5, 5, 0.82) 0 1.25px, transparent 1.35px),
    radial-gradient(circle at center, rgba(47, 125, 255, 0.76) 0 1px, transparent 1.1px);
  background-size: 24px 24px, 44px 44px;
  mask-image: radial-gradient(circle at 50% 14%, #000 0 18%, rgba(0, 0, 0, 0.62) 38%, transparent 76%);
  animation: driftDots 38s linear infinite, breatheDots 9s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  animation: dropIn 700ms ease both;
}

body.dashboard-mode .site-header,
body.auth-mode-page .site-header {
  width: min(1320px, calc(100% - 40px));
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px -12px;
  z-index: -1;
  border: 1px solid rgba(116, 145, 188, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(7, 17, 31, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 46px;
  height: 40px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(-4deg) scale(1.04);
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  position: relative;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.section,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.auth-view {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.auth-view[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-mode {
  width: 100%;
}

.google-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
  font-weight: 900;
}

.google-button span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px var(--line);
}

.auth-swap {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-swap button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  padding: 50px 0 76px;
}

.hero-copy {
  max-width: 760px;
  animation: riseIn 820ms 120ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.intro {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.intro-small,
.finder-copy p,
.profile-card p,
.tool-cards p,
.steps p,
footer {
  color: var(--muted);
}

.hero-actions,
.category-tabs,
.account-switch,
.profile-actions,
.suggestion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
  font-weight: 900;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 48%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: buttonGlint 5.5s ease-in-out infinite;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.button.compact {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
  outline: none;
}

.hero-mark {
  position: relative;
  min-height: min(54vw, 520px);
  display: grid;
  place-items: center;
  animation: riseIn 900ms 260ms ease both;
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: min(42vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(47, 125, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(47, 125, 255, 0.24), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle, rgba(255, 255, 255, 0.94), transparent 70%);
  animation: pulseRing 7s ease-in-out infinite;
}

.hero-mark img {
  position: relative;
  width: min(46vw, 540px);
  max-width: 100%;
  filter: drop-shadow(18px 24px 0 rgba(5, 5, 5, 0.06));
  animation: floatMark 8s ease-in-out infinite;
}

.section {
  padding: clamp(66px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.steps,
.tool-cards,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article,
.tool-cards article,
.profile-card,
.finder-app {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 58px rgba(21, 87, 192, 0.08);
  backdrop-filter: blur(14px);
}

.steps article,
.tool-cards article,
.profile-card {
  min-height: 190px;
  padding: 22px;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.steps article:hover,
.tool-cards article:hover,
.profile-card:hover {
  border-color: rgba(47, 125, 255, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.finder-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 76px);
}

.finder-copy {
  max-width: 440px;
}

.finder-app {
  padding: 16px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.76fr) auto;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(47, 125, 255, 0.2);
}

.category-tabs {
  margin: 16px 0;
}

.category-tabs::before,
.service-ideas::before {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-tabs::before {
  content: "Filter by category";
}

.service-ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.service-ideas::before {
  content: "Matching jobs";
  grid-column: 1 / -1;
}

.chip {
  position: relative;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.chip.is-active {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.chip:hover,
.service-card:hover,
.service-card:focus-visible {
  color: var(--accent-dark);
  border-color: rgba(47, 125, 255, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.service-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 34px rgba(21, 87, 192, 0.06);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  box-shadow: var(--shadow);
}

.service-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.service-kind {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card::after,
.chip::after {
  content: attr(data-full);
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  z-index: 20;
  max-width: min(360px, 82vw);
  padding: 10px 12px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: normal;
}

.service-card:hover::after,
.service-card:focus-visible::after,
.chip:hover::after,
.chip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.signed-in-pill,
.quiet {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.signed-in-pill {
  justify-self: end;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
}

.profile-grid {
  grid-column: 1 / -1;
  margin-top: 22px;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 950;
}

.rating {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  position: relative;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-actions {
  margin-top: 18px;
}

.teen-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 78px);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.app-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 70px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.app-shell[hidden] {
  display: none;
}

.app-sidebar,
.app-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 58px rgba(21, 87, 192, 0.08);
  backdrop-filter: blur(14px);
}

.app-sidebar {
  position: sticky;
  top: 98px;
  padding: 18px;
}

.app-sidebar h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.app-user-card {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.app-user-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.app-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.app-nav a.is-active,
.app-nav a:hover,
.app-nav a:focus-visible {
  color: var(--accent-dark);
  border-color: rgba(47, 125, 255, 0.28);
  background: var(--accent-soft);
  outline: none;
}

.app-page {
  min-height: 520px;
  padding: clamp(22px, 4vw, 34px);
}

.app-page h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.page-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.stat-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

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

.stat-card,
.dashboard-grid article,
.conversation-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.conversation-card h3,
.dashboard-grid h3 {
  margin-bottom: 6px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

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

.dashboard-form label:has(textarea),
.dashboard-form .form-status,
.dashboard-form .button {
  grid-column: 1 / -1;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-list span,
.mini-list p {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 850;
}

.conversation-list {
  display: grid;
  gap: 12px;
}

.message-thread {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.message-thread p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.analytics-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.analytics-bars div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.analytics-bars span {
  color: var(--muted);
  font-weight: 900;
}

.analytics-bars strong {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.analytics-bars strong::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7fb5ff);
}

footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.modal {
  width: min(680px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(5, 5, 5, 0.48);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

.account-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.role-option {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.role-option.is-active {
  color: var(--white);
  background: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 16px;
}

.form-grid label:last-child {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftDots {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(28px, -34px, 0) rotate(0.5deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes breatheDots {
  0%,
  100% {
    opacity: 0.08;
  }

  50% {
    opacity: 0.16;
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatMark {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -18px, 0) rotate(-1.35deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.74;
  }
}

@keyframes buttonGlint {
  0%,
  54% {
    transform: translateX(-120%);
  }

  70%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 28px, var(--max));
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .site-header::before {
    inset: 8px -10px;
  }

  nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .auth-view,
  .section,
  footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 40px 0 66px;
  }

  .hero-mark {
    order: -1;
    min-height: 260px;
  }

  .hero-mark::before {
    width: min(82vw, 360px);
  }

  .hero-mark img {
    width: min(88vw, 420px);
  }

  .steps,
  .tool-cards,
  .profile-grid,
  .finder-section,
  .teen-section,
  .auth-card,
  .app-shell,
  .stat-grid,
  .dashboard-grid,
  .service-ideas,
  .search-panel,
  .dashboard-form {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .finder-copy {
    max-width: 680px;
  }

  .cta,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(3rem, 16vw, 4.55rem);
  }

  .hero-actions,
  .button,
  .account-switch {
    width: 100%;
  }

  .button,
  .role-option {
    flex: 1;
  }

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

  .message-form {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    display: grid;
  }
}
