:root {
  color-scheme: light;
  --ink: #15212f;
  --muted: #5a6676;
  --soft: #eef5f4;
  --line: #dce7e5;
  --paper: #ffffff;
  --aqua: #007c89;
  --aqua-dark: #005f68;
  --coral: #e06f5f;
  --gold: #d8a83f;
  --leaf: #477a5b;
  --navy: #24364b;
  --shadow: 0 18px 50px rgba(36, 54, 75, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fbfa;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header.menu-open {
  box-shadow: var(--shadow);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.menu-toggle {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: var(--navy);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.menu-toggle:focus-visible,
.nav-links a:focus-visible,
.button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(0, 124, 137, 0.26);
  outline-offset: 2px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--aqua-dark);
}

main {
  min-height: calc(100vh - 230px);
}

.section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 54px);
}

.section.compact {
  padding-top: 32px;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(21, 33, 47, 0.87), rgba(21, 33, 47, 0.42)),
    radial-gradient(circle at 80% 30%, rgba(224, 111, 95, 0.34), transparent 30%),
    linear-gradient(135deg, #0d6f78, #4d7a66 55%, #d4a646);
  color: #fff;
  min-height: 650px;
  padding: clamp(46px, 8vw, 105px) clamp(18px, 4vw, 54px) 58px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.7fr);
  margin: 0 auto;
  max-width: 1180px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 12px 0 20px;
  max-width: 780px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  margin: 0 0 26px;
  max-width: 720px;
}

.eyebrow {
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5d98d;
}

.about-hero-section {
  background:
    linear-gradient(135deg, rgba(0, 124, 137, 0.12), rgba(216, 168, 63, 0.16)),
    #f8fbfa;
  padding-bottom: 38px;
}

.about-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 244, 0.9)),
    radial-gradient(circle at 88% 12%, rgba(224, 111, 95, 0.22), transparent 32%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
}

.about-hero h1 {
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 10px 0 18px;
  max-width: 850px;
}

.about-hero p {
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.55;
  margin: 0;
  max-width: 800px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--coral);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--aqua-dark);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--aqua-dark);
}

.button.danger {
  background: #fff1ee;
  color: #9d3528;
}

.support-panel,
.card,
.form-panel,
.metric,
.match-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(36, 54, 75, 0.08);
}

.support-panel {
  color: var(--ink);
  padding: 22px;
}

.support-panel h2 {
  font-size: 26px;
  line-height: 1.12;
  margin: 0 0 12px;
}

.support-panel p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}

.mini-steps {
  display: grid;
  gap: 10px;
}

.mini-step {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
}

.mini-step span {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  color: var(--aqua-dark);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.stats-grid,
.feature-grid,
.dashboard-grid,
.match-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  box-shadow: none;
  padding: 22px;
}

