@font-face {
  font-family: "Satoshi";
  src: url("/static/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/static/fonts/Satoshi-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/static/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/static/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/static/fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --deep-navy: #071b3a;
  --emerald-teal: #00b292;
  --emerald-teal-hover: #00a07f;
  --emerald-teal-faint: #e6f7f2;
  --divider: #e3e8ee;
  --foreground-secondary: #5a6b84;
  --light-gray: #f5f7fa;

  --max-container-width: 1280px;
  --max-paragraph-width: 50ch;
}

body {
  font-family:
    "Satoshi",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
  font-size: 18px;
}

code {
  font-size: 16px;
  background-color: var(--light-gray);
  padding: 2px 4px;
  border-radius: 4px;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
form {
  margin: 0;
  padding: 0;
}

hr {
  width: 100%;
  border: 1px dashed var(--divider);
}

a {
  text-decoration: none;
  color: var(--emerald-teal);
}

a:hover {
  color: var(--emerald-teal-hover);
}

input,
textarea,
select {
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 8px;
  background-color: white;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--emerald-teal);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--divider);
}

td,
th {
  border: 1px solid var(--divider);
  padding: 8px;
}

th {
  background-color: var(--light-gray);
  text-align: left;
}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section:not(:last-child) {
  border-bottom: 1px solid var(--divider);
}

.section-content {
  max-width: var(--max-container-width);
  width: 100%;
  padding: 48px 24px;
}

.paragraph-section-content {
  max-width: var(--max-paragraph-width);
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding: 48px 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  color: var(--emerald-teal);
  font-family: monospace;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
}

.btn-lg {
  padding: 12px 20px !important;
  font-size: 16px;
}

.btn-primary {
  background: var(--emerald-teal);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary:hover {
  background: var(--emerald-teal-hover);
}

.btn-secondary {
  background: white;
  color: black;
  border: 1px solid var(--divider);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-secondary:hover {
  background: var(--divider);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.helper-text {
  font-size: 14px;
  color: var(--foreground-secondary);
}

/* Top bar */

.logo-link {
  margin-right: 24px;
}

.logo {
  height: 32px;
}

.top-bar {
  background: var(--deep-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
}

.top-bar-content {
  display: flex;
  padding: 0 24px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-container-width);
  flex-grow: 1;
}

.nav-groups {
  display: contents;
}

.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 auto 0 0;
  align-items: center;
}

.account-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-link {
  color: white;
  border: none;
  padding: 16px;
  font-weight: medium;
}

.nav-link:hover {
  color: var(--emerald-teal);
  border: none;
}

.nav-link.selected {
  border-bottom: 4px solid var(--emerald-teal);
  color: var(--emerald-teal);
  font-weight: bold;
  padding-bottom: 12px;
}

.logout-button {
  margin-left: 24px;
}

.nav-button,
.nav-scrim {
  display: none;
}

@media (max-width: 1024px) {
  .nav-button {
    display: inline-flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
  }

  .nav-button-close {
    align-self: flex-end;
  }

  .nav-groups {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    padding: 12px 8px 24px 0;
    background: var(--deep-navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 20;
  }

  .nav-toggle:checked ~ .nav-groups {
    transform: none;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10;
  }

  .nav-toggle:checked ~ .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav,
  .account-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0;
  }

  .nav-link {
    padding: 12px;
  }

  .nav-link.selected {
    border-bottom: none;
    border-left: 4px solid var(--emerald-teal);
    padding: 12px;
    padding-left: 8px;
  }

  .logout-button,
  .login-button {
    margin: 16px 0 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-groups,
  .nav-scrim {
    transition: none;
  }
}

/* Home Page */

.home-page {
  background: var(--light-gray);
}

.hero {
  background: white;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-content {
  display: flex;
  gap: 64px;
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  color: var(--deep-navy);
  align-items: start;
}

.hero-buttons {
  display: flex;
  gap: 8px;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-text p {
  font-size: 20px;
  line-height: 1.5;
}

.demo-card {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.demo-card-header {
  background: var(--deep-navy);
  color: white;
  padding: 12px 16px;
  font-family: monospace;
  font-weight: bold;
  text-transform: uppercase;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 16px;
}

.signature-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#signature {
  background-color: var(--light-gray);
}

#submit-result {
  display: block;
  padding: 16px;
  border-top: 1px dashed var(--divider);
}

#submit-result:empty {
  display: none;
}

.surfaces {
  background: var(--light-gray);
}

.surfaces-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.surfaces-content h2 {
  font-size: 32px;
  color: var(--deep-navy);
}

.surface-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .surface-cards {
    grid-template-columns: 1fr;
  }
}

.surface-card {
  background: white;
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
}

.surface-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coming-soon-badge {
  background: var(--emerald-teal-faint);
  color: var(--emerald-teal);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

/* About Page */

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FAQ Page */

.faq-question {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 8px;
}

/* Download Page */

.download-badge {
  background: var(--emerald-teal-faint);
  color: var(--emerald-teal);
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

/* Hiring Demo Page */

.hiring-demo-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 16px;
}

.hiring-demo-question {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hiring-result {
  padding: 16px;
  background: var(--light-gray);
  border-radius: 8px;
}

.hiring-result:empty {
  display: none;
}

/* Documents Page */

.documents-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.documents-table-container {
  overflow-x: auto;
}

/* Document Details Page */

.document-details-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground-secondary);
}

.breadcrumb:hover {
  text-decoration: underline;
  color: var(--foreground-secondary);
}

.document-details-container {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .document-details-container {
    flex-direction: column;
  }
}

.document-content {
  white-space: pre-wrap;
  border: 1px solid var(--divider);
  padding: 16px;
  border-radius: 8px;
  flex-grow: 1;
}

.metadata-settings-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 300px;
}

.metadata-field {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.metadata-field-label {
  color: var(--foreground-secondary);
}

.metadata-card {
  border: 1px solid var(--divider);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-settings-card {
  border: 1px solid var(--divider);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.document-settings-card > #submit-result {
  padding: 0;
  padding-top: 16px;
}

.document-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Settings Page */

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 8px;
}
