:root {
  --bg: #f3f3f3;
  --white: #ffffff;
  --text: #171717;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --ink: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark {
  font-weight: 650;
  letter-spacing: -0.03em;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

#nav {
  display: flex;
  gap: 22px;
}

#nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

#nav a:hover,
#nav a[aria-current="page"] {
  color: var(--text);
}

.notice {
  margin: 0;
  padding: 12px 20px;
  text-align: center;
  background: #e8e8e8;
  color: #171717;
  font-size: 0.95rem;
}

.hero,
.list {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 28px;
}

.kicker {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  max-width: 14em;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.hero p:last-child {
  max-width: 38rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

.item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.num {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin-bottom: 10px;
}

.item p:last-child {
  color: var(--muted);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.bubble.in {
  margin-left: auto;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px 12px 4px 12px;
}

.bubble.out {
  background: #ececec;
  border-radius: 12px 12px 12px 4px;
}

.lines,
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lines li,
.checks li {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
}

.stats p {
  text-align: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 8px;
}

.stats strong {
  display: block;
  font-size: 1.25rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.list {
  margin-bottom: 64px;
}

@media (max-width: 800px) {
  .item,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .menu-btn {
    display: inline-block;
  }

  #nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  #nav.is-open {
    display: flex;
  }

  #nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-top: 48px;
  }
}

.site-footer {
  background: var(--white);
  color: var(--text);
  border-top: 1px solid var(--line);
}

.footer-wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.05fr;
  gap: 36px 48px;
  align-items: start;
}

.brand {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.footer-brand p,
.footer-help {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-brand p {
  max-width: 34rem;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.legal a,
.details a {
  text-underline-offset: 3px;
}

.footer-links a:hover,
.legal a:hover,
.details a:hover,
a.footer-label:hover {
  text-decoration: underline;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
}

.pill:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 0;
  outline: none;
}

.pill input::placeholder {
  color: #8a8a8a;
}

.pill button,
.contact-card button {
  border: 0;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.pill button:hover,
.contact-card button:hover {
  background: #2a2a2a;
}

.form-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.footer-bottom p {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.contact-grid,
.prose {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.details {
  display: grid;
  gap: 8px;
  align-content: start;
}

.details .kicker {
  margin: 8px 0 0;
}

.details .kicker:first-child {
  margin-top: 0;
}

.prose {
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom p {
    margin-left: 0;
    text-align: left;
  }
}
