/* Content pages: about, blog, careers, contact (site layout) and terms, privacy (own header) */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fff;
}
.page__main { flex: 1; }


.doc {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding: 3rem 1rem;
  & h1 {
    margin-bottom: .5rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
  }
}
.doc__intro { margin-bottom: 2.5rem; color: var(--gray-600); }
.doc__updated { margin-bottom: 2rem; font-size: .875rem; line-height: 1.25rem; color: var(--gray-500); }

.doc__body {
  color: var(--gray-700);
  line-height: 1.625;
  & h2 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
  }
  .mt-2 { margin-top: .5rem; }
  .mt-3 { margin-top: .75rem; }
}
:where(.doc__body > :not(:last-child)) { margin-bottom: 2rem; }

.doc__list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: .5rem;
}
:where(.doc__list > :not(:last-child)) { margin-bottom: .25rem; }
.doc__values { list-style-type: disc; padding-left: 1.25rem; }
:where(.doc__values > :not(:last-child)) { margin-bottom: .75rem; }

.doc__link { color: var(--blue); }
@media (hover: hover) { .doc__link:hover { text-decoration-line: underline; } }

.doc__table {
  width: 100%;
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.25rem;
  border-collapse: collapse;
  & thead tr { border-bottom: 1px solid var(--gray-200); }
  & th { text-align: left; font-weight: 600; color: var(--gray-900); }
  & th, & td { padding: .5rem 1rem .5rem 0; }
  & th:last-child, & td:last-child { padding-right: 0; }
  & tbody > tr:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
}
.doc__code { font-family: var(--font-mono); font-size: .75rem; line-height: 1rem; }

.doc__footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.doc__back { font-size: .875rem; line-height: 1.25rem; color: var(--gray-600); }
@media (hover: hover) { .doc__back:hover { color: var(--gray-900); } }

