.document-search-page {
  --document-ink: #17212b;
  --document-muted: #65727d;
  --document-paper: #f5f2ea;
  --document-panel: #fffdf8;
  --document-blue: #215f9a;
  --document-blue-dark: #173f68;
  --document-gold: #d7a84d;
  --document-red: #bd4b3d;
  --document-line: rgba(23, 33, 43, 0.16);
  background:
    radial-gradient(circle at 11% 8%, rgba(33, 95, 154, 0.17), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(215, 168, 77, 0.2), transparent 28rem),
    linear-gradient(180deg, #fbf8ef 0%, var(--document-paper) 100%);
  color: var(--document-ink);
}

.document-hero {
  min-height: calc(100vh - 82px);
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  isolation: isolate;
}

.document-hero__pattern {
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 43, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  inset: 0;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
  position: absolute;
  z-index: -2;
}

.document-hero::before,
.document-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.document-hero::before {
  background: rgba(33, 95, 154, 0.15);
  border-radius: 2.6rem;
  height: 22rem;
  right: -6rem;
  top: 6rem;
  transform: rotate(-9deg);
  width: 22rem;
}

.document-hero::after {
  background: rgba(189, 75, 61, 0.12);
  border-radius: 999px;
  bottom: 5rem;
  filter: blur(4px);
  height: 13rem;
  left: -4rem;
  width: 25rem;
}

.document-hero__content {
  position: relative;
  z-index: 1;
}

.document-eyebrow,
.document-section__label {
  color: var(--document-red);
  font-family: var(--nav-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.document-hero h1 {
  color: var(--document-ink);
  font-size: clamp(3.35rem, 7vw, 7rem);
  font-weight: 950;
  letter-spacing: -0.058em;
  line-height: 0.9;
  margin: 0;
  max-width: 10ch;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.document-hero__lead {
  color: var(--document-ink);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.65;
  margin: 1.6rem 0 2rem;
  max-width: 760px;
}

.document-search-form {
  max-width: 920px;
}

.document-search-form__shell {
  align-items: stretch;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(23, 33, 43, 0.18);
  box-shadow: 0 24px 70px rgba(23, 33, 43, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.22fr) auto;
  position: relative;
}

.document-search-form input,
.document-search-form select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--document-ink);
  font-size: 1.02rem;
  min-width: 0;
  outline: 0;
}

.document-search-form input {
  padding: 1.12rem 1.25rem;
}

.document-search-form select {
  border-left: 1px solid rgba(23, 33, 43, 0.14);
  cursor: pointer;
  font-weight: 900;
  padding: 0 2.35rem 0 1rem;
  text-transform: uppercase;
}

.document-search-form__shell::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--document-ink);
  content: "";
  pointer-events: none;
  position: absolute;
  right: 11.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.document-search-form button,
.document-final__link {
  align-items: center;
  background: var(--document-blue);
  border: 0;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 0.55rem;
  justify-content: center;
  min-height: 60px;
  padding: 0 1.35rem;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.document-search-form button:hover,
.document-final__link:hover {
  background: var(--document-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.document-hero__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.document-hero__examples a {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(23, 33, 43, 0.14);
  color: var(--document-muted);
  font-size: 0.9rem;
  padding: 0.48rem 0.7rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.document-hero__examples a:hover {
  border-color: rgba(33, 95, 154, 0.5);
  color: var(--document-blue-dark);
  transform: translateY(-1px);
}

.document-stack {
  background: #162331;
  border: 1px solid rgba(255, 253, 248, 0.16);
  box-shadow: 0 30px 90px rgba(23, 33, 43, 0.28);
  color: #fffdf8;
  margin-left: auto;
  max-width: 460px;
  overflow: hidden;
  transform: rotate(1.2deg);
}

.document-stack__top {
  align-items: center;
  background: rgba(255, 253, 248, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.document-stack__top span {
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-stack__top strong {
  color: #f2c778;
  font-weight: 900;
}

.document-stack__body {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
}

.document-stack__file {
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.16);
  padding: 1rem;
}

.document-stack__file b {
  color: #fffdf8;
  display: block;
  font-size: 1.15rem;
  font-weight: 950;
}

.document-stack__file span {
  color: rgba(255, 253, 248, 0.72);
  display: block;
  margin-top: 0.25rem;
}

.document-stack__file--pdf { border-left: 5px solid var(--document-red); }
.document-stack__file--doc { border-left: 5px solid var(--document-blue); }
.document-stack__file--sheet { border-left: 5px solid var(--document-gold); }
.document-stack__file--text { border-left: 5px solid #8aa0ad; }

.document-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.document-section h2 {
  color: var(--document-ink);
  font-size: clamp(2.15rem, 4.4vw, 4.15rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0;
}

.document-section__intro {
  margin-bottom: 2rem;
  max-width: 840px;
}

.document-section__intro p:last-child,
.document-final__copy {
  color: var(--document-muted);
  font-size: 1.06rem;
  line-height: 1.75;
  margin: 1rem 0 0;
}

.document-section--formats {
  background: #fffdf8;
  border-bottom: 1px solid var(--document-line);
  border-top: 1px solid var(--document-line);
}

.document-format-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--document-line);
  border: 1px solid var(--document-line);
}

.document-format-grid article {
  background: #fffdf8;
  min-height: 310px;
  padding: 1.45rem;
}

.document-format-grid i {
  color: var(--document-blue);
  font-size: 2rem;
}

.document-format-grid h3,
.document-workflow h3,
.document-usecase h3 {
  color: var(--document-ink);
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.55rem;
}

.document-format-grid p,
.document-workflow p,
.document-usecase p {
  color: var(--document-muted);
  line-height: 1.65;
  margin: 0;
}

.document-format-grid a {
  color: var(--document-blue-dark);
  display: inline-block;
  font-weight: 900;
  margin-top: 1rem;
  text-decoration: none;
}

.document-section--workflow {
  background: var(--document-paper);
}

.document-workflow {
  display: grid;
  gap: 1rem;
}

.document-workflow article {
  background: rgba(255, 253, 248, 0.9);
  border-left: 5px solid var(--document-blue);
  box-shadow: 0 18px 55px rgba(23, 33, 43, 0.08);
  padding: 1.25rem 1.35rem;
}

.document-workflow span {
  color: var(--document-red);
  font-family: var(--heading-font);
  font-weight: 950;
}

.document-section--usecases {
  background: #e8edf2;
}

.document-usecase {
  background: rgba(255, 253, 248, 0.82);
  border-top: 5px solid var(--document-gold);
  min-height: 100%;
  padding: 1.3rem;
}

.document-usecase strong {
  color: var(--document-red);
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 950;
}

.document-section--final {
  background: var(--document-ink);
}

.document-final {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.document-final h2 {
  color: #fffdf8;
  max-width: 820px;
}

.document-final__copy {
  color: rgba(255, 253, 248, 0.76);
  max-width: 820px;
}

.document-final .document-section__label {
  color: #f2c778;
}

@media (max-width: 1199.98px) {
  .document-search-form__shell::after {
    right: 11.3rem;
  }
}

@media (max-width: 991.98px) {
  .document-hero {
    min-height: auto;
  }

  .document-stack {
    margin-left: 0;
    transform: none;
  }

  .document-format-grid {
    grid-template-columns: 1fr 1fr;
  }

  .document-format-grid article {
    min-height: auto;
  }

  .document-final {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .document-search-form__shell {
    grid-template-columns: 1fr;
  }

  .document-search-form select {
    border-left: 0;
    border-top: 1px solid rgba(23, 33, 43, 0.14);
    min-height: 54px;
    padding: 0 1.25rem;
  }

  .document-search-form__shell::after {
    right: 1.3rem;
    top: calc(50% + 27px);
  }

  .document-search-form button {
    min-height: 56px;
    width: 100%;
  }

  .document-format-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .document-hero h1 {
    font-size: 3.2rem;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  }

  .document-section h2 {
    font-size: 2.25rem;
  }
}