.metric strong {
  color: var(--aqua-dark);
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.section-title {
  max-width: 760px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.section-title p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 26px;
}

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

.team-grid,
.belief-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(36, 54, 75, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-photo {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(238, 245, 244, 0.9), rgba(255, 255, 255, 0.96));
  display: flex;
  justify-content: center;
  min-height: 252px;
  padding: 22px;
}

.team-photo img {
  border: 1px solid rgba(36, 54, 75, 0.14);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(36, 54, 75, 0.14);
  height: 210px;
  object-fit: cover;
  object-position: center;
  width: 210px;
}

.team-photo-andrew img {
  object-position: center 22%;
}

.team-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.team-body h3 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.team-role {
  color: var(--aqua-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.team-body p,
.story-copy p,
.belief-card p,
.about-closing p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.team-body p + p,
.story-copy p + p {
  margin-top: 14px;
}

.about-story-grid,
.about-quote-panel {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(36, 54, 75, 0.08);
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  padding: clamp(24px, 4vw, 38px);
}

.about-quote-panel {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.about-quote-panel blockquote {
  border-left: 4px solid var(--coral);
  color: var(--navy);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  padding: 4px 0 4px 20px;
}

.belief-card {
  box-shadow: none;
}

.about-closing-section {
  padding-bottom: clamp(50px, 7vw, 92px);
}

.about-closing {
  background: linear-gradient(135deg, var(--navy), var(--aqua-dark));
  border-radius: 8px;
  color: #fff;
  padding: clamp(26px, 4vw, 42px);
}

.about-closing h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.about-closing p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin-bottom: 22px;
  max-width: 860px;
}

.card {
  padding: 24px;
}

.card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.dashboard-grid {
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
}

.form-panel {
  padding: 26px;
}

.form-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.check-copy {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid #cbd8d6;
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

.field legend {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  padding: 0;
}

.contact-methods,
.match-goals {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.contact-option {
  box-shadow: none;
  min-height: 52px;
}

.match-goals .contact-options {
  grid-template-columns: 1fr;
}

.mito-map-action {
  align-items: start;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.mito-map-action .button {
  justify-self: start;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sync-summary {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sync-summary-top {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sync-summary h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.sync-badge {
  background: #e5f3f2;
  border-radius: 8px;
  color: var(--aqua-dark);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.sync-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.sync-grid div {
  background: #fff;
  border: 1px solid #e4ecea;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.sync-grid .wide {
  grid-column: 1 / -1;
}

.sync-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sync-grid strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
}

.mentor-sync-panel {
  display: grid;
  gap: 16px;
}

.sync-panel-copy {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.optional-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.required-label {
  color: var(--coral);
}

.check-row {
  align-items: start;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
}

.check-row input {
  appearance: none;
  height: 1px;
  margin: 0;
  min-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.check-box {
  align-items: center;
  background: #fff;
  border: 1.5px solid #9db3b0;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 22px;
  justify-content: center;
  margin-top: 1px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  width: 22px;
}

.check-box::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 10px;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
  width: 5px;
}

.check-copy {
  line-height: 1.45;
}

.check-row:hover .check-box {
  border-color: var(--aqua);
}

.check-row input:focus-visible + .check-box {
  box-shadow: 0 0 0 4px rgba(0, 124, 137, 0.16);
}

.check-row input:checked + .check-box {
  background: var(--aqua);
  border-color: var(--aqua);
}

.check-row input:checked + .check-box::after {
  opacity: 1;
}

.progress-ring {
  align-items: center;
  background: conic-gradient(var(--aqua) var(--progress), #e5eeee 0);
  border-radius: 50%;
  display: flex;
  height: 144px;
  justify-content: center;
  margin: 8px auto 18px;
  width: 144px;
}

.progress-ring span {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: flex;
  font-size: 34px;
  font-weight: 800;
  height: 108px;
  justify-content: center;
  width: 108px;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.list li {
  background: var(--soft);
  border-radius: 8px;
  color: var(--navy);
  list-style: none;
  padding: 12px;
}

.match-grid {
  grid-template-columns: repeat(3, 1fr);
}

.match-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.match-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.score-pill {
  background: #e5f3f2;
  border-radius: 8px;
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.match-card h3 {
  font-size: 24px;
  margin: 0;
}

.match-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f4f0e4;
  border-radius: 8px;
  color: #6c5220;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 9px;
}

.detail-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
}

.notice {
  background: #fff8e8;
  border: 1px solid #efdca5;
  border-radius: 8px;
  color: #654d16;
  line-height: 1.5;
  padding: 14px 16px;
}

.site-footer {
  align-items: start;
  background: var(--navy);
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  padding: 34px clamp(18px, 4vw, 54px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
  margin: 6px 0 0;
}

.footer-note {
  font-size: 14px;
}

.footer-links {
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  color: #fff;
}

.modal-backdrop {
  align-items: center;
  background: rgba(21, 33, 47, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 560px;
  padding: 24px;
  position: relative;
  width: 100%;
}

.icon-button {
  background: var(--soft);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  height: 38px;
  width: 38px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.empty-state {
  margin: 0 auto;
  max-width: 620px;
  padding: 80px 24px;
  text-align: center;
}

.center-page {
  align-items: center;
  display: flex;
  min-height: 100vh;
}

.toast {
  background: var(--navy);
  border-radius: 8px;
  bottom: 18px;
  color: #fff;
  font-weight: 700;
  left: 50%;
  padding: 13px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 80;
}

@media (max-width: 920px) {
  .hero-grid,
  .dashboard-grid,
  .detail-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .stats-grid,
  .feature-grid,
  .team-grid,
  .belief-grid,
  .match-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-story-grid,
  .about-quote-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    min-height: 62px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand strong {
    display: block;
    max-width: calc(100vw - 132px);
  }

  .brand small {
    max-width: calc(100vw - 132px);
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 16px;
    padding: 8px;
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    padding: 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .stats-grid,
  .feature-grid,
  .team-grid,
  .belief-grid,
  .form-grid,
  .match-grid,
  .contact-options,
  .sync-grid {
    grid-template-columns: 1fr;
  }

  .team-photo {
    min-height: 216px;
  }

  .team-photo img {
    height: 174px;
    width: 174px;
  }

  .button-row,
  .button {
    width: 100%;
  }
}
