:root {
  --bg: #f7f7f5;
  --text: #1e1f22;
  --muted: #5b5e63;
  --accent: #2f4f60;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 245, 0.9);
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-label span {
  width: 20px;
  height: 2px;
  background-color: var(--muted);
  transition: all 0.2s ease;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 3px 0 0 0;
}

.nav-link-active {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-link-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 500;
  margin-top: -1px;
}

.nav-link-primary:hover {
  background-color: #243a46;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 56px 20px;
}

.page-home .block:first-of-type,
.page-how .block:first-of-type,
.page-talk .block:first-of-type {
  margin-top: 8px;
}

.block {
  margin-bottom: 32px;
}

.page-heading {
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 12px 0;
  max-width: 40rem;
}

.lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.block-heading {
  font-size: 18px;
  margin: 0 0 10px 0;
}

.list {
  margin: 12px 0 12px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.list li + li {
  margin-top: 4px;
}

.judgment-list {
  margin: 12px 0 12px 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.judgment-list li + li {
  margin-top: 8px;
}

.judgment-term {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.block-cta {
  padding-top: 12px;
}

.cta-text {
  margin: 0;
  font-size: 15px;
}

.cta-inline {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: var(--accent);
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 120ms ease, transform 120ms ease;
}

.button-primary:hover {
  background-color: #243a46;
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
}

.page-talk .intake-form {
  padding: 4px 0;
}

.form-field + .form-field {
  margin-top: 16px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.hint {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--muted);
}

textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 9px;
  border-radius: 6px;
  border: 1px solid #c0c2c3;
  resize: vertical;
  min-height: 80px;
}

textarea:focus {
  outline: none;
  border-color: rgba(47, 79, 96, 0.75);
  background-color: #ffffff;
}

.form-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 640px) {
  .site-header-inner {
    padding-inline: 16px;
    position: relative;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg);
    padding: 12px 20px;
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 300px;
    padding: 12px 20px;
  }

  .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link-primary {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8px;
    padding-top: 14px;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .page {
    padding-inline: 16px;
  }

  .page-heading {
    font-size: 26px;
  }
}