/* Terms / Privacy page header */
.doc-page { min-height: 100vh; background-color: #fff; }
.doc-header {
  border-bottom: 1px solid var(--gray-200);
  .container { padding-block: 1.5rem; }
}
.doc-brand {
  display: inline-block;
  > span { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
}
.brand-mouse { color: var(--blue); }
.brand-work { color: var(--gray-900); }

/* Grey boxes */
.doc__note { padding: 1.5rem; background-color: var(--gray-50); border-radius: .75rem; & p { color: var(--gray-600); } }
.doc__cta {
  padding: 2rem;
  text-align: center;
  background-color: var(--gray-50);
  border-radius: .75rem;
  & h3 {
    margin-bottom: .5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
  }
  & p { font-size: .875rem; line-height: 1.25rem; color: var(--gray-600); }
}

.btn-primary {
  display: inline-block;
  padding: .75rem 2rem;
  background-color: var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: .5rem;
  transition: background-color .15s var(--ease);
}
@media (hover: hover) { .btn-primary:hover { background-color: var(--blue-hover); } }

/* ---------- Careers ---------- */

.culture { display: grid; gap: 1.5rem; }
@media (width >= 40rem) { .culture { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.culture__card {
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  .icon { width: 1.5rem; height: 1.5rem; margin-bottom: .75rem; color: var(--blue); }
  & h3 { margin-bottom: .25rem; font-weight: 600; color: var(--gray-900); }
  & p { font-size: .875rem; line-height: 1.25rem; color: var(--gray-600); }
}

/* ---------- Blog ---------- */

.articles { margin-bottom: 3rem; }
:where(.articles > :not(:last-child)) { margin-bottom: 2rem; }

.article-card {
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  transition: box-shadow .15s var(--ease);
  & h2 {
    margin-bottom: .5rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
  }
  & p {
    margin-bottom: 1rem;
    font-size: .875rem;
    line-height: 1.625;
    color: var(--gray-600);
  }
}
@media (hover: hover) { .article-card:hover { box-shadow: var(--shadow-md); } }

.article-card__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.article-card__category {
  padding: .25rem .75rem;
  background-color: var(--blue-50);
  color: var(--blue);
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 600;
  border-radius: 9999px;
}
.article-card__date, .article-card__more {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--gray-400);
  .icon { width: .75rem; height: .75rem; }
}
.article-card__date { font-size: .75rem; line-height: 1rem; }
.article-card__more { display: inline-flex; font-size: .875rem; line-height: 1.25rem; cursor: default; }

.blog-cta { margin-bottom: 3rem; & p { margin-bottom: .25rem; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 3rem; margin-bottom: 3rem; }
@media (width >= 48rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

:where(.contact-info > :not(:last-child)) { margin-bottom: 1.5rem; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  & h3 { margin-bottom: .25rem; font-weight: 600; color: var(--gray-900); }
  & p { color: var(--gray-700); }
  .contact-info__note { margin-top: .25rem; font-size: .875rem; line-height: 1.25rem; color: var(--gray-500); }
}
.contact-info__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--blue-50);
  border-radius: .5rem;
  .icon { width: 1.25rem; height: 1.25rem; color: var(--blue); }
}

:where(.stack-4 > :not(:last-child)) { margin-bottom: 1rem; }

.field-label {
  display: block;
  margin-bottom: .25rem;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--gray-700);
}
.field {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: .5rem;
  outline: none;
  transition: all .15s var(--ease);
  &:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--blue); }
}
textarea.field { resize: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-error { font-size: .875rem; line-height: 1.25rem; color: var(--red-600); }

.btn-submit {
  width: 100%;
  padding: .75rem 1.5rem;
  background-color: var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: .5rem;
  transition: background-color .15s var(--ease);
  &:disabled { opacity: .5; cursor: not-allowed; }
}
@media (hover: hover) { .btn-submit:hover { background-color: var(--blue-hover); } }

.captcha-hint {
  padding: 1.25rem;
  background-color: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: .75rem;
  & p:first-child { margin-bottom: .25rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--gray-700); }
  & p:last-child { font-size: .75rem; line-height: 1rem; color: var(--gray-500); }
}
.captcha-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  & canvas { border: 1px solid var(--gray-300); border-radius: .25rem; image-rendering: pixelated; }
  & span { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--gray-700); }
  & input {
    width: 4rem;
    height: 50px;
    padding-inline: .75rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    border: 1px solid var(--gray-300);
    border-radius: .5rem;
    outline: none;
    transition: all .15s var(--ease);
    &:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--blue); }
  }
}
.captcha-refresh-row { display: flex; justify-content: center; }
.captcha-refresh {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  line-height: 1rem;
  color: var(--gray-500);
  transition: color .15s var(--ease);
  .icon { width: .75rem; height: .75rem; }
}
@media (hover: hover) { .captcha-refresh:hover { color: var(--gray-700); } }
.captcha-actions {
  display: flex;
  gap: .75rem;
  & button { flex: 1; padding: .75rem 1.5rem; font-weight: 600; border-radius: .5rem; transition: background-color .15s var(--ease); }
  .btn-submit { width: auto; }
}
.btn-back { border: 1px solid var(--gray-300); color: var(--gray-700); }
@media (hover: hover) { .btn-back:hover { background-color: var(--gray-50); } }

.contact-success {
  padding: 2rem;
  text-align: center;
  background-color: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: .75rem;
  & h3 { margin-bottom: .5rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--green-800); }
  & p { font-size: .875rem; line-height: 1.25rem; color: var(--green-700); }
  & button { margin-top: 1rem; font-size: .875rem; line-height: 1.25rem; color: var(--blue); }
}
@media (hover: hover) { .contact-success button:hover { text-decoration-line: underline; } }

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background-image: linear-gradient(to bottom right in oklab, var(--gray-50), #fff, var(--gray-50));
}
.notfound__box { max-width: 28rem; text-align: center; }
.notfound__brand {
  display: inline-block;
  margin-bottom: 2rem;
  & h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
}
.notfound__code { margin-bottom: 1rem; font-size: 6rem; line-height: 1; font-weight: 700; color: var(--gray-200); }
.notfound h2 { margin-bottom: .75rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--gray-900); }
.notfound__text { margin-bottom: 2rem; color: var(--gray-600); }
.notfound__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  & a {
    padding: .75rem 1.5rem;
    font-weight: 600;
    border-radius: .5rem;
    transition: all .15s var(--ease);
  }
}
@media (width >= 40rem) { .notfound__actions { flex-direction: row; } }
.notfound__home { background-color: var(--blue); color: #fff; }
.notfound__contact { background-color: #fff; border: 2px solid var(--gray-200); color: var(--gray-700); }
@media (hover: hover) {
  .notfound__home:hover { background-color: var(--blue-hover); }
  .notfound__contact:hover { border-color: var(--gray-300); }
}
.careers-cta__text { margin-bottom: 1rem; }
.captcha-error { text-align: center; }
